]>
Commit | Line | Data |
---|---|---|
bee48093 FZ |
1 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
2 | ||
3 | * util/Makefile.in (install-local): Convert a `for' into a normal | |
4 | shell expansion. | |
5 | ||
a031e91c RM |
6 | 2009-11-24 Robert Millan <rmh.grub@aybabtu.com> |
7 | ||
8 | * autogen.sh: Add automake call. | |
9 | * config.guess: Remove. | |
10 | * config.sub: Likewise. | |
11 | * install-sh: Likewise. | |
12 | ||
26bec39d FZ |
13 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
14 | ||
15 | * util/Makefile.in (install-local): Fix the use of $lang shell variable. | |
16 | ||
8e2532fd FZ |
17 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18 | ||
19 | * util/Makefile.in (install-local): Convert a make `$(foreach)' | |
20 | function to a normal shell `for'. | |
21 | ||
fefa1b7d FZ |
22 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
23 | ||
24 | * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'. | |
25 | ||
4501250b FZ |
26 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
27 | ||
28 | * util/grub-mkrelpath.c: New file. | |
29 | * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath. | |
30 | (grub_mkrelpath_SOURCES): New variable. | |
31 | * include/grub/util/misc.h: New function prototype. | |
32 | * util/misc.c (make_system_path_relative_to_its_root): New function. | |
33 | ||
34 | * util/grub-mkconfig_lib.in (bindir): New variable. | |
35 | (grub_mkrelpath): Likewise. | |
36 | (make_system_path_relative_to_its_root): Use grub-mkrelpath. | |
37 | ||
38 | * util/probe.c (probe): Make the file path relative to its root. | |
39 | Change a info message to use the GRUB path. Enable again the | |
40 | check if we can read the file with GRUB facilities. | |
41 | ||
42 | * util/i386/pc/grub-setup.c (setup): Make core.img path relative | |
43 | to its root. | |
44 | ||
11d9778b FZ |
45 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
46 | ||
47 | * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu | |
48 | platform. | |
49 | ||
4465287d FZ |
50 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
51 | ||
52 | * util/getroot.c (grub_util_get_dev_abstraction): Properly use | |
53 | strncmp(). | |
54 | ||
62b47f22 FZ |
55 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
56 | ||
57 | * util/getroot.c (grub_util_is_dmraid): New function. | |
58 | (grub_util_get_dev_abstraction): Treat dmraid and multipath | |
59 | devices as normal ones, not as LVM. | |
60 | ||
1eafb9b9 | 61 | 2009-11-23 Carles Pina i Estany <carles@pina.cat> |
c3ea6bd4 CPE |
62 | |
63 | * conf/common.rmk: Add grub-gettext_lib target and updates | |
64 | lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS, | |
65 | LDFLAGS. | |
66 | * gettext/gettext.c: New file. (Reads mo files). | |
67 | * include/grub/file.h (grub_file_pread): New prototype. | |
68 | * include/grub/i18n.h (_): New prototype. | |
69 | * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New | |
70 | prototypes. | |
71 | * kern/misc.c (grub_gettext_dummy): New function. | |
72 | * normal/menu_text.c: Include <grub/i18n.h>. | |
73 | * normal/menu_text.c (print_timeout): Gettexttize string. | |
74 | * normal/menu_text.c (print_message): Gettexttize string. | |
c3ea6bd4 CPE |
75 | * util/grub.d/00_header.in: Define locale_dir and lang. insmod |
76 | gettext module and defines locale_dir and lang in grub.cfg. | |
77 | * NEWS: Add gettext support. | |
78 | ||
0fdb2568 RM |
79 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
80 | ||
81 | * util/hostdisk.c: Include `<grub/i18n.h>'. | |
82 | (find_grub_drive): Use ARRAY_SIZE for map size calculation. | |
83 | (make_device_name): Rewrite using asprintf. | |
84 | (convert_system_partition_to_system_disk): Replace 0 with NULL. | |
85 | (find_system_device): If a device is not found, generate one just | |
86 | by reusing the OS path name. | |
87 | (read_device_map): Make it permissible for device.map not to exist. | |
88 | ||
f515aa62 RM |
89 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
90 | ||
91 | * script/sh/execute.c: Move from here ... | |
92 | * script/execute.c: ... to here. Update all users. | |
93 | * script/sh/function.c: Move from here ... | |
94 | * script/function.c: ... to here. Update all users. | |
95 | * script/sh/lexer.c: Move from here ... | |
96 | * script/lexer.c: ... to here. Update all users. | |
97 | * script/sh/main.c: Move from here ... | |
98 | * script/main.c: ... to here. Update all users. | |
99 | * script/sh/parser.y: Move from here ... | |
100 | * script/parser.y: ... to here. Update all users. | |
101 | * script/sh/script.c: Move from here ... | |
102 | * script/script.c: ... to here. Update all users. | |
103 | ||
f84b481b RM |
104 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
105 | ||
106 | * configure.ac: Detect all `emu' platforms. Define | |
107 | GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove | |
108 | --enable-grub-emu logic. Disable include/grub/machine | |
109 | symlink on `emu' platforms. | |
110 | ||
111 | * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation. | |
112 | * gensymlist.sh.in: Likewise. | |
113 | ||
114 | * include/grub/i386/coreboot/machine.h: Remove file. | |
115 | * include/grub/i386/efi/machine.h: Likewise. | |
116 | * include/grub/i386/ieee1275/machine.h: Likewise. | |
117 | * include/grub/i386/pc/machine.h: Likewise. | |
118 | * include/grub/i386/qemu/machine.h: Likewise. | |
119 | * include/grub/powerpc/ieee1275/machine.h: Likewise. | |
120 | * include/grub/sparc64/ieee1275/machine.h: Likewise. | |
121 | * include/grub/x86_64/efi/machine.h: Likewise. | |
122 | ||
123 | * commands/acpi.c: Remove `<grub/machine/machine.h>'. | |
124 | * commands/halt.c: Likewise. | |
125 | * commands/reboot.c: Likewise. | |
126 | * include/grub/autoefi.h: Likewise. | |
127 | * include/grub/i386/at_keyboard.h: Likewise. | |
128 | * include/grub/i386/kernel.h: Likewise. | |
129 | * include/grub/i386/loader.h: Likewise. | |
130 | * include/grub/i386/pc/memory.h: Likewise. | |
131 | * kern/dl.c: Likewise. | |
132 | * kern/i386/coreboot/init.c: Likewise. | |
133 | * loader/i386/bsd.c: Likewise. | |
134 | * loader/i386/linux.c: Likewise. | |
135 | * loader/multiboot_loader.c: Likewise. | |
136 | * term/i386/pc/serial.c: Likewise. | |
137 | * term/usb_keyboard.c: Likewise. | |
138 | ||
139 | * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove | |
140 | `<grub/machine/machine.h>' | |
141 | [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro. | |
142 | * util/misc.c: Remove `<grub/machine/machine.h>' and | |
143 | `<grub/machine/time.h>'. | |
144 | ||
145 | * Makefile.in (enable_grub_emu): Remove variable. | |
146 | Include $(srcdir)/conf/any-emu.mk for the `emu' platform. | |
147 | ||
148 | * conf/any-emu.rmk: New file. | |
149 | * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h) | |
150 | (grub_emu_init.c): Move from here ... | |
151 | * conf/any-emu.rmk: ... to here. | |
152 | ||
153 | * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'. | |
154 | (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ... | |
155 | * conf/any-emu.rmk: ... to here. | |
156 | ||
4efeab03 RM |
157 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
158 | ||
159 | * include/grub/parser.h (grub_parser_register): Document need | |
160 | of `name' parameter. | |
161 | * normal/main.c (grub_normal_read_line): Simplify prompt string. | |
162 | * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename | |
163 | "sh" to "grub". | |
164 | ||
ea1dd8bf RM |
165 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
166 | ||
167 | * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to | |
168 | `$(XGETTEXT)'. | |
169 | * include/grub/i18n.h (N_): New macro. | |
170 | * util/mkisofs/mkisofs.h: Likewise. | |
171 | * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings | |
172 | around N_(). | |
173 | (usage): Use gettext() to translate help strings when printing them. | |
174 | ||
0c140626 RM |
175 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
176 | ||
177 | Based on patch from Bean | |
178 | (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html) | |
179 | ||
180 | * video/efi_fb.c: New file. | |
181 | * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'. | |
182 | (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New | |
183 | variables. | |
184 | * conf/x86_64-efi.rmk: Likewise. | |
185 | ||
87d58298 RM |
186 | 2009-11-22 Robert Millan <rmh.grub@aybabtu.com> |
187 | ||
188 | * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings. | |
189 | * util/i386/pc/grub-setup.c: Likewise. | |
190 | ||
994cc3a3 ST |
191 | 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org> |
192 | ||
193 | * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and | |
194 | <hurd/fs.h> | |
195 | [__GNU__] (grub_guess_root_device): Call file_name_lookup and | |
196 | file_get_storage_info to implement grub_guess_root_device. | |
197 | ||
26a61d6a FZ |
198 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
199 | ||
200 | * Makefile.in (target): Use make's builtin $(shell) function | |
201 | instead of calling directly $(SHELL) to create the locale directories, | |
202 | inside the $(foreach) function. | |
203 | ||
74ff1dd5 FZ |
204 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
205 | ||
206 | * util/grub-mkrescue.in: Print an error and usage if output option | |
207 | has not been given. | |
208 | ||
0b787d0e FZ |
209 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
210 | ||
211 | Patch from Loïc Minier <loic.minier@ubuntu.com>. | |
212 | * util/grub.d/30_os-prober.in: Cope with Linux entries where | |
213 | root and /boot are on different devices. | |
214 | ||
1164b270 RM |
215 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> |
216 | ||
217 | Fix build for srcdir != objdir. | |
218 | ||
219 | * Makefile.in (po/$(PACKAGE).pot): Rename to ... | |
220 | ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from | |
221 | $(srcdir). | |
222 | ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ... | |
223 | ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^ | |
224 | reference for input. | |
225 | ||
13774a2f RM |
226 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> |
227 | ||
228 | * util/grub-mkrescue.in: Use source directory direcly (without copiing | |
229 | or hardlinking it). Remove -J option, Joliet is not compatible with | |
230 | multiple source directories. | |
231 | ||
efda854e RM |
232 | 2009-11-21 Carles Pina i Estany <carles@pina.cat> |
233 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> | |
234 | ||
235 | * util/grub-mkrescue.in: Recognize `--override-directory' option. | |
236 | (process_input_dir): New function. Process an arbitrary input | |
237 | directory. | |
238 | Misc adjustments to support both "override mode" and system-wide mode. | |
239 | ||
6c09890c FZ |
240 | 2009-11-20 Felix Zielcke <fzielcke@z-51.de> |
241 | ||
242 | * configure.ac (UNIFONT_BDF): Rename to ... | |
243 | (FONT_SOURCE): ... this. Update all users. | |
244 | ||
a797824f FZ |
245 | 2009-11-20 Felix Zielcke <fzielcke@z-51.de> |
246 | ||
247 | * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz' | |
248 | to the list of unifont files to look for. | |
249 | ||
cd4f42b0 RM |
250 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
251 | ||
252 | Patch from Joe Auricchio <jauricchio@gmail.com> | |
253 | * commands/minicmd.c (grub_mini_cmd_clear): New function. | |
254 | (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear(). | |
255 | (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear(). | |
256 | ||
393c783d FZ |
257 | 2009-11-19 Felix Zielcke <fzielcke@z-51.de> |
258 | ||
259 | * Makefile.in (install-local): Add a missing backslash. | |
260 | ||
b2f1e327 FZ |
261 | 2009-11-19 Felix Zielcke <fzielcke@z-51.de> |
262 | ||
263 | * include/grub/x86_64/io.h: New file. | |
264 | ||
f577f7a0 RM |
265 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
266 | ||
267 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'. | |
268 | * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'. | |
269 | Include `"progname.h"'. | |
270 | (main): Initialize gettext. | |
271 | * util/i386/pc/grub-setup.c: Gettexttize. | |
272 | * util/i386/pc/grub-mkimage.c: Likewise. | |
273 | ||
274 | * Makefile.in (po/*.po): Redefine as ... | |
275 | ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this. | |
276 | ||
c37943b6 RM |
277 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
278 | ||
279 | * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'. | |
280 | * util/mkisofs/mkisofs.c: Include `"progname.h"'. | |
281 | (program_name): Remove. | |
282 | (main): Initialize gettext support. | |
6323f705 RM |
283 | * util/mkisofs/mkisofs.h: Include `<locale.h>'. |
284 | Include `<libintl.h>'. | |
285 | (_): New macro. | |
c37943b6 RM |
286 | |
287 | * util/mkisofs/eltorito.c: Gettexttize. | |
288 | * util/mkisofs/joliet.c: Likewise. | |
289 | * util/mkisofs/mkisofs.c: Likewise. | |
c37943b6 RM |
290 | * util/mkisofs/multi.c: Likewise. |
291 | * util/mkisofs/rock.c: Likewise. | |
292 | * util/mkisofs/tree.c: Likewise. | |
293 | * util/mkisofs/write.c: Likewise. | |
294 | ||
5ce77c6e RM |
295 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
296 | ||
297 | * util/mkisofs/eltorito.c: Fix minor mistake in license text. | |
298 | * util/mkisofs/iso9660.h: Likewise. | |
299 | * util/mkisofs/joliet.c: Likewise. | |
300 | * util/mkisofs/mkisofs.c: Likewise. | |
301 | * util/mkisofs/mkisofs.h: Likewise. | |
302 | * util/mkisofs/rock.c: Likewise. | |
303 | * util/mkisofs/tree.c: Likewise. | |
304 | * util/mkisofs/write.c: Likewise. | |
305 | ||
306 | * util/mkisofs/eltorito.c (rcsid): Remove. | |
307 | * util/mkisofs/hash.c: Likewise. | |
308 | * util/mkisofs/joliet.c: Likewise. | |
309 | * util/mkisofs/name.c: Likewise. | |
310 | * util/mkisofs/rock.c: Likewise. | |
311 | * util/mkisofs/tree.c: Likewise. | |
312 | * util/mkisofs/write.c: Likewise. | |
313 | ||
1dabbc77 RM |
314 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
315 | ||
316 | * util/mkisofs/match.c: Rewrite from scratch, using a linked list | |
317 | instead of static allocation. | |
318 | * util/mkisofs/match.h: Likewise. | |
319 | ||
633877cb RM |
320 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
321 | ||
633877cb RM |
322 | * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for |
323 | translatable Shell files. | |
324 | ||
af1c0c85 RM |
325 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
326 | ||
327 | * Makefile.in ($(srcdir)/aclocal.m4): New target. | |
328 | ||
769ae37b RM |
329 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> |
330 | ||
331 | * INSTALL: Document Automake is needed for bootstrap. | |
769ae37b RM |
332 | * util/grub.d/10_kfreebsd.in (bindir): New variable. |
333 | Add gettext initialization. | |
334 | (kfreebsd_entry): Make menuentry output translatable. | |
335 | ||
336 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
337 | ||
338 | * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables. | |
339 | (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'. | |
340 | (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'. | |
341 | (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'. | |
342 | (LINGUAS): Auto-generate using `po/LINGUAS'. | |
769ae37b RM |
343 | |
344 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
345 | ||
346 | * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among | |
347 | other things). | |
348 | * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'. | |
349 | * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and | |
350 | bindtextdomain() calls for gettext initialization. | |
351 | ||
352 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
353 | ||
354 | * gnulib/progname.c: New file (imported from Gnulib). | |
355 | * gnulib/progname.h: Likewise. | |
356 | * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'. | |
357 | * util/i386/pc/grub-mkimage.c: Include `"progname.h"'. | |
358 | (usage): Replace `progname' with `program_name'. | |
359 | (main): Use set_program_name() for program name initialization. | |
360 | ||
361 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
362 | ||
363 | * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib' | |
364 | from here ... | |
365 | * Makefile.in (CPPFLAGS): ... to here. | |
366 | ||
367 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> | |
368 | ||
369 | * aclocal.m4: Move from here ... | |
370 | * acinclude.m4: ... to here. | |
371 | * autogen.sh: Add call to `aclocal'. | |
372 | * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call. | |
373 | ||
374 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> | |
375 | ||
376 | * Makefile.in (CLEANFILES): Add `po/*.mo'. | |
377 | (LINGUAS): New variable. | |
378 | (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'. | |
379 | (install-local): Install MO files. | |
380 | (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules. | |
381 | * include/grub/i18n.h: New file. | |
769ae37b RM |
382 | * util/grub.d/10_linux.in (bindir): New variable. |
383 | Add gettext initialization. | |
384 | (linux_entry): Make menuentry output translatable. | |
385 | * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'. | |
386 | (usage): Make --help output translatable. | |
387 | (main): Initialize gettext. | |
388 | ||
02c0a6ad RM |
389 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> |
390 | ||
391 | * import_gcry.py: New file (written by Vladimir with minor | |
392 | adjustments). | |
393 | * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified | |
394 | ciphers. | |
395 | * INSTALL: Document that Python is required for bootstrap. | |
396 | ||
397 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
398 | ||
399 | Import ciphers from libgcrypt 1.4.4. | |
400 | ||
401 | * lib/libgcrypt/cipher/ChangeLog | |
402 | * lib/libgcrypt/cipher/ac.c | |
403 | * lib/libgcrypt/cipher/arcfour.c | |
404 | * lib/libgcrypt/cipher/bithelp.h | |
405 | * lib/libgcrypt/cipher/blowfish.c | |
406 | * lib/libgcrypt/cipher/camellia-glue.c | |
407 | * lib/libgcrypt/cipher/camellia.c | |
408 | * lib/libgcrypt/cipher/camellia.h | |
409 | * lib/libgcrypt/cipher/cast5.c | |
410 | * lib/libgcrypt/cipher/cipher.c | |
411 | * lib/libgcrypt/cipher/crc.c | |
412 | * lib/libgcrypt/cipher/des.c | |
413 | * lib/libgcrypt/cipher/dsa.c | |
414 | * lib/libgcrypt/cipher/ecc.c | |
415 | * lib/libgcrypt/cipher/elgamal.c | |
416 | * lib/libgcrypt/cipher/hash-common.c | |
417 | * lib/libgcrypt/cipher/hash-common.h | |
418 | * lib/libgcrypt/cipher/hmac-tests.c | |
419 | * lib/libgcrypt/cipher/md.c | |
420 | * lib/libgcrypt/cipher/md4.c | |
421 | * lib/libgcrypt/cipher/md5.c | |
422 | * lib/libgcrypt/cipher/primegen.c | |
423 | * lib/libgcrypt/cipher/pubkey.c | |
424 | * lib/libgcrypt/cipher/rfc2268.c | |
425 | * lib/libgcrypt/cipher/rijndael-tables.h | |
426 | * lib/libgcrypt/cipher/rijndael.c | |
427 | * lib/libgcrypt/cipher/rmd.h | |
428 | * lib/libgcrypt/cipher/rmd160.c | |
429 | * lib/libgcrypt/cipher/rsa.c | |
430 | * lib/libgcrypt/cipher/seed.c | |
431 | * lib/libgcrypt/cipher/serpent.c | |
432 | * lib/libgcrypt/cipher/sha1.c | |
433 | * lib/libgcrypt/cipher/sha256.c | |
434 | * lib/libgcrypt/cipher/sha512.c | |
435 | * lib/libgcrypt/cipher/tiger.c | |
436 | * lib/libgcrypt/cipher/twofish.c | |
437 | * lib/libgcrypt/cipher/whirlpool.c | |
438 | ||
af2f93ac RM |
439 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> |
440 | ||
441 | Fix build for systems without error(). | |
442 | ||
443 | * gnulib/error.c: New file (imported from Gnulib). | |
444 | * gnulib/error.h: Likewise. | |
445 | * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'. | |
446 | * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier | |
447 | (this variable is now used by error()). | |
448 | ||
73fb3dd5 FZ |
449 | 2009-11-16 Felix Zielcke <fzielcke@z-51.de> |
450 | ||
814f5e96 FZ |
451 | * util/mkisofs/name.c (iso9660_file_length): Use isascii macro |
452 | instead of relying that char is signed. | |
73fb3dd5 | 453 | |
a691ca33 VS |
454 | 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
455 | ||
456 | * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing | |
457 | blocksize different from specified. | |
458 | (grub_pxefs_read): Likewise. | |
459 | ||
2af8f0f4 FZ |
460 | 2009-11-16 Felix Zielcke <fzielcke@z-51.de> |
461 | ||
462 | Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275. | |
463 | ||
464 | * disk/ata.c (grub_ata_dumpinfo): Add a cast. | |
465 | (grub_ata_readwrite): Likewise. Update 2 format strings. | |
466 | (grub_atapi_read): Likewise. | |
467 | ||
468 | * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ... | |
469 | * conf/i386.rmk (pkglib_MODULES): ... to here ... | |
470 | * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here. | |
471 | * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS) | |
472 | (ata_mod_LDFLAGS): Move from here ... | |
473 | * conf/i386.rmk: ... to here ... | |
474 | * conf/x86_64-efi.rmk: ... and here. | |
475 | * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod' | |
476 | (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove. | |
477 | ||
83bdecaf RM |
478 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> |
479 | ||
480 | Relicense multiboot.h, with RMS' blessing. | |
481 | ||
482 | * include/multiboot.h: Change to X11 license. | |
483 | ||
fd6fd3d7 RM |
484 | 2009-11-15 Robert Millan <rmh.grub@aybabtu.com> |
485 | ||
486 | Support --version in grub-mkisofs. | |
487 | ||
488 | * util/mkisofs/mkisofs.c (rcsid): Remove variable. | |
489 | (OPTION_VERSION): New macro. | |
490 | (ld_options): Recognize --version. | |
491 | (usage): Move `program_name' from here ... | |
492 | (program_name): ... to here. Add `static' qualifier. | |
493 | (main): Recognize `OPTION_VERSION'. | |
494 | ||
16a88c49 FZ |
495 | 2009-11-15 Felix Zielcke <fzielcke@z-51.de> |
496 | ||
497 | * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include' | |
498 | with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'. | |
499 | ||
a4158476 RM |
500 | 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> |
501 | ||
502 | Fix help2man generation for mkisofs. | |
503 | ||
504 | * util/mkisofs/mkisofs.c (ld_options): Recognize --help. | |
505 | (usage): Send output to stdout (rather than stderr). | |
506 | ||
fc2208b0 RM |
507 | 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> |
508 | ||
509 | * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace | |
510 | `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'. | |
511 | * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace | |
512 | `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'. | |
513 | (bin_SCRIPTS): Add `grub-mkfloppy'. | |
514 | (grub_mkfloppy_SOURCES): New variable. | |
515 | ||
516 | * util/grub-mkrescue.in: New file. | |
517 | * util/i386/pc/grub-mkfloppy.in: New file. | |
518 | ||
519 | * util/i386/coreboot/grub-mkrescue.in: Remove. | |
520 | * util/i386/pc/grub-mkrescue.in: Remove. | |
521 | ||
8d0edf4a RM |
522 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
523 | ||
524 | * include/grub/multiboot.h (struct grub_multiboot_header): Move | |
525 | from here ... | |
526 | * include/multiboot.h (struct multiboot_header): ... to here. Update | |
527 | all users. | |
528 | * include/grub/multiboot.h (struct grub_multiboot_info): Move | |
529 | from here ... | |
530 | * include/multiboot.h (struct multiboot_info): ... to here. Update | |
531 | all users. | |
532 | * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move | |
533 | from here ... | |
534 | * include/multiboot.h (struct multiboot_mmap_entry): ... to here. | |
535 | Update all users. | |
536 | * include/grub/multiboot.h (struct grub_mod_list): Move | |
537 | from here ... | |
538 | * include/multiboot.h (struct multiboot_mod_list): ... to here. | |
539 | Update all users. | |
540 | ||
a73f5969 RM |
541 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
542 | ||
543 | * include/multiboot2.h (multiboot_word): Rename from this ... | |
544 | (multiboot2_word): ... to this. Update all users. | |
545 | (multiboot_header): Rename from this ... | |
546 | (multiboot2_header): ... to this. Update all users. | |
547 | (multiboot_tag_header): Rename from this ... | |
548 | (multiboot2_tag_header): ... to this. Update all users. | |
549 | (multiboot_tag_start): Rename from this ... | |
550 | (multiboot2_tag_start): ... to this. Update all users. | |
551 | (multiboot_tag_name): Rename from this ... | |
552 | (multiboot2_tag_name): ... to this. Update all users. | |
553 | (multiboot_tag_module): Rename from this ... | |
554 | (multiboot2_tag_module): ... to this. Update all users. | |
555 | (multiboot_tag_memory): Rename from this ... | |
556 | (multiboot2_tag_memory): ... to this. Update all users. | |
557 | (multiboot_tag_unused): Rename from this ... | |
558 | (multiboot2_tag_unused): ... to this. Update all users. | |
559 | (multiboot_tag_end): Rename from this ... | |
560 | (multiboot2_tag_end): ... to this. Update all users. | |
561 | ||
1c8927f0 RM |
562 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
563 | ||
564 | Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on | |
565 | this platform we should support Multiboot1 first. | |
566 | ||
567 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'. | |
568 | (multiboot_mod_SOURCES, multiboot_mod_CFLAGS) | |
569 | (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove. | |
570 | ||
6e1e0d89 RM |
571 | 2009-11-12 Robert Millan <rmh.grub@aybabtu.com> |
572 | ||
573 | * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code | |
574 | of write calls (converting them to fwrite() if they aren't already). | |
575 | (get_torito_desc): Likewise. | |
576 | * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise. | |
577 | ||
7f2b34d8 RM |
578 | 2009-11-12 Robert Millan <rmh.grub@aybabtu.com> |
579 | ||
580 | * util/i386/pc/grub-install.in: Move from here ... | |
581 | * util/grub-install.in: ... to here. Update all users. | |
582 | ||
c0ef3311 CW |
583 | 2009-11-11 Colin Watson <cjwatson@ubuntu.com> |
584 | ||
585 | * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output. | |
586 | ||
e1f240ff RM |
587 | 2009-11-11 Robert Millan <rmh.grub@aybabtu.com> |
588 | ||
589 | Support for El Torito without floppy emulation. | |
590 | ||
591 | * util/mkisofs/eltorito.c: Include `<errno.h>'. | |
592 | (init_boot_catalog): Improve error handling. | |
593 | (get_torito_desc): Don't use floppy emulation unless requested by | |
594 | user. Patch boot information table when requested via | |
595 | `-boot-info-table'. | |
596 | * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct. | |
597 | * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy) | |
598 | (use_boot_info_table): New variables. | |
599 | (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT) | |
600 | (OPTION_ELTORITO_EMUL_FLOPPY): New macros. | |
601 | (ld_options): Handle `-boot-info-table', `-no-emul-boot' and | |
602 | `--eltorito-emul-floppy'. | |
603 | (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT' | |
604 | and `OPTION_ELTORITO_EMUL_FLOPPY'. | |
605 | * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy) | |
606 | (use_boot_info_table, get_731): New prototypes. | |
607 | * util/mkisofs/write.c (get_731): New function. | |
608 | ||
af7d4de5 FZ |
609 | 2009-11-11 Felix Zielcke <fzielcke@z-51.de> |
610 | ||
611 | Fix the generation of the man page. | |
612 | ||
613 | * util/pc/i386/grub-install.in: Source | |
614 | `${libdir}/grub/grub-mkconfig_lib' after options have been parsed. | |
615 | ||
2c55dbc0 RM |
616 | 2009-11-11 Robert Millan <rmh.grub@aybabtu.com> |
617 | ||
618 | Large file support for grub-mkisofs. | |
619 | ||
620 | * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'. | |
621 | * util/mkisofs/mkisofs.c (next_extent, last_extent) | |
622 | (session_start): Upgrade type to `uint64_t'. Update all users. | |
623 | * util/mkisofs/mkisofs.h: Include `<stdint.h>'. | |
624 | (struct directory_entry): Upgrade type of `starting_block' and | |
625 | `size' to `uint64_t'. Update all users. | |
626 | (struct deferred): Remove unused structure. | |
627 | (xfwrite): Upgrade type of `count' and `size' to `uint64_t'. | |
628 | Update all users. | |
629 | * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when | |
630 | file is larger than `UINT32_MAX'. | |
631 | * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and | |
632 | `size' to `uint64_t'. Update all users. Fix handling of fwrite() | |
633 | return value. | |
634 | (struct deferred_write): Upgrade type of `extent' and `size' to | |
635 | `uint64_t'. Update all users. | |
636 | (last_extent_written): Upgrade type to `uint64_t'. Update all | |
637 | users. | |
638 | (write_one_file): Upgrade type of `count' and `size' to `uint64_t'. | |
639 | Update all users. Upgrade type of `remain' to `int64_t' and | |
640 | `use' to `size_t'. Use error() to handle fread() errors. | |
641 | (write_files): Rely on write_one_file() rather than calling | |
642 | xfwrite() directly. | |
643 | ||
6a9cead5 FZ |
644 | 2009-11-09 Felix Zielcke <fzielcke@z-51.de> |
645 | ||
646 | * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake. | |
647 | ||
4825d790 RM |
648 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
649 | ||
650 | * util/mkisofs/fnmatch.c: Remove. | |
651 | * util/mkisofs/getopt1.c: Likewise. | |
652 | * util/mkisofs/getopt.c: Likewise. | |
653 | * conf/common.rmk (grub_mkisofs_SOURCES): Replace | |
654 | `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and | |
655 | `util/mkisofs/getopt.c' with `gnulib/fnmatch.c', | |
656 | `gnulib/getopt1.c' and `gnulib/getopt.c'. | |
657 | (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'. | |
658 | ||
659 | * configure.ac: Detect `mingw32msvc' host_os. | |
660 | Check for lstat(), getuid() and getgid(). | |
661 | ||
662 | * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all | |
663 | instances of `u_char' with `uint8_t'. | |
664 | ||
665 | * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'. | |
666 | [!HAVE_GETUID] (getuid): New function (stub). | |
667 | [!HAVE_GETGID] (getgid): Likewise. | |
668 | [!HAVE_LSTAT] (lstat): Likewise. | |
669 | [!S_IROTH] (S_IROTH): New macro (dummy). | |
670 | [!S_IRGRP] (S_IRGRP): Likewise. | |
671 | ||
84b860d8 RM |
672 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
673 | ||
674 | * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in | |
675 | conditional expression). | |
676 | ||
66e9b712 RM |
677 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
678 | ||
679 | Import from Gnulib. | |
680 | ||
681 | * gnulib/fnmatch.c: New file. | |
682 | * gnulib/fnmatch.h: Likewise. | |
683 | * gnulib/fnmatch_loop.c: Likewise. | |
684 | * gnulib/getopt.c: Likewise. | |
685 | * gnulib/getopt.h: Likewise. | |
686 | * gnulib/getopt1.c: Likewise. | |
687 | * gnulib/getopt_int.h: Likewise. | |
688 | * gnulib/gettext.h: Likewise. | |
689 | ||
34f4a5b0 RM |
690 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
691 | ||
692 | * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'. | |
693 | * normal/handler.c (read_handler_list): Likewise. | |
694 | ||
ac451143 RM |
695 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
696 | ||
697 | Misc cleanup. | |
698 | ||
699 | * kern/command.c (grub_register_command_prio): Use | |
700 | grub_zalloc() instead of explicitly zeroing data. | |
701 | * kern/list.c: Include `<grub/mm.h>'. | |
702 | (grub_named_list_find): Replace `0' with `NULL'. | |
703 | * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type. | |
704 | (fs_module_list): Change type to `grub_named_list_t'. Update all | |
705 | users. | |
706 | * normal/dyncmd.c (read_command_list): Add space between function | |
707 | call and parenthesis. | |
708 | * normal/handler.c (read_handler_list): Likewise. | |
709 | ||
4089b167 RM |
710 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
711 | ||
712 | * normal/auth.c (punishment_delay): Moved from here ... | |
713 | (grub_auth_strcmp): ... to here (inside function). | |
714 | ||
325f5037 RM |
715 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
716 | ||
717 | * include/grub/list.h (struct grub_named_list): Remove `const' | |
718 | qualifier from `name'. | |
719 | (struct grub_prio_list): Likewise. | |
720 | ||
7aea29a3 RM |
721 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
722 | ||
723 | * normal/auth.c: Include `<grub/time.h>'. | |
724 | (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'. | |
725 | ||
3fd6f044 RM |
726 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
727 | ||
728 | * normal/auth.c (punishment_delay): New variable. | |
729 | (grub_auth_strcmp): Rewrite using grub_get_time_ms (). | |
730 | (grub_auth_check_authentication): Punish failed login attempts with | |
731 | an incremental (2^N) delay. | |
732 | ||
a4cd68e4 RM |
733 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
734 | ||
735 | * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include | |
736 | path with $(srcdir). | |
737 | ||
7ad12f43 VS |
738 | 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
739 | ||
740 | * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage. | |
741 | ||
c1129f03 RM |
742 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
743 | ||
744 | * util/i386/coreboot/grub-mkrescue.in: New file. | |
745 | * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New | |
746 | variables. | |
747 | ||
748 | * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'. | |
749 | (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables. | |
750 | * configure.ac: Add header and function checks to satisfy grub-mkisofs | |
751 | requirements. | |
752 | * util/mkisofs/defaults.h: New file. | |
753 | * util/mkisofs/eltorito.c: Likewise. | |
754 | * util/mkisofs/exclude.h: Likewise. | |
755 | * util/mkisofs/fnmatch.c: Likewise. | |
756 | * util/mkisofs/getopt.c: Likewise. | |
757 | * util/mkisofs/getopt1.c: Likewise. | |
758 | * util/mkisofs/hash.c: Likewise. | |
759 | * util/mkisofs/include/fctldefs.h: Likewise. | |
760 | * util/mkisofs/include/mconfig.h: Likewise. | |
761 | * util/mkisofs/include/prototyp.h: Likewise. | |
762 | * util/mkisofs/include/statdefs.h: Likewise. | |
763 | * util/mkisofs/iso9660.h: Likewise. | |
764 | * util/mkisofs/joliet.c: Likewise. | |
765 | * util/mkisofs/match.c: Likewise. | |
766 | * util/mkisofs/match.h: Likewise. | |
767 | * util/mkisofs/mkisofs.c: Likewise. | |
768 | * util/mkisofs/mkisofs.h: Likewise. | |
769 | * util/mkisofs/multi.c: Likewise. | |
770 | * util/mkisofs/name.c: Likewise. | |
771 | * util/mkisofs/rock.c: Likewise. | |
772 | * util/mkisofs/tree.c: Likewise. | |
773 | * util/mkisofs/write.c: Likewise. | |
774 | ||
ec8bb77d VS |
775 | 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
776 | ||
777 | * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function | |
778 | being insecure. | |
779 | ||
3716b12c RM |
780 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
781 | ||
782 | * util/i386/pc/grub-mkrescue.in: Fix miss-identification as | |
783 | `grub-mkimage' (and use $0 when possible). | |
784 | ||
b97b7b91 RM |
785 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
786 | ||
787 | * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve | |
788 | error message for excessively large memory map. | |
789 | ||
04114812 RM |
790 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
791 | ||
792 | * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on | |
793 | executable bit. | |
794 | ||
e4eb2373 RM |
795 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
796 | ||
797 | * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error | |
798 | message for coreboot users. | |
799 | ||
c926e1d5 | 800 | 2009-11-07 Robert Millan <rmh.grub@aybabtu.com> |
801 | ||
802 | Fix build with GNU gold. | |
803 | ||
804 | * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS) | |
805 | (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS) | |
806 | (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal | |
807 | link addresses. | |
808 | * aclocal.m4: Likewise. | |
809 | ||
86e5b1db | 810 | 2009-11-04 Felix Zielcke <fzielcke@z-51.de> |
811 | ||
812 | * configure.ac (AC_PREREQ): Bump to 2.59d. | |
813 | * INSTALL: Make it more clear when Autoconf and Ruby are | |
814 | needed and when to run `./autogen.sh'. | |
815 | ||
246cd78f | 816 | 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org> |
817 | ||
818 | * util/grub.d/30_os-prober.in: Restore default behavior for unsupported | |
819 | OSes. | |
820 | ||
4f9dfb37 | 821 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
822 | ||
823 | * util/grub.d/30_os-prober.in: Add GNU/Hurd support | |
824 | ||
b82bd5e1 | 825 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
826 | ||
827 | * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before | |
828 | giving it to GNU Mach. | |
829 | ||
ff1a9bca | 830 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
831 | ||
832 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from | |
833 | GNU partition number to get internal GRUB partition number. | |
834 | ||
61697d9c | 835 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
836 | ||
837 | * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device | |
838 | ${GRUB_DEVICE_BOOT} before loading /boot kernel. | |
839 | ||
a50569e1 | 840 | 2009-11-01 Robert Millan <rmh.grub@aybabtu.com> |
841 | ||
842 | Based on patch from BVK Chaitanya <bvk.groups@gmail.com> | |
843 | * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0' | |
844 | case. | |
845 | ||
5b153867 | 846 | 2009-11-01 Felix Zielcke <fzielcke@z-51.de> |
847 | ||
848 | * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'. | |
849 | ||
d9e2cd70 | 850 | 2009-10-30 Robert Millan <rmh.grub@aybabtu.com> |
851 | ||
852 | Fix build problem. | |
853 | ||
854 | * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with | |
855 | `-isystem=$(srcdir)/include'. | |
856 | ||
805111a4 | 857 | 2009-10-30 Robert Millan <rmh.grub@aybabtu.com> |
858 | ||
859 | * util/i386/pc/grub-install.in: Remove hint that device.map should be | |
860 | checked (grub-install doesn't currently rely on it). | |
861 | ||
fa6e945f | 862 | 2009-10-29 Robert Millan <rmh.grub@aybabtu.com> |
863 | ||
864 | Revert SVN r2660. | |
865 | ||
866 | * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ... | |
867 | * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here. | |
868 | * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here. | |
869 | * conf/i386-ieee1275.rmk: Likewise. | |
870 | * conf/i386-pc.rmk: Likewise. | |
871 | * conf/powerpc-ieee1275.rmk: Likewise. | |
872 | * conf/sparc64-ieee1275.rmk: Likewise. | |
873 | * conf/x86_64-efi.rmk: Likewise. | |
874 | ||
cee15086 | 875 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
876 | ||
877 | * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'. | |
878 | ||
95b9239e | 879 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
880 | ||
881 | * include/grub/misc.h: Stop checking for APPLE_CC. | |
882 | ||
2ed19dfd | 883 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
884 | ||
885 | * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that | |
886 | doesn't cause an infinite call loop. | |
887 | ||
fdcdde19 | 888 | 2009-10-28 Felix Zielcke <fzielcke@z-51.de> |
889 | ||
890 | * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error | |
891 | strings. | |
892 | ||
cefabfe1 | 893 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
894 | ||
895 | * autogen.sh: Support addition of external modules via `GRUB_CONTRIB' | |
896 | variable. | |
897 | * Makefile.in: Likewise. | |
898 | ||
ed96ab6d | 899 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
900 | ||
901 | * gendistlist.sh: Simplify .svn check. Skip .bzr as well. | |
902 | ||
0579b753 | 903 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
904 | ||
905 | * Makefile.in (RMKFILES): Rewrite using $(wildcard). | |
906 | ||
478df409 | 907 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
908 | ||
909 | * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed). | |
910 | ||
083d1679 | 911 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
912 | ||
913 | * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration | |
914 | from here ... | |
915 | * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here. | |
916 | ||
5947ae32 | 917 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
918 | ||
919 | * Makefile.in (docs/grub.info): Use make syntax to ignore errors | |
920 | in $(MAKEINFO) invocation. This makes it clear in output that | |
921 | errors are being ignored. | |
922 | ||
94180ff6 | 923 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
924 | ||
925 | * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved | |
926 | from here ... | |
927 | * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here. | |
928 | * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove. | |
929 | * conf/i386-ieee1275.rmk: Likewise. | |
930 | * conf/i386-pc.rmk: Likewise. | |
931 | * conf/powerpc-ieee1275.rmk: Likewise. | |
932 | * conf/sparc64-ieee1275.rmk: Likewise. | |
933 | * conf/x86_64-efi.rmk: Likewise. | |
934 | ||
9031b03a | 935 | 2009-10-26 Colin Watson <cjwatson@ubuntu.com> |
936 | ||
937 | * util/grub-editenv.c (main): If only a command is given, use | |
938 | DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name. | |
939 | (usage): FILENAME is now optional and has a default. | |
940 | ||
e4f6809b | 941 | 2009-10-26 Colin Watson <cjwatson@ubuntu.com> |
942 | ||
943 | Improve grub-mkconfig performance when there are several menu | |
944 | entries on a single filesystem. | |
945 | ||
946 | * util/grub.d/10_linux.in (linux_entry): Cache the output of | |
947 | prepare_grub_to_access_device. | |
948 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise. | |
949 | * util/grub.d/30_os-prober.in: Likewise. | |
950 | ||
67937d4d | 951 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
952 | ||
953 | * util/grub.d/10_freebsd.in: Remove. | |
954 | * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in). | |
955 | * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD. | |
956 | ||
ee3756cc | 957 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
958 | ||
5c35048e | 959 | * docs/grub.cfg: Fix example usage of *BSD loaders. |
ee3756cc | 960 | |
4dea1c6f | 961 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
962 | ||
963 | * util/i386/pc/grub-setup.c (setup): Add missing parameter to | |
964 | grub_util_error() call. | |
965 | ||
042484d7 | 966 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
967 | ||
968 | * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add | |
969 | `reserved_first_sector' member. | |
970 | * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize | |
971 | `reserved_first_sector' to 1. | |
972 | * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise. | |
973 | * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise. | |
974 | * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise. | |
975 | * util/i386/pc/grub-setup.c (setup): Add safety check that probes for | |
976 | filesystems which begin at first sector. | |
977 | (options): New option --skip-fs-probe. | |
978 | (main): Handle --skip-fs-probe and pass it to setup(). | |
979 | ||
d64448a7 | 980 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
981 | ||
982 | * include/grub/misc.h: Fix wrong evaluation of APPLE_CC. | |
983 | (memset): Fix function prototype. | |
984 | ||
508d42ec | 985 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
986 | 2009-10-25 Vasily Averin <vvs@parallels.com> | |
987 | ||
988 | * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when | |
989 | `dirent.direntlen == 0'. | |
990 | ||
b240e30c | 991 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
992 | ||
993 | * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of | |
994 | `cpio'. | |
995 | [! MODE_USTAR]: Initialize `cpio' module instead of `tar'. | |
996 | ||
346e7fbe | 997 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
998 | ||
999 | * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3', | |
1000 | `__trampoline_setup' and `__ucmpdi2'. | |
1001 | * include/grub/powerpc/libgcc.h: Only export symbols for functions | |
1002 | that libgcc provides. | |
1003 | ||
cdb308b0 | 1004 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
1005 | ||
1006 | * include/grub/powerpc/libgcc.h (memset): Remove function prototype. | |
1007 | * include/grub/sparc64/libgcc.h (memset): Likewise. | |
1008 | * include/grub/misc.h (memset, memcmp): New function prototypes. | |
1009 | ||
fb26abc2 | 1010 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
1011 | ||
1012 | * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of | |
1013 | `cpio'. | |
1014 | [! MODE_USTAR]: Finish `cpio' module instead of `tar'. | |
1015 | ||
f6693890 | 1016 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
1017 | ||
1018 | Patch from Samuel Thibault <samuel.thibault@ens-lyon.org> | |
1019 | * docs/grub.cfg: Compensate for recent change in multiboot | |
1020 | loader (since 2009-08-14 it won't pass filename to payload). | |
1021 | * util/grub.d/10_hurd.in: Likewise. | |
1022 | ||
0933cdc0 | 1023 | 2009-10-21 Felix Zielcke <fzielcke@z-51.de> |
1024 | ||
1025 | * config.guess: Update to latest version from config git | |
1026 | repository. | |
1027 | * config.sub: Likewise. | |
1028 | ||
3b2fe8c2 | 1029 | 2009-10-20 Robert Millan <rmh.grub@aybabtu.com> |
1030 | ||
1031 | Fix build on sparc64. | |
1032 | ||
1033 | * configure.ac: Perform checks for libgcc symbols before | |
1034 | adding `-nostdlib' to LDFLAGS. | |
1035 | ||
46695a62 | 1036 | 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
1037 | ||
1038 | Let user specify OpenBSD root device. | |
1039 | ||
1040 | * loader/i386/bsd.c (openbsd_root): New variable. | |
1041 | (openbsd_opts): New option 'root'. | |
1042 | (OPENBSD_ROOT_ARG): New macro. | |
1043 | (grub_openbsd_boot): Use 'openbsd_root'. | |
1044 | (grub_cmd_openbsd): Fill 'openbsd_root'. | |
1045 | ||
d2b6b7fc | 1046 | 2009-10-16 Robert Millan <rmh.grub@aybabtu.com> |
1047 | ||
1048 | * NEWS: Misc adjustments. | |
1049 | ||
421bd7ac | 1050 | 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
1051 | ||
1052 | * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool. | |
1053 | ||
f1d29d87 | 1054 | 2009-10-16 Robert Millan <rmh.grub@aybabtu.com> |
1055 | ||
1056 | * configure.ac: Bump version to 1.97. | |
1057 | ||
6f3cd880 | 1058 | 2009-10-16 Colin Watson <cjwatson@ubuntu.com> |
1059 | ||
1060 | * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2 | |
1061 | -mno-3dnow on x86 architectures. Some toolchains enable these | |
1062 | features by default, but they rely on registers that aren't enabled | |
1063 | in GRUB. Thanks to Vladimir Serbinenko for the suggestion. | |
1064 | ||
035f7122 | 1065 | 2009-10-15 Robert Millan <rmh.grub@aybabtu.com> |
1066 | ||
1067 | Make entry text a bit more readable. | |
1068 | ||
1069 | * util/grub.d/10_linux.in: Add `with' before `Linux'. | |
1070 | ||
44998e58 | 1071 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
1072 | ||
1073 | * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image. | |
1074 | ||
cd2851b3 | 1075 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
1076 | ||
1077 | * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise | |
1078 | operations. | |
1079 | ||
c6f3b249 | 1080 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
1081 | ||
1082 | * configure.ac: Add missing dollar. | |
1083 | ||
6b5886ba | 1084 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
1085 | ||
1086 | Revert 2009-06-10 Pavel Roskin <proski@gnu.org> | |
1087 | ||
1088 | * configure.ac: Put checks for __bswapsi2 and __bswapdi2. | |
1089 | * include/grub/powerpc/libgcc.h: Don't use weak attribute for all | |
1090 | exports. | |
1091 | * include/grub/sparc64/libgcc.h: Likewise. Use | |
1092 | preprocessor conditionals. | |
1093 | ||
e9d66f6d | 1094 | 2009-10-14 Robert Millan <rmh.grub@aybabtu.com> |
1095 | ||
1096 | * conf/common.rmk (grub-dumpbios): Remove rule. | |
1097 | (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'. | |
1098 | * util/grub-dumpbios.in: Remove file. | |
1099 | ||
9155bc17 | 1100 | 2009-10-14 Robert Millan <rmh.grub@aybabtu.com> |
1101 | ||
1102 | Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between | |
1103 | the Operating System (FreeBSD) and its kernel (kernel of FreeBSD). | |
1104 | ||
1105 | * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment | |
1106 | from "kFreeBSD" namespace (rather than "FreeBSD"). Update all | |
1107 | users. | |
1108 | ||
1109 | (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd", | |
1110 | "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv" | |
1111 | to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module", | |
1112 | and "freebsd_module_elf" to "kfreebsd_module_elf". Update all | |
1113 | users. | |
1114 | ||
bf7f7a18 | 1115 | 2009-10-12 Robert Millan <rmh.grub@aybabtu.com> |
1116 | ||
1117 | * term/tparm.c: Switch to GPLv3. | |
1118 | ||
86564c26 | 1119 | 2009-10-09 Robert Millan <rmh.grub@aybabtu.com> |
1120 | ||
1121 | * include/grub/i386/cpuid.h: Add header protection. | |
1122 | ||
5c936493 | 1123 | 2009-10-09 Robert Millan <rmh.grub@aybabtu.com> |
1124 | ||
1125 | Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU. | |
1126 | ||
1127 | * include/grub/i386/cpuid.h: New file. | |
1128 | * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'. | |
1129 | (has_longmode): Rename to ... | |
1130 | (grub_cpuid_has_longmode): ... this. Update all users. Remove | |
1131 | `static' attribute. | |
1132 | * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'. | |
1133 | (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested | |
1134 | on a CPU that doesn't implement AMD64 instruction set. | |
1135 | ||
186e7cf2 | 1136 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
1137 | ||
1138 | * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so | |
1139 | that version.texi is rebuilt on version number changes. | |
1140 | ||
83b65c4a | 1141 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
1142 | ||
1143 | * Makefile.in: Don't set info_INFOS unless makeinfo was found. | |
1144 | Fixes bug #27602. | |
1145 | ||
d244281c | 1146 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
1147 | ||
1148 | * util/i386/pc/grub-install.in: Source | |
1149 | ${libdir}/grub/grub-mkconfig_lib before option processing, in order | |
1150 | that the --grub-probe option will work. | |
1151 | * util/sparc64/ieee1275/grub-install.in: Likewise. | |
1152 | ||
da25306d | 1153 | 2009-10-05 Robert Millan <rmh.grub@aybabtu.com> |
1154 | ||
1155 | * configure.ac: Bump version to 1.97~beta4. | |
1156 | ||
e8ee83c0 | 1157 | 2009-10-03 Robert Millan <rmh.grub@aybabtu.com> |
1158 | ||
1159 | Resync grub-mkdevicemap in x86_64-efi. | |
1160 | ||
1161 | * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'. | |
1162 | (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and | |
1163 | `util/devicemap.c'. | |
1164 | ||
50dcabcf | 1165 | 2009-10-01 Colin Watson <cjwatson@ubuntu.com> |
1166 | ||
1167 | * util/grub-editenv.c (create_envblk_file): Write new block with a | |
1168 | .new suffix and then rename it into place, to ensure atomic | |
1169 | creation. | |
1170 | ||
0e51c3a7 | 1171 | 2009-09-28 Robert Millan <rmh.grub@aybabtu.com> |
1172 | ||
1173 | Do not automatically install headers. | |
1174 | ||
1175 | * Makefile.in (include_DATA): Remove. Update all users. | |
1176 | ||
31299a95 | 1177 | 2009-09-26 Robert Millan <rmh.grub@aybabtu.com> |
1178 | ||
1179 | * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'. | |
1180 | (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove. | |
1181 | ||
1182 | * util/osdetect.lua: Remove. | |
1183 | * script/lua/lauxlib.c: Likewise. | |
1184 | * script/lua/ldebug.c: Likewise. | |
1185 | * script/lua/grub_main.c: Likewise. | |
1186 | * script/lua/lauxlib.h: Likewise. | |
1187 | * script/lua/ldebug.h: Likewise. | |
1188 | * script/lua/ltablib.c: Likewise. | |
1189 | * script/lua/liolib.c: Likewise. | |
1190 | * script/lua/lstrlib.c: Likewise. | |
1191 | * script/lua/lualib.h: Likewise. | |
1192 | * script/lua/ldo.c: Likewise. | |
1193 | * script/lua/ldump.c: Likewise. | |
1194 | * script/lua/ldo.h: Likewise. | |
1195 | * script/lua/loslib.c: Likewise. | |
1196 | * script/lua/lundump.c: Likewise. | |
1197 | * script/lua/grub_lib.c: Likewise. | |
1198 | * script/lua/ldblib.c: Likewise. | |
1199 | * script/lua/lundump.h: Likewise. | |
1200 | * script/lua/lmem.c: Likewise. | |
1201 | * script/lua/grub_lib.h: Likewise. | |
1202 | * script/lua/lmathlib.c: Likewise. | |
1203 | * script/lua/lstate.c: Likewise. | |
1204 | * script/lua/ltm.c: Likewise. | |
1205 | * script/lua/lvm.c: Likewise. | |
1206 | * script/lua/lmem.h: Likewise. | |
1207 | * script/lua/lstate.h: Likewise. | |
1208 | * script/lua/ltm.h: Likewise. | |
1209 | * script/lua/ltable.c: Likewise. | |
1210 | * script/lua/lvm.h: Likewise. | |
1211 | * script/lua/llex.c: Likewise. | |
1212 | * script/lua/lgc.c: Likewise. | |
1213 | * script/lua/grub_lua.h: Likewise. | |
1214 | * script/lua/loadlib.c: Likewise. | |
1215 | * script/lua/lfunc.c: Likewise. | |
1216 | * script/lua/lopcodes.c: Likewise. | |
1217 | * script/lua/lparser.c: Likewise. | |
1218 | * script/lua/ltable.h: Likewise. | |
1219 | * script/lua/llex.h: Likewise. | |
1220 | * script/lua/lgc.h: Likewise. | |
1221 | * script/lua/lfunc.h: Likewise. | |
1222 | * script/lua/lbaselib.c: Likewise. | |
1223 | * script/lua/lopcodes.h: Likewise. | |
1224 | * script/lua/lparser.h: Likewise. | |
1225 | * script/lua/lzio.c: Likewise. | |
1226 | * script/lua/linit.c: Likewise. | |
1227 | * script/lua/lobject.c: Likewise. | |
1228 | * script/lua/llimits.h: Likewise. | |
1229 | * script/lua/lstring.c: Likewise. | |
1230 | * script/lua/lzio.h: Likewise. | |
1231 | * script/lua/lapi.c: Likewise. | |
1232 | * script/lua/lcode.c: Likewise. | |
1233 | * script/lua/lua.h: Likewise. | |
1234 | * script/lua/lobject.h: Likewise. | |
1235 | * script/lua/lstring.h: Likewise. | |
1236 | * script/lua/lapi.h: Likewise. | |
1237 | * script/lua/lcode.h: Likewise. | |
1238 | * script/lua/luaconf.h: Likewise. | |
1239 | ||
cb8a2c38 | 1240 | 2009-09-26 Colin Watson <cjwatson@ubuntu.com> |
1241 | ||
1242 | * docs/grub.texi (Command-line and menu entry commands): Document | |
1243 | date and echo commands. | |
1244 | ||
6b9b6276 | 1245 | 2009-09-24 Pavel Roskin <proski@gnu.org> |
1246 | ||
1247 | * include/grub/kernel.h (struct grub_module_header): Remove | |
1248 | `grub_module_header_types'. Make `type' unsigned. Make `size' | |
1249 | 32-bit on all platforms. | |
1250 | * util/elf/grub-mkimage.c (load_modules): Treat `type' as an | |
1251 | 8-bit field. Use grub_host_to_target32() for `size'. | |
1252 | * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise. | |
1253 | * util/i386/pc/grub-mkimage.c (generate_image): Likewise. | |
1254 | * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise. | |
1255 | ||
4e5a02a7 | 1256 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
1257 | ||
1258 | Fix "lost keypress" bug in at_keyboard. | |
1259 | ||
1260 | * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function. | |
1261 | Checks for readyness of input buffer (without flushing it). | |
1262 | (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather | |
1263 | than grub_at_keyboard_getkey_noblock() for `checkkey' struct member. | |
1264 | ||
c6dcedf6 | 1265 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
1266 | ||
1267 | * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific | |
1268 | size check within GRUB_MACHINE_PCBIOS section. | |
1269 | ||
74c958b1 | 1270 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
1271 | ||
1272 | * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate | |
1273 | return value. | |
1274 | * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate | |
1275 | KEYBOARD_ISREADY check. | |
1276 | (grub_at_keyboard_checkkey): Rename to ... | |
1277 | (grub_at_keyboard_getkey_noblock): ... this. Update all users. | |
1278 | Remove gratuitous cast. | |
1279 | ||
ff420223 | 1280 | 2009-09-23 Colin Watson <cjwatson@ubuntu.com> |
1281 | ||
1282 | * configure.ac: Call AC_PROG_MKDIR_P. | |
1283 | * Makefile.in (docs/stamp-vti): Create docs directory. Create | |
1284 | version.texi in $(builddir) rather than $(srcdir). | |
1285 | (docs/grub.info): Create docs directory. Prepend $(builddir)/docs | |
1286 | to makeinfo's @include search path. | |
1287 | ||
d96875df | 1288 | 2009-09-23 Felix Zielcke <fzielcke@z-51.de> |
1289 | ||
1290 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*' | |
1291 | ||
9b3f8365 | 1292 | 2009-09-23 Felix Zielcke <fzielcke@z-51.de> |
1293 | ||
1294 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support | |
1295 | for `*.dpkg-new'. | |
1296 | ||
c44c90db | 1297 | 2009-09-21 Colin Watson <cjwatson@ubuntu.com> |
1298 | ||
1299 | Build info documentation. Some code borrowed from Automake. | |
1300 | ||
1301 | * configure.ac: Check for makeinfo. | |
1302 | * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables. | |
1303 | (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and | |
1304 | docs/version.texi. | |
1305 | (MOSTLYCLEANFILES): Add vti.tmp. | |
1306 | (docs/version.texi, docs/stamp-vti): Update automatically. | |
1307 | (docs/grub.info): Build info documentation. Use --force and ignore | |
1308 | errors for now. | |
1309 | (all-local): Add $(INFOS). | |
1310 | (install-local): Install info files. | |
1311 | (uninstall): Uninstall info files. | |
1312 | * docs/version.texi: Remove from revision control. This file is | |
1313 | automatically generated on build now. | |
1314 | * gendistlist.sh: Add `*.info'. | |
1315 | ||
e0b37bb5 | 1316 | 2009-09-21 Felix Zielcke <fzielcke@z-51.de> |
1317 | ||
1318 | * kern/term.c: Fix indentation. | |
1319 | ||
5a78865b | 1320 | 2009-09-21 Felix Zielcke <fzielcke@z-51.de> |
1321 | ||
1322 | * util/hostdisk.c: Fix a comment. | |
1323 | ||
dace7e8a | 1324 | 2009-09-20 Robert Millan <rmh.grub@aybabtu.com> |
1325 | ||
1326 | Fix regression introduced in r2539. | |
1327 | ||
1328 | * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61 | |
1329 | to 0xA1. | |
1330 | ||
a83d079b | 1331 | 2009-09-19 Colin Watson <cjwatson@ubuntu.com> |
1332 | ||
1333 | * util/grub.d/30_os-prober.in: Don't throw away stderr from | |
4cbbccec | 1334 | os-prober. Under normal operation, it does not print anything to |
1335 | stderr; if it does, we need to debug it, and throwing away stderr | |
1336 | makes that excessively difficult. | |
a83d079b | 1337 | |
be94a509 | 1338 | 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com> |
1339 | ||
1340 | * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error. | |
1341 | ||
63f745e8 | 1342 | 2009-09-16 Robert Millan <rmh.grub@aybabtu.com> |
1343 | ||
1344 | * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock | |
1345 | AC_LANG_PROGRAM from autoconf. | |
1346 | (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing | |
1347 | prototypes (fixes warning). | |
1348 | ||
1349 | * configure.ac: Add `-Werror' to TARGET_CFLAGS unless | |
1350 | `--disable-werror' was used. | |
1351 | ||
bbb2a70f | 1352 | 2009-09-16 Robert Millan <rmh.grub@aybabtu.com> |
1353 | ||
1354 | * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of | |
1355 | uninitialized `lastaddr'. | |
1356 | ||
77c24f1d | 1357 | 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
1358 | ||
0f0b8c87 | 1359 | * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops. |
77c24f1d | 1360 | |
07197f23 | 1361 | 2009-09-14 Colin Watson <cjwatson@ubuntu.com> |
1362 | ||
1363 | * commands/test.c (get_fileinfo): Return immediately if | |
1364 | grub_fs_probe fails. | |
1365 | ||
dabf1798 | 1366 | 2009-09-14 José Martínez <xosemp@gmail.com> |
1367 | ||
1368 | * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file. | |
1369 | ||
d52109a7 | 1370 | 2009-09-14 Colin Watson <cjwatson@ubuntu.com> |
1371 | ||
1372 | * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober | |
1373 | output. | |
1374 | ||
56532179 | 1375 | 2009-09-13 Robert Millan <rmh.grub@aybabtu.com> |
1376 | ||
1377 | * configure.ac: Remove --enable-grub-pe2elf. Only build | |
1378 | grub-pe2elf when needed by the build system itself. | |
1379 | * conf/common.rmk: Remove $(enable_grub_pe2elf) check. | |
1380 | ||
8ef070f5 | 1381 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
1382 | ||
1383 | * configure.ac: Bump version to 1.97~beta3. | |
1384 | * docs/version.texi: Likewise. | |
1385 | ||
61229557 | 1386 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
1387 | ||
1388 | * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed | |
1389 | mode special handling (grub_vbe_bios_set_dac_palette_width() call) | |
1390 | from here ... | |
1391 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] | |
1392 | (grub_linux_setup_video): ... to here (with some adjustments). | |
1393 | ||
5c9f8d84 | 1394 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
1395 | ||
1396 | Fix memory corruption issue (spotted by Colin Watson). | |
1397 | ||
1398 | * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug | |
1399 | causing returned size to be stored in an incorrect memory location. | |
1400 | Fix use of uninitialized value when storing the returned size. | |
1401 | ||
e8f5d6e9 | 1402 | 2009-09-12 Yves Blusseau <blusseau@zetam.org> |
1403 | ||
1404 | Change clean rules to properly remove files | |
1405 | ||
1406 | * genmk.rb: add new clean rules | |
1407 | * Makefile.in (clean): add the new targets | |
1408 | (mostlyclean): likewise | |
1409 | ||
cda2a409 | 1410 | 2009-09-11 Colin Watson <cjwatson@ubuntu.com> |
1411 | ||
1412 | * include/grub/ntfs.h (struct grub_fshelp_node): Change `size' | |
1413 | to grub_uint64_t. | |
1414 | * fs/ntfs.c (init_file): Understand 64-bit sizes for | |
1415 | non-resident files. | |
1416 | ||
86695375 | 1417 | 2009-09-11 Colin Watson <cjwatson@ubuntu.com> |
1418 | ||
1419 | * configure.ac: Don't look for help2man when cross-compiling. Fixes | |
1420 | part of bug #27349. | |
1421 | ||
8aa1541a | 1422 | 2009-09-10 Felix Zielcke <fzielcke@z-51.de> |
1423 | ||
1424 | * util/grub-mkconfig.in: Make the created config mode 400 and | |
1425 | print a warning if it fails. | |
1426 | ||
48d9bb0a | 1427 | 2009-09-10 Robert Millan <rmh.grub@aybabtu.com> |
1428 | ||
1429 | * util/grub.d/40_custom.in: Ask user to type custom entries below | |
1430 | comment, rather than below 'exec tail' line. | |
1431 | ||
3b0521be | 1432 | 2009-09-10 Colin Watson <cjwatson@ubuntu.com> |
1433 | ||
1434 | * util/grub.d/40_custom.in: Make sure that the explanatory text is | |
1435 | visible in grub.cfg. | |
1436 | ||
50051d55 | 1437 | 2009-09-10 Colin Watson <cjwatson@ubuntu.com> |
1438 | ||
1439 | * util/grub.d/40_custom.in: Make it a little clearer how to use this | |
1440 | file. | |
1441 | ||
c0d34387 | 1442 | 2009-09-10 Felix Zielcke <fzielcke@z-51.de> |
1443 | ||
1444 | * docs/grub.cfg: Add an example menu entry for memtest86+. | |
1445 | ||
80a608f3 | 1446 | 2009-09-09 Felix Zielcke <fzielcke@z-51.de> |
1447 | ||
a2094832 | 1448 | * config.guess: Update to latest version from config git. |
80a608f3 | 1449 | * config.sub: Likewise. |
1450 | ||
99423078 | 1451 | 2009-09-08 Colin Watson <cjwatson@ubuntu.com> |
1452 | ||
1453 | * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in | |
1454 | unknown-command case. Fixes bug #27320. | |
1455 | ||
44454e4c | 1456 | 2009-09-08 Felix Zielcke <fzielcke@z-51.de> |
1457 | ||
1458 | * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try | |
1459 | `help' if the command exists. | |
1460 | ||
e30d87ad | 1461 | 2009-09-06 Robert Millan <rmh.grub@aybabtu.com> |
1462 | ||
1463 | * INSTALL: Require GCC 4.1.3 or later. | |
1464 | ||
9a86f1ec | 1465 | 2009-09-06 Yves Blusseau <blusseau@zetam.org> |
1466 | ||
1467 | * Makefile.in (RMKFILES): add i386-qemu.rmk | |
1468 | (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in | |
1469 | $(srcdir)/stamp-h.in | |
1470 | ||
7f26d466 | 1471 | 2009-09-05 Robert Millan <rmh.grub@aybabtu.com> |
1472 | ||
1473 | * util/grub-probe.c (probe): Comment out buggy codepath, which | |
1474 | was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This | |
1475 | should be re-enabled after 1.97. | |
1476 | ||
3a613259 | 1477 | 2009-09-05 Felix Zielcke <fzielcke@z-51.de> |
1478 | ||
1479 | * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list | |
1480 | find searches for. | |
1481 | ||
197f76c7 | 1482 | 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com> |
1483 | ||
1484 | * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove | |
1485 | unnecessary calls to grub_error. | |
1486 | ||
70ba68ce | 1487 | 2009-09-04 Colin Watson <cjwatson@ubuntu.com> |
1488 | ||
1489 | * NEWS: Mention `keystatus' and Unicode fonts. | |
1490 | ||
4ff0d7a4 | 1491 | 2009-09-04 Robert Millan <rmh.grub@aybabtu.com> |
1492 | ||
1493 | * configure.ac: Bump version to 1.97~beta2. | |
1494 | * docs/version.texi: Likewise. | |
1495 | ||
77c55a87 | 1496 | 2009-09-03 Colin Watson <cjwatson@ubuntu.com> |
1497 | ||
1498 | * configure.ac: By default, GCC 4.4 generates .eh_frame sections | |
1499 | containing unwind information in some cases where it previously did | |
1500 | not. Use -fno-dwarf2-cfi-asm if available to restore the old | |
1501 | behaviour. See http://patchwork.kernel.org/patch/8555/ for related | |
1502 | discussion. | |
1503 | ||
f79572cd | 1504 | 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org> |
1505 | ||
1506 | Embedding loadenv module into grub-emu | |
1507 | ||
1508 | * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and | |
1509 | commands/loadenv.c | |
1510 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise | |
1511 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise | |
1512 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
1513 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
1514 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
1515 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise | |
1516 | ||
93a81088 | 1517 | 2009-09-03 Magnus Granberg <zorry@ume.nu> |
1518 | ||
1519 | * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler | |
1520 | include -fPIE in the default specs. | |
1521 | * configure.ac: Check if pie_possible is yes and add -fno-PIE | |
1522 | to TARGET_CFLAGS. | |
1523 | ||
160034b2 | 1524 | 2009-09-03 Felix Zielcke <fzielcke@z-51.de> |
1525 | ||
1526 | * INSTALL: Note that GNU Bison 2.3 or later is required. | |
1527 | ||
087c07c4 | 1528 | 2009-09-03 Colin Watson <cjwatson@ubuntu.com> |
1529 | ||
1530 | * kern/i386/pc/startup.S: Fix typo. | |
1531 | ||
cbf978c0 | 1532 | 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
1533 | ||
1534 | * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style | |
1535 | according to GCS. | |
1536 | ||
1537 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> | |
f0910644 | 1538 | |
1539 | * docs/grub.texi (Naming convention): Describe one-based partition | |
1540 | numbering. | |
1541 | (Device syntax): Likewise. | |
1542 | (File name syntax): Likewise. | |
1543 | (Block list syntax): Likewise. | |
1544 | (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than | |
1545 | menu.lst. | |
1546 | (File name syntax): Likewise. | |
1547 | (Command-line and menu entry commands): Document acpi, blocklist, | |
1548 | crc, export, insmod, keystatus, ls, set, and unset commands. | |
1549 | ||
f3e8cdfd | 1550 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> |
1551 | ||
1552 | * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary | |
1553 | to avoid implying that only one of --shift, --ctrl, or --alt may be | |
1554 | used. | |
1555 | ||
c0bc232b | 1556 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> |
1557 | ||
1558 | * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro | |
1559 | rather than comparing against S_IFREG, which will almost never work. | |
1560 | ||
aa0f752d | 1561 | 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com> |
1562 | ||
1563 | * commands/loadenv.c (check_blocklists): Fix off-by-one error. | |
1564 | (write_blocklists): Likewise. | |
1565 | ||
ecb3166a | 1566 | 2009-09-01 Colin Watson <cjwatson@ubuntu.com> |
1567 | ||
1568 | * script/lua/grub_lua.h (fputs): Supply a format string as the first | |
1569 | argument to grub_printf. | |
1570 | ||
c403a125 | 1571 | 2009-09-01 Felix Zielcke <fzielcke@z-51.de> |
31aba781 | 1572 | |
1573 | * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with | |
c403a125 | 1574 | non GNU test. |
31aba781 | 1575 | |
b5e7312c | 1576 | 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
1577 | ||
1578 | * kern/file.c (grub_file_read): Spelling fix | |
1579 | ||
fe00f472 | 1580 | 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
1581 | ||
1582 | * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix | |
1583 | loading of headers in some cases. | |
1584 | ||
cc55302e | 1585 | 2009-08-30 Robert Millan <rmh.grub@aybabtu.com> |
1586 | ||
1587 | * configure.ac: Bump version to 1.97~beta1. | |
1588 | * docs/version.texi: Likewise. | |
1589 | ||
5c90cdd2 | 1590 | 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
64bf71d0 | 1591 | |
1592 | * include/grub/i386/xnu.h: Add license header. | |
1593 | include grub/err.h explicitly. | |
1594 | ||
c90edae4 | 1595 | 2009-08-29 Robert Millan <rmh.grub@aybabtu.com> |
1596 | ||
1597 | * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them | |
1598 | to `ufs' in the vfs.root.mountfrom kernel parameter. | |
1599 | ||
d8888b5c | 1600 | 2009-08-29 Robert Millan <rmh.grub@aybabtu.com> |
1601 | ||
1602 | * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'. | |
1603 | ||
1604 | [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization | |
1605 | value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR). | |
1606 | ||
1607 | [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using | |
1608 | `ARRAY_SIZE' macro. | |
1609 | ||
6f07b921 | 1610 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
1611 | ||
1612 | * kern/file.c (grub_file_read): Check offset. | |
1613 | * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check. | |
1614 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
1615 | * fs/ntfs.c (grub_ntfs_read): Likewise. | |
1616 | * fs/reiserfs.c (grub_reiserfs_read): Likewise. | |
1617 | * fs/minix.c (grub_minix_read_file): Correct offset check. | |
1618 | * fs/ufs.c (grub_ufs_read_file): Likewise. | |
1619 | ||
b4f34077 | 1620 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
1621 | ||
1622 | * term/i386/pc/console.c (bios_data_area): Cast | |
1623 | GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly. | |
1624 | ||
e7c69859 | 1625 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
1626 | ||
1627 | 1-bit optimised blitters. | |
1628 | ||
1629 | * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New | |
1630 | prototype. | |
1631 | (grub_video_fbblit_replace_24bit_1bit): Likewise. | |
1632 | (grub_video_fbblit_replace_16bit_1bit): Likewise. | |
1633 | (grub_video_fbblit_replace_8bit_1bit): Likewise. | |
1634 | (grub_video_fbblit_blend_XXXA8888_1bit): Likewise. | |
1635 | (grub_video_fbblit_blend_XXX888_1bit): Likewise. | |
1636 | (grub_video_fbblit_blend_XXX565_1bit): Likewise. | |
1637 | * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New | |
1638 | function. | |
1639 | (grub_video_fbblit_replace_24bit_1bit): Likewise. | |
1640 | (grub_video_fbblit_replace_16bit_1bit): Likewise. | |
1641 | (grub_video_fbblit_replace_8bit_1bit): Likewise. | |
1642 | (grub_video_fbblit_blend_XXXA8888_1bit): Likewise. | |
1643 | (grub_video_fbblit_blend_XXX888_1bit): Likewise. | |
1644 | (grub_video_fbblit_blend_XXX565_1bit): Likewise. | |
1645 | * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters | |
1646 | when possible. | |
1647 | * video/video.c (grub_video_get_blit_format): Return | |
1648 | GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1. | |
1649 | ||
a57da43f | 1650 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
1651 | ||
1652 | * normal/cmdline.c (grub_cmdline_get): Supply a format string as | |
1653 | the first argument to grub_printf. | |
1654 | ||
4cbe67e5 | 1655 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
1656 | 2009-08-28 Robert Millan <rmh.grub@aybabtu.com> | |
1657 | ||
1658 | Add `getkeystatus' terminal method. Add a new `keystatus' command | |
1659 | to query it. | |
1660 | ||
1661 | * include/grub/term.h (GRUB_TERM_STATUS_SHIFT, | |
1662 | GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for | |
1663 | modifier key bitmasks. | |
1664 | (struct grub_term_input): Add `getkeystatus' member. | |
1665 | (grub_getkeystatus): Add prototype. | |
1666 | * kern/term.c (grub_getkeystatus): New function. | |
1667 | ||
1668 | * include/grub/i386/pc/memory.h | |
1669 | (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro. | |
1670 | (struct grub_machine_bios_data_area): Define necessary parts of BIOS | |
1671 | Data Area layout. | |
1672 | * term/i386/pc/console.c (grub_console_getkeystatus): New function. | |
1673 | (grub_console_term_input): Set `getkeystatus' member. | |
1674 | * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol | |
1675 | constants. | |
1676 | (grub_usb_keyboard_getreport): Likewise. | |
1677 | (grub_usb_keyboard_checkkey): Likewise. | |
1678 | (grub_usb_keyboard_getkeystatus): New function. | |
1679 | (grub_usb_keyboard_term): Set `getkeystatus' member. | |
1680 | ||
1681 | * commands/keystatus.c: New file. | |
1682 | * conf/common.rmk (pkglib_MODULES): Add keystatus.mod. | |
1683 | (keystatus_mod_SOURCES): New variable. | |
1684 | (keystatus_mod_CFLAGS): Likewise. | |
1685 | (keystatus_mod_LDFLAGS): Likewise. | |
1686 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add | |
1687 | commands/keystatus.c. | |
1688 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
1689 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1690 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
1691 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1692 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1693 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
4cbe67e5 | 1694 | |
6e2a9085 | 1695 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
1696 | ||
1697 | Split befs.mod and afs.mod into *_be.mod and *.mod | |
1698 | ||
1699 | * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c. | |
1700 | (grub_fstest_SOURCES): Likewise. | |
1701 | (pkglib_MODULES): Add afs_be.mod and befs_be.mod. | |
1702 | (afs_be_mod_SOURCES): New variable. | |
1703 | (afs_be_mod_CFLAGS): Likewise. | |
1704 | (afs_be_mod_LDFLAGS): Likewise. | |
1705 | (befs_be_mod_SOURCES): Likewise. | |
1706 | (befs_be_mod_CFLAGS): Likewise. | |
1707 | (befs_be_mod_LDFLAGS): Likewise. | |
1708 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c. | |
1709 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
1710 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1711 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
1712 | (grub_emu_SOURCES): Likewise. | |
1713 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1714 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1715 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
1716 | * fs/afs_be.c: New file. | |
1717 | * fs/befs_be.c: New file. | |
1718 | * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition. | |
1719 | (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX. | |
1720 | (U16): Replaced with ... | |
1721 | (grub_afs_to_cpu16): ...this. All users updated. | |
1722 | (U32): Replaced with ... | |
1723 | (grub_afs_to_cpu32): ...this. All users updated. | |
1724 | (U64): Replaced with ... | |
1725 | (grub_afs_to_cpu64): ...this. All users updated. | |
1726 | (GRUB_AFS_BO_LITTLE_ENDIAN): Remove. | |
1727 | (GRUB_AFS_BO_BIG_ENDIAN): Likewise. | |
ad8ea1f4 | 1728 | (grub_afs_validate_sblock): Check only one endianness. |
6e2a9085 | 1729 | (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to .. |
1730 | (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this. | |
1731 | (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to .. | |
1732 | (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this. | |
1733 | (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to .. | |
1734 | (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this. | |
1735 | (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to .. | |
1736 | (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this. | |
1737 | ||
32a71655 | 1738 | 2009-08-26 Bean <bean123ch@gmail.com> |
1739 | ||
1740 | * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support | |
1741 | 64-bit number. | |
1742 | (GRUB_XFS_FSB_TO_BLOCK): Likewise. | |
1743 | (grub_xfs_inode_block): Change return type to grub_uint64_t. | |
1744 | (grub_xfs_read_inode): Change type of block to grub_uint64_t. | |
1745 | ||
552bf6c5 | 1746 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1747 | ||
1748 | NetBSD memory map support. | |
1749 | ||
1750 | * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition. | |
1751 | (grub_netbsd_btinfo_mmap_header): New structure. | |
1752 | (grub_netbsd_btinfo_mmap_entry): Likewise. | |
1753 | * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map. | |
1754 | ||
1ae2078c | 1755 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1756 | ||
1757 | Enable bsd.mod on coreboot. | |
1758 | ||
1759 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod. | |
1760 | (bsd_mod_SOURCES): New variable. | |
1761 | (bsd_mod_CFLAGS): Likewise. | |
1762 | (bsd_mod_LDFLAGS): Likewise. | |
1763 | (bsd_mod_ASFLAGS): Likewise. | |
1764 | * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes. | |
1765 | (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff. | |
1766 | ||
beefc598 | 1767 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1768 | ||
1769 | Cleanup NetBSD root support. | |
1770 | ||
1771 | * loader/i386/bsd.c (grub_netbsd_boot): Remove call to | |
1772 | grub_bsd_get_device. | |
1773 | Fix typo. | |
1774 | ||
3b76e68b | 1775 | 2009-08-25 Felix Zielcke <fzielcke@z-51.de> |
1776 | ||
1777 | * util/grub.d/00_header.in: Move check for the video backend of | |
1778 | gfxterm from here ... | |
1779 | * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's | |
1780 | a suitable video backend. | |
1781 | ||
aea664ea | 1782 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1783 | ||
1784 | Fix breakage in grub-setup. | |
1785 | ||
1786 | * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of | |
1787 | "msdos_partition_map". | |
1788 | ||
ff747d50 | 1789 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1790 | ||
1791 | Fix breakage in normal/auth.c. | |
1792 | ||
1793 | * normal/auth.c (grub_iswordseparator): New function. | |
1794 | ||
e7e1f93f | 1795 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
1796 | ||
1797 | Authentication support. | |
1798 | ||
1799 | * commands/password.c: New file. | |
1800 | * conf/common.rmk (pkglib_MODULES): Add password.mod. | |
1801 | (password_mod_SOURCES): New variable. | |
1802 | (password_mod_CFLAGS): Likewise. | |
1803 | (password_mod_LDFLAGS): Likewise. | |
1804 | (normal_mod_SOURCES): Add normal/auth.c. | |
1805 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and | |
1806 | normal/auth.c. | |
1807 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
1808 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1809 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
1810 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1811 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1812 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
1813 | * include/grub/auth.h: New file. | |
1814 | * include/grub/err.h (grub_err_t): New enum value | |
1815 | GRUB_ERR_ACCESS_DENIED. | |
1816 | * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and | |
1817 | 'users'. | |
1818 | * include/grub/normal.h (grub_cmdline_get): New argument 'history'. | |
1819 | * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All | |
1820 | users updated. | |
1821 | * normal/auth.c: New file. | |
1822 | * normal/main.c (grub_normal_add_menu_entry): Handle --users option. | |
1823 | (grub_cmdline_run): Don't allow to go to command line without | |
1824 | authentication. | |
1825 | * normal/menu.c (grub_menu_execute_entry): Handle restricted entries. | |
1826 | * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing | |
1827 | menuentry without superuser rights. | |
1828 | * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if | |
1829 | user isn't a superuser. | |
1830 | ||
70f1161d | 1831 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1832 | ||
1833 | Save space by inlining misc.c functions. | |
1834 | ||
1835 | * kern/misc.c (grub_iswordseparator): Made static. | |
1836 | * kern/misc.c (grub_strcat): Moved from here ... | |
1837 | * include/grub/misc.h (grub_strcat): ... here. Inlined. | |
1838 | * kern/misc.c (grub_strncat): Moved from here ... | |
1839 | * include/grub/misc.h (grub_strncat): ... here. Inlined. | |
1840 | * kern/misc.c (grub_strcasecmp): Moved from here ... | |
1841 | * include/grub/misc.h (grub_strcasecmp): ... here. Inlined. | |
1842 | * kern/misc.c (grub_strncasecmp): Moved from here ... | |
1843 | * include/grub/misc.h (grub_strncasecmp): ... here. Inlined. | |
1844 | * kern/misc.c (grub_isalpha): Moved from here ... | |
1845 | * include/grub/misc.h (grub_isalpha): ... here. Inlined. | |
1846 | * kern/misc.c (grub_isdigit): Moved from here ... | |
1847 | * include/grub/misc.h (grub_isdigit): ... here. Inlined. | |
1848 | * kern/misc.c (grub_isgraph): Moved from here ... | |
1849 | * include/grub/misc.h (grub_isgraph): ... here. Inlined. | |
1850 | * kern/misc.c (grub_tolower): Moved from here ... | |
1851 | * include/grub/misc.h (grub_tolower): ... here. Inlined. | |
1852 | ||
48e40bff | 1853 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1854 | ||
1855 | * script/sh/function.c (grub_script_function_find): Cut error message | |
1856 | not to flood terminal. | |
1857 | * script/sh/lexer.c (grub_script_yylex): Remove command line length | |
1858 | limit. | |
1859 | * script/sh/script.c (grub_script_arg_add): Duplicate string. | |
1860 | ||
c385bfc3 | 1861 | 2009-08-24 Colin Watson <cjwatson@ubuntu.com> |
1862 | ||
1863 | * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make | |
1864 | `report' grub_uint8_t *. | |
1865 | (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t. | |
1866 | Use a 50-millisecond timeout rather than just repeating | |
1867 | grub_usb_keyboard_getreport 50 times. | |
1868 | (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t. | |
1869 | ||
2d21e3e8 | 1870 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1871 | ||
1872 | Rename *_partition_map to part_* | |
1873 | ||
1874 | * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'. | |
1875 | * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'. | |
1876 | * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'. | |
1877 | * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'. | |
1878 | All users updated. | |
1879 | * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'. | |
1880 | All users updated. | |
1881 | * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'. | |
1882 | * util/grub-probe.c (probe_partmap): Don't transform partition name | |
1883 | to get module name. | |
1884 | ||
dd103c4e | 1885 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1886 | ||
1887 | Fix OpenBSD and NetBSD support. | |
1888 | ||
1889 | * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve | |
1890 | memory address conflict. | |
1891 | (OPENBSD_MMAP_ACPI): New definition. | |
1892 | (OPENBSD_MMAP_NVS): Likewise. | |
1893 | * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI | |
1894 | and OPENBSD_MMAP_NVS. | |
1895 | Add memory map terminator | |
1896 | Explicit cast when calling grub_unix_real_boot. | |
ad8ea1f4 | 1897 | (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot. |
dd103c4e | 1898 | |
16c84d74 | 1899 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1900 | ||
1901 | Let user specify NetBSD root device. | |
1902 | ||
1903 | * loader/i386/bsd.c (netbsd_root): New variable. | |
1904 | (netbsd_opts): New option 'root'. | |
1905 | (NETBSD_ROOT_ARG): New macro. | |
1906 | (grub_netbsd_boot): Use 'netbsd_root'. | |
1907 | (grub_bsd_unload): Free 'netbsd_root'. | |
1908 | (grub_cmd_netbsd): Fill 'netbsd_root'. | |
1909 | ||
adb29902 | 1910 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1911 | ||
1912 | Support for 64-bit NetBSD. | |
1913 | ||
1914 | * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry | |
1915 | point when booting non-FreeBSD. | |
1916 | ||
f5ae9f74 | 1917 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
1918 | ||
1919 | Support --no-smp and --no-acpi for NetBSD. | |
1920 | ||
1921 | * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition. | |
1922 | (NETBSD_AB_NOACPI): Likewise. | |
1923 | * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi. | |
1924 | (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI. | |
1925 | ||
de74f136 | 1926 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
1927 | ||
1928 | * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file | |
1929 | errors. | |
1930 | (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file | |
1931 | errors. Call grub_error when needed. | |
1932 | ||
e9a925da | 1933 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
1934 | ||
1935 | * commands/search.c (search_fs): Try searching without autoload first. | |
1936 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load | |
1937 | filesystem module explicitly for faster booting. | |
1938 | ||
5174302b | 1939 | 2009-08-23 Colin Watson <cjwatson@ubuntu.com> |
1940 | ||
1941 | * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER. | |
1942 | ||
c8c80635 | 1943 | 2009-08-23 Colin Watson <cjwatson@ubuntu.com> |
1944 | ||
1945 | * util/grub.d/30_os-prober.in: Disable os-prober if | |
1946 | `GRUB_DISABLE_OS_PROBER' was set to true. | |
1947 | ||
71acf5e5 | 1948 | 2009-08-23 Robert Millan <rmh.grub@aybabtu.com> |
1949 | ||
1950 | * partmap/pc.c: Rename to ... | |
1951 | * partmap/msdos.c: ... this. Update all users. | |
1952 | (grub_pc_partition_map): Rename to ... | |
1953 | (grub_msdos_partition_map): ... this. Update all users. | |
1954 | ||
1955 | * parttool/pcpart.c: Rename to ... | |
1956 | * parttool/msdospart.c: ... this. Update all users. | |
1957 | ||
1958 | * include/grub/pc_partition.h: Rename to ... | |
1959 | * include/grub/msdos_partition.h: ... this. Update all users. | |
1960 | (grub_pc_partition_bsd_entry): Rename to ... | |
1961 | (grub_msdos_partition_bsd_entry): ... this. Update all users. | |
1962 | (grub_pc_partition_disk_label): Rename to ... | |
1963 | (grub_msdos_partition_disk_label): ... this. Update all users. | |
1964 | (grub_pc_partition_entry): Rename to ... | |
1965 | (grub_msdos_partition_entry): ... this. Update all users. | |
1966 | (grub_pc_partition_mbr): Rename to ... | |
1967 | (grub_msdos_partition_mbr): ... this. Update all users. | |
1968 | (grub_pc_partition): Rename to ... | |
1969 | (grub_msdos_partition): ... this. Update all users. | |
1970 | (grub_pc_partition_is_empty): Rename to ... | |
1971 | (grub_msdos_partition_is_empty): ... this. Update all users. | |
1972 | (grub_pc_partition_is_extended): Rename to ... | |
1973 | (grub_msdos_partition_is_extended): ... this. Update all users. | |
1974 | (grub_pc_partition_is_bsd): Rename to ... | |
1975 | (grub_msdos_partition_is_bsd): ... this. Update all users. | |
1976 | ||
1977 | * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS) | |
1978 | (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS) | |
1979 | (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS) | |
1980 | (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS) | |
1981 | (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS) | |
1982 | (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS) | |
1983 | (gpt_mod_LDFLAGS): Rename to ... | |
1984 | (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS) | |
1985 | (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS) | |
1986 | (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS) | |
1987 | (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS) | |
1988 | (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS) | |
1989 | (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS) | |
1990 | (part_gpt_mod_LDFLAGS): ... this. | |
1991 | (pkglib_MODULES): Prefix partition modules with `part_'. Rename | |
1992 | `pcpart.mod' to `msdospart.mod'. | |
1993 | (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename | |
1994 | to ... | |
1995 | (msdospart_mod_SOURCES, msdospart_mod_CFLAGS) | |
1996 | (msdospart_mod_LDFLAGS): ... this. | |
1997 | ||
c11fded5 | 1998 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
1999 | ||
2000 | * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd. | |
2001 | (openbsd_opts): Likewise. | |
2002 | (netbsd_opts): Likewise. | |
2003 | (freebsd_flags): Added 0 terminator. | |
2004 | (openbsd_flags): Likewise. | |
2005 | (netbsd_flags): Likewise. | |
2006 | (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated. | |
2007 | (grub_cmd_freebsd): Transformed into extended command. | |
2008 | (grub_cmd_openbsd): Likewise. | |
2009 | (grub_cmd_netbsd): Likewise. | |
2010 | (cmd_freebsd): Changed type to grub_extcmd_t. | |
2011 | (cmd_openbsd): Likewise. | |
2012 | (cmd_netbsd): Likewise. | |
2013 | (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and | |
2014 | grub_cmd_openbsd as extended commands. | |
2015 | (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd, | |
2016 | cmd_netbsd and cmd_openbsd | |
2017 | ||
11d1c769 | 2018 | 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com> |
2019 | ||
2020 | * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy. | |
2021 | ||
7a9094e5 | 2022 | 2009-08-21 Pavel Roskin <proski@gnu.org> |
2023 | ||
5496c37e | 2024 | * Makefile.in (install-local): When checking if a file is in the |
2025 | build directory, use "test -e" to detect symlinks. | |
2026 | ||
7a9094e5 | 2027 | * Makefile.in (install-local): Remove all files in |
2028 | $(DESTDIR)$(pkglibdir) before installing new files there. | |
2029 | ||
e53cea11 | 2030 | 2009-08-18 Felix Zielcke <fzielcke@z-51.de> |
2031 | ||
2032 | * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use | |
2033 | grub-mkelfimage. | |
2034 | ||
9aced544 | 2035 | 2009-08-18 Felix Zielcke <fzielcke@z-51.de> |
2036 | ||
2037 | * util/grub-mkconfig.in: Don't use gfxterm by default if not | |
2038 | explicitly specified by the user. | |
2039 | ||
b7da6bab | 2040 | 2009-08-18 Pavel Roskin <proski@gnu.org> |
2041 | ||
2042 | * include/grub/fbfill.h (struct grub_video_fbrender_target): Use | |
2043 | grub_uint8_t pointer for data. | |
2044 | * include/grub/fbutil.h (struct grub_video_fbblit_info): | |
2045 | Likewise. | |
2046 | * video/fb/fbutil.c: Remove unnecessary casts. | |
2047 | ||
19f1b335 | 2048 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
2049 | ||
2050 | VBE cleanup. | |
2051 | ||
2052 | * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate). | |
2053 | (grub_vbe_set_video_mode): Save active mode info | |
2054 | only after setting the mode. | |
2055 | (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as | |
2056 | second argument. | |
2057 | ||
2f467aa9 | 2058 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
2059 | ||
2060 | Rename variables for clarity. | |
2061 | ||
2062 | * video/i386/pc/vbe.c (active_mode_info): Renamed to ... | |
2063 | (active_vbe_mode_info): ... this. All users updated. | |
2064 | (framebuffer): Rename 'active_mode' to 'active_vbe_mode'. | |
2065 | All users updated. | |
2066 | (initial_mode): Rename to ... | |
2067 | (initial_vbe_mode): ... this. All users updated. | |
2068 | (mode_in_use): Rename to .. | |
2069 | (vbe_mode_in_use): ... this. All users updated. | |
2070 | (mode_list): Rename to .. | |
2071 | (vbe_mode_list): ... this. All users updated. | |
2072 | (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to | |
2073 | 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'. | |
2074 | (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and | |
2075 | 'mode_list_size' to 'vbe_mode_list_size'. | |
2076 | (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info', | |
2077 | 'best_mode_info' to 'best_vbe_mode_info' and | |
2078 | 'best_mode' to 'best_vbe_mode' | |
2079 | ||
6025fcd7 | 2080 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
2081 | ||
2082 | Remove duplicate grub_video_fb_get_video_ptr. | |
2083 | ||
2084 | * include/grub/fbutil.h (get_data_ptr): Rename to ... | |
2085 | (grub_video_fb_get_video_ptr): ... this. | |
2086 | * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed. | |
2087 | * video/fb/fbutil.c: Add comment about addressing. | |
2088 | (get_data_ptr): Rename to ... | |
2089 | (grub_video_fb_get_video_ptr): ... this. All users updated. | |
2090 | * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove. | |
2091 | ||
cc8c6faf | 2092 | 2009-08-17 Robert Millan <rmh.grub@aybabtu.com> |
2093 | ||
2094 | * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the | |
2095 | grub_dprintf() that was just added. | |
2096 | ||
08aa61f0 | 2097 | 2009-08-17 Robert Millan <rmh.grub@aybabtu.com> |
2098 | ||
2099 | * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT) | |
2100 | (DEFAULT_VIDEO_MODE): Remove macros. | |
2101 | (grub_linux_boot): Remove assumption that Linux has FB support, | |
2102 | and use "text" as default video mode. | |
2103 | ||
7cef4f75 | 2104 | 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com> |
2105 | ||
2106 | * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into | |
2107 | grub_dprintf. | |
2108 | * fs/fat.c (grub_fat_read_data): Likewise. | |
2109 | ||
e1f39873 | 2110 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
2111 | ||
2112 | * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to | |
2113 | payload. | |
2114 | (grub_module): Likewise. | |
2115 | ||
c166d79e | 2116 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
2117 | ||
2118 | * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and | |
2119 | mbi->cmdline but free playground. | |
2120 | ||
c60cee8e | 2121 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
2122 | ||
2123 | Handle group offset on UFS1. | |
2124 | ||
2125 | * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'. | |
2126 | (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask. | |
2127 | ||
c0d8b5d4 | 2128 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
2129 | ||
2130 | Split ufs.mod into ufs1.mod and ufs2.mod. | |
2131 | ||
2132 | * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c. | |
2133 | (grub_fstest_SOURCES): Likewise. | |
2134 | (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod. | |
2135 | (ufs_mod_SOURCES): Remove. | |
2136 | (ufs_mod_CFLAGS): Likewise. | |
2137 | (ufs_mod_LDFLAGS): Likewise. | |
2138 | (ufs1_mod_SOURCES): New variable. | |
2139 | (ufs1_mod_CFLAGS): Likewise. | |
2140 | (ufs1_mod_LDFLAGS): Likewise. | |
25fbd77a | 2141 | (ufs2_mod_SOURCES): New variable. |
2142 | (ufs2_mod_CFLAGS): Likewise. | |
2143 | (ufs2_mod_LDFLAGS): Likewise. | |
c0d8b5d4 | 2144 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c. |
2145 | * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES): | |
2146 | Likewise. | |
2147 | (grub_emu_SOURCES): Likewise. | |
2148 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
2149 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
2150 | (grub_setup_SOURCES): Likewise. | |
2151 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
2152 | * conf/sparc64.rmk (grub_emu_SOURCES): Likewise. | |
2153 | (grub_setup_SOURCES): Likewise. | |
2154 | * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES): | |
2155 | Likewise. | |
2156 | * fs/ufs2.c: New file. | |
2157 | * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor. | |
2158 | ||
d3539132 | 2159 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
2160 | ||
2161 | Framebuffer split. | |
2162 | ||
2163 | * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video | |
2164 | subsystem at the end. | |
2165 | * conf/common.rmk (pkglib_MODULES): Add video_fb.mod. | |
2166 | (video_fb_mod_SOURCES): New variable. | |
2167 | (video_fb_mod_CFLAGS): Likewise. | |
2168 | (video_fb_mod_LDFLAGS): Likewise. | |
2169 | * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c, | |
2170 | video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c. | |
2171 | * video/i386/pc/vbeblit.c: Moved from here ... | |
2172 | * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'. | |
2173 | * video/i386/pc/vbefill.c: Moved from here ... | |
2174 | * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'. | |
2175 | * video/i386/pc/vbeutil.c: Moved from here ... | |
2176 | * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'. | |
2177 | * include/grub/i386/pc/vbeblit.h: Moved from here ... | |
2178 | * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'. | |
2179 | * include/grub/i386/pc/vbefill.h: Moved from here ... | |
2180 | * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'. | |
2181 | * include/grub/i386/pc/vbeutil.h: Moved from here ... | |
2182 | * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'. | |
2183 | * include/grub/i386/pc/vbe.h: Moved framebuffer part ... | |
2184 | * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'. | |
2185 | * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed. | |
2186 | (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise. | |
2187 | (grub_video_adapter): Added 'get_info_and_fini'. | |
2188 | (grub_video_get_info_and_fini): New prototype. | |
2189 | (grub_video_set_mode): make modestring const char *. | |
2190 | * loader/i386/linux.c (grub_linux_setup_video): Use | |
2191 | grub_video_get_info_and_fini. | |
2192 | (grub_linux_boot): Move modesetting just before booting. | |
2193 | * loader/i386/pc/xnu.c (grub_xnu_set_video): Use | |
2194 | grub_video_get_info_and_fini. | |
2195 | * video/i386/pc/vbe.c: Moved framebuffer part ... | |
2196 | * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'. | |
2197 | * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use | |
2198 | grub_video_fbstd_colors and grub_video_fb_set_palette. | |
2199 | (grub_video_vbe_init): Clear 'framebuffer' variable and use | |
2200 | grub_video_fb_init. | |
2201 | (grub_video_vbe_fini): Use grub_video_fb_fini. | |
2202 | (grub_video_vbe_setup): Use framebuffer.render_target instead of | |
2203 | render_target and use grub_video_fb_set_active_render_target and | |
2204 | grub_video_fb_set_palette. | |
2205 | (grub_video_vbe_set_palette): Use grub_video_fb_set_palette. | |
2206 | (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport. | |
2207 | (grub_video_vbe_adapter): Use framebuffer. | |
2208 | * video/video.c (grub_video_get_info_and_fini): New function. | |
2209 | (grub_video_set_mode): Make modestring const char *. | |
2210 | (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these | |
2211 | values are already initialised. | |
2212 | ||
d404ee56 | 2213 | 2009-08-14 Pavel Roskin <proski@gnu.org> |
2214 | ||
2215 | * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate | |
2216 | ABS and APPLE_CC. | |
2217 | * boot/i386/pc/diskboot.S: Likewise. | |
2218 | * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code | |
2219 | sectors allow compilation on MacOSX. | |
2220 | * conf/i386-pc.rmk: Enable unconditional compilation of | |
2221 | lnxboot.img. | |
2222 | ||
9a10df16 | 2223 | 2009-08-13 Colin Watson <cjwatson@ubuntu.com> |
2224 | ||
2225 | * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT. | |
2226 | * util/grub.d/00_header.in: Enter interruptible sleep if | |
2227 | GRUB_HIDDEN_TIMEOUT is set. | |
2228 | ||
be3c9ca7 | 2229 | 2009-08-13 Yves Blusseau <blusseau@zetam.org> |
2230 | ||
2231 | * include/grub/symbol.h: Add the LOCAL macro. | |
2232 | * boot/i386/pc/boot.S: Use the LOCAL macro for all labels | |
2233 | starting with "L_". | |
2234 | ||
1f9e557e | 2235 | 2009-08-13 Pavel Roskin <proski@gnu.org> |
2236 | ||
9ca62843 | 2237 | * boot/i386/pc/boot.S: Remove ABS macro, it's not required by |
2238 | any modern compilers we support. | |
2239 | ||
1f9e557e | 2240 | * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC. |
2241 | Use local labels starting with "L_" so that Apple assembler | |
2242 | knows they are local. | |
2243 | ||
81623db6 | 2244 | 2009-08-10 Robert Millan <rmh.grub@aybabtu.com> |
2245 | ||
2246 | * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD) | |
2247 | (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ... | |
2248 | (bsd_kernel_types): ... this enum. | |
2249 | ||
2250 | * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module) | |
2251 | (grub_cmd_freebsd_module_elf): Abort with "You need to load the | |
2252 | kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE. | |
2253 | ||
2254 | (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv) | |
2255 | (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf) | |
2256 | (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error | |
2257 | messages. | |
2258 | ||
f5d35e7a | 2259 | 2009-08-08 Robert Millan <rmh.grub@aybabtu.com> |
2260 | ||
2261 | * util/grub-dumpdevtree: Moved from here ... | |
2262 | * util/i386/efi/grub-dumpdevtree: ... to here. | |
2263 | (hexify): New function. Converts a string to its hex version. | |
2264 | Generate hex versions of "efi" and "device-properties" by calling | |
2265 | hexify() on the ASCII strings rather than by hardcoding numbers. | |
2266 | ||
d1e1d527 | 2267 | 2009-08-08 Robert Millan <rmh.grub@aybabtu.com> |
2268 | ||
2269 | * fs/jfs.c: Update copyright year. | |
2270 | ||
1ebbe064 | 2271 | 2009-08-08 Felix Zielcke <fzielcke@z-51.de> |
2272 | ||
2273 | * util/grub.d/00_header.in: Fix a comment. | |
2274 | * util/grub.d/10_linux.in: Likewise. | |
2275 | * util/grub.d/10_windows.in: Likewise. | |
2276 | * util/grub.d/10_hurd.in: Likewise. | |
2277 | ||
a78c8d24 | 2278 | 2009-08-08 Felix Zielcke <fzielcke@z-51.de> |
2279 | ||
2280 | * util/grub-mkconfig.in: Allow the user to specify the used font | |
2281 | with GRUB_FONT. | |
2282 | ||
29a6b9e8 | 2283 | 2009-08-08 Pavel Roskin <proski@gnu.org> |
2284 | ||
b5f16cc4 | 2285 | * include/grub/powerpc/libgcc.h: Export __ashrdi3() if |
2286 | available, xfs.mod needs it now. | |
2287 | ||
2f5cb827 | 2288 | * util/grub-mkconfig_lib.in (version_test_numeric): Don't use |
2289 | the "g" modifier in sed when the intention is to strip something | |
2290 | once. This fixes comparison of kernels with multiple dashes. | |
2291 | ||
29a6b9e8 | 2292 | * util/grub-mkconfig.in: Define datarootdir, datadir may depend |
2293 | on it. Add missing space before closing bracket. Fix | |
2294 | misleading formatting. | |
2295 | ||
892a3d98 | 2296 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
2297 | ||
2298 | * docs/grub.texi: Major overhaul. Remove all sections that are | |
2299 | specific to GRUB Legacy, or mostly composed of Legacy-specific | |
2300 | information. | |
2301 | ||
ed94253f | 2302 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
2303 | ||
2304 | * docs/version.texi: New file. Provides version information for | |
2305 | grub.texi. | |
2306 | ||
126d6628 | 2307 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
2308 | ||
2309 | * docs/grub.texi: Update CVS information to SVN. | |
2310 | Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes". | |
2311 | ||
998b5aa9 | 2312 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
2313 | ||
2314 | * util/grub-mkconfig.in: Remove a wrong `fi'. | |
2315 | ||
818e094a | 2316 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
2317 | ||
2318 | * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid. | |
2319 | (grub_jfs_uuid): New function. | |
2320 | (grub_jfs_fs): Set uuid field to grub_jfs_uuid. | |
2321 | ||
b969c52f | 2322 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
2323 | ||
2324 | * util/grub-mkconfig_lib.in (font_path): Move the functionality | |
2325 | of it to ... | |
2326 | * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and | |
2327 | unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used. | |
2328 | ||
7a4894cc | 2329 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
2330 | ||
2331 | * util/grub.d/10_linux.in (test_numeric): Moved from here ... | |
2332 | * util/grub-mkconfig_lib.in (version_test_numeric): ... to here. | |
2333 | Update all users. | |
2334 | ||
2335 | * util/grub.d/10_linux.in (test_gt): Strip any basename prefix, | |
2336 | not just "vmlinu[zx]". | |
2337 | Moved from here ... | |
2338 | * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update | |
2339 | all users. | |
2340 | ||
2341 | * util/grub.d/10_linux.in (find_latest): Moved from here ... | |
2342 | * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update | |
2343 | all users. | |
2344 | ||
4e2171f8 | 2345 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
2346 | ||
2347 | * util/grub.d/10_freebsd.in: Use an absolute device path for | |
2348 | `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'. | |
2349 | ||
6dcfcb32 | 2350 | 2009-08-06 Felix Zielcke <fzielcke@z-51.de> |
2351 | ||
2352 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix | |
2353 | handling of multiple abstraction modules. | |
2354 | ||
f56a8756 | 2355 | 2009-08-04 Robert Millan <rmh.grub@aybabtu.com> |
2356 | ||
2357 | Fix a bug resulting in black screen when loading Linux using a | |
2358 | packed video mode. | |
2359 | ||
2360 | * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New | |
2361 | function. | |
2362 | ||
2363 | * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro. | |
2364 | (grub_vbe_bios_getset_dac_palette_width): New function. | |
2365 | (grub_vbe_bios_get_dac_palette_width) | |
2366 | (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for | |
2367 | grub_vbe_bios_getset_dac_palette_width()). | |
2368 | ||
2369 | * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to | |
2370 | check for return status. | |
2371 | (grub_vbe_get_video_mode_info): When getting information for a packed | |
2372 | mode (<= 8 bpp), obtain DAC palette width using | |
2373 | grub_vbe_bios_getset_dac_palette_width(), and use that for initializing | |
2374 | {red,green,blue}_mark_size. | |
2375 | ||
222671b2 | 2376 | 2009-08-04 Felix Zielcke <fzielcke@z-51.de> |
2377 | ||
ecb1a6d9 | 2378 | * commands/search.c (options): Fix help output to match actual code. |
222671b2 | 2379 | |
f84114f5 | 2380 | 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com> |
2381 | ||
2382 | * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead | |
2383 | of homegrown code. | |
2384 | ||
bd288a20 | 2385 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
e768b770 | 2386 | |
2387 | * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work | |
2388 | on XFS or ReiserFS. | |
2389 | ||
8aab5e25 | 2390 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
2391 | ||
2392 | Support Apple partition map with sector size different from 512 bytes. | |
2393 | ||
2394 | * partmap/apple.c (grub_apple_header): New field 'blocksize'. | |
2395 | (apple_partition_map_iterate): Respect 'aheader.blocksize' | |
2396 | and 'apart.partmap_size'. | |
2397 | ||
6ad6258a | 2398 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
2399 | 2009-08-01 Robert Millan <rmh.grub@aybabtu.com> | |
2400 | ||
2401 | Fix cpuid command. | |
2402 | ||
2403 | * commands/i386/cpuid.c (options): New variable. | |
2404 | (grub_cmd_cpuid): Return real error. | |
2405 | (GRUB_MOD_INIT(cpuid)): Declare options. | |
2406 | ||
67459bc6 | 2407 | 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com> |
2408 | ||
2409 | * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are | |
2410 | valid. | |
2411 | ||
fbc6ab54 | 2412 | 2009-07-31 Bean <bean123ch@gmail.com> |
2413 | ||
2414 | * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and | |
2415 | log2_inode. | |
2416 | (grub_fshelp_node): Move inode field to the end. | |
2417 | (grub_xfs_data): Remove inode field. | |
2418 | (grub_xfs_inode_block): Calculate inode size using sblock. | |
2419 | (grub_xfs_inode_offset): Likewise. | |
2420 | (grub_xfs_read_inode): Calculate inode size using sblock. | |
2421 | (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec. | |
2422 | (grub_xfs_iterate_dir): Calculate inode size using sblock. | |
2423 | (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data | |
2424 | to match inode size. | |
2425 | (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is | |
2426 | not accessible when data is null. | |
2427 | (grub_xfs_open): Likewise. | |
2428 | ||
f45d6cfc | 2429 | 2009-07-31 Bean <bean123ch@gmail.com> |
2430 | ||
2431 | * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata. | |
2432 | Don't change pv->disk if it's already set. | |
2433 | ||
2434 | * disk/raid.c (grub_raid_scan_device): Merge this function into ... | |
2435 | (grub_raid_register): ... here. | |
2436 | (grub_raid_rescan): Removed. | |
2437 | ||
2438 | * include/grub/raid.h (grub_raid_rescan): Removed. | |
2439 | ||
2440 | * util/grub-fstest.c: Remove include file <grub/raid.h>. | |
2441 | (fstest): Replace grub_raid_rescan with module fini function followed | |
2442 | by init function. | |
2443 | ||
2444 | * util/grub-probe.c: Add include file <grub/raid.h>. | |
2445 | (probe_raid_level): New function. | |
2446 | (probe): Detect abstraction by walking the disk device, support two | |
2447 | level of abstraction (LVM on RAID) when detecting partition map. | |
2448 | ||
24443b5a | 2449 | 2009-07-31 Pavel Roskin <proski@gnu.org> |
2450 | ||
2451 | * disk/raid5_recover.c (grub_raid5_recover): Revert conversion | |
2452 | to grub_zalloc(), it was erroneous. | |
2453 | Reported by Bean <bean123ch@gmail.com> | |
2454 | ||
a275d9e7 | 2455 | 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com> |
2456 | ||
2457 | * util/i386/pc/grub-setup.c (setup): Check that no partition is in | |
ad8ea1f4 | 2458 | embedding zone, not only the first one. |
a275d9e7 | 2459 | |
56c5a47f | 2460 | 2009-07-29 Joe Auricchio <jauricchio@gmail.com> |
2461 | ||
2462 | * term/gfxterm.c (clear_char): New function. | |
2463 | (grub_virtual_screen_setup): Use clear_char. | |
2464 | (scroll_up): Likewise. | |
2465 | (grub_virtual_screen_cls): Likewise. | |
2466 | ||
67bb323a | 2467 | 2009-07-29 Felix Zielcke <fzielcke@z-51.de> |
2468 | ||
2469 | * util/deviceiter.c (get_acceleraid_disk_name): New static | |
2470 | function. | |
2471 | (grub_util_iterate_devices): Handle Accelraid devices. | |
2472 | * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise. | |
2473 | ||
388a7c75 | 2474 | 2009-07-28 Robert Millan <rmh.grub@aybabtu.com> |
2475 | ||
2476 | * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as | |
2477 | separator for the suggested gfxpayload string (';' collides with the | |
2478 | parser and needs escaping). | |
2479 | ||
3bb7abcf | 2480 | 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com> |
2481 | ||
2482 | * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator): | |
2483 | Clear direction flag before jumping to OS. | |
2484 | (grub_multiboot2_real_boot): Likewise. | |
2485 | ||
2ddd36d7 | 2486 | 2009-07-28 Felix Zielcke <fzielcke@z-51.de> |
2487 | ||
2488 | * util/i386/pc/grub-install: Fix parsing of --disk-module | |
2489 | option. | |
2490 | ||
c521b62b | 2491 | 2009-07-28 Felix Zielcke <fzielcke@z-51.de> |
2492 | ||
2493 | * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks | |
2494 | when embedding. | |
2495 | ||
880e0a0c | 2496 | 2009-07-26 Felix Zielcke <fzielcke@z-51.de> |
2497 | ||
2498 | * util/grub-mkconfig.in (package_version): New variable. | |
2499 | Use it do display the version. | |
2500 | ||
2366e356 | 2501 | 2009-07-25 Felix Zielcke <fzielcke@z-51.de> |
2502 | ||
2503 | * kern/file.c (grub_file_open): Revert to previous check with | |
2504 | grub_errno. | |
2505 | ||
7ad8c80e | 2506 | 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
2507 | ||
2508 | * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]" | |
2509 | from help line. It's out of sync with code. | |
2510 | ||
72b9658b | 2511 | 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
2512 | ||
2513 | * kern/parser.c (grub_parser_execute): Fix a bug causing truncated | |
2514 | entries on failed boot. | |
2515 | ||
77435277 | 2516 | 2009-07-25 Felix Zielcke <fzielcke@z-51.de> |
2517 | ||
2518 | * kern/file.c (grub_file_open): Fix an error check. | |
2519 | ||
fcaa8b21 | 2520 | 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com> |
2521 | ||
35d16c74 | 2522 | * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when |
2523 | partition map couldn't be identified. | |
fcaa8b21 | 2524 | |
48904cd1 | 2525 | 2009-07-23 Pavel Roskin <proski@gnu.org> |
2526 | ||
ef3c317f | 2527 | * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN |
2528 | instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the | |
2529 | case of little endian words becomes just an optimization. | |
2530 | Respect const modifier. | |
ad8ea1f4 | 2531 | (md5_final): Use code that doesn't depend on endianness. |
ef3c317f | 2532 | |
48904cd1 | 2533 | * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr |
2534 | to avoid loss of upper bits if align is unsigned and shorter | |
2535 | than addr. | |
2536 | ||
260c9a89 | 2537 | 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com> |
2538 | ||
2539 | UUID support for UFS | |
2540 | ||
2541 | * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow. | |
2542 | (grub_ufs_uuid): New function. | |
2543 | (grub_ufs_fs): add .uuid | |
2544 | ||
f76ce889 | 2545 | 2009-07-21 Pavel Roskin <proski@gnu.org> |
2546 | ||
2547 | * kern/dl.c (grub_dl_check_header): Make static. | |
2548 | ||
6a6cbcaf | 2549 | 2009-07-21 Felix Zielcke <fzielcke@z-51.de> |
2550 | ||
2551 | * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't | |
2552 | add drivemap for Vista. It breaks Windows 7. | |
2553 | ||
cffcddb2 | 2554 | 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com> |
2555 | ||
2556 | * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by | |
2557 | 128 bytes | |
2558 | ||
1ef44b80 | 2559 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
2560 | ||
2561 | Add BFS support | |
2562 | ||
2563 | * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c. | |
2564 | (grub_fstest_SOURCES): Likewise. | |
2565 | (pkglib_MODULES): Add befs.mod. | |
2566 | (befs_mod_SOURCES): New variable. | |
2567 | (befs_mod_CFLAGS): Likewise. | |
2568 | (befs_mod_LDFLAGS): Likewise. | |
2569 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
2570 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
2571 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
2572 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
2573 | (grub_setup_SOURCES): Likewise. | |
2574 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
2575 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
2576 | (grub_setup_SOURCES): Likewise. | |
2577 | * fs/befs.c: New file. | |
2578 | * fs/afs.c (GRUB_AFS_FSNAME): New declaration. | |
2579 | (GRUB_AFS_SBLOCK_SECTOR): Likewise. | |
2580 | (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration. | |
2581 | (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise | |
2582 | (B_KEY_INDEX_ALIGN): New declaration. | |
2583 | (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN. | |
2584 | (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit | |
2585 | (grub_afs_btree) [MODE_BFS]: New conditional declaration. | |
2586 | (grub_afs_sblock) [MODE_BFS]: Remove link_count. | |
2587 | (grub_afs_validate_sblock) [MODE_BFS]: Support BFS | |
2588 | (grub_afs_mount) [MODE_BFS]: Likewise. | |
2589 | (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000. | |
2590 | (grub_afs_fs): Use GRUB_AFS_FSNAME | |
2591 | (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ... | |
2592 | (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this | |
2593 | (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ... | |
2594 | (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this | |
2595 | ||
4f253044 | 2596 | 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org> |
2597 | ||
2598 | * util/getroot.c (find_root_device): Add support for MacOSX. | |
2599 | * util/hostdisk.c: Likewise. | |
2600 | ||
57a55913 | 2601 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
2602 | ||
2603 | * font/font.c (find_glyph): Check whether a font is present to avoid | |
2604 | segmentation fault. | |
75421ca9 | 2605 | |
2606 | 2009-07-20 Joe Auricchio <jauricchio@gmail.com> | |
04c7c429 | 2607 | |
2608 | * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen. | |
2609 | ||
e98cd0c2 | 2610 | 2009-07-20 Pavel Roskin <proski@gnu.org> |
2611 | ||
2612 | * configure.ac: Trim excessively wordy excuses. | |
2613 | ||
1d2d169a | 2614 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
2615 | ||
2616 | Add symlink, mtime and label support to AtheFS. | |
2617 | ||
2618 | * fs/afs.c (grub_afs_sblock): Declare `name' as char. | |
2619 | (grub_afs_iterate_dir): Handle symlinks. | |
2620 | (grub_afs_open): Use grub_afs_read_symlink. | |
2621 | (grub_afs_dir): Likewise. | |
2622 | Pass mtime. | |
2623 | (grub_afs_label): New function. | |
2624 | (grub_afs_fs): Add grub_afs_label. | |
2625 | (grub_afs_read_symlink): New function. | |
2626 | ||
186f3189 | 2627 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
2628 | ||
2629 | Fix AtheFS support. | |
2630 | ||
2631 | * fs/afs.c: Fix comments style. | |
2632 | (grub_afs_blockrun): Declare as packed. | |
2633 | (grub_afs_datastream): Likewise. | |
2634 | (grub_afs_bnode): Likewise. | |
2635 | (grub_afs_btree): Likewise. | |
2636 | (grub_afs_sblock): Likewise. | |
2637 | Declare `name' as char. | |
2638 | (grub_afs_inode): Declare as packed. | |
2639 | Change void *vnode to grub_uint32_t unused. | |
2640 | (grub_afs_iterate_dir): Check that key_size is positive. | |
2641 | (grub_afs_mount): Don't read superblock twice. | |
75421ca9 | 2642 | (grub_afs_dir): Don't free node in case of error, |
186f3189 | 2643 | grub_fshelp_find_file already handles this. |
2644 | (grub_afs_open): Likewise. | |
2645 | ||
5680109e | 2646 | 2009-07-19 Pavel Roskin <proski@gnu.org> |
2647 | ||
2648 | * Makefile.in: Remove LIBLZO and enable_lzo. | |
2649 | * conf/i386-pc.rmk: Remove lzo support. | |
2650 | * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA. | |
2651 | * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo | |
2652 | support. | |
2653 | * kern/i386/pc/lzo1x.S: Remove. | |
2654 | * kern/i386/pc/startup.S: Remove lzo support. | |
2655 | * util/i386/pc/grub-mkimage.c: Likewise. | |
2656 | ||
ac70fa32 | 2657 | 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com> |
2658 | ||
2659 | * disk/usbms.c (grub_usbms_transfer): Fix double semicolon. | |
2660 | * fs/xfs.c (grub_xfs_dir): Likewise. | |
2661 | * fs/afs.c (grub_afs_dir): Likewise. | |
2662 | * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise. | |
2663 | (grub_iso9660_open): Likewise. | |
2664 | * fs/jfs.c (grub_jfs_open): Likewise. | |
2665 | * fs/ext2.c (grub_ext2_dir): Likewise. | |
2666 | * include/grub/macho.h (grub_macho_fat_arch): Likewise. | |
2667 | * script/sh/lexer.c (grub_script_yylex): Likewise. | |
75421ca9 | 2668 | |
eab58da2 | 2669 | 2009-07-16 Pavel Roskin <proski@gnu.org> |
2670 | ||
d2838156 | 2671 | * configure.ac: Never add "-c" to CFLAGS. |
2672 | ||
55c70904 | 2673 | * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu. |
2674 | ||
43e6200c | 2675 | * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where |
2676 | grub_cv_cc_efiemu should be used. | |
2677 | ||
ce7a733d | 2678 | * configure.ac: Typo fixes. |
2679 | ||
eab58da2 | 2680 | * kern/mm.c (grub_zalloc): New function. |
2681 | (grub_debug_zalloc): Likewise. | |
2682 | * include/grub/mm.h: Declare grub_zalloc() and | |
2683 | grub_debug_zalloc(). | |
2684 | * util/misc.c (grub_zalloc): New function. | |
2685 | * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc() | |
2686 | instead of grub_malloc(), remove unneeded initializations. | |
2687 | * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise. | |
2688 | * commands/extcmd.c (grub_extcmd_dispatcher): Likewise. | |
2689 | * commands/parttool.c (grub_cmd_parttool): Likewise. | |
2690 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise. | |
2691 | * disk/raid5_recover.c (grub_raid5_recover): Likewise. | |
2692 | * disk/raid6_recover.c (grub_raid6_recover): Likewise. | |
2693 | * disk/usbms.c (grub_usbms_finddevs): Likewise. | |
2694 | * efiemu/mm.c (grub_efiemu_request_memalign): Likewise. | |
2695 | * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise. | |
2696 | (grub_cmd_efiemu_pnvram): Likewise. | |
2697 | * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise. | |
2698 | * fs/iso9660.c (grub_iso9660_mount): Likewise. | |
2699 | (grub_iso9660_iterate_dir): Likewise. | |
2700 | * fs/jfs.c (grub_jfs_opendir): Likewise. | |
2701 | * fs/ntfs.c (list_file): Likewise. | |
2702 | (grub_ntfs_mount): Likewise. | |
2703 | * kern/disk.c (grub_disk_open): Likewise. | |
2704 | * kern/dl.c (grub_dl_load_core): Likewise. | |
2705 | * kern/elf.c (grub_elf_file): Likewise. | |
2706 | * kern/env.c (grub_env_context_open): Likewise. | |
2707 | (grub_env_set): Likewise. | |
2708 | (grub_env_set_data_slot): Likewise. | |
2709 | * kern/file.c (grub_file_open): Likewise. | |
2710 | * kern/fs.c (grub_fs_blocklist_open): Likewise. | |
2711 | * loader/i386/multiboot.c (grub_module): Likewise. | |
2712 | * loader/xnu.c (grub_xnu_create_key): Likewise. | |
2713 | (grub_xnu_create_value): Likewise. | |
2714 | * normal/main.c (grub_normal_add_menu_entry): Likewise. | |
2715 | (read_config_file): Likewise. | |
2716 | * normal/menu_entry.c (make_screen): Likewise. | |
2717 | * partmap/sun.c (sun_partition_map_iterate): Likewise. | |
2718 | * script/sh/lexer.c (grub_script_lexer_init): Likewise. | |
2719 | * script/sh/script.c (grub_script_parse): Likewise. | |
2720 | * video/bitmap.c (grub_video_bitmap_create): Likewise. | |
2721 | * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise. | |
2722 | * video/readers/png.c (grub_png_output_byte): Likewise. | |
2723 | (grub_video_reader_png): Likewise. | |
2724 | ||
830afef7 | 2725 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
5ce5507f | 2726 | |
2727 | Enable all targets that can be built by default | |
2728 | ||
830afef7 | 2729 | * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb, |
5ce5507f | 2730 | grub-mkfont and grub-fstest if they can be built |
2731 | ||
ee293aee | 2732 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
2733 | ||
2734 | Fix hang and segmentation fault in grub-emu-usb | |
2735 | ||
2736 | * disk/scsi.c (grub_scsi_open): return err and not grub_errno | |
2737 | * util/usb.c (grub_libusb_devices): likewise | |
2738 | (grub_libusb_init): rename to ... | |
2739 | (GRUB_MOD_INIT (libusb)):...this | |
2740 | (grub_libusb_fini): rename to .. | |
2741 | (GRUB_MOD_FINI (libusb)):...this | |
2742 | * disk/usbms.c (grub_usbms_transfer): fix retry logic | |
2743 | * include/grub/disk.h (grub_raid_init): removed, it's useless | |
2744 | (grub_raid_fini): likewise | |
2745 | (grub_lvm_init): likewise | |
2746 | (grub_lvm_fini): likewise | |
2747 | * util/grub-emu.c (main): don't call grub_libusb_init, it's done | |
2748 | by grub_init_all | |
2749 | ||
94414221 | 2750 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
2751 | ||
2752 | Fix libusb | |
2753 | ||
2754 | * Makefile.in (LIBUSB): new macro | |
2755 | * genmk.rb (Utility/print_tail): new method | |
2756 | (Utility/rule): use intermediary variable #{prefix}_OBJECTS | |
2757 | (top level): call util.print_tail at the end. | |
2758 | ||
59ade63d | 2759 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
2760 | ||
2761 | Make FreeBSD accept zpool.cache | |
2762 | ||
2763 | * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if | |
2764 | type is /boot/zfs/zpool.cache | |
2765 | ||
a58da8c7 | 2766 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
2767 | ||
2768 | Fix 64-bit efiemu | |
2769 | ||
2770 | * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t): | |
2771 | correct wrong typedef | |
2772 | * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes | |
2773 | ||
20591577 | 2774 | 2009-07-15 Pavel Roskin <proski@gnu.org> |
2775 | ||
560ca572 | 2776 | * include/grub/disk.h (struct grub_disk_dev): Use enum for id. |
2777 | * kern/disk.c (struct grub_disk_cache): Likewise. | |
2778 | ||
e8e8e4fd | 2779 | * commands/probe.c (options): Typo fix. |
2780 | ||
fde24e10 | 2781 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END): |
2782 | Increase to 0x5a to accommodate FAT32. Adjust other offsets | |
2783 | accordingly. | |
2784 | Original patch by Yves Blusseau <yves.grub-devel@zetam.org> | |
2785 | ||
379c54c1 | 2786 | * boot/i386/pc/boot.S (general_error_string): Add DOS newline at |
2787 | the end of "Error" to make the message more readable. | |
2788 | ||
7bd8f5bf | 2789 | * boot/i386/pc/boot.S (kernel_segment): Remove. |
2790 | (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0 | |
2791 | for destination. | |
2792 | ||
40b132c5 | 2793 | * boot/i386/pc/boot.S (boot_version): Remove. |
2794 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ): | |
2795 | Remove. | |
2796 | ||
20591577 | 2797 | * include/grub/i386/pc/boot.h: Sort all offsets. |
2798 | (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused. | |
2799 | (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise. | |
2800 | * boot/i386/pc/boot.S: Assert location of every offset listed in | |
2801 | include/grub/i386/pc/boot.h. | |
2802 | ||
2df32b2c | 2803 | 2009-07-13 Pavel Roskin <proski@gnu.org> |
2804 | ||
44b5d879 | 2805 | * include/grub/i386/coreboot/machine.h: Rename |
2806 | GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT. | |
2807 | * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow | |
2808 | multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU. | |
2809 | ||
17dc3751 | 2810 | * kern/dl.c: Force native word size to suppress warnings when |
2811 | compiling grub-emu. | |
2812 | ||
2df32b2c | 2813 | * kern/device.c (grub_device_iterate): Change struct part_ent to |
2814 | hold the name, not a pointer to it. Use one grub_malloc() per | |
2815 | partition, not two. Free partition_name if grub_malloc() fails. | |
2816 | Set ents to NULL only before grub_partition_iterate() is called. | |
2817 | ||
75c59f59 | 2818 | 2009-07-11 Bean <bean123ch@gmail.com> |
2819 | ||
2820 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of | |
2821 | childname. | |
2822 | ||
0ae1bf88 | 2823 | 2009-07-10 Bean <bean123ch@gmail.com> |
2824 | 2009-07-10 Robert Millan <rmh.grub@aybabtu.com> | |
2825 | ||
2826 | * kern/ieee1275/openfw.c (grub_children_iterate) | |
2827 | (grub_devalias_iterate): Fix size evaluation for property or path | |
2828 | strings, which was broken since r2132. | |
2829 | ||
8279cade | 2830 | 2009-07-07 Pavel Roskin <proski@gnu.org> |
2831 | ||
7d8a52d3 | 2832 | * commands/search.c (search_file): Merge into ... |
2833 | (search_fs): ... this. Accept search type as argument. | |
2834 | (grub_cmd_search): Pass search type to search_fs(). | |
2835 | ||
25f9a05a | 2836 | * include/grub/util/console.h: New file. |
2837 | * util/console.c: Use it instead of grub/machine/console.h. | |
2838 | * util/grub-emu.c: Likewise. | |
2839 | ||
8279cade | 2840 | * lib/arg.c (find_long_option): Remove. |
2841 | (find_long): Add `len' argument, make `s' const char *. | |
2842 | (grub_arg_parse): Parse long options in place, not in a | |
2843 | temporary buffer. | |
2844 | ||
4a11b60f | 2845 | 2009-07-06 Pavel Roskin <proski@gnu.org> |
2846 | ||
99f68041 | 2847 | * commands/search.c (search_fs): Fix potential NULL pointer |
2848 | dereference. | |
2849 | ||
4a11b60f | 2850 | * commands/search.c (search_fs): Replace QUID macro with quid_fn |
2851 | function pointer. | |
2852 | ||
e110f4de | 2853 | 2009-07-06 Daniel Mierswa <impulze@impulze.org> |
2854 | ||
2855 | * commands/search.c (search_fs): Use grub_strcasecmp() for UUID | |
2856 | comparison. | |
2857 | ||
46eeb6a2 | 2858 | 2009-07-05 Pavel Roskin <proski@gnu.org> |
2859 | ||
bab74958 | 2860 | * include/grub/i386/linux.h (struct linux_kernel_params): |
2861 | Restore padding3, it's still needed. | |
2862 | ||
46eeb6a2 | 2863 | * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on |
2864 | FreeBSD. | |
2865 | * util/osdetect.lua: Likewise. | |
2866 | ||
b4a1dc79 | 2867 | 2009-07-05 Bean <bean123ch@gmail.com> |
2868 | ||
2869 | * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c. | |
2870 | ||
2871 | * script/lua/grub_lib.c (grub_lua_run): Check input parameter. | |
2872 | (grub_lua_getenv): Likewise. | |
2873 | (grub_lua_setenv): Likewise. | |
2874 | (save_errno): New function. | |
2875 | (push_result): Likewise. | |
2876 | (grub_lua_enum_device): Likewise. | |
2877 | (grub_lua_enum_file): Likewise. | |
2878 | (grub_lua_file_open): Likewise. | |
2879 | (grub_lua_file_close): Likewise. | |
2880 | (grub_lua_file_seek): Likewise. | |
2881 | (grub_lua_file_read): Likewise. | |
2882 | (grub_lua_file_getline): Likewise. | |
2883 | (grub_lua_file_getsize): Likewise. | |
2884 | (grub_lua_file_getpos): Likewise. | |
2885 | (grub_lua_file_eof): Likewise. | |
2886 | (grub_lua_file_exist): Likewise. | |
2887 | (grub_lua_add_menu): Likewise. | |
2888 | ||
2889 | * script/lua/grub_lua.h (isupper): New inline function. | |
2890 | (islower): Likewise. | |
2891 | (ispunct): Likewise. | |
2892 | (isxdigit): Likewise. | |
2893 | (strcspn): Change to normal function. | |
2894 | (strpbkr): New function declaration. | |
2895 | (memchr): Likewise. | |
2896 | ||
2897 | * script/lua/grub_main.c (scan_str): New function. | |
2898 | (strcspn): Likewise. | |
2899 | (strpbrk): Likewise. | |
2900 | (memchr): Likewise. | |
2901 | ||
2902 | * script/lua/linit.c (lualibs): Enable the string library. | |
2903 | ||
2904 | * util/osdetect.lua: New file. | |
2905 | ||
2da92295 | 2906 | 2009-07-04 Robert Millan <rmh.grub@aybabtu.com> |
2907 | ||
2908 | * include/grub/i386/linux.h (struct linux_kernel_params): Add | |
2909 | `capabilities' member. | |
2910 | ||
b2582ec9 | 2911 | 2009-07-02 Pavel Roskin <proski@gnu.org> |
2912 | ||
2913 | * genparttoollist.sh: Add missing newline at the end. | |
2914 | ||
32622956 | 2915 | 2009-07-01 Pavel Roskin <proski@gnu.org> |
2916 | ||
87a7339e | 2917 | * kern/x86_64/efi/callwrap.S: Add missing newline at the end. |
2918 | ||
d23af54e | 2919 | * util/hostdisk.c (open_device): Remove `const' from |
2920 | `sysctl_size', as sysctlbyname() can change it (in this case it | |
2921 | doesn't actually happen). | |
2922 | ||
c94b18a9 | 2923 | * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN |
2924 | using signed long int constants. | |
2925 | ||
c6cd3ef0 | 2926 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p' |
2927 | constant to avoid a warning on FreeBSD. | |
2928 | ||
0df63420 | 2929 | * util/hostdisk.c (device_is_wholedisk): Compile only on systems |
2930 | where it's needed. | |
2931 | ||
999577f1 | 2932 | * Makefile.in: Install include/grub/machine symlink. |
2933 | ||
6f41557f | 2934 | * Makefile.in: When installing symlinks, use "cp -fR", which |
2935 | works on FreeBSD and MacOSX. | |
2936 | From Yves Blusseau <cl7m42e02@sneakemail.com> | |
2937 | ||
c8d22988 | 2938 | * kern/dl.c (grub_dl_resolve_symbol): Make static. |
2939 | * include/grub/dl.h: Remove grub_dl_resolve_symbol(). | |
2940 | ||
1b96e952 | 2941 | * util/misc.c: Move grub_reboot() and grub_halt() ... |
2942 | * util/grub-emu.c: ... here. Make main_env static. | |
2943 | * include/grub/util/misc.h: Remove main_env. | |
2944 | ||
2ef0084d | 2945 | * kern/mm.c: Use correct format to print size_t. |
2946 | ||
32622956 | 2947 | * include/grub/elf.h: Define Elf_Sword and Elf_Xword. |
2948 | * kern/i386/dl.c: Use ELF symbols without "32" or "64". | |
2949 | * kern/powerpc/dl.c: Likewise. | |
2950 | * kern/sparc64/dl.c: Likewise. | |
2951 | * kern/x86_64/dl.c: Likewise. | |
2952 | ||
3f7f0cd0 | 2953 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
2954 | ||
2955 | Fix grub-emu build on sparc64-ieee1275. | |
2956 | ||
75421ca9 | 2957 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ... |
3f7f0cd0 | 2958 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this. |
2959 | ||
211d06b5 | 2960 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
2961 | ||
2962 | * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'. | |
2963 | (grub_reboot, grub_halt): New functions. | |
2964 | ||
2965 | * util/i386/pc/misc.c: Delete. Update all users. | |
2966 | * util/sparc64/ieee1275/misc.c: Likewise. | |
2967 | * util/powerpc/ieee1275/misc.c: Likewise. | |
2968 | ||
aaf53e3c | 2969 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
2970 | ||
2971 | * conf/i386.rmk (setjmp_mod_SOURCES) | |
2972 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ... | |
2973 | * conf/common.rmk (setjmp_mod_SOURCES) | |
2974 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify | |
2975 | to use $(target_cpu). | |
2976 | * conf/x86_64-efi.rmk (setjmp_mod_SOURCES) | |
2977 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove. | |
2978 | * conf/powerpc-ieee1275.rmk: Likewise. | |
2979 | * conf/sparc64-ieee1275.rmk: Likewise. | |
2980 | ||
2981 | * conf/i386-pc.rmk (kernel_img_SOURCES): Use | |
2982 | $(target_cpu) for kern/$(target_cpu)/dl.c. | |
2983 | * conf/i386-efi.rmk: Likewise. | |
2984 | * conf/i386-ieee1275.rmk: Likewise. | |
2985 | * conf/x86_64-efi.rmk: Likewise. | |
2986 | * conf/i386-coreboot.rmk: Likewise. | |
2987 | * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use | |
2988 | $(target_cpu) for kern/$(target_cpu)/dl.c and for | |
2989 | kern/$(target_cpu)/cache.S. | |
2990 | * conf/sparc64-ieee1275.rmk: Likewise. | |
2991 | ||
a337130b | 2992 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
2993 | ||
2994 | * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size' | |
2995 | type to `grub_uint8_t', and adjust `padding9' accordingly. | |
2996 | ||
c6fe4d53 | 2997 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
2998 | ||
b09db61d | 2999 | * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro. |
3000 | ||
c6fe4d53 | 3001 | * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline |
3002 | assembly in final jump, using register constraints. | |
3003 | ||
b09db61d | 3004 | (grub_linux_boot): For text mode, initialize `have_vga' using |
3005 | GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1). | |
3006 | ||
3007 | Initialize `video_cursor_x' and `video_cursor_y' as late as possible, | |
3008 | right before the final jump. | |
3009 | ||
3010 | Set `video_mode' to 0x3. | |
3011 | ||
3012 | Document initialization of `video_page', `video_mode' and | |
3013 | `video_ega_bx'. | |
3014 | ||
28333ad0 | 3015 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
3016 | ||
3017 | * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro. | |
3018 | * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option, | |
75421ca9 | 3019 | and set GRUB_LINUX_FLAG_QUIET appropriately. |
28333ad0 | 3020 | |
02164e1b | 3021 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
3022 | ||
3023 | Fix build on Debian / sparc. | |
3024 | ||
3025 | * configure.ac: Recognize `sparc' target_cpu (as sparc64). | |
3026 | ||
18b6c557 | 3027 | 2009-06-28 Pavel Roskin <proski@gnu.org> |
3028 | ||
85f2aab6 | 3029 | * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to |
3030 | fix a warning. | |
3031 | ||
18b6c557 | 3032 | * util/grub.d/10_linux.in: Match SUSE style initrd names. |
3033 | ||
ad760f81 | 3034 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> |
3035 | ||
3036 | * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of | |
3037 | `err'. | |
3038 | ||
87a4623b | 3039 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> |
3040 | ||
3041 | Revert r2338. | |
3042 | ||
3043 | * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when | |
3044 | file can't be opened. grub_file_open() is already supposed to set | |
75421ca9 | 3045 | grub_errno / grub_errmsg appropriately. |
87a4623b | 3046 | * loader/i386/pc/linux.c (grub_cmd_linux): Likewise. |
3047 | ||
8231fb77 | 3048 | 2009-06-27 Pavel Roskin <proski@gnu.org> |
3049 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> | |
3050 | ||
3051 | * include/grub/dl.h: Include grub/elf.h. | |
3052 | (struct grub_dl): Add symtab field. | |
3053 | * kern/dl.c [GRUB_MACHINE_QEMU]: Define | |
3054 | GRUB_MODULES_MACHINE_READONLY. | |
3055 | (grub_dl_resolve_symbols): Populate mod->symtab, making a copy | |
3056 | of the header for read-only modules. | |
3057 | (grub_dl_unload): Free mod->symtab for read-only modules. | |
3058 | * kern/i386/dl.c: Use mod->symtab. | |
3059 | * kern/powerpc/dl.c: Likewise. | |
3060 | * kern/sparc64/dl.c: Likewise. | |
3061 | * kern/x86_64/dl.c: Likewise. | |
3062 | ||
3063 | * conf/i386-qemu.rmk: New file. | |
3064 | * kern/i386/qemu/startup.S: Likewise. | |
3065 | * kern/i386/qemu/mmap.c: Likewise. | |
3066 | * boot/i386/qemu/boot.S: Likewise. | |
3067 | * include/grub/i386/qemu/time.h: Likewise. | |
3068 | * include/grub/i386/qemu/serial.h: Likewise. | |
3069 | * include/grub/i386/qemu/kernel.h: Likewise. | |
3070 | * include/grub/i386/qemu/console.h: Likewise. | |
3071 | * include/grub/i386/qemu/boot.h: Likewise. | |
3072 | * include/grub/i386/qemu/init.h: Likewise. | |
3073 | * include/grub/i386/qemu/machine.h: Likewise. | |
3074 | * include/grub/i386/qemu/loader.h: Likewise. | |
3075 | * include/grub/i386/qemu/memory.h: Likewise. | |
3076 | ||
3077 | * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR) | |
3078 | (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables. | |
3079 | [qemu] (pkglib_IMAGES): Add `boot.img'. | |
3080 | [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS) | |
3081 | [qemu] (boot_img_FORMAT): New variables. | |
3082 | [qemu] (bin_UTILITIES): Add `grub-mkimage'. | |
3083 | [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables. | |
3084 | [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS) | |
3085 | [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS) | |
3086 | [qemu] (kernel_img_FORMAT): New variables. | |
3087 | ||
3088 | * configure.ac: Recognise `i386-qemu'. | |
3089 | ||
3090 | * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant | |
3091 | (for no compression). | |
3092 | [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce | |
3093 | a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE', | |
3094 | `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and | |
3095 | `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with | |
3096 | ifdefs). | |
3097 | ||
97fe384e | 3098 | 2009-06-27 Pavel Roskin <proski@gnu.org> |
3099 | ||
3100 | * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to | |
3101 | read. | |
3102 | * efiemu/prepare32.c: Likewise. | |
3103 | * efiemu/prepare64.c: Likewise. | |
3104 | ||
c402ab17 | 3105 | 2009-06-26 Pavel Roskin <proski@gnu.org> |
3106 | ||
3107 | * include/grub/types.h: Define GRUB_TARGET_WORDSIZE. | |
3108 | * include/grub/elf.h: Define symbols without "32" or "64" based | |
3109 | on GRUB_TARGET_WORDSIZE. | |
3110 | * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE. | |
3111 | * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own | |
3112 | ELF definitions. | |
3113 | * efiemu/loadcore64.c: Likewise. | |
3114 | * loader/i386/bsd32.c: Likewise. | |
3115 | * loader/i386/bsd64.c: Likewise. | |
3116 | * kern/dl.c: Remove own ELF definitions. | |
3117 | * util/i386/efi/grub-mkimage.c: Likewise. | |
3118 | ||
9bbdfd4d | 3119 | 2009-06-23 Robert Millan <rmh.grub@aybabtu.com> |
3120 | ||
3121 | * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using | |
3122 | segment 0x0 unconditionally, because the reference generated by | |
3123 | GAS is an absolute address. | |
3124 | ||
a42ce6e9 | 3125 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3126 | ||
3127 | * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'. | |
3128 | [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1. | |
3129 | ||
c952cf92 | 3130 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3131 | ||
3132 | * commands/search.c (grub_cmd_search): Macroify hardcoded args[] | |
3133 | indexes. Check for -f explicitly. | |
cc3752ad | 3134 | (search_file): Improve error message. |
3135 | (GRUB_MOD_INIT(search)): Add missing `-n' to help output. | |
c952cf92 | 3136 | |
132a0a59 | 3137 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3138 | ||
3139 | * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ... | |
3140 | (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users. | |
3141 | ||
387a140c | 3142 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3143 | ||
3144 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'. | |
3145 | * conf/i386-ieee1275.rmk: Likewise. | |
3146 | * conf/i386-coreboot.rmk: Likewise. | |
3147 | ||
3148 | * kern/i386/pc/startup.S (grub_stop): Remove function. | |
3149 | * kern/i386/ieee1275/startup.S: Likewise. | |
3150 | * kern/i386/coreboot/startup.S: Likewise. | |
3151 | * kern/i386/misc.S (grub_stop): New function. | |
3152 | ||
41da9665 | 3153 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3154 | ||
3155 | * kern/i386/pc/startup.S (real_to_prot): Move from here ... | |
3156 | * kern/i386/realmode.S (real_to_prot): ... to here. | |
3157 | ||
bf337234 | 3158 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
3159 | ||
3160 | * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf' | |
3161 | with `kernel.img'. | |
3162 | (kernel_elf_SOURCES): Rename to ... | |
3163 | (kernel_img_SOURCES): ... this. | |
3164 | (kernel_elf_HEADERS): Rename to ... | |
3165 | (kernel_img_HEADERS): ... this. Update all users. | |
3166 | (kernel_elf_ASFLAGS): Rename to ... | |
3167 | (kernel_img_ASFLAGS): ... this. | |
3168 | (kernel_elf_CFLAGS): Rename to ... | |
3169 | (kernel_img_CFLAGS): ... this. | |
3170 | (kernel_elf_LDFLAGS): Rename to ... | |
3171 | (kernel_img_LDFLAGS): ... this. | |
3172 | * conf/i386-coreboot.rmk: Likewise. | |
3173 | * conf/powerpc-ieee1275.rmk: Likewise. | |
3174 | ||
3175 | * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf" | |
3176 | with "kernel.img". | |
3177 | ||
f52196ff | 3178 | 2009-06-21 Pavel Roskin <proski@gnu.org> |
3179 | ||
c3cee413 | 3180 | * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes |
3181 | to match nested functions. | |
3182 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
3183 | ||
f52196ff | 3184 | * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS. |
3185 | ||
58750afc | 3186 | 2009-06-21 Robert Millan <rmh.grub@aybabtu.com> |
3187 | ||
3188 | * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on | |
3189 | all i386 platforms. | |
3190 | ||
15355c7d | 3191 | 2009-06-21 Robert Millan <rmh.grub@aybabtu.com> |
3192 | ||
3193 | Fix asm file handling on ELF, and remove workarounds. | |
3194 | ||
3195 | * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS | |
75421ca9 | 3196 | and -DASM_FILE=1 appropriately (copied from `class Images' stanza). |
15355c7d | 3197 | * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro. |
3198 | * kern/i386/coreboot/startup.S (ASM_FILE): Likewise. | |
3199 | ||
3f3ec72b | 3200 | 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com> |
3201 | ||
3202 | Load BSD ELF modules | |
3203 | ||
3204 | * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c | |
3205 | and loader/i386/bsd64.c | |
3206 | * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove | |
3207 | (FREEBSD_MODTYPE_ELF_MODULE): New definition | |
3208 | (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise | |
3209 | (grub_freebsd_load_elfmodule32): New declaration | |
3210 | (grub_freebsd_load_elfmoduleobj64): Likewise | |
3211 | (grub_freebsd_load_elf_meta32): Likewise | |
3212 | (grub_freebsd_load_elf_meta64): Likewise | |
3213 | (grub_freebsd_add_meta): Likewise | |
3214 | (grub_freebsd_add_meta_module): Likewise | |
3215 | * loader/i386/bsd.c (grub_freebsd_add_meta): Make global | |
3216 | (grub_freebsd_add_meta_module): Likewise and move module-specific | |
3217 | parts to grub_cmd_freebsd and grub_cmd_freebsd_module | |
3218 | (grub_cmd_freebsd): Add elf-kernel specific parts | |
3219 | based on grub_freebsd_add_meta_module | |
3220 | (grub_cmd_freebsd_module): Add type parsing moved from | |
3221 | grub_freebsd_add_meta_module | |
3222 | (grub_cmd_freebsd_module_elf): New function | |
3223 | (cmd_freebsd_module_elf): New variable | |
3224 | (GRUB_MOD_INIT): Register freebsd_module_elf | |
3225 | * loader/i386/bsd32.c: New file | |
3226 | * loader/i386/bsd64.c: Likewise | |
3227 | * loader/i386/bsdXX.c: Likewise | |
3228 | * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load | |
3229 | (grub_elf64_load): Likewise | |
3230 | * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load | |
3231 | All users updated | |
3232 | (grub_elf64_load_hook_t): Likewise | |
3233 | ||
0db15301 | 3234 | 2009-06-21 Colin Watson <cjwatson@ubuntu.com> |
3235 | ||
3236 | * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export | |
3237 | variable. | |
3238 | * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true, | |
3239 | don't write a menu entry for recovery mode. | |
3240 | ||
546796c1 | 3241 | 2009-06-20 Robert Millan <rmh.grub@aybabtu.com> |
3242 | ||
3243 | * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only | |
3244 | after it's no longer needed. | |
3245 | ||
cd7310d5 | 3246 | 2009-06-20 Robert Millan <rmh.grub@aybabtu.com> |
3247 | ||
3248 | * include/grub/i386/loader.h (grub_linux_prot_size) | |
3249 | (grub_linux_tmp_addr, grub_linux_real_addr) | |
3250 | (grub_linux_is_bzimage, grub_linux16_boot): Declare only on | |
3251 | GRUB_MACHINE_PCBIOS. | |
3252 | * util/i386/pc/grub-mkimage.c (compress_kernel): Move | |
3253 | common grub_util_info() call to ... | |
3254 | (generate_image): ... here. | |
3255 | Fix use of uninitialized memory, comparison of signed with | |
3256 | unsigned integers and memory leak. | |
3257 | Remove bogus module address message. | |
3258 | ||
ab32d3b5 | 3259 | 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com> |
3260 | ||
3261 | * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not | |
3262 | grub_raid_register | |
3263 | * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise | |
3264 | ||
024ef597 | 3265 | 2009-06-19 Pavel Roskin <proski@gnu.org> |
3266 | ||
3267 | * configure.ac: Remove stray AC_MSG_CHECKING. | |
3268 | ||
3ac72b51 | 3269 | 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com> |
3270 | ||
3271 | * disk/scsi.c (grub_scsi_open): use continue instead of big if | |
dd74360c | 3272 | |
e14cd814 | 3273 | 2009-06-18 Pavel Roskin <proski@gnu.org> |
3274 | ||
3275 | * conf/common.rmk: Add fs_file.mod. | |
3276 | * disk/fs_file.c: New file. | |
3277 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
3278 | GRUB_DISK_DEVICE_FILE_ID. | |
3279 | ||
26586d98 | 3280 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
3281 | ||
3282 | Fix build with Apple's toolchain. Part 2 | |
3283 | ||
3284 | * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and | |
3285 | a fake start | |
3286 | ||
26de2bcd | 3287 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
3288 | ||
3289 | Fix build with Apple's toolchain. Part 1 | |
3290 | ||
3291 | * commands/i386/pc/drivemap_int13h.S: use assembly-time constants | |
3292 | for long calls | |
3293 | * configure.ac: remove a leftover AC_MSG_RESULT | |
dd74360c | 3294 | (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with |
26de2bcd | 3295 | Apple's toolchain |
3296 | ||
09b3490b | 3297 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
3298 | ||
3299 | Fix warnings | |
3300 | ||
3301 | * fs/ntfscomp.c (decomp_get16): initialize c1 and c2 | |
3302 | (decomp_block): initialize ch | |
3303 | use grub_memcpy instead of memcpy | |
3304 | ||
c22a006a | 3305 | 2009-06-17 Pavel Roskin <proski@gnu.org> |
3306 | ||
d3638678 | 3307 | * include/grub/i386/coreboot/console.h: Don't use the i386-pc |
3308 | version, use declarations needed to use vga_text as the startup | |
3309 | console. | |
3310 | ||
c22a006a | 3311 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove |
3312 | term/i386/pc/at_keyboard.c, it doesn't need to be compiled into | |
3313 | the kernel. | |
3314 | * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init() | |
3315 | and grub_at_keyboard_fini(), it's done on module load and | |
3316 | unload. | |
3317 | ||
05b129e0 | 3318 | 2009-06-17 Felix Zielcke <fzielcke@z-51.de> |
3319 | ||
3320 | * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the | |
3321 | file can't be found. | |
3322 | * loader/i386/pc/linux.c (grub_cmd_linux): Likewise. | |
3323 | ||
cf24ed9e | 3324 | 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com> |
3325 | ||
3326 | Fix newline handling | |
3327 | ||
3328 | * include/grub/script_sh.h (grub_lexer_param): new field was_newline | |
dd74360c | 3329 | * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline |
cf24ed9e | 3330 | (grub_script_yylex): don't segfault on unterminated script |
3331 | newline terminates command and variable | |
3332 | ||
74aa8e4b | 3333 | 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com> |
3334 | ||
3335 | avoid double grub_adjust_range call. Bug reported by David Simner | |
3336 | ||
3337 | * kern/disk.c (grub_disk_write): change to raw disk access before | |
3338 | calling disk_read | |
3339 | ||
1bd265f3 | 3340 | 2009-06-17 Colin Watson <cjwatson@ubuntu.com> |
3341 | ||
3342 | * util/elf/grub-mkimage.c (usage): Prefix each option line with two | |
3343 | spaces, for the benefit of help2man. | |
3344 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
3345 | ||
a2d08c06 | 3346 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
3347 | ||
3348 | * kern/i386/halt.c: Include grub/machine/init.h. | |
3349 | * kern/i386/reboot.c: Include grub/cpu/reboot.h. | |
3350 | ||
b97bcb19 | 3351 | 2009-06-16 Felix Zielcke <fzielcke@z-51.de> |
3352 | ||
3353 | * util/grub.d/30_os-prober.in: Use ${root} in the generated | |
3354 | drivemap menuentry. | |
3355 | ||
0644f96c | 3356 | 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk> |
3357 | ||
3358 | * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of | |
3359 | `echo' command. | |
3360 | ||
3ef17a2e | 3361 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
3362 | ||
3363 | * boot/i386/pc/boot.S: Remove root_drive. Assert offset of | |
3364 | boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't | |
3365 | save %dx, we only need %dl and we never change it. | |
3366 | * boot/i386/pc/cdboot.S: Don't set the root drive. | |
3367 | * boot/i386/pc/pxeboot.S: Likewise. | |
3368 | * include/grub/i386/pc/boot.h: Remove | |
3369 | GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust | |
3370 | GRUB_BOOT_MACHINE_DRIVE_CHECK. | |
3371 | * include/grub/i386/pc/kernel.h: Remove grub_root_drive. | |
3372 | * kern/i386/pc/init.c (make_install_device): Remove references | |
3373 | to grub_root_drive. | |
3374 | * kern/i386/pc/startup.S: Likewise. | |
3375 | * util/i386/pc/grub-setup.c (setup): Don't set root_drive. | |
3376 | ||
693fe637 | 3377 | 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com> |
3378 | ||
3379 | xnu_uuid command | |
3380 | ||
3381 | * commands/xnu_uuid.c: new file | |
3382 | * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod | |
3383 | (xnu_uuid_mod_SOURCES): new variable | |
3384 | (xnu_uuid_mod_CFLAGS): likewise | |
3385 | (xnu_uuid_mod_LDFLAGS): likewise | |
3386 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c | |
3387 | * conf/i386-ieee1275.rmk: likewise | |
3388 | * conf/i386-pc.rmk: likewise | |
3389 | * conf/powerpc-ieee1275.rmk: likewise | |
3390 | * conf/sparc64-ieee1275.rmk: likewise | |
3391 | * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin | |
3392 | ||
c9da87d0 | 3393 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
3394 | ||
3395 | * configure.ac: Avoid '==' in test command, it's not portable. | |
3396 | ||
9c6f4596 | 3397 | 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com> |
3398 | ||
3399 | Probe command | |
3400 | ||
3401 | * commands/probe.c: new file | |
3402 | * conf/common.rmk (pkglib_MODULES): add probe.mod | |
3403 | (probe_mod_SOURCES): new variable | |
3404 | (probe_mod_CFLAGS): likewise | |
3405 | (probe_mod_LDFLAGS): likewise | |
3406 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c | |
3407 | * conf/i386-ieee1275.rmk: likewise | |
3408 | * conf/i386-pc.rmk: likewise | |
3409 | * conf/powerpc-ieee1275.rmk: likewise | |
3410 | * conf/sparc64-ieee1275.rmk: likewise | |
3411 | ||
70b7f9fd | 3412 | 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com> |
3413 | ||
3414 | Fix handling of string like \"hello\" and "a | |
3415 | b" | |
3416 | ||
3417 | * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC | |
3418 | (grub_script_yylex): fix parsing of quoting, escaping and newline | |
3419 | ||
71c79a6b | 3420 | 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com> |
3421 | ||
dd74360c | 3422 | * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition |
71c79a6b | 3423 | handling |
dd74360c | 3424 | |
0644f96c | 3425 | 2009-06-13 Jun Inoue <jun.lambda@gmail.com> |
880fc3c4 | 3426 | |
3427 | * util/grub-mkconfig.in: Fix parsing of --output option. | |
3428 | ||
e40893c3 | 3429 | 2009-06-12 Pavel Roskin <proski@gnu.org> |
3430 | ||
3431 | * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and | |
3432 | genmk.rb don't need to be generated or installed. | |
3433 | ||
3a1acfe2 | 3434 | 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com> |
3435 | ||
3436 | * commands/i386/pc/drivemap_int13h.S: add more comments | |
3437 | ||
3a4575d4 | 3438 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
3439 | ||
0658e928 | 3440 | * Makefile.in (uninstall): Uninstall manuals. |
3441 | ||
ca0388f0 | 3442 | * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from |
3443 | PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib | |
3444 | and update-grub_lib in two places. | |
3445 | * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS. | |
3446 | ||
e3b27c39 | 3447 | * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix |
3448 | a compiler warning. | |
3449 | ||
3a4575d4 | 3450 | * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to |
3451 | `entry_lo' to fix variable shadowing. | |
3452 | ||
af1f4f55 | 3453 | 2009-06-11 Christian Franke <franke@computer.org> |
3454 | ||
3455 | * kern/misc.c (__enable_execute_stack): Add missing return type | |
3456 | to prevent gcc warning. | |
3457 | ||
5225e649 | 3458 | 2009-06-11 Felix Zielcke <fzielcke@z-51.de> |
3459 | ||
3460 | * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'. | |
3461 | ||
7d83bd47 | 3462 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
3463 | ||
c1cb63ba | 3464 | * Makefile.in: Don't rely on any scripts being executable. |
3465 | Always use $(SHELL) to run shell scripts. | |
3466 | ||
7d83bd47 | 3467 | * configure.ac: Always define ___main if using -nostdlib. This |
3468 | fixes tests on Cygwin. | |
3469 | ||
948f48e7 | 3470 | 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com> |
3471 | ||
3472 | UDF fix | |
3473 | ||
7d83bd47 | 3474 | * fs/udf.c (grub_udf_read_block): handle the fact that ad->length |
948f48e7 | 3475 | is in bytes and not in blocks |
7d83bd47 | 3476 | |
8ada9bc1 | 3477 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
3478 | ||
3479 | * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a | |
3480 | warning. | |
3481 | ||
25ad2323 | 3482 | 2009-06-11 Felix Zielcke <fzielcke@z-51.de> |
3483 | ||
3484 | * util/grub.d/30_os-prober.in: Fix a comment. Source | |
3485 | ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device | |
3486 | to set the root device. Place drivemap command in the generated | |
3487 | chain entry. | |
3488 | ||
e65acb0c | 3489 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
3490 | ||
3491 | * configure.ac: Remove host_m32. Issues with 64-bit utilities | |
3492 | have long been resolved. | |
3493 | ||
f285fe2d | 3494 | 2009-06-11 Colin Watson <cjwatson@ubuntu.com> |
3495 | ||
bd47b0b5 | 3496 | * util/grub.d/10_linux.in: Capitalise "Linux". |
3497 | ||
f285fe2d | 3498 | * util/grub-pe2elf.c (usage): Fix references to grub-editenv. |
3499 | ||
a0c62e4e | 3500 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
3501 | ||
b6783cb2 | 3502 | * kern/efi/efi.c (grub_exit): Add infinite loop at the end to |
3503 | fix a gcc warning and ensure that the function won't ever exit. | |
3504 | ||
dde032e8 | 3505 | * kern/i386/ieee1275/init.c: Add missing prototype for |
3506 | grub_stop_floppy(). | |
3507 | ||
22cd079d | 3508 | * loader/ieee1275/multiboot2.c [__i386__]: Include |
3509 | grub/cpu/multiboot.h. | |
3510 | ||
a0c62e4e | 3511 | * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid |
3512 | casts to short - they are not portable and cause warnings. Fix | |
3513 | use of uninitialized values in input_buf. Use ARRAY_SIZE. | |
3514 | ||
63963d17 | 3515 | 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com> |
3516 | ||
3517 | Drivemap fixes | |
3518 | ||
3519 | * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap): | |
3520 | new function | |
3521 | (grub_get_root_biosnumber_saved): new variable | |
3522 | (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap | |
3523 | (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap | |
775dbc4d | 3524 | * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore |
63963d17 | 3525 | %dx after the call if necessary |
3526 | * conf/common.rmk (pkglib_MODULES): remove boot.mod | |
3527 | (boot_mod_SOURCES): remove | |
3528 | (boot_mod_CFLAGS): remove | |
3529 | (boot_mod_LDFLAGS): remove | |
3530 | * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod | |
3531 | (boot_mod_SOURCES): new variable | |
3532 | (boot_mod_CFLAGS): likewise | |
3533 | (boot_mod_LDFLAGS): likewise | |
3534 | * conf/i386-efi.rmk: likewise | |
3535 | * conf/i386-ieee1275.rmk: likewise | |
3536 | * conf/i386-pc.rmk: likewise | |
3537 | * conf/powerpc-ieee1275.rmk: likewise | |
3538 | * conf/sparc64-ieee1275.rmk: likewise | |
3539 | * conf/x86_64-efi.rmk: likewise | |
3540 | * include/grub/i386/pc/biosnum.h: new file | |
3541 | * lib/i386/pc/biosnum.c: likewise | |
3542 | * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber | |
3543 | * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise | |
3544 | * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise | |
775dbc4d | 3545 | |
33abf7ae | 3546 | 2009-06-10 Pavel Roskin <proski@gnu.org> |
3547 | ||
5ac35b35 | 3548 | * io/gzio.c (test_header): Don't reuse one buffer for all data. |
3549 | Use separate variables. Read only the file size at the end, but | |
3550 | not the checksum that we don't use. | |
3551 | ||
5c5215d5 | 3552 | * kern/file.c (grub_file_read): Use void pointer for the buffer. |
3553 | Adjust all callers. | |
3554 | ||
27d5fef7 | 3555 | * kern/ieee1275/openfw.c: Remove libc includes. |
3556 | * kern/ieee1275/cmain.c: Likewise. | |
3557 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
3558 | ||
33abf7ae | 3559 | * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix |
3560 | compiler warnings. | |
3561 | ||
19d50c2b | 3562 | 2009-06-10 Felix Zielcke <fzielcke@z-51.de> |
3563 | ||
3564 | * Makefile.in: Remove all trailing whitespace. | |
3565 | * conf/i386-pc.rmk: Likewise. | |
3566 | * conf/powerpc-ieee1275.rmk: Likewise. | |
3567 | * conf/sparc64-ieee1275.rmk: Likewise. | |
3568 | * docs/grub.texi: Likewise. | |
3569 | * docs/texinfo.tex: Likewise. | |
3570 | * disk/fs_uuid.c: Likewise. | |
3571 | * disk/lvm.c: Likewise. | |
3572 | * disk/scsi.c: Likewise. | |
3573 | * disk/ata.c: Likewise. | |
3574 | * disk/ieee1275/ofdisk.c: Likewise. | |
3575 | * disk/i386/pc/biosdisk.c: Likewise. | |
3576 | * disk/host.c: Likewise. | |
3577 | * disk/raid.c: Likewise. | |
3578 | * disk/efi/efidisk.c: Likewise. | |
3579 | * disk/usbms.c: Likewise. | |
3580 | * disk/memdisk.c: Likewise. | |
3581 | * disk/loopback.c: Likewise. | |
3582 | * kern/powerpc/dl.c: Likewise. | |
3583 | * kern/device.c: Likewise. | |
3584 | * kern/dl.c: Likewise. | |
3585 | * kern/sparc64/dl.c: Likewise. | |
3586 | * kern/ieee1275/ieee1275.c: Likewise. | |
3587 | * kern/term.c: Likewise. | |
3588 | * kern/fs.c: Likewise. | |
3589 | * kern/i386/dl.c: Likewise. | |
3590 | * kern/i386/pc/startup.S: Likewise. | |
3591 | * kern/i386/pc/init.c: Likewise. | |
3592 | * kern/i386/pc/mmap.c: Likewise. | |
3593 | * kern/i386/pc/lzo1x.S: Likewise. | |
3594 | * kern/i386/ieee1275/init.c: Likewise. | |
3595 | * kern/i386/realmode.S: Likewise. | |
3596 | * kern/i386/tsc.c: Likewise. | |
3597 | * kern/partition.c: Likewise. | |
3598 | * kern/corecmd.c: Likewise. | |
3599 | * kern/file.c: Likewise. | |
3600 | * kern/efi/efi.c: Likewise. | |
3601 | * kern/efi/init.c: Likewise. | |
3602 | * kern/efi/mm.c: Likewise. | |
3603 | * kern/main.c: Likewise. | |
3604 | * kern/err.c: Likewise. | |
3605 | * kern/env.c: Likewise. | |
3606 | * kern/disk.c: Likewise. | |
3607 | * kern/generic/millisleep.c: Likewise. | |
3608 | * kern/generic/rtc_get_time_ms.c: Likewise. | |
3609 | * kern/misc.c: Likewise. | |
3610 | * kern/parser.c: Likewise. | |
3611 | * genmk.rb: Likewise. | |
3612 | * configure.ac: Likewise. | |
3613 | * boot/i386/pc/diskboot.S: Likewise. | |
3614 | * boot/i386/pc/pxeboot.S: Likewise. | |
3615 | * boot/i386/pc/boot.S: Likewise. | |
3616 | * boot/i386/pc/lnxboot.S: Likewise. | |
3617 | * boot/i386/pc/cdboot.S: Likewise. | |
3618 | * parttool/pcpart.c: Likewise. | |
3619 | * video/readers/tga.c: Likewise. | |
3620 | * video/video.c: Likewise. | |
3621 | * video/bitmap.c: Likewise. | |
3622 | * lib/envblk.c: Likewise. | |
3623 | * lib/i386/setjmp.S: Likewise. | |
3624 | * fs/xfs.c: Likewise. | |
3625 | * fs/afs.c: Likewise. | |
3626 | * fs/fat.c: Likewise. | |
3627 | * fs/ntfs.c: Likewise. | |
3628 | * fs/udf.c: Likewise. | |
3629 | * fs/affs.c: Likewise. | |
3630 | * fs/iso9660.c: Likewise. | |
3631 | * fs/hfs.c: Likewise. | |
3632 | * fs/fshelp.c: Likewise. | |
3633 | * fs/ext2.c: Likewise. | |
3634 | * fs/jfs.c: Likewise. | |
3635 | * fs/reiserfs.c: Likewise. | |
3636 | * fs/hfsplus.c: Likewise. | |
3637 | * fs/minix.c: Likewise. | |
3638 | * fs/cpio.c: Likewise. | |
3639 | * fs/sfs.c: Likewise. | |
3640 | * fs/ufs.c: Likewise. | |
3641 | * efiemu/prepare.c: Likewise. | |
3642 | * efiemu/loadcore_common.c: Likewise. | |
3643 | * efiemu/runtime/efiemu.sh: Likewise. | |
3644 | * efiemu/runtime/efiemu.S: Likewise. | |
3645 | * efiemu/runtime/efiemu.c: Likewise. | |
3646 | * efiemu/pnvram.c: Likewise. | |
3647 | * efiemu/main.c: Likewise. | |
3648 | * efiemu/i386/pc/cfgtables.c: Likewise. | |
3649 | * efiemu/i386/loadcore64.c: Likewise. | |
3650 | * efiemu/i386/loadcore32.c: Likewise. | |
3651 | * efiemu/loadcore.c: Likewise. | |
3652 | * efiemu/symbols.c: Likewise. | |
3653 | * efiemu/mm.c: Likewise. | |
3654 | * include/grub/autoefi.h: Likewise. | |
3655 | * include/grub/datetime.h: Likewise. | |
3656 | * include/grub/term.h: Likewise. | |
3657 | * include/grub/hfs.h: Likewise. | |
3658 | * include/grub/lvm.h: Likewise. | |
3659 | * include/grub/i386/tsc.h: Likewise. | |
3660 | * include/grub/i386/linux.h: Likewise. | |
3661 | * include/grub/i386/xnu.h: Likewise. | |
3662 | * include/grub/i386/efiemu.h: Likewise. | |
3663 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
3664 | * include/grub/i386/pc/memory.h: Likewise. | |
3665 | * include/grub/i386/pc/vbe.h: Likewise. | |
3666 | * include/grub/parttool.h: Likewise. | |
3667 | * include/grub/video.h: Likewise. | |
3668 | * include/grub/memory.h: Likewise. | |
3669 | * include/grub/fs.h: Likewise. | |
3670 | * include/grub/partition.h: Likewise. | |
3671 | * include/grub/xnu.h: Likewise. | |
3672 | * include/grub/efi/api.h: Likewise. | |
3673 | * include/grub/efi/pe32.h: Likewise. | |
3674 | * include/grub/efi/memory.h: Likewise. | |
3675 | * include/grub/multiboot.h: Likewise. | |
3676 | * include/grub/usbdesc.h: Likewise. | |
3677 | * include/grub/multiboot2.h: Likewise. | |
3678 | * include/grub/acpi.h: Likewise. | |
3679 | * include/grub/efiemu/efiemu.h: Likewise. | |
3680 | * include/grub/disk.h: Likewise. | |
3681 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
3682 | * include/grub/net.h: Likewise. | |
3683 | * include/grub/machoload.h: Likewise. | |
3684 | * include/grub/macho.h: Likewise. | |
3685 | * include/multiboot.h: Likewise. | |
3686 | * genmoddep.awk: Likewise. | |
3687 | * normal/main.c: Likewise. | |
3688 | * normal/menu_entry.c: Likewise. | |
3689 | * normal/menu_viewer.c: Likewise. | |
3690 | * normal/completion.c: Likewise. | |
3691 | * normal/cmdline.c: Likewise. | |
3692 | * normal/misc.c: Likewise. | |
3693 | * normal/datetime.c: Likewise. | |
3694 | * bus/usb/usbtrans.c: Likewise. | |
3695 | * bus/usb/ohci.c: Likewise. | |
3696 | * bus/usb/uhci.c: Likewise. | |
3697 | * bus/usb/usb.c: Likewise. | |
3698 | * mmap/efi/mmap.c: Likewise. | |
3699 | * mmap/i386/pc/mmap_helper.S: Likewise. | |
3700 | * mmap/i386/pc/mmap.c: Likewise. | |
3701 | * mmap/i386/mmap.c: Likewise. | |
3702 | * mmap/i386/uppermem.c: Likewise. | |
3703 | * mmap/mmap.c: Likewise. | |
3704 | * commands/acpi.c: Likewise. | |
3705 | * commands/echo.c: Likewise. | |
3706 | * commands/blocklist.c: Likewise. | |
3707 | * commands/loadenv.c: Likewise. | |
3708 | * commands/usbtest.c: Likewise. | |
3709 | * commands/boot.c: Likewise. | |
3710 | * commands/parttool.c: Likewise. | |
3711 | * commands/search.c: Likewise. | |
3712 | * commands/cat.c: Likewise. | |
3713 | * commands/i386/pc/play.c: Likewise. | |
3714 | * commands/i386/pc/drivemap.c: Likewise. | |
3715 | * commands/i386/pc/vbeinfo.c: Likewise. | |
3716 | * commands/i386/pc/acpi.c: Likewise. | |
3717 | * commands/i386/pc/vbetest.c: Likewise. | |
3718 | * commands/ls.c: Likewise. | |
3719 | * commands/cmp.c: Likewise. | |
3720 | * commands/test.c: Likewise. | |
3721 | * commands/efi/acpi.c: Likewise. | |
3722 | * commands/gptsync.c: Likewise. | |
3723 | * commands/help.c: Likewise. | |
3724 | * partmap/amiga.c: Likewise. | |
3725 | * partmap/apple.c: Likewise. | |
3726 | * partmap/acorn.c: Likewise. | |
3727 | * partmap/pc.c: Likewise. | |
3728 | * partmap/sun.c: Likewise. | |
3729 | * partmap/gpt.c: Likewise. | |
3730 | * script/sh/lexer.c: Likewise. | |
3731 | * script/sh/function.c: Likewise. | |
3732 | * font/font.c: Likewise. | |
3733 | * font/font_cmd.c: Likewise. | |
3734 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
3735 | * loader/efi/chainloader.c: Likewise. | |
3736 | * loader/multiboot_loader.c: Likewise. | |
3737 | * loader/macho.c: Likewise. | |
3738 | * loader/i386/multiboot.c: Likewise. | |
3739 | * loader/i386/linux.c: Likewise. | |
3740 | * loader/i386/pc/linux.c: Likewise. | |
3741 | * loader/i386/pc/multiboot2.c: Likewise. | |
3742 | * loader/i386/pc/chainloader.c: Likewise. | |
3743 | * loader/i386/pc/xnu.c: Likewise. | |
3744 | * loader/i386/bsd_trampoline.S: Likewise. | |
3745 | * loader/i386/efi/linux.c: Likewise. | |
3746 | * loader/i386/multiboot_elfxx.c: Likewise. | |
3747 | * loader/i386/bsd_helper.S: Likewise. | |
3748 | * loader/i386/bsd.c: Likewise. | |
3749 | * loader/i386/linux_trampoline.S: Likewise. | |
3750 | * loader/i386/xnu_helper.S: Likewise. | |
3751 | * loader/i386/xnu.c: Likewise. | |
3752 | * loader/i386/bsd_pagetable.c: Likewise. | |
3753 | * loader/i386/multiboot_helper.S: Likewise. | |
3754 | * loader/xnu.c: Likewise. | |
3755 | * loader/xnu_resume.c: Likewise. | |
3756 | * io/gzio.c: Likewise. | |
3757 | * term/efi/console.c: Likewise. | |
3758 | * term/terminfo.c: Likewise. | |
3759 | * term/ieee1275/ofconsole.c: Likewise. | |
3760 | * term/i386/pc/serial.c: Likewise. | |
3761 | * term/i386/pc/vesafb.c: Likewise. | |
3762 | * term/i386/pc/vga.c: Likewise. | |
3763 | * term/usb_keyboard.c: Likewise. | |
3764 | * term/gfxterm.c: Likewise. | |
3765 | * aclocal.m4: Likewise. | |
3766 | * util/lvm.c: Likewise. | |
3767 | * util/grub.d/30_os-prober.in: Likewise. | |
3768 | * util/grub.d/10_hurd.in: Likewise. | |
3769 | * util/console.c: Likewise. | |
3770 | * util/grub-macho2img.c: Likewise. | |
3771 | * util/grub-probe.c: Likewise. | |
3772 | * util/hostfs.c: Likewise. | |
3773 | * util/i386/pc/grub-mkimage.c: Likewise. | |
3774 | * util/i386/pc/grub-setup.c: Likewise. | |
3775 | * util/i386/efi/grub-mkimage.c: Likewise. | |
3776 | * util/grub-mkconfig.in: Likewise. | |
3777 | * util/raid.c: Likewise. | |
3778 | * util/resolve.c: Likewise. | |
3779 | * util/grub-mkdevicemap.c: Likewise. | |
3780 | * util/grub-emu.c: Likewise. | |
3781 | * util/getroot.c: Likewise. | |
3782 | * util/hostdisk.c: Likewise. | |
3783 | * util/usb.c: Likewise. | |
3784 | * util/grub-editenv.c: Likewise. | |
3785 | * util/misc.c: Likewise. | |
3786 | ||
d2d49665 | 3787 | 2009-06-10 Felix Zielcke <fzielcke@z-51.de> |
3788 | ||
3789 | * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and | |
3790 | `genparttoollist.sh'. | |
3791 | (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'. | |
3792 | Add `*.sh' to the list find searches for and change `mdate.sh' | |
3793 | to `mdate-sh'. | |
3794 | ||
fe052e37 | 3795 | 2009-06-10 Pavel Roskin <proski@gnu.org> |
3796 | ||
2763ac18 | 3797 | * include/grub/multiboot2.h: Provide compatibility defines for |
3798 | multiboot2.h. | |
3799 | * include/multiboot2.h: Include stdint.h only if needed, using | |
3800 | angle brackets. | |
3801 | * loader/i386/pc/multiboot2.c: Include multiboot2.h after | |
3802 | grub/multiboot2.h. | |
3803 | * loader/ieee1275/multiboot2.c: Likewise. | |
3804 | * loader/multiboot2.c: Likewise. | |
3805 | * loader/multiboot_loader.c: Likewise. | |
3806 | ||
437e6adc | 3807 | * configure.ac: Use -nostdlib when probing for the target. It |
3808 | should not be required to have libc for the target. | |
3809 | ||
06a6836c | 3810 | * configure.ac: Remove checks for __bswapsi2 and __bswapdi2, |
3811 | they fail without libc headers for the target. | |
3812 | * include/grub/powerpc/libgcc.h: Use weak attribute for all | |
3813 | exports. | |
3814 | * include/grub/sparc64/libgcc.h: Likewise. Don't use | |
3815 | preprocessor conditionals. | |
3816 | ||
fe052e37 | 3817 | * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The |
3818 | build system doesn't need to be aware of the tar.c internals. | |
3819 | ||
afd22553 | 3820 | 2009-06-09 Michel Hermier <michel.hermier@gmail.com> |
87b8f28c | 3821 | |
afd22553 | 3822 | * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values. |
8ec4a6d0 | 3823 | |
6b787c4f | 3824 | 2009-06-09 Robert Millan <rmh.grub@aybabtu.com> |
3825 | ||
3826 | * util/deviceiter.c (grub_util_iterate_devices): Increase number of | |
3827 | disk limit to 26 for IDE, Virtio, Xen and SCSI. | |
3828 | ||
3829 | 2009-06-09 Felix Zielcke <fzielcke@z-51.de> | |
3830 | ||
3831 | * util/i386/pc/grub-install.in: Change the error message if UUIDs | |
473d1e45 | 3832 | aren't available if ata.mod gets used. |
6b787c4f | 3833 | |
473d1e45 | 3834 | 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com> |
e23721e8 | 3835 | |
473d1e45 | 3836 | * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after |
e23721e8 | 3837 | initialising controller. |
473d1e45 | 3838 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. |
e23721e8 | 3839 | |
255a27d4 | 3840 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
3841 | ||
3842 | * util/i386/pc/grub-install.in: Add a parameter --disk-module | |
3843 | to choose between ata and biosdisk module on i386-pc. | |
3844 | ||
473d1e45 | 3845 | 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com> |
69da8877 | 3846 | |
d55842d8 | 3847 | * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class, |
3848 | Subclass and Programming Interface fields in terms of the 3 byte | |
3849 | Class Code register. | |
3850 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. | |
3851 | ||
fa5db0b1 | 3852 | * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming |
3853 | interface is OHCI. Add grub_dprintf for symmetry with | |
3854 | bus/usb/uhci.c. | |
3855 | * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming | |
3856 | interface is UHCI. Add interf variable for programming | |
3857 | interface. Print interface with class/subclass. | |
3858 | ||
c0947beb | 3859 | * bus/usb/ohci.c: Set interf with correct field. |
3860 | ||
69da8877 | 3861 | * bus/usb/uhci.c: Remove unneeded doubled lines. |
3862 | * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t. | |
3863 | Remove whitespace inside comment. | |
3864 | ||
9e172e30 | 3865 | 2009-06-08 Robert Millan <rmh.grub@aybabtu.com> |
3866 | ||
3867 | * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use | |
3868 | as fallback an equivalent option without depth. | |
3869 | ||
de65ee2b | 3870 | 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com> |
3871 | ||
3872 | Not fail if unable to retrieve C/H/S on LBA disks | |
3873 | ||
473d1e45 | 3874 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully |
de65ee2b | 3875 | if unable to retrieve C/H/S on LBA disks |
3876 | ||
b57ea2c9 | 3877 | 2009-06-08 Pavel Roskin <proski@gnu.org> |
3878 | ||
3879 | * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning | |
3880 | about aliasing. | |
3881 | ||
af361263 | 3882 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
3883 | ||
3884 | * Makefile.in (uninstall): Remove all $lib_DATA files. | |
3885 | ||
4c9ec6b3 | 3886 | 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com> |
3887 | ||
3888 | Bugfix: install on partitionless device | |
3889 | ||
3890 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev | |
3891 | is a whole disk | |
3892 | ||
e76fc924 | 3893 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
3894 | ||
3895 | * Makefile.in (uninstall): Remove all $include_DATA files. | |
3896 | ||
ba5a0d05 | 3897 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
3898 | ||
3899 | * commands/true.c: New file. Implement the true and false commands. | |
3900 | * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'. | |
3901 | (true_mod_SOURCES): New variable. | |
3902 | (true_mod_CFLAGS): Likewise. | |
3903 | (true_mod_LDFLAGS): Likewise. | |
3904 | ||
c8048e32 | 3905 | 2009-06-05 Colin D Bennett <colin@gibibit.com> |
3906 | ||
3907 | Optimized font character lookup using binary search instead of linear | |
3908 | search. Fonts now are required to have the character index ordered by | |
3909 | code point. | |
3910 | ||
3911 | * font/font.c (load_font_index): Verify that fonts have ordered | |
3912 | character indices. | |
3913 | (find_glyph): Use binary search instead of linear search to find a | |
3914 | character in a font. | |
3915 | ||
408305be | 3916 | 2009-06-05 Michael Scherer <misc@mandriva.org> |
3917 | ||
3918 | * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem | |
3919 | uses case sensitive btree. | |
3920 | (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE | |
3921 | only for case insensitive filesystems. | |
3922 | ||
8ee1e0d9 | 3923 | 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com> |
3924 | ||
3925 | * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall | |
3926 | * conf/common.rmk (search_mod_CFLAGS): likewise | |
3927 | ||
a9966eb1 | 3928 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3929 | ||
473d1e45 | 3930 | * kern/i386/pc/startup.S [APPLE_CC]: block of nops to |
a9966eb1 | 3931 | compensate a compiler bug |
3932 | ||
9e7100fb | 3933 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3934 | ||
473d1e45 | 3935 | * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8 |
9e7100fb | 3936 | instead of '\b' |
473d1e45 | 3937 | |
ede21d71 | 3938 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3939 | ||
3940 | Definitions for creating asm symbols with Apple's CC | |
3941 | ||
3942 | * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro | |
3943 | [APPLE_CC] (VARIABLE): likewise | |
3944 | ||
9dbf7653 | 3945 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3946 | ||
3947 | Disable lnxboot.img when compiled | |
3948 | with Apple's CC | |
3949 | ||
3950 | * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img | |
3951 | pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img | |
3952 | * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error | |
3953 | [! APPLE_CC] (CODE_LENG): skip | |
3954 | [! APPLE_CC] (setup_sects): likewise | |
3955 | [! APPLE_CC]: skip filling | |
473d1e45 | 3956 | |
e93cdc3d | 3957 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3958 | ||
3959 | Address in trampolines based on 32-bit registers when compiled | |
3960 | with Apple's CC | |
3961 | ||
473d1e45 | 3962 | * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers |
e93cdc3d | 3963 | for addresses |
3964 | * loader/i386/linux_trampoline.S [APPLE_CC]: likewise | |
3965 | ||
6c688477 | 3966 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3967 | ||
3968 | Avoid aliases when compiling with Apple's CC for PCBIOS machine | |
3969 | ||
3970 | * kern/misc.c [APPLE_CC] (memcpy): new function | |
3971 | [APPLE_CC] (memmove): likewise | |
3972 | [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise | |
473d1e45 | 3973 | (memcpy): define alias conditionally on !APPLE_CC |
6c688477 | 3974 | (memset): likewise |
3975 | (abort): likewise | |
3976 | * include/grub/misc.h (memove): don't define when both GRUB_UTIL and | |
3977 | APPLE_CC are defined | |
3978 | * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function | |
3979 | (grub_assert_fail): make prototype conditional | |
3980 | ||
e37ffc5c | 3981 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3982 | ||
3983 | Use grub-macho2img when compiling with Apple's CC for PCBIOS machine | |
3984 | ||
473d1e45 | 3985 | * conf/common.rmk (bin_UTILITIES): add (on false on condition) |
3986 | grub-macho2img | |
e37ffc5c | 3987 | (CLEANFILES): add grub-macho2img |
3988 | (grub_macho2img_SOURCES): new variable | |
3989 | * kern/i386/pc/startup.S (bss_start): new variable | |
3990 | (bss_end): likewise | |
3991 | * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC | |
3992 | * util/grub-macho2img.c: new file | |
3993 | ||
cf00df31 | 3994 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
3995 | ||
3996 | Use objconv when compiling with Apple's CC | |
3997 | ||
3998 | * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined | |
3999 | (efiemu64.o): likewise | |
4000 | (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1 | |
4001 | when compiling with Apple's CC | |
4002 | (efiemu64_s.o): likewise | |
4003 | * configure.ac: check for objconv when compiling with Apple's CC | |
4004 | * genmk.rb: use objconv for modules when compiled with Apple's CC | |
473d1e45 | 4005 | |
d119a20c | 4006 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4007 | ||
4008 | Define segment as well as section when compiling with | |
4009 | Apple's CC | |
4010 | ||
4011 | * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition | |
4012 | (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE | |
4013 | (efiemu_convert_pointer): likewise | |
4014 | (efiemu_set_virtual_address_map): likewise | |
4015 | (efiemu_convert_pointer): likewise | |
4016 | (efiemu_getcrc32): likewise | |
4017 | (init_crc32_table): likewise | |
4018 | (reflect): likewise | |
4019 | * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC | |
4020 | (GRUB_MOD_DEP): likewise | |
473d1e45 | 4021 | |
c8600122 | 4022 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4023 | ||
4024 | Allow a compilation without -mcmodel=large | |
4025 | ||
4026 | * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB | |
4027 | when compiled without -mcmodel=large | |
473d1e45 | 4028 | (filter_memory_map): remove memory post 4 GiB when compiled |
c8600122 | 4029 | without -mcmodel=large |
473d1e45 | 4030 | * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to |
c8600122 | 4031 | TARGET_CFLAGS when -mcmodel=large isn't supported |
473d1e45 | 4032 | |
e8df1d4e | 4033 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4034 | ||
4035 | Remove nested functions in efiemu core | |
4036 | ||
4037 | * efiemu/runtime/efiemu.c (reflect): make static instead of nested | |
473d1e45 | 4038 | |
cc6c3ac1 | 4039 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4040 | ||
4041 | Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC | |
4042 | ||
4043 | * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as | |
4044 | temporary storage | |
473d1e45 | 4045 | * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when |
4046 | using Apple's CC | |
cc6c3ac1 | 4047 | (grub_cpu_is_tsc_supported): likewise |
4048 | * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly | |
473d1e45 | 4049 | |
3e325901 | 4050 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4051 | ||
4052 | Absolute addressing through constant with Apple's cc | |
4053 | ||
4054 | * kern/i386/pc/startup.S: Define necessary constants | |
4055 | and address through it when using ABS with Apple's CC | |
4056 | * boot/i386/pc/diskboot.S: likewise | |
4057 | * boot/i386/pc/boot.S: likewise | |
4058 | * boot/i386/pc/lnxboot.S: likewise | |
4059 | * boot/i386/pc/cdboot.S: likewise | |
4060 | * mmap/i386/pc/mmap_helper.S: likewise | |
4061 | * commands/i386/pc/drivemap_int13h.S: likewise | |
4062 | ||
2b167a72 | 4063 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4064 | ||
4065 | Check if compiler is apple cc | |
4066 | ||
4067 | * Makefile.in (ASFLAGS): new variable | |
4068 | (TARGET_ASFLAGS): likewise | |
4069 | (TARGET_MODULE_FORMAT): likewise | |
4070 | (TARGET_APPLE_CC): likewise | |
4071 | (OBJCONV): likewise | |
4072 | (TARGET_IMG_CFLAGS): likewise | |
4073 | (TARGET_CPPFLAGS): add includedir | |
4074 | * configure.ac: call grub_apple_cc and grub_apple_target_cc | |
4075 | (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated | |
4076 | Check for linker script only if compiler isn't Apple's CC | |
4077 | (TARGET_MODULE_FORMAT): set | |
4078 | (TARGET_APPLE_CC): likewise | |
4079 | (TARGET_ASFLAGS): likewise | |
4080 | (ASFLAGS): likewise | |
4081 | Check for objcopy only if compiler isn't Apple's CC | |
4082 | Check for BSS symbol only if compiler isn't Apple's CC | |
4083 | * genmk.rb: adapt nm options if we use Apple's utils | |
4084 | * aclocal.m4 (grub_apple_cc): new test | |
4085 | (grub_apple_target_cc): likewise | |
473d1e45 | 4086 | |
fb14123e | 4087 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4088 | ||
4089 | Simplify sed expressions and improve awk | |
4090 | ||
4091 | * Makefile.in (install-local): simplify sed expression | |
4092 | * gencmdlist.sh: likewise | |
4093 | * genmoddep.awk: avoid adding module as a dependency of itself | |
4094 | ||
5b889789 | 4095 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4096 | ||
4097 | Add missing start symbols | |
4098 | ||
4099 | * boot/i386/pc/boot.S: add start | |
fb14123e | 4100 | * boot/i386/pc/pxeboot.S: likewise |
473d1e45 | 4101 | |
fd2bf2e3 | 4102 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4103 | ||
4104 | Fix wrong assumptions with grub-mkimage on EFI | |
473d1e45 | 4105 | |
4106 | * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here | |
fd2bf2e3 | 4107 | (relocate_addresses): consider both r_addend and value at offset |
4108 | (make_mods_section): zerofill modinfo and header | |
4109 | (convert_elf): write prefix here | |
473d1e45 | 4110 | |
5389763d | 4111 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4112 | ||
4113 | Use .asciz instead of .string | |
4114 | ||
4115 | * i386/pc/diskboot.S: use .asciz instead of .string | |
4116 | * i386/pc/boot.S: likewise | |
4117 | * include/grub/dl.h (GRUB_MOD_DEP): likewise | |
4118 | (GRUB_MOD_NAME): likewise | |
473d1e45 | 4119 | |
3eb5ed4e | 4120 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4121 | ||
4122 | gfxpayload support | |
4123 | ||
4124 | * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode | |
4125 | * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition | |
4126 | (grub_video_setup): remove | |
4127 | (grub_video_set_mode): new prototype | |
4128 | * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition | |
4129 | (vid_mode): remove | |
4130 | (linux_vesafb_res): compile only on PCBIOS | |
4131 | (grub_linux_boot): support gfxpayload | |
4132 | * loader/i386/pc/xnu.c (video_hook): new function | |
4133 | (grub_xnu_set_video): support gfxpayload | |
4134 | * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed | |
4135 | (DEFAULT_VIDEO_HEIGHT): likewise | |
4136 | (DEFAULT_VIDEO_FLAGS): likewise | |
4137 | (DEFAULT_VIDEO_MODE): new definition | |
4138 | (video_hook): new function | |
4139 | (grub_gfxterm_init): use grub_video_set_mode | |
473d1e45 | 4140 | * util/grub.d/30_os-prober.in: remove explicit modesetting before |
3eb5ed4e | 4141 | loading xnu |
4142 | * video/video.c (grub_video_setup): removed | |
473d1e45 | 4143 | (grub_video_set_mode): new function based on grub_gfxterm_init and |
3eb5ed4e | 4144 | grub_video_setup |
4145 | ||
4b0e1143 | 4146 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4147 | ||
4148 | Avoid calling biosdisk in drivemap | |
4149 | ||
4150 | * commands/i386/pc/drivemap.c (parse_biosdisk): remove | |
4151 | (revparse_biosdisk): likewise | |
4152 | (list_mappings): derive name from id directly | |
4153 | (grub_cmd_drivemap): use tryparse_diskstring | |
473d1e45 | 4154 | |
fda6cb98 | 4155 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
4156 | ||
4157 | Script fixes | |
4158 | ||
4159 | * include/grub/script_sh.h (grub_script_cmdline): remove cmdline | |
4160 | (grub_lexer_param): add tokenonhold | |
4161 | (grub_script_create_cmdline): remove cmdline. All callers updated | |
4162 | (grub_script_function_create): make functionname | |
4163 | grub_script_arg. All callers updated | |
4164 | (grub_script_execute_argument_to_string): new prototype | |
4165 | * kern/parser.c (state_transitions): reorder | |
4166 | (grub_parser_cmdline_state): fix a bug and make more compact | |
473d1e45 | 4167 | * script/sh/execute.c (grub_script_execute_argument_to_string): |
fda6cb98 | 4168 | make global |
4169 | (grub_script_execute_cmdline): use new format | |
4170 | * script/sh/function.c (grub_script_function_create): make functionname | |
4171 | grub_script_arg. All callers updated | |
473d1e45 | 4172 | * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold |
fda6cb98 | 4173 | (grub_script_yylex): remove |
4174 | (grub_script_yylex2): renamed to ... | |
4175 | (grub_script_yylex): ...renamed | |
4176 | parse the expressions like a${b}c | |
4177 | * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal | |
4178 | (GRUB_PARSER_TOKEN_VAR): remove | |
4179 | (GRUB_PARSER_TOKEN_NAME): likewise | |
4180 | ("if"): declare as typeless | |
4181 | ("while"): likewise | |
4182 | ("function"): likewise | |
4183 | ("else"): likewise | |
4184 | ("then"): likewise | |
4185 | ("fi"): likewise | |
4186 | (text): remove | |
4187 | (argument): likewise | |
4188 | (script): accept empty scripts and make exit on error | |
4189 | (arguments): use GRUB_PARSER_TOKEN_ARG | |
4190 | (function): likewise | |
4191 | (command): move error handling to script | |
4192 | (menuentry): move grub_script_lexer_ref before | |
473d1e45 | 4193 | * script/sh/script.c (grub_script_create_cmdline): remove cmdline |
fda6cb98 | 4194 | argument. All callers updated |
4195 | ||
f4448a07 | 4196 | 2009-06-04 Robert Millan <rmh.grub@aybabtu.com> |
4197 | ||
4198 | Prevent GRUB from probing floppies during boot. | |
4199 | ||
4200 | * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'. | |
4201 | * commands/search.c (options): Add --no-floppy. | |
4202 | (search_fs, search_file, grub_cmd_search): Support --no-floppy. | |
4203 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use | |
4204 | --no-floppy when searching for UUIDs. | |
4205 | ||
2bf5885a | 4206 | 2009-06-04 Robert Millan <rmh.grub@aybabtu.com> |
4207 | ||
4208 | Simplify the code duplication in commands/search.c. | |
4209 | ||
4210 | * commands/search.c (search_label, search_fs_uuid): Merge into ... | |
4211 | (search_fs): ... this. Update all users. | |
4212 | ||
f6fd460a | 4213 | 2009-06-03 Felix Zielcke <fzielcke@z-51.de> |
4214 | ||
4215 | * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir. | |
4216 | ||
cbb3c83e | 4217 | 2009-05-28 Pavel Roskin <proski@gnu.org> |
4218 | ||
57788cfd | 4219 | * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD. |
4220 | Remove the original symlink explicitly. | |
4221 | ||
cbb3c83e | 4222 | * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not |
4223 | just one slash. That's how grub_fshelp_find_file() does it. | |
4224 | ||
cd0d5e30 | 4225 | 2009-05-26 Pavel Roskin <proski@gnu.org> |
4226 | ||
f0f8bbe2 | 4227 | * genmk.rb: Avoid shadowing variable `s', rename the outer `s' |
4228 | to `str'. | |
4229 | ||
cd0d5e30 | 4230 | * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as |
4231 | possibly unused. | |
4232 | ||
8c2cab51 | 4233 | 2009-05-25 Christian Franke <franke@computer.org> |
4234 | ||
4235 | * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status | |
4236 | register. | |
4237 | (grub_atapi_identify): Add wait after drive select. | |
4238 | (grub_ata_identify): Do more strict status register check before | |
4239 | calling grub_atapi_identify (). Suppress error message if status | |
4240 | register is 0x00 after command failure. Add status register | |
4241 | check after PIO read to avoid bogus identify due to stuck DRQ. | |
4242 | Thanks to Pavel Roskin for testing. | |
4243 | (grub_device_initialize): Remove unsafe status register check. | |
4244 | Thanks to 'phcoder' for problem report and patch. | |
4245 | Prevent sign extension in debug message. | |
4246 | ||
230c0ad6 | 4247 | 2009-05-23 Colin D Bennett <colin@gibibit.com> |
4248 | ||
4249 | Cleaned up `include/grub/normal.h'. Grouped prototypes by | |
4250 | definition file, and functions defined in `normal/menu.c' have had | |
4251 | their prototypes moved to `include/grub/menu.h' for consistency. | |
4252 | ||
4253 | * include/grub/menu.h (grub_menu_execute_callback): Added; moved | |
4254 | from normal.h. | |
4255 | (grub_menu_get_entry): Likewise. | |
4256 | (grub_menu_get_timeout): Likewise. | |
4257 | (grub_menu_set_timeout): Likewise. | |
4258 | (grub_menu_execute_entry): Likewise. | |
4259 | (grub_menu_execute_with_fallback): Likewise. | |
4260 | (grub_menu_entry_run): Likewise. | |
4261 | ||
4262 | * include/grub/normal.h: Re-ordered and grouped function | |
4263 | prototypes by file that the function is defined in. | |
4264 | (grub_menu_execute_callback): Removed; moved to menu.h. | |
4265 | (grub_menu_get_entry): Likewise. | |
4266 | (grub_menu_get_timeout): Likewise. | |
4267 | (grub_menu_set_timeout): Likewise. | |
4268 | (grub_menu_execute_entry): Likewise. | |
4269 | (grub_menu_execute_with_fallback): Likewise. | |
4270 | (grub_menu_entry_run): Likewise. | |
4271 | (grub_menu_addentry): Renamed from this ... | |
4272 | (grub_normal_add_menu_entry): ... to this. | |
4273 | ||
4274 | * normal/main.c (grub_menu_addentry): Renamed from this ... | |
4275 | (grub_normal_add_menu_entry): ... to this. | |
4276 | ||
4277 | * script/sh/execute.c (grub_script_execute_menuentry): Update | |
4278 | reference to renamed grub_menu_addentry function. | |
4279 | ||
861f03a5 | 4280 | 2009-05-23 Felix Zielcke <fzielcke@z-51.de> |
4281 | ||
4282 | * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users. | |
4283 | ||
96b1619a | 4284 | 2009-05-22 Pavel Roskin <proski@gnu.org> |
4285 | ||
bf6a5fb2 | 4286 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove. |
4287 | * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define | |
4288 | NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when | |
4289 | compiling for the i386 targets, but not for the utilities. | |
4290 | ||
96b1619a | 4291 | * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type |
4292 | to grub_uint8_t. | |
4293 | (grub_root_drive): Likewise. | |
4294 | * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte, | |
4295 | remove alignment. | |
4296 | (grub_root_drive): Change size to byte. | |
4297 | (grub_start_addr): Remove. | |
4298 | (grub_end_addr): Likewise. | |
4299 | (grub_apm_bios_info): Likewise. | |
4300 | ||
b729776b | 4301 | 2009-05-21 Felix Zielcke <fzielcke@z-51.de> |
4302 | ||
4303 | * normal/i386: Remove. | |
4304 | * normal/powerpc: Likewise. | |
4305 | * normal/sparc64: Likewise. | |
4306 | * normal/x86_64: Likewise. | |
4307 | ||
0a15ce80 | 4308 | 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com> |
4309 | ||
4310 | * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable | |
473d1e45 | 4311 | * loader/i386/linux_trampoline.S: Fix indentation |
0a15ce80 | 4312 | * loader/i386/xnu_helper.S: Likewise |
d6da58e6 | 4313 | |
33db9015 | 4314 | 2009-05-18 Colin D Bennett <colin@gibibit.com> |
4315 | ||
d6da58e6 | 4316 | Display error messages when parsing a Lua statement fails. |
4317 | Previously, executing a syntactically invalid statement like | |
4318 | ")foo" or "bar;" would silently fail. | |
33db9015 | 4319 | |
4320 | * script/lua/grub_main.c (handle_lua_error): New function. | |
d6da58e6 | 4321 | (grub_lua_parse_line): Improved reporting of Lua parser and |
4322 | execution errors. | |
33db9015 | 4323 | |
46422c89 | 4324 | 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
4325 | ||
4326 | Remove -Werror which causes build to fail on some systems | |
4327 | ||
4328 | * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall | |
4329 | * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise | |
4330 | * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise | |
18f547ad | 4331 | |
22f53a96 | 4332 | 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
4333 | ||
4334 | trampoline for linux on 64-bit platform | |
4335 | ||
18f547ad | 4336 | * conf/x86_64-efi.rmk (linux_mod_SOURCES): added |
4337 | loader/i386/efi/linux_trampoline.S | |
4338 | * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed | |
473d1e45 | 4339 | declaration |
d6da58e6 | 4340 | * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from |
4341 | here | |
22f53a96 | 4342 | * loader/i386/linux_trampoline.S: moved here |
d6da58e6 | 4343 | * loader/i386/efi/linux.c (allocate_pages): reserve space for |
4344 | trampoline | |
22f53a96 | 4345 | (jumpvector): removed |
4346 | (grub_linux_trampoline_start): new declaration | |
4347 | (grub_linux_trampoline_end): likewise | |
4348 | (grub_linux_boot): use trampoline when on 64-bit platform | |
4349 | * loader/i386/linux.c: likewise | |
4350 | ||
cb5a0f40 | 4351 | 2009-05-16 Pavel Roskin <proski@gnu.org> |
4352 | ||
4353 | * script/lua/grub_lib.c (grub_lua_getenv): Make name and value | |
4354 | const to avoid a warning. | |
4355 | (grub_lua_setenv): Likewise. | |
4356 | * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for | |
4357 | lmsg to fix a warning. | |
4358 | ||
334f2c28 | 4359 | 2009-05-16 Felix Zielcke <fzielcke@z-51.de> |
4360 | ||
4361 | * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ... | |
7dd10fce | 4362 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). |
4363 | * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ... | |
4364 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
4365 | * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ... | |
4366 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
4367 | * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ... | |
4368 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
334f2c28 | 4369 | |
59e5d3ec | 4370 | 2009-05-16 Felix Zielcke <fzielcke@z-51.de> |
4371 | ||
4372 | * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT. | |
4373 | ||
9d87a1ba | 4374 | 2009-05-16 Bean <bean123ch@gmail.com> |
4375 | ||
4376 | * conf/common.rmk (pkglib_MODULES): Add lua.mod. | |
4377 | (lua_mod_SOURCES): New variable. | |
4378 | (lua_mod_CFLAGS): Likewise. | |
4379 | (lua_mod_LDFLAGS): Likewise. | |
4380 | ||
4381 | * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod. | |
4382 | (setjmp_mod_SOURCES): New variable. | |
4383 | (setjmp_mod_CFLAGS): Likewise. | |
4384 | (setjmp_LDFLAGS): Likewise. | |
4385 | ||
4386 | * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod. | |
4387 | (setjmp_mod_SOURCES): New variable. | |
4388 | (setjmp_mod_CFLAGS): Likewise. | |
4389 | (setjmp_LDFLAGS): Likewise. | |
4390 | ||
4391 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod. | |
4392 | (setjmp_mod_SOURCES): New variable. | |
4393 | (setjmp_mod_CFLAGS): Likewise. | |
4394 | (setjmp_LDFLAGS): Likewise. | |
4395 | ||
4396 | * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod. | |
4397 | (setjmp_mod_SOURCES): New variable. | |
4398 | (setjmp_mod_CFLAGS): Likewise. | |
4399 | (setjmp_LDFLAGS): Likewise. | |
4400 | ||
4401 | * normal/i386/setjmp.S: Moved from here ... | |
4402 | * lib/i386/setjmp.S: ... Moved here | |
4403 | * normal/x86_64/setjmp.S: Moved from here ... | |
4404 | * lib/x86_64/setjmp.S: ... Moved here | |
4405 | * normal/powerpc/setjmp.S: Moved from here ... | |
4406 | * lib/powerpc/setjmp.S: ... Moved here | |
4407 | * normal/sparc64/setjmp.S: Moved from here ... | |
4408 | * lib/sparc64/setjmp.S: ... Moved here | |
4409 | ||
4410 | * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute | |
4411 | returns_twice in mingw. | |
4412 | ||
4413 | * script/lua/grub_lib.c: New file. | |
4414 | * script/lua/grub_lib.h: Likewise. | |
4415 | * script/lua/grub_lua.h: Likewise. | |
4416 | * script/lua/grub_main.c: Likewise. | |
4417 | * script/lua/lapi.c: Likewise. | |
4418 | * script/lua/lapi.h: Likewise. | |
4419 | * script/lua/lauxlib.c: Likewise. | |
4420 | * script/lua/lauxlib.h: Likewise. | |
4421 | * script/lua/lbaselib.c: Likewise. | |
4422 | * script/lua/lcode.c: Likewise. | |
4423 | * script/lua/lcode.h: Likewise. | |
4424 | * script/lua/ldblib.c: Likewise. | |
4425 | * script/lua/ldebug.c: Likewise. | |
4426 | * script/lua/ldebug.h: Likewise. | |
4427 | * script/lua/ldo.c: Likewise. | |
4428 | * script/lua/ldo.h: Likewise. | |
4429 | * script/lua/ldump.c: Likewise. | |
4430 | * script/lua/lfunc.c: Likewise. | |
4431 | * script/lua/lfunc.h: Likewise. | |
4432 | * script/lua/lgc.c: Likewise. | |
4433 | * script/lua/lgc.h: Likewise. | |
4434 | * script/lua/linit.c: Likewise. | |
4435 | * script/lua/liolib.c: Likewise. | |
4436 | * script/lua/llex.c: Likewise. | |
4437 | * script/lua/llex.h: Likewise. | |
4438 | * script/lua/llimits.h: Likewise. | |
4439 | * script/lua/lmathlib.c: Likewise. | |
4440 | * script/lua/lmem.c: Likewise. | |
4441 | * script/lua/lmem.h: Likewise. | |
4442 | * script/lua/loadlib.c: Likewise. | |
4443 | * script/lua/lobject.c: Likewise. | |
4444 | * script/lua/lobject.h: Likewise. | |
4445 | * script/lua/lopcodes.c: Likewise. | |
4446 | * script/lua/lopcodes.h: Likewise. | |
4447 | * script/lua/loslib.c: Likewise. | |
4448 | * script/lua/lparser.c: Likewise. | |
4449 | * script/lua/lparser.h: Likewise. | |
4450 | * script/lua/lstate.c: Likewise. | |
4451 | * script/lua/lstate.h: Likewise. | |
4452 | * script/lua/lstring.c: Likewise. | |
4453 | * script/lua/lstring.h: Likewise. | |
4454 | * script/lua/lstrlib.c: Likewise. | |
4455 | * script/lua/ltable.c: Likewise. | |
4456 | * script/lua/ltable.h: Likewise. | |
4457 | * script/lua/ltablib.c: Likewise. | |
4458 | * script/lua/ltm.c: Likewise. | |
4459 | * script/lua/ltm.h: Likewise. | |
4460 | * script/lua/lua.h: Likewise. | |
4461 | * script/lua/luaconf.h: Likewise. | |
4462 | * script/lua/lualib.h: Likewise. | |
4463 | * script/lua/lundump.c: Likewise. | |
4464 | * script/lua/lundump.h: Likewise. | |
4465 | * script/lua/lvm.c: Likewise. | |
4466 | * script/lua/lvm.h: Likewise. | |
4467 | * script/lua/lzio.c: Likewise. | |
4468 | * script/lua/lzio.h: Likewise. | |
4469 | ||
5e898c9d | 4470 | 2009-05-16 Bean <bean123ch@gmail.com> |
4471 | ||
4472 | * include/grub/kernel.h (grub_module_header_types): Add type | |
4473 | OBJ_TYPE_CONFIG. | |
4474 | ||
4475 | * kern/main.c (grub_load_config): New function. | |
4476 | (grub_main): Call grub_load_config to read boot config. | |
4477 | ||
4478 | * grub-mkimage (generate_image): New parameter config_path. | |
4479 | (options): New option --config. | |
4480 | (main): Parse --config option, and pass it to generate_image. | |
4481 | ||
cf353a47 | 4482 | 2009-05-14 Christian Franke <franke@computer.org> |
4483 | ||
4484 | * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols. | |
4485 | This fixes build on Cygwin. | |
4486 | ||
3834887f | 4487 | 2009-05-14 Pavel Roskin <proski@gnu.org> |
4488 | ||
4489 | * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional | |
4490 | jump. This saves two bytes, so the typical case of 2 swapped | |
4491 | drives would fit 32 bytes. | |
4492 | ||
8090fc01 | 4493 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
4494 | ||
ac963883 | 4495 | * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to |
4496 | grub_uint32_t to avoid a warning. | |
4497 | ||
8090fc01 | 4498 | * loader/i386/linux.c (allocate_pages): When assigning |
4499 | real_mode_mem, cast through grub_size_t to fix a warning. The | |
4500 | code already makes sure that the value would fit a pointer. | |
4501 | (grub_linux_setup_video): Cast render_target->data to | |
4502 | grub_size_t to fix a warning. | |
4503 | ||
18f547ad | 4504 | 2009-05-13 Javier Martín <lordhabbit@gmail.com> |
4246b8a9 | 4505 | |
4506 | * commands/i386/pc/drivemap.c: New file - implement drivemap | |
4507 | command. | |
4508 | * commands/i386/pc/drivemap_int13h.S: New file - int13 handler. | |
4509 | * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S. | |
4510 | ||
6f6a8b28 | 4511 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
4512 | ||
4513 | * util/i386/pc/grub-setup.c (setup): Remove unused variable | |
4514 | embedding_area_exists. | |
4515 | ||
15fbf4c4 | 4516 | 2009-05-13 Robert Millan <rmh.grub@aybabtu.com> |
4517 | ||
4518 | * util/i386/pc/grub-setup.c (setup): Restructure code flow to make | |
4519 | it easier to understand / work with. | |
59978c8a | 4520 | Improve warning messages for cases where there's no embedding area, |
4521 | or when it is too small (or core.img too large). | |
15fbf4c4 | 4522 | |
238e871f | 4523 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
4524 | ||
0ab3a9a4 | 4525 | * loader/i386/pc/multiboot2.c: Add necessary includes for |
4526 | grub_multiboot2_real_boot(). | |
4527 | ||
a2c8c5f8 | 4528 | * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the |
4529 | PX record is always little-endian. We only need the lower 2 | |
4530 | bytes of the mode. | |
4531 | ||
faec96af | 4532 | * fs/cpio.c: Use the same name "struct head" for tar and cpio to |
4533 | facilitate code reuse. | |
4534 | (grub_cpio_mount): Use "struct head", not a char buffer. This | |
4535 | fixes a warning reported by gcc 4.4. | |
4536 | ||
238e871f | 4537 | * kernel/disk.c (grub_disk_read): Use void pointer for the |
4538 | buffer. | |
4539 | (grub_disk_write): Use const void pointer for the buffer. | |
4540 | Adjust all callers. Remove unnecessary casts. | |
4541 | ||
901d2f0c | 4542 | 2009-05-10 Robert Millan <rmh.grub@aybabtu.com> |
4543 | ||
4544 | * util/i386/pc/grub-install.in: Update copyright year. | |
4545 | ||
18f547ad | 4546 | 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
2eac4c16 | 4547 | |
4548 | gptsync | |
4549 | ||
4550 | * commands/gptsync.c: new file | |
4551 | * conf/common.rmk (pkglib_MODULES): add gptsync.mod | |
4552 | (gptsync_mod_SOURCES): new variable | |
4553 | (gptsync_mod_CFLAGS): likewise | |
4554 | (gptsync_mod_LDFLAGS): likewise | |
18f547ad | 4555 | * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS): |
2eac4c16 | 4556 | new definition |
4557 | (GRUB_PC_PARTITION_TYPE_HFS): likewise | |
4558 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c | |
4559 | * conf/i386-ieee1275.rmk: likewise | |
4560 | * conf/i386-pc.rmk: likewise | |
4561 | * conf/powerpc-ieee1275.rmk: likewise | |
4562 | ||
b4ba690a | 4563 | 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4564 | ||
4565 | Fixed grub-emu | |
4566 | ||
4567 | * kern/dl.c (grub_dl_ref): omit when compiling grub-emu | |
4568 | (grub_dl_ref): likewise | |
4569 | ||
317e1a44 | 4570 | 2009-05-08 Robert Millan <rmh.grub@aybabtu.com> |
4571 | ||
4572 | * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(), | |
4573 | split in two functions (one for msdos and one for gpt). | |
4574 | ||
041b8094 | 4575 | 2009-05-08 Pavel Roskin <proski@gnu.org> |
4576 | ||
752473c2 | 4577 | * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's |
4578 | not modified. | |
4579 | ||
041b8094 | 4580 | * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about |
4581 | uninitialized err[0] and err[1]. Rename them to bad1 and bad2. | |
4582 | Initialize them with -1. Add sanity check for bad1. Eliminate | |
4583 | nerr variable. | |
4584 | ||
172800ce | 4585 | 2009-05-08 David S. Miller <davem@davemloft.net> |
4586 | ||
4587 | * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname. | |
4588 | ||
29aa5e81 | 4589 | 2009-05-06 Robert Millan <rmh.grub@aybabtu.com> |
4590 | ||
4591 | * util/i386/pc/grub-setup.c (setup): Fix check for embed region | |
473d1e45 | 4592 | existence. |
29aa5e81 | 4593 | |
96613b62 | 4594 | 2009-05-05 Felix Zielcke <fzielcke@z-51.de> |
4595 | ||
4596 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
1905c57b | 4597 | `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'. |
96613b62 | 4598 | |
eef73c8a | 4599 | 2009-05-05 David S. Miller <davem@davemloft.net> |
4600 | ||
4601 | * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting. | |
4602 | ||
119494b5 | 4603 | 2009-05-05 Pavel Roskin <proski@gnu.org> |
4604 | ||
4605 | * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations | |
4606 | of grub_dl_ref() and grub_dl_unref(). | |
4607 | * commands/parttool.c: Remove preprocessor conditionals around | |
4608 | grub_dl_ref() and grub_dl_unref(). | |
4609 | * fs/affs.c: Likewise. | |
4610 | * fs/afs.c: Likewise. | |
4611 | * fs/cpio.c: Likewise. | |
4612 | * fs/ext2.c: Likewise. | |
4613 | * fs/fat.c: Likewise. | |
4614 | * fs/hfs.c: Likewise. | |
4615 | * fs/hfsplus.c: Likewise. | |
4616 | * fs/iso9660.c: Likewise. | |
4617 | * fs/jfs.c: Likewise. | |
4618 | * fs/minix.c: Likewise. | |
4619 | * fs/ntfs.c: Likewise. | |
4620 | * fs/reiserfs.c: Likewise. | |
4621 | * fs/sfs.c: Likewise. | |
4622 | * fs/udf.c: Likewise. | |
4623 | * fs/ufs.c: Likewise. | |
4624 | * fs/xfs.c: Likewise. | |
4625 | * include/grub/dl.h: Likewise. | |
4626 | * loader/xnu.c: Likewise. | |
4627 | ||
de5fd76e | 4628 | 2009-05-04 Pavel Roskin <proski@gnu.org> |
4629 | ||
4630 | * commands/acpi.c: Remove unused variable my_mod. | |
4631 | * partmap/amiga.c: Likewise. | |
4632 | * partmap/apple.c: Likewise. | |
4633 | * partmap/gpt.c: Likewise. | |
4634 | * partmap/pc.c: Likewise. | |
4635 | * partmap/sun.c: Likewise. | |
4636 | * term/gfxterm.c: Likewise. | |
4637 | * term/i386/pc/vesafb.c: Likewise. | |
4638 | * term/i386/pc/vga.c: Likewise. | |
4639 | ||
983598ad | 4640 | 2009-05-04 David S. Miller <davem@davemloft.net> |
4641 | ||
4642 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix string | |
4643 | pointer args to grub_ieee1275_get_property(). | |
4644 | ||
8aadec43 | 4645 | * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'. |
4646 | ||
9554b15e | 4647 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom |
4648 | devices, and do not traverse down under controller nodes. | |
4649 | ||
67e23c90 | 4650 | * disk/ieee1275/ofdisk.c (compute_dev_path): New. |
4651 | (grub_ofdisk_open): Use it to un-escape "," characters. | |
4652 | * kern/disk.c (find_part_sep): New. | |
4653 | (grub_disk_open): Use it to find the first non-escaped ',' | |
4654 | character in the disk name. | |
4655 | * util/ieee1275/devicemap.c (escape_of_path): New. | |
4656 | (grub_util_emit_devicemap_entry): Use it. | |
4657 | * util/sparc64/ieee1275/grub-install.in: Update script to | |
4658 | strip partition specifiers properly by not triggering on | |
4659 | '\' escaped ',' characters. | |
4660 | ||
74bfdd2f | 4661 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
4662 | ||
4663 | * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set | |
4664 | to 0x300. | |
4665 | * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few | |
4666 | resolutions. | |
4667 | (linux_vesafb_modes): Add a lot of additional modes to the list (based | |
4668 | on documentation from Wikipedia). | |
4669 | ||
4241d2b1 | 4670 | 2009-05-04 Pavel Roskin <proski@gnu.org> |
4671 | ||
4672 | * disk/ata.c: Spelling fixes. | |
4673 | * disk/raid.c: Likewise. | |
4674 | * disk/usbms.c: Likewise. | |
4675 | * disk/dmraid_nvidia.c: Likewise. | |
4676 | * kern/ieee1275/openfw.c: Likewise. | |
4677 | * kern/ieee1275/init.c: Likewise. | |
4678 | * kern/ieee1275/cmain.c: Likewise. | |
4679 | * boot/i386/pc/cdboot.S: Likewise. | |
4680 | * video/readers/png.c: Likewise. | |
4681 | * video/i386/pc/vbe.c: Likewise. | |
4682 | * fs/udf.c: Likewise. | |
4683 | * fs/hfs.c: Likewise. | |
4684 | * fs/reiserfs.c: Likewise. | |
4685 | * efiemu/runtime/efiemu.c: Likewise. | |
4686 | * efiemu/main.c: Likewise. | |
4687 | * efiemu/mm.c: Likewise. | |
4688 | * include/grub/elf.h: Likewise. | |
4689 | * include/grub/xnu.h: Likewise. | |
4690 | * include/grub/usbdesc.h: Likewise. | |
4691 | * include/grub/usb.h: Likewise. | |
4692 | * include/grub/script_sh.h: Likewise. | |
4693 | * include/grub/lib/LzmaEnc.h: Likewise. | |
4694 | * include/grub/efiemu/efiemu.h: Likewise. | |
4695 | * include/grub/command.h: Likewise. | |
4696 | * normal/menu.c: Likewise. | |
4697 | * normal/main.c: Likewise. | |
4698 | * normal/datetime.c: Likewise. | |
4699 | * bus/usb/uhci.c: Likewise. | |
4700 | * mmap/i386/uppermem.c: Likewise. | |
4701 | * mmap/mmap.c: Likewise. | |
4702 | * commands/acpi.c: Likewise. | |
4703 | * commands/test.c: Likewise. | |
4704 | * partmap/apple.c: Likewise. | |
4705 | * font/font.c: Likewise. | |
4706 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
4707 | * loader/macho.c: Likewise. | |
4708 | * loader/i386/bsd_trampoline.S: Likewise. | |
4709 | * loader/i386/bsd.c: Likewise. | |
4710 | * loader/xnu.c: Likewise. | |
4711 | * term/i386/pc/vesafb.c: Likewise. | |
4712 | * term/usb_keyboard.c: Likewise. | |
4713 | * util/resolve.c: Likewise. | |
4714 | * util/getroot.c: Likewise. | |
4715 | ||
0cfc0083 | 4716 | 2009-05-04 Felix Zielcke <fzielcke@z-51.de> |
4717 | ||
4718 | * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA. | |
4719 | ||
7c1d00cd | 4720 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
4721 | ||
4722 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix | |
4723 | build error. | |
4724 | ||
b01f0548 | 4725 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
4726 | ||
4727 | * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility | |
4728 | parameter only available on BIOS. | |
4729 | ||
ecc3eb22 | 4730 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
4731 | ||
4732 | Removed wrong semicolon in declaration | |
4733 | ||
4734 | * grub/misc.h (grub_dprintf): remove semicolon | |
4735 | ||
112972a9 | 4736 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
4737 | ||
4738 | * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro. | |
4739 | (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this | |
4740 | is done by grub_cmd_linux() now). | |
4741 | [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set, | |
4742 | restore video to text mode. | |
4743 | (grub_cmd_linux): Default `vid_mode' initialization to 0, which | |
4744 | indicates lack of "vga=" parameter. "vga=0" is mapped to | |
4745 | `GRUB_LINUX_VID_MODE_NORMAL'. | |
4746 | ||
afd5c115 | 4747 | 2009-05-04 Felix Zielcke <fzielcke@z-51.de> |
4748 | ||
4749 | * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c', | |
4750 | `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c' | |
4751 | and `normal/script.c'. Add `kern/rescue_reader.c', | |
18f547ad | 4752 | `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c', |
afd5c115 | 4753 | `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and |
4754 | `grub_script.tab.c'. | |
4755 | ||
4756 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
4757 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
4758 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
4759 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
4760 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
4761 | ||
faa517ce | 4762 | * Makefile.in: Remove duplicated 2008 in Copyright line. |
4763 | ||
ae0c0bdc | 4764 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
4765 | ||
473d1e45 | 4766 | * util/misc.c (grub_util_warn): New function. Emits a warning |
ae0c0bdc | 4767 | unconditionally. |
4768 | * include/grub/util/misc.h (grub_util_warn): New declaration. | |
4769 | ||
4770 | * util/i386/pc/grub-install.in: Understand --force and pass it down | |
4771 | to grub-setup. | |
4772 | ||
4773 | * util/i386/pc/grub-setup.c (main): Understand --force and pass it | |
4774 | down to setup(). | |
4775 | (setup): Improve error messages and add warnings when requested to | |
4776 | install in odd layouts. Refuse to install using blocklists unless | |
4777 | --force was set. | |
4778 | ||
18f547ad | 4779 | 2009-05-04 martin f. krafft <madduck@madduck.net> |
c149b500 | 4780 | |
4781 | * disk/raid.c (grub_raid_scan_device): Improve debug message. | |
4782 | ||
6d260daa | 4783 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
4784 | ||
4785 | Updated copyright year | |
4786 | ||
4787 | * fs/hfsplus.c: updated copyright year | |
18f547ad | 4788 | |
69f853f8 | 4789 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
4790 | ||
4791 | HFS+ UUID | |
4792 | ||
18f547ad | 4793 | * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field |
69f853f8 | 4794 | in the space previously used by unused3 |
4795 | (grub_hfsplus_uuid): new function | |
4796 | (grub_hfsplus_fs): added uuid field | |
4797 | ||
4c402e73 | 4798 | 2009-05-03 Pavel Roskin <proski@gnu.org> |
4799 | ||
4800 | * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to | |
4801 | suppress warnings. It's no longer needed. | |
4802 | * disk/host.c: Likewise. | |
4803 | * disk/ata_pthru.c: Likewise. | |
4804 | * disk/loopback.c: Likewise. | |
4805 | * hook/datehook.c: Likewise. | |
4806 | * parttool/pcpart.c: Likewise. | |
4807 | * fs/i386/pc/pxe.c: Likewise. | |
4808 | * fs/ntfscomp.c: Likewise. | |
4809 | * efiemu/main.c: Likewise. | |
4810 | * mmap/mmap.c: Likewise. | |
4811 | * commands/crc.c: Likewise. | |
4812 | * commands/hexdump.c: Likewise. | |
4813 | * commands/hdparm.c: Likewise. | |
4814 | * commands/acpi.c: Likewise. | |
4815 | * commands/echo.c: Likewise. | |
4816 | * commands/minicmd.c: Likewise. | |
4817 | * commands/blocklist.c: Likewise. | |
4818 | * commands/memrw.c: Likewise. | |
4819 | * commands/loadenv.c: Likewise. | |
4820 | * commands/usbtest.c: Likewise. | |
4821 | * commands/lsmmap.c: Likewise. | |
4822 | * commands/boot.c: Likewise. | |
4823 | * commands/parttool.c: Likewise. | |
4824 | * commands/configfile.c: Likewise. | |
4825 | * commands/search.c: Likewise. | |
4826 | * commands/ieee1275/suspend.c: Likewise. | |
4827 | * commands/cat.c: Likewise. | |
4828 | * commands/i386/pc/pxecmd.c: Likewise. | |
4829 | * commands/i386/pc/play.c: Likewise. | |
4830 | * commands/i386/pc/halt.c: Likewise. | |
4831 | * commands/i386/pc/vbeinfo.c: Likewise. | |
4832 | * commands/i386/pc/vbetest.c: Likewise. | |
4833 | * commands/lspci.c: Likewise. | |
4834 | * commands/date.c: Likewise. | |
4835 | * commands/handler.c: Likewise. | |
4836 | * commands/ls.c: Likewise. | |
4837 | * commands/test.c: Likewise. | |
4838 | * commands/cmp.c: Likewise. | |
4839 | * commands/efi/loadbios.c: Likewise. | |
4840 | * commands/efi/fixvideo.c: Likewise. | |
4841 | * commands/halt.c: Likewise. | |
4842 | * commands/help.c: Likewise. | |
4843 | * commands/reboot.c: Likewise. | |
4844 | * hello/hello.c: Likewise. | |
4845 | * script/sh/main.c: Likewise. | |
4846 | * loader/xnu.c: Likewise. | |
4847 | * term/terminfo.c: Likewise. | |
4848 | * term/i386/pc/serial.c: Likewise. | |
4849 | * term/usb_keyboard.c: Likewise. | |
4850 | ||
515b5079 | 4851 | 2009-05-03 David S. Miller <davem@davemloft.net> |
4852 | ||
4853 | * normal/menu.c: Include grub/parser.h | |
4854 | ||
dfc31a22 | 4855 | 2009-05-03 Pavel Roskin <proski@gnu.org> |
4856 | ||
2fee74f1 | 4857 | * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*, |
4858 | not char*. | |
4859 | * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise. | |
4860 | Suggested by Javier Martín <lordhabbit@gmail.com> | |
4861 | ||
dfc31a22 | 4862 | * util/i386/pc/grub-mkrescue.in: Allow for the case when |
4863 | efiemu??.o doesn't exist. | |
4864 | * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for | |
4865 | copying. | |
4866 | ||
18f547ad | 4867 | 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com> |
cef17233 | 4868 | |
4869 | FreeBSD 64-bit support | |
4870 | ||
18f547ad | 4871 | * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S |
cef17233 | 4872 | and loader/i386/bsd_trampoline.S |
4873 | (bsd_mod_ASFLAGS): new variable | |
4874 | * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition | |
4875 | (FREEBSD_MODTYPE_KERNEL64): likewise | |
4876 | (grub_bsd64_trampoline_start): likewise | |
4877 | (grub_bsd64_trampoline_end): likewise | |
4878 | (grub_bsd64_trampoline_selfjump): likewise | |
4879 | (grub_bsd64_trampoline_gdt): likewise | |
4880 | * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ... | |
4881 | * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here | |
4882 | * kern/i386/loader.S (grub_unix_real_boot): moved from here ... | |
4883 | * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here | |
18f547ad | 4884 | * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type |
cef17233 | 4885 | of "attrib" member |
4886 | * loader/i386/bsd_pagetable.c: new file | |
4887 | * loader/i386/bsd_trampoline.S: likewise | |
4888 | * loader/i386/bsd.c (ALIGN_QWORD): new macro | |
4889 | (ALIGN_VAR): likewise | |
4890 | (entry_hi): new variable | |
4891 | (kern_end_mdofs): likewise | |
4892 | (is_64bit): likewise | |
4893 | (grub_freebsd_add_meta): use ALIGN_VAR | |
4894 | (grub_e820_mmap): new declaration | |
4895 | (grub_freebsd_add_mmap): new function | |
4896 | (grub_freebsd_add_meta_module): support 64 bit kernels | |
4897 | (grub_freebsd_list_modules): use ALIGN_VAR | |
4898 | (gdt_descriptor): new declaration | |
4899 | (grub_freebsd_boot): support 64 bit kernels | |
4900 | (grub_bsd_elf64_hook): new function | |
4901 | (grub_bsd_load_elf): support elf64 | |
4902 | ||
038c5720 | 4903 | 2009-05-03 Bean <bean123ch@gmail.com> |
4904 | ||
4905 | * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno | |
4906 | after we get the result of if statement. | |
4907 | ||
fc45fb58 | 4908 | 2009-05-03 Bean <bean123ch@gmail.com> |
4909 | ||
4910 | * Makefile.in (enable_efiemu): New variable. | |
4911 | ||
4912 | * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is | |
4913 | set. | |
4914 | (efiemu32.o): Use macro $< for source file, add $(srcdir) to include | |
4915 | path. | |
4916 | (efi64_c.o): Use macro $< for source file, add $(srcdir) to include | |
4917 | path, add -mno-red-zone option. | |
4918 | (efiemu64_s.o): Likewise. | |
4919 | (efiemu64.o): Use macro $^ for source file. | |
4920 | ||
4921 | * configure.ac (--enable-efiemu): New option. | |
4922 | ||
bbee0f2b | 4923 | 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com> |
4924 | ||
4925 | xnu support | |
4926 | ||
4927 | * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h | |
4928 | (pkglib_MODULES): add xnu.mod | |
4929 | (xnu_mod_SOURCES): new variable | |
4930 | (xnu_mod_CFLAGS): likewise | |
4931 | (xnu_mod_LDFLAGS): likewise | |
4932 | (xnu_mod_ASFLAGS): likewise | |
4933 | * conf/i386-pc.rmk: likewise | |
4934 | * conf/x86_64-efi.rmk: likewise | |
7dd4a573 | 4935 | * include/grub/efi/efi.h (grub_efi_finish_boot_services): |
bbee0f2b | 4936 | new declaration |
4937 | * include/grub/i386/macho.h: new file | |
4938 | * include/grub/i386/xnu.h: likewise | |
4939 | * include/grub/macho.h: likewise | |
4940 | * include/grub/machoload.h: likewise | |
4941 | * include/grub/x86_64/macho.h: likewise | |
4942 | * include/grub/x86_64/xnu.h: likewise | |
4943 | * include/grub/xnu.h: likewise | |
4944 | * kern/efi/efi.c (grub_efi_finish_boot_services): new function | |
4945 | * kern/efi/mm.c (MAX_HEAP_SIZE): increase | |
4946 | * loader/i386/efi/xnu.c: new file | |
4947 | * loader/i386/pc/xnu.c: likewise | |
4948 | * loader/i386/xnu.c: likewise | |
4949 | * loader/i386/xnu_helper.S: likewise | |
4950 | * loader/macho.c: likewise | |
4951 | * loader/xnu.c: likewise | |
4952 | * loader/xnu_resume.c: likewise | |
4953 | * util/grub-dumpdevtree: likewise | |
4954 | * include/grub/i386/pit.h: include grub/err.h | |
4955 | (grub_pit_wait): export | |
4956 | * util/grub.d/30_os-prober.in: support Darwin/Mac OS X | |
7dd4a573 | 4957 | |
5caf964d | 4958 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
4959 | ||
4960 | Efiemu | |
7dd4a573 | 4961 | |
5caf964d | 4962 | * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram, |
7dd4a573 | 4963 | _linux_efi, linux_efi. |
4964 | new files in grub-emu | |
5caf964d | 4965 | new targets efiemu32.o and efiemu64.o |
4966 | * loader/linux_normal_efiemu.c: likewise | |
4967 | * loader/i386/efi/linux.c: added preliminary efiemu support | |
7dd4a573 | 4968 | * util/i386/pc/grub-install.in: add efiemu??.o to the list of |
5caf964d | 4969 | files to copy |
4970 | * include/grub/autoefi.h: new file | |
7dd4a573 | 4971 | * include/grub/i386/efiemu.h: likewise |
5caf964d | 4972 | * include/grub/i386/pc/efiemu.h: likewise |
4973 | * include/grub/efi/api.h: add LL suffix when necessary | |
4974 | new definitions relating to tables | |
4975 | * include/grub/efiemu/efiemu.h: new file | |
4976 | * include/grub/efiemu/runtime.h: likewise | |
4977 | * efiemu/prepare.c: likewise | |
4978 | * efiemu/loadcore_common.c: likewise | |
4979 | * efiemu/loadcore64.c: likewise | |
4980 | * efiemu/runtime/efiemu.sh: likewise | |
4981 | * efiemu/runtime/efiemu.S: likewise | |
4982 | * efiemu/runtime/efiemu.c: likewise | |
4983 | * efiemu/runtime/config.h: likewise | |
4984 | * efiemu/prepare32.c: likewise | |
4985 | * efiemu/main.c: likewise | |
4986 | * efiemu/modules/pnvram.c: likewise | |
4987 | * efiemu/modules/i386: likewise | |
4988 | * efiemu/modules/i386/pc: likewise | |
4989 | * efiemu/modules/acpi.c: likewise | |
4990 | * efiemu/i386/pc/cfgtables.c: likewise | |
4991 | * efiemu/i386/loadcore64.c: likewise | |
4992 | * efiemu/i386/loadcore32.c: likewise | |
4993 | * efiemu/prepare64.c: likewise | |
4994 | * efiemu/loadcore.c: likewise | |
4995 | * efiemu/symbols.c: likewise | |
4996 | * efiemu/mm.c: likewise | |
4997 | * efiemu/loadcore32.c: likewise | |
7dd4a573 | 4998 | |
4999 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> | |
f8efe3ad | 5000 | |
5001 | ACPI spoofing | |
5002 | ||
5003 | * commands/acpi.c: new file | |
5004 | * commands/i386/pc/acpi.c: likewise | |
5005 | * commands/efi/acpi.c: likewise | |
5006 | * include/grub/acpi.h: likewise | |
5007 | * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod | |
5008 | (acpi_mod_SOURCES): new variable | |
5009 | (acpi_mod_CFLAGS): likewise | |
5010 | (acpi_mod_LDFLAGS): likewise | |
5011 | * conf/i386-efi.rmk: likewise | |
5012 | * conf/x86_64-efi.rmk: likewise | |
5013 | ||
7dd4a573 | 5014 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
28a85665 | 5015 | |
5016 | Missing part from mmap patch | |
5017 | ||
5018 | * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to | |
5019 | (grub_mmap_unregister) | |
5020 | (grub_mmap_free_and_unregister): use grub_mmap_register | |
5021 | ||
7dd4a573 | 5022 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
09d842b9 | 5023 | |
5024 | Mmap services | |
5025 | ||
5026 | * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate | |
5027 | * loader/i386/linux.c (find_mmap_size): likewise | |
5028 | (allocate_pages): likewise | |
5029 | * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise | |
5030 | (grub_fill_multiboot_mmap): likewise | |
5031 | (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper | |
5032 | * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower | |
5033 | * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition | |
5034 | (OPENBSD_MMAP_RESERVED): likewise | |
5035 | * include/grub/i386/pc/memory.h: include grub/memory.h | |
5036 | (grub_lower_mem): removed | |
5037 | (grub_upper_mem): likewise | |
5038 | (GRUB_MACHINE_MEMORY_ACPI): new definition | |
5039 | (GRUB_MACHINE_MEMORY_NVS): likewise | |
5040 | (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise | |
5041 | (GRUB_MACHINE_MEMORY_HOLE): likewise | |
5042 | (grub_machine_mmap_register): likewise | |
5043 | (grub_machine_mmap_unregister): likewise | |
5044 | (grub_machine_get_upper): likewise | |
5045 | (grub_machine_get_lower): likewise | |
5046 | (grub_machine_get_post64): likewise | |
5047 | * include/grub/i386/efi/memory.h: new file | |
5048 | * include/grub/x86_64/efi/memory.h: likewise | |
5049 | * include/grub/efi/memory.h: likewise | |
5050 | * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod | |
5051 | (mmap_mod_SOURCES): new variable | |
5052 | (mmap_mod_LDFLAGS): likewise | |
5053 | (mmap_mod_ASFLAGS): likewise | |
5054 | * conf/i386-coreboot.rmk: likewise | |
5055 | * conf/i386-ieee1275.rmk: likewise | |
5056 | * conf/i386-efi.rmk: likewise | |
5057 | * conf/x86_64-efi.rmk: likewise | |
5058 | * include/grub/types.h (UINT_TO_PTR): new macro | |
5059 | (PTR_TO_UINT32): likewise | |
5060 | (PTR_TO_UINT64): likewise | |
5061 | * include/grub/memory.h: new file | |
5062 | * mmap/i386/pc/mmap.c: likewise | |
5063 | * mmap/i386/pc/mmap_helper.S: likewise | |
5064 | * mmap/i386/uppermem.c: likewise | |
5065 | * mmap/mmap.c: likewise | |
5066 | * mmap/efi/mmap.c: likewise | |
7dd4a573 | 5067 | * kern/i386/coreboot/init.c (grub_machine_init): don't use |
09d842b9 | 5068 | grub_upper_mem |
5069 | * kern/i386/pc/init.c (grub_lower_mem): removed variable | |
5070 | (grub_upper_mem): likewise | |
5071 | (grub_machine_init): don't use grub_upper_mem, | |
5072 | make grub_lower_mem local | |
5073 | * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower, | |
5074 | grub_mmap_iterate and grub_mmap_get_upper | |
5075 | (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper | |
5076 | ||
d558e6b5 | 5077 | 2009-05-02 Bean <bean123ch@gmail.com> |
5078 | ||
5079 | * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to | |
5080 | script/sh/parser.y. | |
5081 | (pkglib_MODULES): Add normal.mod and sh.mod. | |
5082 | (normal_SOURCES): New variable. | |
5083 | (normal_mod_CFLAGS): Likewise. | |
5084 | (normal_mod_LDFLAGS): Likewise. | |
5085 | (sh_mod_SOURCES): Likewise. | |
5086 | (sh_mod_CFLAGS): Likewise. | |
5087 | (sh_mod_LDFLAGS): Likewise. | |
5088 | ||
5089 | * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to | |
5090 | script/sh/lexer.c_DEPENDENCIES. | |
5091 | (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c, | |
5092 | kern/rescue_reader.c and kern/rescue_parser.c. | |
5093 | (kernel_img_HEADERS): Remove rescue.h, add reader.h. | |
5094 | (grub_emu_SOURCES): Change source files. | |
5095 | (pkglib_MODULES): Remove normal.mod. | |
5096 | (normal_SOURCES): Removed. | |
5097 | (normal_mod_CFLAGS): Likewise. | |
5098 | (normal_mod_LDFLAGS): Likewise. | |
5099 | * conf/i386-coreboot.rmk: Likewise. | |
5100 | * conf/i386-efi.rmk: Likewise. | |
5101 | * conf/i386-ieee1276.rmk: Likewise. | |
5102 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5103 | * conf/sparc64-ieee1275.rmk: Likewise. | |
5104 | * conf/x86_64-efi.rmk: Likewise. | |
5105 | ||
5106 | * include/grub/command.h (grub_command_execute): New inline function. | |
5107 | ||
5108 | * include/grub/menu.h (grub_menu_entry): Removed commands field. | |
5109 | ||
5110 | * include/grub/normal.h: Remove <grub/setjmp.h>. | |
5111 | (grub_fs_module_list): Moved to normal/autofs.c. | |
5112 | (grub_exit_env): Removed. | |
5113 | (grub_command_execute): Likewise. | |
5114 | (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed | |
5115 | parameter script. | |
5116 | (read_command_list): New function declaration. | |
5117 | (read_fs_list): Likewise. | |
5118 | ||
5119 | * include/parser.h: Include <grub/reader.h>. | |
5120 | (grub_parser_split_cmdline): Change type of getline parameter. | |
5121 | (grub_parser): New structure. | |
5122 | (grub_parser_class): New variable. | |
5123 | (grub_parser_execute): New function declaration. | |
5124 | (grub_register_rescue_parser): Likewise. | |
5125 | (grub_parser_register): New inline function. | |
5126 | (grub_parser_unregister): Likewise. | |
5127 | (grub_parser_get_current): Likewise. | |
5128 | (grub_parser_set_current): Likewise. | |
5129 | ||
5130 | * include/grub/reader.h: New file. | |
5131 | * kern/reader.c: Likewise. | |
5132 | * kern/rescue_parser.c: Likewise. | |
5133 | * kern/rescue_reader.c: Likewise. | |
5134 | * normal/autofs.c: Likewise. | |
5135 | * normal/dyncmd.c: Likewise. | |
5136 | ||
5137 | * include/grub/rescue.h: Removed. | |
5138 | * normal/command.h: Likewise. | |
5139 | ||
5140 | * include/grub/script.h: Moved to ... | |
5141 | * include/grub/script_sh.h: ... Moved here. | |
5142 | * normal/execute.c: Moved to ... | |
5143 | * script/sh/execute.c: ... Moved here. | |
5144 | * normal/function.c: Moved to ... | |
5145 | * script/sh/function.c: ... Moved here. | |
5146 | * normal/lexer.c: Moved to ... | |
5147 | * script/sh/lexer.c: ... Moved here. | |
5148 | * normal/parser.y: Moved to ... | |
5149 | * script/sh/parser.y: ... Moved here. | |
5150 | * normal/script.c: Moved to ... | |
5151 | * script/sh/script.c: ... Moved here. | |
5152 | ||
5153 | * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include | |
5154 | <grub/reader.h>. | |
5155 | (grub_exit_env): Removed. | |
5156 | (fs_module_list): Moved to normal/autofs.c. | |
5157 | (grub_file_getline): Don't handle comment here. | |
5158 | (free_menu): Skip removed field entry->commands. | |
5159 | (grub_normal_menu_addentry): Removed as grub_menu_entry, removed | |
5160 | script parameter. | |
5161 | (read_config_file): Removed nested parameter, change getline function. | |
5162 | (grub_enter_normal_mode): Removed. | |
5163 | (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c. | |
5164 | (read_command_list): Likewise. | |
5165 | (autoload_fs_module): Moved to normal/autofs.c. | |
5166 | (read_fs_list): Likewise. | |
5167 | (reader_nested): New variable. | |
5168 | (grub_normal_execute): Run parser.sh to switch to sh parser. | |
5169 | (grub_cmd_rescue): Removed. | |
5170 | (cmd_normal): Removed. | |
5171 | (grub_cmd_normal): Unregister itself at the beginning. Don't register | |
5172 | rescue command. | |
5173 | (grub_cmdline_run): New function. | |
5174 | (grub_normal_reader_init): Likewise. | |
5175 | (grub_normal_read_line): Likewise. | |
5176 | (grub_env_write_pager): Likewise. | |
5177 | (cmdline): New variable. | |
5178 | (grub_normal_reader): Likewise. | |
5179 | (GRUB_MOD_INIT): Register normal reader and set as current, register | |
5180 | pager hook, register normal command with grub_register_command_prio, | |
5181 | so that it won't show up in command.lst. | |
5182 | (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear | |
5183 | grub_fs_autoload_hook. | |
5184 | ||
5185 | * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>. | |
5186 | (grub_menu_execute_entry): Replace grub_script_execute with | |
5187 | grub_parser_execute, change parameter to grub_command_execute. | |
5188 | ||
5189 | * normal/menu_text.c: Remove <grub/script.h>. | |
5190 | ||
5191 | * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h> | |
5192 | and <grub/parser.h>. | |
5193 | (run): Change editor_getline to use new parser interface. Change | |
5194 | parameter to grub_command_execute. | |
5195 | ||
5196 | * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>, | |
5197 | <grub/reader.h> and <grub/parser.h>. | |
5198 | (grub_load_normal_mode): Execute normal command. | |
5199 | (grub_main): Call grub_register_core_commands, | |
5200 | grub_register_rescue_parser and grub_register_rescue_reader, use | |
5201 | grub_reader_loop to enter input loop. | |
5202 | ||
7dd4a573 | 5203 | * kern/parser.c (grub_parser_split_cmdline): Change type of |
5204 | getline parameter. | |
d558e6b5 | 5205 | (grub_parser_class): New variable. |
5206 | (grub_parser_execute): New function. | |
5207 | ||
5208 | * loader/i386/multiboot.c: Remove <grub/rescue.h>. | |
5209 | * loader/multiboot2.c: Likewise. | |
5210 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
5211 | ||
5212 | * util/grub-emu.c (read_command_list): New dummy function. | |
5213 | ||
18db813d | 5214 | 2009-05-02 Robert Millan <rmh.grub@aybabtu.com> |
5215 | ||
5216 | * util/deviceiter.c (grub_util_iterate_devices): Increase max drive | |
5217 | count to 16 for CCISS and IDA. | |
5218 | ||
6c67de15 | 5219 | 2009-05-02 Robert Millan <rmh.grub@aybabtu.com> |
5220 | ||
5221 | * normal/menu_text.c (grub_wait_after_message): Print a newline | |
5222 | after waiting for user input. | |
5223 | ||
5224 | * loader/i386/linux.c: Include `<grub/normal.h>'. | |
5225 | (grub_cmd_linux): Improve the error message about `ask' mode, by | |
5226 | waiting for user input so it's not missed (we can do this, since | |
5227 | user requested interaction). | |
5228 | ||
d9dc87b0 | 5229 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
5230 | ||
5231 | Added missing lst to grub-mkrescue | |
5232 | ||
5233 | * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst | |
5234 | and ${input_dir}/parttool.lst | |
5235 | ||
ac8a2baa | 5236 | 2009-04-30 David S. Miller <davem@davemloft.net> |
5237 | ||
ad22a610 | 5238 | * util/hostdisk.c (device_is_wholedisk): New function. |
5239 | (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is | |
5240 | zero only if device_is_wholedisk() returns true. | |
5241 | ||
6966215d | 5242 | * util/hostdisk.c (convert_system_partition_to_system_disk): |
5243 | Handle virtual disk devices named /dev/vdiskX as found on sparc | |
5244 | and powerpc. | |
5245 | ||
ac8a2baa | 5246 | * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If |
5247 | lettered partition specifier is found, convert to numbered. | |
5248 | ||
979b4fb4 | 5249 | 2009-04-29 David S. Miller <davem@davemloft.net> |
5250 | ||
e2bf39b2 | 5251 | * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h. |
5252 | * include/grub/sparc64/ieee1275/memory.h: Likewise. | |
5253 | ||
3c64e104 | 5254 | * normal/command.c: Add missing newline at end of file. |
5255 | ||
979b4fb4 | 5256 | * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf |
5257 | warnings. | |
5258 | * kern/ieee1275/openfw.c (grub_claimmap): Likewise. | |
5259 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close, | |
5260 | grub_ofdisk_read): Likewise, and deal similarly with the fact that | |
5261 | ihandles have a 32-bit type but need to be stored in a "void *". | |
5262 | ||
136d9f82 | 5263 | 2009-04-28 Pavel Roskin <proski@gnu.org> |
5264 | ||
9459c306 | 5265 | * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev, |
5266 | not disk. Adjust all dependencies. | |
2e08a26a | 5267 | (grub_fs_uuid_close): Use grub_device_close(), not |
9459c306 | 5268 | grub_disk_close(). |
5269 | ||
136d9f82 | 5270 | * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy |
5271 | parent's partition, don't copy it by reference, as it gets freed | |
5272 | on close. | |
5273 | ||
7dd4a573 | 5274 | 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com> |
75a807cf | 5275 | |
5276 | Preboot hooks support | |
5277 | ||
5278 | * commands/boot.c (struct grub_preboot_t): new declaration | |
5279 | (preboots_head): new variable | |
5280 | (preboots_tail): likewise | |
5281 | (grub_loader_register_preboot_hook): new function | |
5282 | (grub_loader_unregister_preboot_hook): likewise | |
5283 | (grub_loader_set): launch preboot hooks | |
5284 | * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type | |
5285 | (grub_loader_register_preboot_hook): new declaration | |
5286 | (grub_loader_unregister_preboot_hook): likewise | |
5287 | ||
5af922b5 | 5288 | 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com> |
5289 | ||
5290 | Warning fix | |
5291 | ||
7dd4a573 | 5292 | * disk/scsi.c (grub_scsi_open): added missing cast when |
5af922b5 | 5293 | calling grub_dprintf |
5294 | ||
a5562c30 | 5295 | 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com> |
5296 | ||
5297 | Bug and warning fixes | |
5298 | ||
7dd4a573 | 5299 | * include/grub/i386/pc/init.h (grub_stop_floppy): added missing |
a5562c30 | 5300 | declaration |
5301 | * commands/test.c (test_parse): fixed bug with file tests and corrected | |
5302 | declaration of find_file | |
5303 | ||
4006f85c | 5304 | 2009-04-26 Pavel Roskin <proski@gnu.org> |
5305 | ||
5306 | * Makefile.in: Don't install empty manual pages if help2man is | |
5307 | missing. Use help2man option for output, not shell redirection. | |
5308 | ||
5c77c3de | 5309 | 2009-04-26 David S. Miller <davem@davemloft.net> |
5310 | ||
5311 | * util/grub-mkdevicemap.c (make_device_map): Add missing | |
5312 | NESTED_FUNC_ATTR to process_device(). | |
5313 | ||
033b10a8 | 5314 | 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
5315 | ||
5316 | Test command | |
5317 | ||
5318 | * commands/test.c: rewritten to use bash-like test | |
5319 | ||
e4343593 | 5320 | 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
5321 | ||
5322 | Parttool autoloading and improvements | |
5323 | ||
7dd4a573 | 5324 | * Makefile.in (pkglib_DATA): add parttool.lst |
e4343593 | 5325 | (parttool.lst): new target |
5326 | * genmk.rb: generate parttool-* | |
5327 | (CLEANFILES): add #{parttool} | |
5328 | (PARTTOOLFILES): new variable | |
5329 | * genparttoollist.sh: new file | |
7dd4a573 | 5330 | * parttool/pcpart.c (grub_pcpart_boot): more feedback |
e4343593 | 5331 | (grub_pcpart_type): likewise |
5332 | * commands/parttool.c (helpmsg): new variable | |
5333 | (grub_cmd_parttool): output help if not enough arguments are supplied | |
5334 | autoload modules | |
5335 | (GRUB_MOD_INIT(parttool)): use helpmsg | |
5336 | ||
0d312500 | 5337 | 2009-04-24 David S. Miller <davem@davemloft.net> |
5338 | ||
7dd4a573 | 5339 | Avoiding opening same device multiple times in device iterator. |
0d312500 | 5340 | |
5341 | * kern/device.c: (grub_device_iterate): Define struct part_ent, | |
7dd4a573 | 5342 | and use it to build a list of partitions in iterate_disk() and |
0d312500 | 5343 | iterate_partition(). |
5344 | ||
ac20caff | 5345 | * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close() |
5346 | on disk->data. | |
5347 | ||
0dcf7495 | 5348 | * disk/ieee1275/nand.c (grub_nand_iterate): Return |
5349 | grub_devalias_iterate() result instead of unconditional 0. | |
5350 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise. | |
5351 | Also, capture hook return value, either directly or via | |
5352 | grub_children_iterate(), and propagate to caller. | |
5353 | * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate, | |
5354 | grub_children_iterate): Return value is now 'int' instead of | |
5355 | 'grub_err_t'. | |
5356 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave | |
5357 | like a proper iterator, stopping when hooks return non-zero. | |
5358 | (grub_devalias_iterate): Likewise. | |
5359 | ||
c8c08833 | 5360 | 2009-04-23 David S. Miller <davem@davemloft.net> |
5361 | ||
5362 | * kern/sparc64/ieee1275/openfw.c: Unused, delete. | |
5363 | ||
f01005a8 | 5364 | 2009-04-22 David S. Miller <davem@davemloft.net> |
5365 | ||
5366 | * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells | |
5367 | is larger than address_cells, use that value for address_cells too. | |
5368 | ||
4e8269da | 5369 | * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN, |
5370 | IEEE1275_MAX_PATH_LEN): Define. | |
5371 | * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically | |
5372 | allocate 'childtype', 'childpath', 'childname', and 'fullname'. | |
5373 | (grub_devalias_iterate): Dynamically allocate 'aliasname' and | |
5374 | 'devtype'. Explicitly NULL terminate devalias expansion. | |
5375 | ||
a1447506 | 5376 | * util/sparc64/ieee1275/misc.c: New file. |
5377 | * util/sparc64/ieee1275/grub-setup.c: New file. | |
5378 | * util/sparc64/ieee1275/grub-ofpathname.c: New file. | |
5379 | * util/sparc64/ieee1275/grub-mkimage.c: New file. | |
5380 | * util/sparc64/ieee1275/grub-install.in: New file. | |
5381 | * util/ieee1275/ofpath.c: New file. | |
5382 | * util/ieee1275/devicemap.c: New file. | |
5383 | * util/devicemap.c: New file. | |
5384 | * util/deviceiter.c: New file. | |
5385 | * kern/sparc64/ieee1275/init.c: New file. | |
5386 | * include/grub/util/ofpath.h: New file. | |
5387 | * include/grub/util/deviceiter.h: New file. | |
5388 | * util/grub-mkdevicemap.c: Include deviceiter.h. | |
5389 | Implement using grub_util_emit_devicemap_entry and | |
5390 | grub_util_iterate_devices. | |
5391 | * conf/i386-corebook.rmk: Build util/deviceiter.c and | |
5392 | util/devicemap.c into grub-mkdevicemap | |
5393 | * conf/i386-efi.rmk: Likewise. | |
5394 | * conf/i386-ieee1275.rmk: Likewise. | |
5395 | * conf/i386-pc.rmk: Likewise. | |
5396 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5397 | * conf/sparc64-ieee1275.rmk: Add rules to build boot block | |
5398 | images and installation utilities. Build kernel as image | |
5399 | instead of as elf binary. Use common rules as much as possible. | |
5400 | ||
7dd4a573 | 5401 | 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
0aefc632 | 5402 | |
5403 | Correct GPT definition | |
5404 | ||
7dd4a573 | 5405 | * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type |
0aefc632 | 5406 | of "attrib" member |
5407 | ||
c6c5219f | 5408 | 2009-04-19 Felix Zielcke <fzielcke@z-51.de> |
5409 | ||
5410 | * INSTALL: Replace `autogen.sh' with `./autogen.sh'. | |
5411 | ||
0552ff9f | 5412 | 2009-04-19 David S. Miller <davem@davemloft.net> |
5413 | ||
5414 | * loader/sparc64/ieee1275/linux.c: Include grub/command.h | |
5415 | (grub_rescue_cmd_linux): Rename to... | |
5416 | (grub_cmd_linux): and fix prototype. | |
5417 | (grub_rescue_cmd_initrd): Rename to... | |
5418 | (grub_cmd_initrd): and fix prototype. | |
5419 | (cmd_linux, cmd_initrd): New. | |
5420 | (GRUB_MOD_INIT(linux)): Use grub_register_command(). | |
5421 | (GRUB_MOD_FINI(linux): Use grub_unregister_command(). | |
5422 | ||
d1a282fc | 5423 | 2009-04-17 Pavel Roskin <proski@gnu.org> |
5424 | ||
07c5039f | 5425 | * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf |
5426 | format. | |
5427 | (grub_ohci_transfer): Likewise. | |
5428 | ||
b012002d | 5429 | * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix. |
5430 | ||
1bc09c35 | 5431 | * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix |
5432 | return without a value. Fix inconsistent indentation. | |
5433 | ||
e0ff9126 | 5434 | * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to |
5435 | match struct grub_fs. | |
5436 | ||
d1a282fc | 5437 | * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR. |
5438 | * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise. | |
5439 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. | |
5440 | * commands/lspci.c (grub_lspci_iter): Likewise. | |
5441 | ||
a96df3f2 | 5442 | 2009-04-16 Bean <bean123ch@gmail.com> |
5443 | ||
5444 | * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return | |
5445 | value. | |
5446 | ||
41bb0fe9 | 5447 | 2009-04-15 Pavel Roskin <proski@gnu.org> |
5448 | ||
5449 | * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and | |
5450 | LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all | |
5451 | users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new | |
5452 | definitions. | |
5453 | ||
596c6970 | 5454 | 2009-04-15 Felix Zielcke <fzielcke@z-51.de> |
5455 | ||
5456 | * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages, | |
7dd4a573 | 5457 | that no multiple data or metadata areas are supported and `Unknown |
596c6970 | 5458 | metadata header'. |
5459 | ||
7dd4a573 | 5460 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
0d5d5653 | 5461 | |
5462 | Move loader out of the kernel | |
5463 | ||
5464 | * kern/loader.c: moved to ... | |
5465 | * commands/boot.c: ... moved here | |
5466 | * commands/minicmd.c (grub_mini_cmd_boot): moved to ... | |
5467 | * commands/boot.c (grub_cmd_boot): moved here. All users updated | |
5468 | * include/grub/kernel.h (grub_machine_fini): export | |
5469 | * include/grub/loader.h (grub_loader_is_loaded): update declaration | |
5470 | (grub_loader_set): likewise | |
5471 | (grub_loader_unset): likewise | |
5472 | (grub_loader_boot): likewise | |
5473 | * conf/common.rmk: new module boot.mod | |
5474 | (pkglib_MODULES): add boot.mod | |
5475 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c | |
5476 | (grub_emu_SOURCES): likewise | |
5477 | * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise | |
5478 | (grub_emu_SOURCES): likewise | |
5479 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise | |
5480 | (grub_emu_SOURCES): likewise | |
5481 | * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise | |
5482 | (grub_emu_SOURCES): likewise | |
5483 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise | |
5484 | (grub_emu_SOURCES): likewise | |
7dd4a573 | 5485 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise |
5486 | (grub_emu_SOURCES): likewise | |
0d5d5653 | 5487 | * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise |
7dd4a573 | 5488 | (grub_emu_SOURCES): likewise |
0d5d5653 | 5489 | |
7dd4a573 | 5490 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
5999d619 | 5491 | |
5492 | use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes | |
7dd4a573 | 5493 | |
5999d619 | 5494 | * kern/misc.c (grub_itoa): Removed function |
5495 | (grub_ltoa): likewise | |
5496 | (grub_vsprintf): use grub_lltoa | |
5497 | ||
7dd4a573 | 5498 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
13c00781 | 5499 | |
5500 | Restore grub-emu | |
5501 | ||
5502 | * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c | |
5503 | * conf/i386-coreboot.rmk: likewise | |
5504 | * conf/i386-ieee1275.rmk: likewise | |
5505 | * conf/powerpc-ieee1275.rmk: likewise | |
7dd4a573 | 5506 | |
20318222 | 5507 | 2009-04-15 Felix Zielcke <fzielcke@z-51.de> |
5508 | ||
5509 | * INSTALL: Add that `./autogen.sh' needs to be run before | |
5510 | `./configure.'. | |
5511 | ||
d05f0df3 | 5512 | 2009-04-14 Bean <bean123ch@gmail.com> |
5513 | ||
5514 | * Makefile.in (pkglib_DATA): Add handler.lst. | |
5515 | (handler.lst): New rule. | |
5516 | ||
5517 | * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c. | |
5518 | * conf/i386-coreboot.rmk: Likewise. | |
5519 | * conf/i386-ieee1275.rmk: Likewise. | |
5520 | * conf/i386-efi.rmk: Likewise. | |
5521 | * conf/x86_64-efi.rmk: Likewise. | |
5522 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5523 | * conf/sparc64-ieee1275.rmk: Likewise. | |
5524 | ||
5525 | * genhandlerlist.sh: New file. | |
5526 | ||
5527 | * genmk.rb: Add rules to generate handler.lst. | |
5528 | ||
5529 | * include/grub/normal.h (grub_file_getline): New function definition. | |
5530 | (read_handler_list): Likewise. | |
5531 | (free_handler_list): Likewise. | |
5532 | ||
5533 | * include/grub/term.h (grub_term_register_input): Add name parameter | |
5534 | for auto generation of handler.lst. | |
5535 | (grub_term_register_output): Likewise. | |
5536 | ||
5537 | * normal/handler.c: New file. | |
5538 | ||
5539 | * normal/main.c (get_line): Renamed to grub_file_getline. | |
5540 | (read_config_file): Use the newly renamed grub_file_getline. | |
5541 | (read_command_list): Likewise. | |
5542 | (read_fs_list): Likewise. | |
5543 | (grub_normal_execute): Call read_handler_list to parse handler.lst. | |
5544 | (GRUB_MOD_FINI): Call free_handler_list to free handler list. | |
5545 | ||
5546 | * term/efi/console.c (grub_console_init): Add name parameter for auto | |
5547 | generation of handler.lst. | |
5548 | * term/gfxterm.c: Likewise. | |
5549 | * term/i386/pc/at_keyboard.c: Likewise. | |
5550 | * term/i386/pc/console.c: Likewise. | |
5551 | * term/i386/pc/serial.c: Likewise. | |
5552 | * term/i386/pc/vesafb.c: Likewise. | |
5553 | * term/i386/pc/vga.c: Likewise. | |
5554 | * term/i386/pc/vga_text.c: Likewise. | |
5555 | * term/ieee1275/ofconsole.c: Likewise. | |
5556 | * term/usb_keyboard.c: Likewise. | |
5557 | ||
33c846be | 5558 | 2009-04-14 Bean <bean123ch@gmail.com> |
5559 | ||
5560 | * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol | |
5561 | properly with null character. | |
5562 | ||
4484e01e | 5563 | 2009-04-14 Felix Zielcke <fzielcke@z-51.de> |
5564 | ||
5565 | * configure: Remove. | |
5566 | * config.h.in: Likewise. | |
f93d668e | 5567 | * stamp-h.in: Likewise. |
4484e01e | 5568 | * DISTLIST: Likewise. |
5569 | * conf/common.mk: Likewise. | |
5570 | * conf/i386-coreboot.mk: Likewise. | |
5571 | * conf/i386-efi.mk: Likewise. | |
5572 | * conf/i386-ieee1275.mk: Likewise. | |
5573 | * conf/i386.mk: Likewise. | |
5574 | * conf/i386-pc.mk: Likewise. | |
5575 | * conf/powerpc-ieee1275.mk: Likewise. | |
5576 | * conf/sparc64-ieee1275.mk: Likewise. | |
5577 | * conf/x86_64-efi.mk: Likewise. | |
5578 | ||
5579 | * INSTALL: Remove the sentence that Ruby and autoconf are only required if you | |
5580 | develop on GRUB. | |
5581 | ||
7dd4a573 | 5582 | 2009-04-14 John Stanley <jpsinthemix@verizon.net> |
5c5bf96a | 5583 | David S. Miller <davem@davemloft.net> |
5584 | ||
5585 | * util/hostdisk.c (make_device_name): Fix buffer length | |
5586 | calculations. | |
5587 | ||
e25b5a8c | 5588 | 2009-04-14 Felix Zielcke <fzielcke@z-51.de> |
5589 | ||
5590 | * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include | |
5591 | <sys/param.h> and <sys/sysctl.h>. | |
5592 | (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname() | |
5593 | to add 0x10 to `kern.geom.debugflags' if it's not already set, before | |
5594 | opening the device and reset them afterwards. | |
5595 | ||
1f1f580c | 5596 | 2009-04-13 Pavel Roskin <proski@gnu.org> |
5597 | ||
5598 | * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c. | |
5599 | Reported by John Stanley <jpsinthemix@verizon.net> | |
5600 | ||
7ebc2d6b | 5601 | 2009-04-13 Robert Millan <rmh@aybabtu.com> |
5602 | ||
5603 | * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use | |
7dd4a573 | 5604 | that name for menuentries when appropriate. |
7ebc2d6b | 5605 | |
d8ba3667 | 5606 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
5607 | ||
5608 | * util/grub.d/10_freebsd.in: Add a missing `fi'. | |
5609 | ||
cba416eb | 5610 | 2009-04-13 Robert Millan <rmh@aybabtu.com> |
5611 | ||
5612 | * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter | |
5613 | to Linux, simply abort telling the user it's no longer supported. | |
5614 | ||
a547a745 | 5615 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
5616 | ||
5617 | * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints | |
7dd4a573 | 5618 | doesn't exist. Check also for /boot/kernel/kernel.gz. Print |
a547a745 | 5619 | `freebsd_loadenv' only when devices.hints exist. |
5620 | ||
232a769c | 5621 | 2009-04-13 Pavel Roskin <proski@gnu.org> |
5622 | ||
5623 | * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes. | |
5624 | ||
c3012039 | 5625 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
5626 | ||
5627 | * util/i386/pc/grub-install.in (install_drive): Remove the BSD | |
5628 | partition number. | |
5629 | (grub_drive): Likewise. | |
5630 | ||
234022fe | 5631 | 2009-04-13 David S. Miller <davem@davemloft.net> |
5632 | ||
5633 | * kern/sparc64/ieee1275/ieee1275.c: New file. | |
5634 | * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE, | |
5635 | IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED, | |
5636 | IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL, | |
5637 | IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define. | |
5638 | (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr, | |
5639 | grub_ieee1275_alloc_physmem): Declare new exported functions. | |
5640 | ||
d8e1836c | 5641 | * include/grub/sparc64/ieee1275/loader.h: New file. |
5642 | * include/grub/sparc64/ieee1275/memory.h: Likewise. | |
5643 | * include/grub/sparc64/kernel.h: Likewise. | |
5644 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
5645 | ||
96bd81ec | 5646 | * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module. |
5647 | (grub_fstest_SOURCES): Likewise. | |
5648 | ||
6a4737e5 | 5649 | * util/hostdisk.c (make_device_name): Do not make any assumptions |
5650 | about the length of drive names. | |
5651 | ||
1d7a72fd | 5652 | * kern/dl.c (grub_dl_load_file): Close file immediately when |
5653 | we are done using it. | |
5654 | ||
56bc2471 | 5655 | 2009-04-12 David S. Miller <davem@davemloft.net> |
5656 | ||
5657 | * kern/misc.c (grub_ltoa): Fix cast when handling negative | |
5658 | values. Noticed by Pavel Roskin. | |
5659 | ||
df38d0bb | 5660 | * configure.ac: Check for __bswapsi2 and__bswapdi2 using |
5661 | target compiler. | |
7dd4a573 | 5662 | |
e382e93a | 5663 | * genmk.rb: Add more flexible image type specification, also |
5664 | pass --strip-unneeded to objcopy. | |
5665 | * conf/i386-pc.rmk: Use *_FORMAT. | |
5666 | * conf/i386-pc.mk: Rebuilt. | |
5667 | ||
f5dbbca9 | 5668 | * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct. |
5669 | (OFDISK_HASH_SZ): Define. | |
5670 | (ofdisk_hash): New hash table. | |
5671 | (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions. | |
5672 | (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id | |
5673 | instead of device phandle which is not unique. | |
5674 | ||
91c88b12 | 5675 | * kern/sparc64/ieee1275/init.c: Delete, replace with... |
5676 | * kern/sparc64/ieee1275/crt0.S: assembler implementation. | |
5677 | * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[]. | |
5678 | (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE, | |
5679 | GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE, | |
5680 | GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX, | |
5681 | GRUB_KERNEL_MACHINE_DATA_END): Define. | |
5682 | (grub_kernel_image_size, grub_total_module_size): Declare. | |
5683 | ||
5b5d4aa5 | 5684 | 2009-04-12 Pavel Roskin <proski@gnu.org> |
5685 | ||
7dd4a573 | 5686 | * configure.ac: Change the logic when we check for target tools. |
5687 | Do it when the target is specified and it's different from the | |
5688 | specified value of the host. | |
5b5d4aa5 | 5689 | |
c91e1793 | 5690 | 2009-04-11 Felix Zielcke <fzielcke@z-51.de> |
5691 | ||
5692 | * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h. | |
5693 | (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for | |
5694 | GNU/kFreeBSD. Check if a device is a character device. Use | |
5695 | DIOCGMEDIASIZE to get the size. | |
5696 | (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add | |
5697 | support for GNU/kFreeBSD. | |
5698 | (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV | |
5699 | is a character device instead of a block device. Add support for | |
5700 | FreeBSD device names. | |
5701 | ||
5702 | * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT | |
5703 | is a character device instead of a block device. | |
5704 | ||
5705 | * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME | |
5706 | is a character device instead of a block device. | |
5707 | ||
b1ac8644 | 5708 | 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com> |
5709 | ||
5710 | * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h. | |
5711 | (grub_util_biosdisk_open) [__FreeBSD__]: Add support for | |
5712 | FreeBSD. Check if a device is a character device. Use | |
5713 | DIOCGMEDIASIZE to get the size. | |
5714 | (convert_system_partition_to_system_disk) [__FreeBSD__]: Add | |
5715 | support for FreeBSD. | |
5716 | (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV | |
5717 | is a character device instead of a block device. Add support for | |
5718 | FreeBSD device names. | |
5719 | ||
5720 | * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is | |
5721 | a character device instead of a block device. | |
5722 | (grub_util_check_char_device): New function. | |
5723 | ||
5724 | * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is | |
5725 | a character device instead of a block device. | |
5726 | ||
5727 | * include/grub/util/getroot.h (grub_util_check_char_device): New | |
5728 | prototype. | |
5729 | ||
a3f7515a | 5730 | 2009-04-11 David S. Miller <davem@davemloft.net> |
5731 | ||
5732 | * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with | |
5733 | static libgcc. | |
5734 | * configure.ac: Check for __bswapsi2 and __bswapdi2 presence. | |
5735 | * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc | |
5736 | function, if present. | |
5737 | (__bswapdi2): Likewise. | |
5738 | ||
0d44993d | 5739 | * include/grub/sparc64/ieee1275/boot.h: New file. |
5740 | * boot/sparc64/ieee1275/boot.S: Likewise. | |
5741 | * boot/sparc64/ieee1275/diskboot.S: Likewise. | |
5742 | ||
ed3d2bc2 | 5743 | * kern/misc.c (grub_ltoa): New function. |
5744 | (grub_vsprintf): Use it to format 'long' integers. | |
5745 | ||
d3bfb59c | 5746 | 2009-04-10 David S. Miller <davem@davemloft.net> |
5747 | ||
5748 | * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg | |
5749 | slots are of type grub_ieee1275_cell_t. | |
5750 | (grub_nand_read): Likewise. | |
5751 | * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID, | |
5752 | IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these | |
5753 | macros are used to compare values in arg/ret block of the call. | |
5754 | (grub_ieee1275_finddevice, grub_ieee1275_get_property, | |
5755 | grub_ieee1275_next_property, grub_ieee1275_get_property_length, | |
5756 | grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path, | |
5757 | grub_ieee1275_instance_to_path, grub_ieee1275_write, | |
5758 | grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer, | |
5759 | grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open, | |
5760 | grub_ieee1275_close, grub_ieee1275_set_property, | |
5761 | grub_ieee1275_set_color): All ieee1275 call arg slots are of type | |
5762 | grub_ieee1275_cell_t. | |
5763 | * kern/ieee1275/openfw.c (grub_map): Likewise. | |
5764 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t, | |
5765 | grub_ieee1275_phandle_t): Define as grub_unit32_t type. | |
5766 | ||
450e2238 | 5767 | * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t. |
5768 | * kern/ieee1275/openfw.c (grub_children_iterate): Likewise. | |
5769 | (grub_devalias_iterate): Likewise. | |
5770 | ||
7dd4a573 | 5771 | 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
6df8cc76 | 5772 | |
5773 | UFS improvements | |
5774 | ||
5775 | * fs/ufs.c (INODE_NBLOCKS): new definition | |
5776 | (struct grub_ufs_dirent): added fields for non-BSD dirents | |
5777 | (grub_ufs_get_file_block): fixed double indirect handling | |
5778 | (grub_ufs_lookup_symlink): use more robust way to determine whether | |
5779 | symlink is inline | |
5780 | (grub_ufs_find_file): support for non-BSD dirents | |
5781 | (grub_ufs_dir): support for non-BSD dirents | |
5782 | ||
e7e6862a | 5783 | 2009-04-10 Bean <bean123ch@gnail.com> |
5784 | ||
5785 | * include/grub/efi/api.h (grub_efi_configuration_table): Add packed | |
5786 | attribute, otherwise the size would be wrong for i386 platform. | |
5787 | ||
5788 | * include/grub/pci.h (grub_pci_read_word): New inline function. | |
5789 | (grub_pci_read_byte): Likewise. | |
5790 | (grub_pci_write): Likewise. | |
5791 | (grub_pci_write_word): Likewise. | |
5792 | (grub_pci_write_byte): Likewise. | |
5793 | ||
5794 | * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR. | |
5795 | ||
5796 | * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module. | |
5797 | (find_framebuf): Scan pci to locate the frame buffer address. | |
5798 | ||
5799 | * commands/efi/fixvideo.c: New file. | |
5800 | ||
5801 | * commands/efi/loadbios.c: Likewise. | |
5802 | ||
5803 | * commands/memrw.c: Likewise. | |
5804 | ||
5805 | * util/grub-dumpbios.in: Likewise. | |
5806 | ||
5807 | * conf/common.rmk (grub-dumpbios): New utility. | |
5808 | (pkglib_MODULES): New module memrw.mod. | |
5809 | (memrw_mod_SOURCE): New macro. | |
5810 | (memrw_mod_CFLAGS): Likewise. | |
5811 | (memrw_mod_LDFLAGS): Likewise. | |
5812 | ||
7dd4a573 | 5813 | * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and |
e7e6862a | 5814 | fixvideo.mod. |
5815 | (loadbios_mod_SOURCE): New macro. | |
5816 | (loadbios_mod_CFLAGS): Likewise. | |
5817 | (loadbios_mod_LDFLAGS): Likewise. | |
5818 | (fixvideo_mod_SOURCE): Likewise. | |
5819 | (fixvideo_mod_CFLAGS): Likewise. | |
5820 | (fixvideo_mod_LDFLAGS): Likewise. | |
5821 | ||
7dd4a573 | 5822 | * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and |
e7e6862a | 5823 | fixvideo.mod. |
5824 | (loadbios_mod_SOURCE): New macro. | |
5825 | (loadbios_mod_CFLAGS): Likewise. | |
5826 | (loadbios_mod_LDFLAGS): Likewise. | |
5827 | (fixvideo_mod_SOURCE): Likewise. | |
5828 | (fixvideo_mod_CFLAGS): Likewise. | |
5829 | (fixvideo_mod_LDFLAGS): Likewise. | |
5830 | ||
af63ada2 | 5831 | 2009-04-08 Felix Zielcke <fzielcke@z-51.de> |
5832 | ||
5833 | * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check. | |
5834 | ||
c2cdde70 | 5835 | 2009-04-07 David S. Miller <davem@davemloft.net> |
5836 | ||
5837 | * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add | |
5838 | support for R_SPARC_OLO10 relocations. Fix compile warning for | |
5839 | R_SPARC_WDISP30 case. | |
ea3f72cf | 5840 | * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation. |
c2cdde70 | 5841 | |
761319cf | 5842 | 2009-04-06 Pavel Roskin <proski@gnu.org> |
5843 | ||
1007d1f5 | 5844 | * include/grub/misc.h (ARRAY_SIZE): New macro. |
5845 | * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): | |
5846 | New macro. | |
5847 | * loader/i386/linux.c (allocate_pages): Use free_pages(). | |
5848 | (grub_linux_unload): Don't use free_pages(). | |
5849 | (grub_linux_boot): Prevent accessing linux_vesafb_modes with a | |
5850 | wrong index. Treat all other modes as text modes. | |
5851 | (grub_cmd_linux): Initialize vid_mode unconditionally to | |
5852 | GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask". | |
5853 | ||
761319cf | 5854 | * commands/help.c (print_command_help): Use cmd->prio, not |
5855 | cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE. | |
5856 | ||
ea761d40 | 5857 | 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
7dd4a573 | 5858 | |
ea761d40 | 5859 | Parttool |
5860 | ||
5861 | * parttool/pcpart.c: new file | |
5862 | * commands/parttool.c: likewise | |
5863 | * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod | |
5864 | (parttool_mod_SOURCES): new variable | |
5865 | (parttool_mod_CFLAGS): likewise | |
5866 | (parttool_mod_LDFLAGS): likewise | |
5867 | (pcpart_mod_SOURCES): likewise | |
5868 | (pcpart_mod_CFLAGS): likewise | |
5869 | (pcpart_mod_LDFLAGS): likewise | |
7dd4a573 | 5870 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c |
ea761d40 | 5871 | and parttool/pcpart.c |
5872 | * conf/i386-efi.rmk: likewise | |
5873 | * conf/i386-ieee1275.rmk: likewise | |
5874 | * conf/i386-pc.rmk: likewise | |
5875 | * conf/powerpc-ieee1275.rmk: likewise | |
5876 | * conf/sparc64-ieee1275.rmk: likewise | |
5877 | * conf/x86_64-ieee1275.rmk: likewise | |
5878 | ||
05aaebfb | 5879 | 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
5880 | ||
5881 | Support for mtime and further expandability of dir command | |
5882 | ||
5883 | * include/grub/lib/datetime.h: moved to ... | |
7dd4a573 | 5884 | * include/grub/datetime.h: ... moved here and added |
05aaebfb | 5885 | declaration of grub_unixtime2datetime. All users updated |
7dd4a573 | 5886 | * include/grub/fs.h: new syntax for dir and mtime functions in |
5887 | struct grub_fs | |
05aaebfb | 5888 | * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK |
5889 | and GRUB_FSHELP_FLAGS_MASK | |
5890 | * commands/ls.c (grub_ls_list_files): Write mtime in long format | |
5891 | * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime | |
5892 | (grub_ext2_mtime): new function | |
5893 | * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime | |
5894 | (grub_hfsplus_mtime): new function | |
5895 | * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition | |
5896 | (GRUB_UFS_ATTR_FILE): likewise | |
5897 | (GRUB_UFS_ATTR_LNK): likewise | |
5898 | (struct grub_ufs_sblock): new fields mtime | |
5899 | (grub_ufs_read_inode): new parameter to read inode to a separate buffer | |
5900 | all users updated | |
5901 | (grub_ufs_dir): mtime support | |
5902 | (grub_ufs_mtime): new function | |
5903 | * fs/affs.c (grub_affs_dir): use new dir syntax | |
5904 | * fs/afs.c (grub_afs_dir): likewise | |
5905 | * fs/cpio.c (grub_cpio_dir): likewise | |
5906 | * fs/fat.c (grub_fat_find_dir): likewise | |
5907 | * fs/hfs.c (grub_hfs_dir): likewise | |
5908 | * fs/iso9660.c (grub_iso9660_dir): likewise | |
5909 | * fs/jfs.c (grub_jfs_dir): likewise | |
5910 | * fs/minix.c (grub_minix_dir): likewise | |
5911 | * fs/ntfs.c (grub_ntfs_dir): likewise | |
5912 | * fs/reiserfs.c (grub_reiserfs_dir): likewise | |
5913 | * fs/sfs.c (grub_sfs_dir): likewise | |
5914 | * fs/xfs.c (grub_xfs_dir): likewise | |
5915 | * util/hostfs.c (grub_hostfs_dir): likewise | |
5916 | * lib/datetime.c: moved to ... | |
5917 | * normal/datetime.c: ... moved here | |
5918 | (grub_unixtime2datetime): new function | |
5919 | * kern/rescue.c (grub_rescue_print_files): use new dir syntax | |
7dd4a573 | 5920 | * normal/completion.c (iterate_dir): use new dir syntax |
5921 | * normal/misc.c (grub_normal_print_device_info): tell the | |
05aaebfb | 5922 | last modification time of a volume |
7dd4a573 | 5923 | * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax |
05aaebfb | 5924 | * conf/common.rmk: added lib/datetime.c to ls.mod |
7dd4a573 | 5925 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c |
05aaebfb | 5926 | (normal_mod_SOURCES): likewise |
5927 | (datetime_mod_SOURCES): Removed lib/datetime.c | |
5928 | * conf/i386-efi.rmk: likewise | |
7dd4a573 | 5929 | * conf/i386-ieee1275.rmk: likewise |
05aaebfb | 5930 | * conf/i386-pc.rmk: likewise |
5931 | * conf/powerpc-ieee1275.rmk: likewise | |
7dd4a573 | 5932 | * conf/sparc64-ieee1275.rmk: likewise |
5933 | * conf/x86_64-efi.rmk: likewise | |
05aaebfb | 5934 | |
8a7e1a14 | 5935 | 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
5936 | ||
5937 | Trim trailing spaces in FAT label and support mtools-like labels | |
7dd4a573 | 5938 | |
5939 | * fs/fat.c (grub_fat_iterate_dir): New function based | |
8a7e1a14 | 5940 | on grub_fat_find_dir |
5941 | (grub_fat_find_dir): use grub_fat_iterate_dir | |
5942 | (grub_fat_label): likewise | |
5943 | ||
04186a9c | 5944 | 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com> |
5945 | ||
7dd4a573 | 5946 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h |
04186a9c | 5947 | and command.h |
5948 | remove extraneous kernel_elf_HEADERS | |
5949 | ||
da4c0bb6 | 5950 | 2009-04-04 Bean <bean123ch@gnail.com> |
5951 | ||
5952 | * include/grub/util/misc.h: Add dummy function fsync for mingw. | |
5953 | ||
5954 | * util/misc.c: Likewise. | |
5955 | ||
54ad9555 | 5956 | 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
5957 | ||
5958 | * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf | |
5959 | instead of grub_printf. | |
5960 | ||
7a6bf9f2 | 5961 | 2009-04-03 Robert Millan <rmh@aybabtu.com> |
5962 | ||
5963 | * loader/i386/linux.c (grub_linux_setup_video): Fill | |
5964 | `params->{red,green,blue,reserved}_{mask_size,field_pos}' with | |
5965 | values from `mode info' structure instead of hardcoded | |
5966 | values. | |
5967 | ||
3fcc2083 | 5968 | 2009-04-01 Pavel Roskin <proski@gnu.org> |
5969 | ||
5970 | * Makefile.in: Remove all references to MODULE_LDFLAGS, it's | |
5971 | unused now. | |
5972 | * genmk.rb: Likewise. | |
5973 | * configure.ac: Likewise. | |
5974 | ||
5ec9740b | 5975 | 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com> |
5976 | ||
5977 | * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to | |
5978 | TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage. | |
5979 | ||
5270cec8 | 5980 | 2009-04-01 David S. Miller <davem@davemloft.net> |
5981 | ||
5982 | * normal/sparc64/setjmp.S: Fix setjmp implementation. | |
7dd4a573 | 5983 | * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update. |
5270cec8 | 5984 | (grub_setjmp): Mark with 'returns_twice' attribute. |
5985 | * include/grub/i386/setjmp.h (grub_setjmp): Likewise | |
5986 | * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise. | |
5987 | * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise. | |
5988 | ||
9c3dd854 | 5989 | 2009-04-01 Robert Millan <rmh@aybabtu.com> |
5990 | ||
5991 | Reapply fix from 2008-07-28 which was accidentally reverted; also | |
5992 | perform the same fix to a similar check in same function. | |
5993 | ||
5994 | * disk/raid.c (grub_raid_scan_device): Do not abort when two disks | |
5995 | with the same number are found, just use issue a warning with | |
5996 | grub_dprintf(), as this error has been reported to be non-fatal. | |
5997 | ||
0d818b7e | 5998 | 2009-03-31 Pavel Roskin <proski@gnu.org> |
5999 | ||
6000 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default | |
6001 | for cross-compilation. | |
6002 | ||
95646d92 | 6003 | 2009-03-30 Robert Millan <rmh@aybabtu.com> |
6004 | ||
6005 | Fix i386-ieee1275 build. | |
6006 | ||
6007 | * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot): | |
6008 | Remove declaration. | |
6009 | ||
6a003ed1 | 6010 | 2009-03-30 Pavel Roskin <proski@gnu.org> |
6011 | ||
6012 | * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ... | |
6013 | (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be | |
6014 | zero-terminated, rely only on the strlen value. Fix comparison | |
6015 | of strings differing in length. | |
6016 | ||
92f33540 | 6017 | 2009-03-30 Robert Millan <rmh@aybabtu.com> |
6018 | ||
6019 | * loader/i386/linux.c (grub_cmd_linux): Check for zImage before | |
6020 | checking for abi version. Improve error messages on BIOS to notify | |
6021 | user about `linux16' command. | |
6022 | ||
a8c48fd5 | 6023 | 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
6024 | ||
f968172e | 6025 | Leak fixes |
a8c48fd5 | 6026 | |
f968172e | 6027 | * kern/disk.c (grub_disk_cache_store): Invalidate previous cache |
6028 | in case of collision | |
6029 | * disk/scsi.c (grub_scsi_open): free scsi in case of error | |
a8c48fd5 | 6030 | |
9c323f09 | 6031 | 2009-03-29 Robert Millan <rmh@aybabtu.com> |
6032 | ||
6033 | * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and | |
6034 | set `vid_mode' accordingly. | |
6035 | (grub_linux_boot): Process `vid_mode' and set video mode. | |
6036 | ||
ae68f423 | 6037 | 2009-03-29 Robert Millan <rmh@aybabtu.com> |
6038 | ||
6039 | * util/grub.d/10_linux.in (linux_entry): New function. | |
6040 | Factorize generation of Linux boot entries. | |
6041 | ||
5709cfc4 | 6042 | 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org> |
6043 | ||
6044 | Make the format of Environment Block plain text. The boot loader | |
6045 | part is not tested well yet. | |
7dd4a573 | 6046 | |
5709cfc4 | 6047 | * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro. |
6048 | (buffer): Removed. | |
6049 | (envblk): Likewise. | |
6050 | (usage): Remove "info" and "clear". Add "unset". Update the | |
6051 | description of "set", as this does not delete variables any | |
6052 | longer. | |
6053 | (create_envblk_file): Complete rewrite. | |
6054 | (open_envblk_file): Likewise. | |
6055 | (cmd_info): Removed. | |
6056 | (cmd_list): Likewise. | |
6057 | (cmd_set): Likewise. | |
6058 | (cmd_clear): Likewise. | |
6059 | (list_variables): New function. | |
6060 | (write_envblk): Likewise. | |
6061 | (set_variables): Likewise. | |
6062 | (unset_variables): Likewise. | |
6063 | (main): Complete rewrite. | |
6064 | ||
6065 | * commands/loadenv.c (buffer): Removed. | |
6066 | (envblk): Likewise. | |
6067 | (open_envblk_file): New function. | |
6068 | (read_envblk_file): Complete rewrite. | |
6069 | (grub_cmd_load_env): Likewise. | |
6070 | (grub_cmd_list_env): Likewise. | |
6071 | (struct blocklist): New struct. | |
6072 | (free_blocklists): New function. | |
6073 | (check_blocklists): Likewise. | |
6074 | (write_blocklists): Likewise. | |
6075 | (grub_cmd_save_env): Complete rewrite. | |
6076 | ||
6077 | * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with | |
6078 | a plain text signature. | |
6079 | (GRUB_ENVBLK_MAXLEN): Removed. | |
6080 | (struct grub_envblk): Complete rewrite. | |
6081 | (grub_envblk_find): Removed. | |
6082 | (grub_envblk_insert): Likewise. | |
6083 | (grub_envblk_open): New prototype. | |
6084 | (grub_envblk_set): Likewise. | |
6085 | (grub_envblk_delete): Put const to VALUE. | |
6086 | (grub_envblk_iterate): Put const to NAME and VALUE. | |
6087 | (grub_envblk_close): New prototype. | |
6088 | (grub_envblk_buffer): New inline function. | |
6089 | (grub_envblk_size): Likewise. | |
6090 | ||
6091 | * lib/envblk.c: Include grub/mm.h. | |
6092 | (grub_env_find): Removed. | |
6093 | (grub_envblk_open): New function. | |
6094 | (grub_envblk_close): Likewise. | |
6095 | (escaped_value_len): Likewise. | |
6096 | (find_next_line): Likewise. | |
6097 | (grub_envblk_insert): Removed. | |
6098 | (grub_envblk_set): New function. | |
6099 | (grub_envblk_delete): Complete rewrite. | |
6100 | (grub_envblk_iterate): Likewise. | |
6101 | ||
a9368fd3 | 6102 | 2009-03-28 Robert Millan <rmh@aybabtu.com> |
6103 | ||
6104 | * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'. | |
6105 | (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New | |
6106 | variables. Use 16-bit loader. | |
6107 | (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit | |
6108 | loader. | |
6109 | * kern/i386/loader.S (grub_linux_boot): Rename to ... | |
6110 | (grub_linux16_boot): ... this. Update all users. | |
6111 | * loader/i386/linux.c (grub_linux32_boot): Rename to ... | |
6112 | (grub_linux_boot): ... this. Update all users. | |
6113 | ||
6114 | * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ... | |
6115 | (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd' | |
6116 | commands to `linux16' and `initrd16'. | |
6117 | (GRUB_MOD_FINI(linux)): Rename to ... | |
6118 | (GRUB_MOD_FINI(linux16)): ... this. | |
6119 | ||
e4dd5a7e | 6120 | 2009-03-24 Pavel Roskin <proski@gnu.org> |
6121 | ||
6122 | * genmk.rb: Define ASM_FILE for *.S files for *.lst generation, | |
6123 | not just for compilation. | |
6124 | ||
c04d6e05 | 6125 | 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com> |
6126 | ||
6127 | Move multiboot helper out of kernel | |
6128 | ||
6129 | * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add | |
6130 | `loader/i386/multiboot_helper.S'. | |
6131 | * conf/i386-coreboot.rmk: Likewise | |
6132 | * conf/i386-ieee1275.rmk: Likewise | |
6133 | ||
6134 | * kern/i386/loader.S: Move multiboot helpers from here... | |
6135 | * loader/i386/multiboot_helper.S: ...moved here | |
6136 | * include/grub/i386/loader.h: Move declarations of multiboot | |
6137 | helpers from here... | |
6138 | * include/grub/i386/multiboot.h: ...moved here | |
6139 | * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h | |
6140 | ||
42a5b3fc | 6141 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
6142 | ||
6143 | * kern/env.c (grub_env_context_open): Added an argument to specify | |
6144 | whether a new context inherits exported variables from current | |
6145 | one. This is useful when making a sandbox to interpret a config | |
6146 | file. | |
6147 | All callers updated. | |
6148 | ||
6149 | * include/grub/env.h (grub_env_context_open): Updated the prototype. | |
6150 | ||
b28bbc4e | 6151 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
6152 | ||
6153 | * kern/env.c (grub_env_context_close): Fix memory leaks. | |
6154 | ||
f04f02e4 | 6155 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
6156 | ||
6157 | * normal/main.c (grub_normal_execute): Added an argument | |
6158 | BATCH to specify if an interactive interface should be provided | |
6159 | after reading a config file. | |
6160 | All callers updated. | |
6161 | (read_command_list): Prevent being executed twice. | |
6162 | (read_fs_list): Likewise. | |
6163 | ||
42a5b3fc | 6164 | * include/grub/normal.h (grub_normal_execute): Updated the |
6165 | prototype. | |
f04f02e4 | 6166 | |
41473ac2 | 6167 | 2009-03-22 Pavel Roskin <proski@gno.org> |
6168 | ||
fbc00b0c | 6169 | * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with |
6170 | _start. | |
6171 | * kern/i386/pc/startup.S: Likewise. | |
6172 | * kern/i386/efi/startup.S: Likewise. | |
6173 | * kern/i386/ieee1275/startup.S: Likewise. | |
6174 | * kern/i386/coreboot/startup.S: Likewise. | |
6175 | * kern/x86_64/efi/startup.S: Likewise. | |
6176 | ||
41473ac2 | 6177 | * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove. |
6178 | * configure.ac: Don't call grub_CHECK_START_SYMBOL. | |
6179 | * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL. | |
6180 | ||
2274cc8f | 6181 | 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com> |
6182 | ||
6183 | Bugfixes in multiboot for bugs uncovered by solaris kernel. | |
6184 | ||
6185 | * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected | |
6186 | limit detection. | |
6187 | Use vaddr of correct segment for entry_point. | |
6188 | ||
b1b797cb | 6189 | 2009-03-21 Bean <bean123ch@gmail.com> |
6190 | ||
6191 | * commands/blocklist.c: Add include file <grub/command.h>, remove | |
6192 | <grub/normal.h> and <grub/arg.h>. | |
6193 | (grub_cmd_blocklist): Use the new command interface. | |
6194 | (GRUB_MOD_INIT): Likewise. | |
6195 | (GRUB_MOD_FINI): Likewise. | |
6196 | * commands/boot.c: Likewise. | |
6197 | * commands/cat.c: Likewise. | |
6198 | * commands/cmp.c: Likewise. | |
6199 | * commands/configfile.c: Likewise. | |
6200 | * commands/crc.c: Likewise. | |
6201 | * commands/echo.c: Likewise. | |
6202 | * commands/halt.c: Likewise. | |
6203 | * commands/handler.c: Likewise. | |
6204 | * commands/hdparm.c: Likewise. | |
6205 | * commands/help.c: Likewise. | |
6206 | * commands/hexdump.c: Likewise. | |
6207 | * commands/loadenv.c: Likewise. | |
6208 | * commands/ls.c: Likewise. | |
6209 | * commands/lsmmap.c: Likewise. | |
6210 | * commands/lspci.c: Likewise. | |
6211 | * commands/loadenv.c: Likewise. | |
6212 | * commands/read.c: Likewise. | |
6213 | * commands/reboot.c: Likewise. | |
6214 | * commands/search.c: Likewise. | |
6215 | * commands/sleep.c: Likewise. | |
6216 | * commands/test.c: Likewise. | |
6217 | * commands/usbtest.c: Likewise. | |
6218 | * commands/videotest.c: Likewise. | |
6219 | * commands/i386/cpuid.c: Likewise. | |
6220 | * commands/i386/pc/halt.c: Likewise. | |
6221 | * commands/i386/pc/play.c: Likewise. | |
6222 | * commands/i386/pc/pxecmd.c: Likewise. | |
6223 | * commands/i386/pc/vbeinfo.c: Likewise. | |
6224 | * commands/i386/pc/vbetest.c: Likewise. | |
6225 | * commands/ieee1275/suspend.c: Likewise. | |
6226 | * disk/loopback.c: Likewise. | |
6227 | * font/font_cmd.c: Likewise. | |
6228 | * hello/hello.c: Likewise. | |
6229 | * loader/efi/appleloader.c: Likewise. | |
6230 | * loader/efi/chainloader.c: Likewise. | |
6231 | * loader/i386/bsd.c: Likewise. | |
6232 | * loader/i386/efi/linux.c: Likewise. | |
6233 | * loader/i386/ieee1275/linux.c: Likewise. | |
6234 | * loader/i386/linux.c: Likewise. | |
6235 | * loader/i386/pc/chainloader.c: Likewise. | |
6236 | * loader/i386/pc/linux.c: Likewise. | |
6237 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
6238 | * loader/multiboot_loader.c: Likewise. | |
6239 | * term/gfxterm.c: Likewise. | |
6240 | * term/i386/pc/serial.c: Likewise. | |
6241 | * term/terminfo.c: Likewise. | |
6242 | ||
6243 | * term/i386/pc/vesafb.c: Removed <grub/arg.h>. | |
6244 | * term/i386/pc/vga.c: Likewise. | |
6245 | * video/readers/jpeg.c: Likewise. | |
6246 | * video/readers/png.c: Likewise. | |
6247 | * video/readers/tga.c: Likewise. | |
6248 | ||
6249 | * util/grub-fstest (cmd_loopback): Removed. | |
6250 | (cmd_blocklist): Likewise. | |
6251 | (cmd_ls): Likewise. | |
6252 | (grub_register_command): Likewise. | |
6253 | (grub_unregister_command): Likewise. | |
6254 | (execute_command): Use grub_command_find to locate command and execute | |
6255 | it. | |
6256 | ||
6257 | * include/grub/efi/chainloader.h: Removed. | |
6258 | * loader/efi/chainloader_normal.c: Likewise. | |
6259 | * loader/i386/bsd_normal.c: Likewise. | |
6260 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
6261 | * loader/i386/pc/multiboot_normal.c: Likewise. | |
6262 | * loader/linux_normal.c: Likewise. | |
6263 | * loader/multiboot_loader_normal.c: Likewise. | |
6264 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
6265 | ||
6266 | * gencmdlist.sh: Scan new registration command grub_register_extcmd | |
6267 | and grub_register_command_p1. | |
6268 | ||
6269 | * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c, | |
6270 | kern/command.c, lib/arg.c and commands/extcmd.c. | |
6271 | (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod. | |
6272 | (minicmd_mod_SOURCES): New variable. | |
6273 | (minicmd_mod_CFLAGS): Likewise. | |
6274 | (minicmd_mod_LDFLAGS): Likewise. | |
6275 | (extcmd_mod_SOURCES): Likewise. | |
6276 | (extcmd_mod_CFLAGS): Likewise. | |
6277 | (extcmd_mod_LDFLAGS): Likewise. | |
6278 | (boot_mod_SOURCES): Removed. | |
6279 | (boot_mod_CFLAGS): Likewise. | |
6280 | (boot_mod_LDFLAGS): Likewise. | |
6281 | ||
6282 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and | |
6283 | kern/corecmd.c. | |
6284 | (kernel_img_HEADERS): Add command.h. | |
6285 | (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add | |
6286 | commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c | |
6287 | and lib/arg.c. | |
6288 | (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and | |
6289 | _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod, | |
6290 | remove the corresponding normal mode command. | |
6291 | (normal_mod_SOURCES): Remove normal/arg.c. | |
6292 | * conf/i386-coreboot.rmk: Likewise. | |
6293 | * conf/i386-efi.rmk: Likewise. | |
6294 | * conf/i386-ieee1275.rmk: Likewise. | |
6295 | * conf/powerpc-ieee1275.rmk: Likewise. | |
6296 | * conf/x86_64-efi.rmk: Likewise. | |
6297 | ||
6298 | * include/grub/arg.h: Move from here ... | |
6299 | * include/grub/lib/arg.h: ... to here. | |
6300 | ||
6301 | * normal/arg.c: Move from here ... | |
6302 | * lib/arg.c: ... to here. | |
6303 | ||
6304 | * commands/extcmd.c: New file. | |
6305 | * commands/minicmd.c: Likewise. | |
6306 | * include/grub/command.h: Likewise. | |
6307 | * include/grub/extcmd.h: Likewise. | |
6308 | * kern/command.c: Likewise. | |
6309 | * kern/corecmd.c: Likewise. | |
6310 | ||
6311 | * kern/list.c (grub_list_iterate): Return int instead of void. | |
6312 | (grub_list_insert): New function. | |
6313 | (grub_prio_list_insert): Likewise. | |
6314 | ||
6315 | * kern/rescue.c (grub_rescue_command): Removed. | |
6316 | (grub_rescue_command_list): Likewise. | |
6317 | (grub_rescue_register_command): Likewise. | |
6318 | (grub_rescue_unregister_command): Likewise. | |
6319 | (grub_rescue_cmd_boot): Move to minicmd.c | |
6320 | (grub_rescue_cmd_help): Likewise. | |
6321 | (grub_rescue_cmd_info): Likewise. | |
6322 | (grub_rescue_cmd_boot): Likewise. | |
6323 | (grub_rescue_cmd_testload): Likewise. | |
6324 | (grub_rescue_cmd_dump): Likewise. | |
6325 | (grub_rescue_cmd_rmmod): Likewise. | |
6326 | (grub_rescue_cmd_lsmod): Likewise. | |
6327 | (grub_rescue_cmd_exit): Likewise. | |
6328 | (grub_rescue_print_devices): Moved to corecmd.c. | |
6329 | (grub_rescue_print_files): Likewise. | |
6330 | (grub_rescue_cmd_ls): Likewise. | |
6331 | (grub_rescue_cmd_insmod): Likewise. | |
6332 | (grub_rescue_cmd_set): Likewise. | |
6333 | (grub_rescue_cmd_unset): Likewise. | |
7d074e3c | 6334 | (attempt_normal_mode): Use grub_command_find to get normal module. |
b1b797cb | 6335 | (grub_enter_rescue_mode): Use grub_register_core_commands to register |
7d074e3c | 6336 | commands, remove grub_rescue_register_command calls. |
b1b797cb | 6337 | |
7d074e3c | 6338 | * normal/command.c (grub_register_command): Removed. |
b1b797cb | 6339 | (grub_unregister_command): Likewise. |
6340 | (grub_command_find): Likewise. | |
6341 | (grub_iterate_commands): Likewise. | |
6342 | (rescue_command): Likewise. | |
6343 | (export_command): Moved to corecmd.c. | |
6344 | (set_command): Removed. | |
6345 | (unset_command): Likewise. | |
6346 | (insmod_command): Likewise. | |
6347 | (rmmod_command): Likewise. | |
6348 | (lsmod_command): Likewise. | |
6349 | (grub_command_init): Likewise. | |
6350 | ||
6351 | * normal/completion.c (iterate_command): Use cmd->prio to check for | |
6352 | active command. | |
6353 | (complete_arguments): Use grub_extcmd_t structure to find options. | |
6354 | (grub_normal_do_completion): Change function grub_iterate_commands to | |
6355 | grub_command_iterate. | |
6356 | ||
6357 | * normal/execute.c (grub_script_execute_cmd): No need to parse | |
6358 | argument here. | |
6359 | ||
6360 | * normal/main.c (grub_dyncmd_dispatcher): New function. | |
6361 | (read_command_list): Register unload commands as dyncmd. | |
6362 | (grub_cmd_normal): Use new command interface, register rescue, | |
6363 | unregister normal at entry, register normal, unregister rescue at exit. | |
6364 | ||
6365 | * include/grub/list.h (grub_list_test_t): New type. | |
6366 | (grub_list_iterate): Return int instead of void. | |
6367 | (grub_list_insert): New function. | |
6368 | (GRUB_AS_NAMED_LIST_P): New macro. | |
6369 | (GRUB_AS_PRIO_LIST): Likewise. | |
6370 | (GRUB_AS_PRIO_LIST_P): Likewise. | |
6371 | (GRUB_PRIO_LIST_PRIO_MASK): New constant. | |
6372 | (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise. | |
6373 | (grub_prio_list): New structure. | |
6374 | (grub_prio_list_insert): New function. | |
6375 | (grub_prio_list_remove): New inline function. | |
6376 | ||
6377 | * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>. | |
6378 | (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h. | |
6379 | (GRUB_COMMAND_FLAG_MENU): Likewise. | |
6380 | (GRUB_COMMAND_FLAG_BOTH): Likewise. | |
6381 | (GRUB_COMMAND_FLAG_TITLE): Likewise. | |
6382 | (GRUB_COMMAND_FLAG_NO_ECHO): Likewise. | |
6383 | (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed. | |
6384 | (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise. | |
6385 | (grub_command): Likewise. | |
6386 | (grub_register_command): Likewise. | |
6387 | (grub_command_find): Likewise. | |
6388 | (grub_iterate_commands): Likewise. | |
6389 | (grub_command_init): Likewise. | |
6390 | (grub_arg_parse): Likewise. | |
6391 | (grub_arg_show_help): Likewise. | |
6392 | ||
6393 | * include/grub/rescue.h (grub_rescue_register_command): Removed. | |
6394 | (grub_rescue_unregister_command): Likewise. | |
6395 | ||
6396 | * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd, | |
6397 | grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd, | |
6398 | grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module. | |
6399 | ||
6400 | * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and | |
6401 | grub_rescue_cmd_initrd. | |
6402 | * include/grub/i386/loader.h: Likewise. | |
6403 | * include/grub/x86_64/loader.h: Likewise. | |
6404 | ||
6405 | * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd. | |
6406 | ||
1f4147aa | 6407 | 2009-03-21 Bean <bean123ch@gmail.com> |
6408 | ||
6409 | * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size | |
6410 | instead of stat in mingw environment. | |
6411 | ||
6412 | * util/misc.c (grub_millisleep): Use Sleep in mingw environment. | |
6413 | ||
6414 | * aclocal.m4 (grub_CHECK_LINK_DIR): New function. | |
6415 | ||
6416 | * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use | |
6417 | AC_CONFIG_LINKS. | |
6418 | ||
2156d5ba | 6419 | 2009-03-21 Bean <bean123ch@gmail.com> |
6420 | ||
6421 | * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for | |
6422 | out of range error. | |
6423 | ||
177b82ca | 6424 | 2009-03-18 Michel Dänzer <michel@daenzer.net> |
6425 | ||
6426 | * fs/ext2.c (grub_ext2_read_block): Take endianness into account when | |
6427 | checking inode flags for EXT4_EXTENTS_FLAG. | |
6428 | ||
14aad807 | 6429 | 2009-03-18 Robert Millan <rmh@aybabtu.com> |
6430 | ||
6431 | * loader/i386/linux.c: Include `<grub/video.h>' and | |
6432 | `<grub/i386/pc/vbe.h>'.. | |
6433 | (grub_linux_setup_video): New function. Loosely based on the EFI one. | |
6434 | (grub_linux32_boot): Attempt to configure video settings with | |
6435 | grub_linux_setup_video(). | |
6436 | (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order | |
6437 | to avoid grub_console_fini() which would step out of graphical mode | |
6438 | unconditionally. | |
6439 | ||
8cf83a27 | 6440 | 2009-03-14 Robert Millan <rmh@aybabtu.com> |
6441 | ||
6442 | Fix build on powerpc. | |
6443 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'. | |
6444 | ||
40164e75 | 6445 | 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com> |
6446 | ||
6447 | * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of | |
6448 | background image command. | |
6449 | ||
c58bc32a | 6450 | 2009-03-12 Colin D Bennett <colin@gibibit.com> |
6451 | ||
6452 | * term/gfxterm.c (draw_cursor): Ensure character is redrawn. | |
6453 | (grub_gfxterm_putchar): Extract pairs of identical calls to | |
6454 | draw_cursor out of conditional blocks. | |
6455 | ||
5415144a | 6456 | 2009-03-11 Pavel Roskin <proski@gnu.org> |
6457 | ||
6458 | * fs/hfs.c (grub_hfs_strncasecmp): New function. | |
6459 | (grub_hfs_cmp_catkeys): Use HFS specific string comparison. | |
6460 | ||
6394042e | 6461 | 2009-03-11 Robert Millan <rmh@aybabtu.com> |
6462 | ||
6463 | * loader/i386/multiboot_elfxx.c | |
6464 | (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files. | |
6465 | ||
b7b50e5f | 6466 | 2009-03-11 Felix Zielcke <fzielcke@z-51.de> |
6467 | ||
6468 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and | |
6469 | `kern/handler.c'. | |
6470 | ||
1ca7fc96 | 6471 | 2009-03-11 Robert Millan <rmh@aybabtu.com> |
6472 | ||
6473 | * loader/i386/multiboot.c (code_size): New variable. | |
6474 | (grub_multiboot): Define offsets by adding to `code_size' rather | |
7d074e3c | 6475 | than subtracting from `grub_multiboot_payload_size'. Provide |
1ca7fc96 | 6476 | 4-byte alignment to MBI and others by increasing |
7d074e3c | 6477 | `boot_loader_name_length' appropriately. |
1ca7fc96 | 6478 | |
6479 | * loader/i386/multiboot_elfxx.c | |
6480 | (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'. | |
6481 | ||
a83ea1d2 | 6482 | 2009-03-09 Felix Zielcke <fzielcke@z-51.de> |
6483 | ||
6484 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated | |
6485 | `fs/ext2.c'. | |
6486 | ||
aa9f3bff | 6487 | 2009-03-08 Robert Millan <rmh@aybabtu.com> |
6488 | ||
6489 | Make loader/i386/linux.c usable on i386-pc again. | |
6490 | ||
6491 | * kern/i386/pc/init.c (grub_machine_init): Disable addition of low | |
6492 | memory to heap. | |
6493 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove | |
6494 | `#error' stanza. | |
6495 | ||
d8b3b60e | 6496 | 2009-03-07 Bean <bean123ch@gmail.com> |
6497 | ||
6498 | * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd | |
6499 | allocation. | |
6500 | ||
b362c9e9 | 6501 | 2009-03-06 Robert Millan <rmh@aybabtu.com> |
6502 | ||
6503 | Fix display issue on terminals with screen size other than 80x25 | |
6504 | (e.g. gfxterm with resolution higher than 640x480). | |
6505 | ||
6506 | * normal/main.c (grub_normal_init_page): Display title text in a | |
7d074e3c | 6507 | position relative to the center of the terminal instead of relying |
b362c9e9 | 6508 | on a hardcoded offset. |
6509 | ||
9304eef1 | 6510 | 2009-03-04 Robert Millan <rmh@aybabtu.com> |
6511 | ||
6512 | Filter /etc/grub.d/10_* so that only add-ons for native kernels are | |
6513 | installed. | |
6514 | ||
6515 | * Makefile.in (host_kernel): New variable. | |
6516 | * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in | |
6517 | scripts instead of just the windows one. | |
6518 | * configure.ac: Initialize and AC_SUBST `host_kernel'. | |
6519 | ||
eabc95fb | 6520 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
2ba60b62 | 6521 | |
6522 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and | |
6523 | `kern/handler.c'. | |
6524 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
6525 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
6526 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
6527 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6528 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6529 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6530 | ||
ceb1223c | 6531 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
6532 | ||
6533 | * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions | |
6534 | or if there's no space for the disk label and print the partition number on a | |
6535 | invalid magic. | |
6536 | ||
4910684a | 6537 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
6538 | ||
6539 | * util/misc.c: Include <time.h>. | |
6540 | (grub_millisleep): New function. | |
6541 | ||
7e9ca17a | 6542 | 2009-03-04 Bean <bean123ch@gmail.com> |
6543 | ||
6544 | * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add | |
6545 | another option -mno-red-zone. | |
6546 | ||
6547 | * commands/handler.c: Change module description. | |
6548 | ||
6549 | * kern/handler.c: Add missing space at the end of description line. | |
6550 | ||
6551 | * kern/list.c: Likewise. | |
6552 | ||
f501677c | 6553 | 2009-03-03 Robert Millan <rmh@aybabtu.com> |
6554 | ||
6555 | Move more components to the relocation area, and fix mbi pointer | |
6556 | handling to use the destination rather than the origin (thanks to | |
6557 | Vladimir Serbinenko for spotting). | |
6558 | ||
6559 | * loader/i386/multiboot.c (mbi_dest): New variable. | |
6560 | (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'. | |
6561 | (grub_multiboot): Put cmdline, boot_loader_name and mbi in the | |
6562 | relocation area. | |
6563 | ||
9902d047 | 6564 | 2009-03-01 Bean <bean123ch@gmail.com> |
6565 | ||
50fb7002 | 6566 | * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant. |
9902d047 | 6567 | (GRUB_EFI_ACPI_TABLE_GUID): Likewise. |
6568 | (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise. | |
6569 | (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise. | |
6570 | ||
6571 | * loader/i386/efi/linux.c (acpi_guid): New variable. | |
6572 | (acpi_guid): Likewise. | |
6573 | (EBDA_SEG_ADDR): New constant. | |
6574 | (LOW_MEM_ADDR): Likewise. | |
6575 | (FAKE_EBDA_SEG): Likewise. | |
6576 | (fake_bios_data): New function. | |
6577 | (grub_linux_boot): Call fake_bios_data. | |
6578 | ||
71b9f361 | 6579 | 2009-03-01 Bean <bean123ch@gmail.com> |
6580 | ||
6581 | * commands/terminal.c: Removed. | |
6582 | ||
6583 | * commands/handler.c: New file. | |
6584 | ||
6585 | * include/grub/list.h: Likewise. | |
6586 | ||
6587 | * include/grub/handler.h: Likewise. | |
6588 | ||
6589 | * kern/list.c: Likewise. | |
6590 | ||
6591 | * kern/handler.c: Likewise. | |
6592 | ||
6593 | * kern/term.h: Include header file <grub/handler.h>. | |
6594 | (grub_term_input): Move next field to the beginning. | |
6595 | (grub_term_output): Likewise. | |
6596 | (grub_term_input_class): New variable. | |
6597 | (grub_term_output_class): Likewise. | |
6598 | (grub_term_register_input): Changed to inline function. | |
6599 | (grub_term_register_output): Likewise. | |
6600 | (grub_term_unregister_input): Likewise. | |
6601 | (grub_term_unregister_output): Likewise. | |
6602 | (grub_term_set_current_input): Likewise. | |
6603 | (grub_term_set_current_output): Likewise. | |
6604 | (grub_term_get_current_input): Likewise. | |
6605 | (grub_term_get_current_output): Likewise. | |
6606 | (grub_term_iterate_input): Removed. | |
6607 | (grub_term_iterate_output): Likewise. | |
6608 | ||
6609 | * kern/term.c (grub_term_list_input): Removed. | |
6610 | (grub_term_list_output): Likewise. | |
6611 | (grub_term_input_class): New variable. | |
6612 | (grub_term_output_class): Likewise. | |
50fb7002 | 6613 | (grub_cur_term_input): Change variable as macro. |
71b9f361 | 6614 | (grub_cur_term_output): Likewise. |
6615 | (grub_term_register_input): Removed. | |
6616 | (grub_term_register_output): Likewise. | |
6617 | (grub_term_unregister_input): Likewise. | |
6618 | (grub_term_unregister_output): Likewise. | |
6619 | (grub_term_set_current_input): Likewise. | |
6620 | (grub_term_set_current_output): Likewise. | |
6621 | (grub_term_iterate_input): Likewise. | |
6622 | (grub_term_iterate_output): Likewise. | |
6623 | (grub_term_get_current_input): Likewise. | |
6624 | (grub_term_get_current_output): Likewise. | |
6625 | ||
6626 | * util/grub-editenv.c: Include header file <grub/handler.h>. | |
6627 | (grub_term_get_current_input): Removed. | |
6628 | (grub_term_get_current_output): Likewise. | |
6629 | (grub_term_input_class): New variable. | |
50fb7002 | 6630 | (grub_term_output_class): Likewise. |
71b9f361 | 6631 | |
6632 | * util/grub-fstest.c (grub_term_get_current_input): Removed. | |
6633 | (grub_term_get_current_output): Likewise. | |
6634 | (grub_term_input_class): New variable. | |
50fb7002 | 6635 | (grub_term_output_class): Likewise. |
71b9f361 | 6636 | |
6637 | * util/grub-probe.c (grub_term_get_current_input): Removed. | |
6638 | (grub_term_get_current_output): Likewise. | |
6639 | (grub_term_input_class): New variable. | |
50fb7002 | 6640 | (grub_term_output_class): Likewise. |
71b9f361 | 6641 | |
6642 | * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed. | |
6643 | (grub_term_get_current_output): Likewise. | |
6644 | (grub_term_input_class): New variable. | |
50fb7002 | 6645 | (grub_term_output_class): Likewise. |
71b9f361 | 6646 | |
6647 | * conf/common.rmk (pkglib_MODULES): Replace terminal with handler. | |
6648 | (terminal_mod_SOURCES): Likewise. | |
6649 | (terminal_mod_CFLAGS): Likewise. | |
6650 | (terminal_mod_LDFLAGS): Likewise. | |
6651 | ||
6652 | * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6653 | handler.c. | |
6654 | (kernel_img_SOURCES): Add list.c and handler.c. | |
6655 | (kernel_img_HEADERS): Add list.h and handler.h. | |
6656 | ||
6657 | * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6658 | handler.c. | |
6659 | (kernel_mod_SOURCES): Add list.c and handler.c. | |
6660 | (kernel_mod_HEADERS): Add list.h and handler.h. | |
6661 | ||
6662 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6663 | handler.c. | |
6664 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
6665 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
6666 | ||
6667 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6668 | handler.c. | |
6669 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
6670 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
6671 | ||
6672 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6673 | handler.c. | |
6674 | (kernel_mod_SOURCES): Add list.c and handler.c. | |
6675 | (kernel_mod_HEADERS): Add list.h and handler.h. | |
6676 | ||
6677 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with | |
6678 | handler.c. | |
6679 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
6680 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
6681 | ||
8a31787f | 6682 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
6683 | ||
6684 | Factorize elf32 / elf64 code in Multiboot loader. This will | |
6685 | prevent it from getting out of sync again. | |
6686 | ||
6687 | * loader/i386/multiboot.c (grub_multiboot_is_elf32, | |
6688 | grub_multiboot_load_elf32, grub_multiboot_is_elf64, | |
6689 | grub_multiboot_load_elf64): Move from here ... | |
6690 | * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf, | |
6691 | grub_multiboot_load_elf): ... to here (new file). | |
6692 | ||
51cd3dfc | 6693 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
6694 | ||
6695 | * util/grub.d/10_linux.in: Rename "single-user mode" to | |
6696 | "recovery mode". | |
6697 | ||
6e8c9c3a | 6698 | 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com> |
6699 | ||
6700 | Don't leak in SCSI code. | |
6701 | * disk/scsi.c (grub_scsi_close): free `scsi'. | |
6702 | ||
4b6bf4f9 | 6703 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
6704 | ||
6705 | * loader/i386/pc/multiboot.c: Move from here ... | |
6706 | * loader/i386/multiboot.c: ... to here. Update all users. | |
6707 | ||
b9413424 | 6708 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
6709 | ||
6710 | Patch from Alexandre Bique <bique.alexandre@gmail.com> | |
6711 | * util/i386/pc/grub-setup.c (setup): Fix directory path. | |
6712 | ||
50fb7002 | 6713 | 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl> |
34519c3f | 6714 | |
6715 | * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent | |
6716 | b-tree. | |
6717 | ||
8cc50345 | 6718 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
6719 | ||
6720 | * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the | |
6721 | `0x' qualifier as 0 when base is specified as parameter). | |
6722 | ||
6e09b8b7 | 6723 | 2009-02-24 Bean <bean123ch@gmail.com> |
6724 | ||
6725 | * configure.ac: Check for -mcmodel=large in x86_64 target. | |
6726 | ||
6727 | * include/grub/efi/api.h (efi_call_10): New macro. | |
6728 | (efi_wrap_10): New function. | |
6729 | ||
6730 | * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro. | |
6731 | (GRUB_PE32_REL_BASED_HIGH): Likewise. | |
6732 | (GRUB_PE32_REL_BASED_LOW): Likewise. | |
6733 | (GRUB_PE32_REL_BASED_HIGHLOW): Likewise. | |
6734 | (GRUB_PE32_REL_BASED_HIGHADJ): Likewise. | |
6735 | (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise. | |
6736 | (GRUB_PE32_REL_BASED_SECTION): Likewise. | |
6737 | (GRUB_PE32_REL_BASED_REL): Likewise. | |
6738 | (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise. | |
6739 | (GRUB_PE32_REL_BASED_DIR64): Likewise. | |
6740 | (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise. | |
6741 | ||
6742 | * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation | |
6743 | issue. | |
6744 | ||
6745 | * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix. | |
6746 | (efi_wrap_10): New function. | |
6747 | ||
6748 | * kern/x86_64/efi/startup.S (codestart): Use relative addressing. | |
6749 | ||
6750 | * loader/efi/appleloader.c (devpath_5): Add support for late 2008 | |
6751 | MB/MBP model (NV chipset). | |
6752 | (devdata_devs): Add devpath_5 to the list. | |
6753 | ||
6754 | * load/i386/efi/linux.c (video_base): Remove variable. | |
6755 | (RGB_MASK): New macro. | |
6756 | (RGB_MAGIC): Likewise. | |
6757 | (LINE_MIN): Likewise. | |
6758 | (LINE_MAX): Likewise. | |
6759 | (FBTEST_STEP): Likewise. | |
6760 | (FBTEST_COUNT): Likewise. | |
6761 | (fb_list): New variable. | |
6762 | (grub_find_video_card): Remove function. | |
6763 | (find_framebuf): New function. | |
6764 | (grub_linux_setup_video): Use find_framebuf to get frame buffer and | |
6765 | line length. | |
6766 | ||
6767 | * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation | |
6768 | problem for x86_64. | |
6769 | ||
74b21bee | 6770 | 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi> |
6771 | ||
6772 | Patch #25624 by Kevin Lacquement <kevin@lacqui>. | |
6773 | ||
6774 | * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard | |
6775 | coding tool name. | |
6776 | ||
a455f472 | 6777 | 2009-02-22 Robert Millan <rmh@aybabtu.com> |
6778 | ||
6779 | * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro. | |
6780 | * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI | |
6781 | in our relocation, instead of using it directly from heap. Also | |
6782 | use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned. | |
6783 | ||
6374daf3 | 6784 | 2009-02-21 Robert Millan <rmh@aybabtu.com> |
6785 | ||
6786 | Implement USB keyboard support (based on patch by Marco Gerards) | |
6787 | ||
6788 | * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'. | |
6789 | (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS) | |
6790 | (usb_keyboard_mod_LDFLAGS): New variables. | |
6791 | ||
6792 | * term/usb_keyboard.c: New file. | |
6793 | ||
8fa4ea70 | 6794 | 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
6795 | ||
6796 | Corrected wrong declaration | |
6797 | ||
6798 | * kern/disk.c: corrected declaration of grub_disk_ata_pass_through. | |
6799 | ||
353976ac | 6800 | 2009-02-14 Christian Franke <franke@computer.org> |
6801 | ||
6802 | * commands/lspci.c (grub_pci_classes): Add `SATA Controller'. | |
6803 | (grub_lspci_iter): Print class code and programming interface byte. | |
6804 | ||
6aa1169b | 6805 | 2009-02-14 Christian Franke <franke@computer.org> |
6806 | ||
6807 | * gendistlist.sh: Ignore `.svn' directories. | |
6808 | ||
265372ca | 6809 | 2009-02-14 Felix Zielcke <fzielcke@z-51.de> |
6810 | ||
6811 | * fs/fat.c: Add 2009 to Copyright line. | |
6812 | ||
9ff516f3 | 6813 | 2009-02-14 Christian Franke <franke@computer.org> |
6814 | ||
6815 | * commands/hdparm.c: New file. Provides `hdparm' command | |
6816 | which sends ATA commands via grub_disk_ata_pass_through (). | |
6817 | ||
6818 | * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod. | |
6819 | ||
6820 | * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h> | |
6821 | and <grub/cpu/io.h> to include/grub/ata.h. | |
6822 | (enum grub_ata_addressing_t): Move to include/grub/ata.h. | |
6823 | (GRUB_CDROM_SECTOR_SIZE): Remove. | |
6824 | (GRUB_ATA_*): Move to include/grub/ata.h. | |
6825 | (GRUB_ATAPI_*): Likewise. | |
6826 | (enum grub_ata_commands): Likewise. | |
6827 | (enum grub_ata_timeout_milliseconds): Likewise. | |
6828 | (struct grub_ata_device): Likewise. | |
6829 | (grub_ata_regset): Likewise. | |
6830 | (grub_ata_regget): Likewise. | |
6831 | (grub_ata_regset2): Likewise. | |
6832 | (grub_ata_regget2): Likewise. | |
6833 | (grub_ata_check_ready): Likewise. | |
6834 | (grub_ata_wait_not_busy): Remove static, exported in | |
6835 | include/grub/ata.h. | |
6836 | (grub_ata_wait_drq): Likewise. | |
6837 | (grub_ata_pio_read): Likewise. | |
6838 | ||
6839 | * disk/ata_pthru.c: New file. Provides grub_ata_pass_through () | |
6840 | function for hdparm.mod. | |
6841 | ||
6842 | * include/grub/ata.h: New file, contains declarations from | |
6843 | disk/ata.c. | |
6844 | (enum grub_ata_commands): Add new commands for commands/hdparm.c. | |
6845 | ||
6846 | * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct. | |
6847 | (grub_disk_ata_pass_through): New exported variable. | |
6848 | ||
6849 | * kern/disk.c (grub_disk_ata_pass_through): New variable. | |
6850 | ||
772e23da | 6851 | 2009-02-13 Colin D Bennett <colin@gibibit.com> |
6852 | ||
6853 | Support multiple fallback entries, and provide an API to support | |
6854 | executing default+fallback menu entries. Renamed the `terminal' menu | |
6855 | viewer to `text'. | |
6856 | ||
6857 | * include/grub/normal.h (grub_normal_text_menu_viewer): New global | |
6858 | variable declaration. | |
6859 | (grub_menu_execute_callback): New structure declaration. | |
6860 | (grub_menu_execute_callback_t): New typedef. | |
6861 | (grub_menu_execute_with_fallback): New function declaration. | |
6862 | (grub_menu_get_entry): Likewise. | |
6863 | (grub_menu_get_timeout): Likewise. | |
6864 | (grub_menu_set_timeout): Likewise. | |
6865 | ||
6866 | * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name. | |
6867 | ||
6868 | * normal/menu.c (grub_wait_after_message): Moved to | |
6869 | `normal/menu_text.c'. | |
6870 | (draw_border): Likewise. | |
6871 | (print_message): Likewise. | |
6872 | (print_entry): Likewise. | |
6873 | (print_entries): Likewise. | |
6874 | (grub_menu_init_page): Likewise. | |
6875 | (get_entry_number): Likewise. | |
6876 | (print_timeout): Likewise. | |
6877 | (run_menu): Likewise. | |
6878 | (grub_menu_execute_entry): Likewise. | |
6879 | (show_text_menu): Likewise. | |
6880 | (get_and_remove_first_entry_number): New function. | |
6881 | (grub_menu_execute_with_fallback): Likewise. | |
6882 | (get_entry): Renamed to ... | |
6883 | (grub_menu_get_entry): .. this and made it global. | |
6884 | (get_timeout): Renamed to ... | |
6885 | (grub_menu_get_timeout): ... this and made it global. | |
6886 | (set_timeout): Renamed to ... | |
6887 | (grub_menu_set_timeout): ... this and made it global. | |
6888 | (grub_normal_terminal_menu_viewer): Renamed to ... | |
6889 | (grub_normal_text_menu_viewer): ... this. | |
6890 | ||
6891 | * normal/menu_text.c: New file. Extracted text-menu-specific code | |
6892 | from normal/menu.c. | |
6893 | ||
6894 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'. | |
6895 | (normal_mod_SOURCES): Likewise. | |
6896 | ||
6897 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
6898 | (normal_mod_SOURCES): Likewise. | |
6899 | ||
6900 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6901 | (normal_mod_SOURCES): Likewise. | |
6902 | ||
6903 | * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise. | |
6904 | (normal_mod_SOURCES): Likewise. | |
6905 | ||
6906 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6907 | (normal_mod_SOURCES): Likewise. | |
6908 | ||
6909 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6910 | (normal_mod_SOURCES): Likewise. | |
6911 | ||
6912 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
6913 | (normal_mod_SOURCES): Likewise. | |
6914 | ||
16ac430e | 6915 | 2009-02-11 Robert Millan <rmh@aybabtu.com> |
6916 | ||
6917 | * util/grub.d/00_header.in: Update old reference to `font' command. | |
6918 | ||
06ff20fc | 6919 | 2009-02-10 Felix Zielcke <fzielcke@z-51.de> |
6920 | ||
6921 | * fs/fat.c (grub_fat_mount): Fix wrong comparison. | |
6922 | ||
6923 | Based on patch from Javier Martín. | |
6924 | ||
96da9407 | 6925 | 2009-02-09 Felix Zielcke <fzielcke@z-51.de> |
6926 | ||
6927 | * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c | |
50fb7002 | 6928 | to avoid false positives with FAT. |
96da9407 | 6929 | (grub_fstest_SOURCES): Likewise. |
6930 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
6931 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
6932 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6933 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
6934 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6935 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6936 | ||
6dca6fe4 | 6937 | 2009-02-09 Felix Zielcke <fzielcke@z-51.de> |
6938 | ||
06ff20fc | 6939 | * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking |
6dca6fe4 | 6940 | bpb.version_specific.fat12_or_fat16.fstype and |
6941 | bpb.version_specific.fat32.fstype. | |
6942 | ||
2550c62f | 6943 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
6944 | ||
be110b30 | 6945 | * fs/tar.c: Replace "fs/cpio.c" with "cpio.c". |
2550c62f | 6946 | |
56978920 | 6947 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
6948 | ||
6949 | * Makefile.in (host_os, host_cpu): New variables. | |
6950 | (target_os): Remove. Update all users. | |
6951 | ||
d64399b5 | 6952 | 2009-02-08 Marco Gerards <marco@gnu.org> |
6953 | ||
6954 | * Makefile.in (enable_grub_emu_usb): New variable. | |
6955 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'. | |
6956 | (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c', | |
6957 | `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'. | |
6958 | (grub_emu_LDFLAGS): Add `$(LIBUSB)'. | |
6959 | (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod', | |
6960 | `usbtest.mod' and `usbms.mod'. | |
6961 | (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS) | |
6962 | (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS) | |
6963 | (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS, | |
6964 | (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS) | |
6965 | (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New | |
6966 | variables. | |
6967 | ||
6968 | * disk/usbms.c: New file. | |
6969 | ||
6970 | * include/grub/usb.h: Likewise. | |
6971 | ||
6972 | * include/grub/usbtrans.h: Likewise. | |
6973 | ||
6974 | * include/grub/usbdesc.h: Likewise. | |
6975 | ||
6976 | * bus/usb/usbtrans.c: Likewise. | |
6977 | ||
6978 | * bus/usb/ohci.c: Likewise. | |
6979 | ||
6980 | * bus/usb/uhci.c: Likewise. | |
6981 | ||
6982 | * bus/usb/usbhub.c: Likewise. | |
6983 | ||
6984 | * bus/usb/usb.c: Likewise. | |
6985 | ||
6986 | * commands/usbtest.c: Likewise. | |
6987 | ||
6988 | * util/usb.c: Likewise. | |
50fb7002 | 6989 | |
d64399b5 | 6990 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'. |
6991 | ||
6992 | * configure.ac: Test for libusb presence. | |
50fb7002 | 6993 | |
d64399b5 | 6994 | * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'. |
6995 | ||
2b40d6bb | 6996 | 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi> |
6997 | ||
6998 | * kern/mm.c: Add more comments. | |
6999 | ||
73a4ce81 | 7000 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
7001 | ||
7002 | Patch from Javier Martín. | |
7003 | * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add | |
7004 | `EXT4_FEATURE_INCOMPAT_FLEX_BG'. | |
7005 | ||
f821ce59 | 7006 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
7007 | ||
7008 | * fs/cpio.c: Split tar functionality to ... | |
7009 | * fs/tar.c: ... here (new file). Update all users. | |
7010 | ||
aebfc4b0 | 7011 | 2009-02-07 Robert Millan <rmh@aybabtu.com> |
7012 | ||
7013 | * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with | |
7014 | backward-incompatible features. | |
7015 | ||
7016 | Based on patch from Javier Martín, with some adjustments. | |
7017 | ||
50fb7002 | 7018 | 2009-02-07 Michael Scherer <misc@mandriva.org> |
cea15bca | 7019 | |
7020 | * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive. | |
7021 | ||
0bb5115e | 7022 | 2009-02-07 Robert Millan <rmh@aybabtu.com> |
7023 | ||
7024 | * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move | |
7025 | position of `disk/lvm.c' to ensure grub_init_all() always picks it | |
7026 | after the RAID stuff. | |
7027 | ||
38a0f8e7 | 7028 | 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi> |
7029 | ||
50fb7002 | 7030 | Fixes problem when running vbetest command as reported by |
38a0f8e7 | 7031 | Vladimir Serbinenko <phcoder@gmail.com>. |
7032 | ||
7033 | * (grub_vbe_set_video_mode): Fixed problem with text modes. | |
7034 | ||
3143cc1c | 7035 | 2009-02-04 Felix Zielcke <fzielcke@z-51.de> |
7036 | ||
7037 | util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and | |
7038 | /dev/md/NpN style mdraid devices. | |
7039 | ||
9cba6fce | 7040 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
7041 | ||
7042 | * util/unifont2pff.rb: Remove. | |
7043 | ||
e507a2c1 | 7044 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
7045 | ||
7046 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing | |
7047 | `#'. | |
7048 | ||
d2c2b4cd | 7049 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
7050 | ||
7051 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'. | |
7052 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
7053 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
7054 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
7055 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
7056 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
7057 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
7058 | ||
b4315fb0 | 7059 | 2009-02-02 Christian Franke <franke@computer.org> |
7060 | ||
7061 | * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical. | |
7062 | ||
de3aa260 | 7063 | 2009-02-01 Felix Zielcke <fzielcke@z-51.de> |
7064 | ||
7c3ff286 | 7065 | * INSTALL: Note that we now require at least autoconf 2.59 and |
7066 | that LZO is optional. | |
de3aa260 | 7067 | |
825a182b | 7068 | 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi> |
7069 | ||
7070 | Base on patch on bug #24154 created by Tomas Tintera | |
7071 | <trosos@seznam.cz>. | |
7072 | ||
7073 | * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling. | |
7074 | ||
a69ef770 | 7075 | 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi> |
7076 | ||
7c3ff286 | 7077 | Based on patch on bug #25318 created by Bernhard Rosenkraenzer |
a69ef770 | 7078 | <bero@arklinux.org>. |
7079 | ||
7080 | * normal/parser.y (script_init): Add missing semicolon. | |
7081 | ||
6fa42fa6 | 7082 | 2009-01-31 Colin D Bennett <colin@gibibit.com> |
7083 | ||
7c3ff286 | 7084 | * normal/main.c: Add include to grub/menu_viewer.h. |
6fa42fa6 | 7085 | (free_menu_entry_classes): Added. |
7086 | (grub_normal_menu_addentry): Added class property handling. | |
7087 | (grub_normal_execute): Changed to use new menu viewer for menu viewing. | |
7088 | (GRUB_MOD_INIT(normal)): Added register for text based menu viewer. | |
7089 | ||
7090 | * normal/menu_viewer.c: New file. | |
7091 | ||
7092 | * normal/menu.c (run_menu_entry): Renamed to ... | |
7093 | (grub_menu_execute_entry): ... this and made it as global. | |
7094 | (grub_menu_run): Renamed to ... | |
7095 | (show_text_menu): ... this and made it local. | |
7096 | (show_text_menu): Adapt to new function names. | |
7097 | (grub_normal_terminal_menu_viewer): New global variable. | |
7098 | ||
7099 | * include/grub/menu.h: New file. | |
7100 | ||
7101 | * include/grub/menu_viewer.h: New file. | |
7102 | ||
7103 | * include/grub/normal.h: Added include to grub/menu.h. | |
7104 | (grub_menu_entry): Moved to include/grub/menu.h. | |
7105 | (grub_menu_entry_t): Likewise. | |
7106 | (grub_menu): Likewise. | |
7107 | (grub_menu_t): Likewise. | |
7108 | (grub_normal_terminal_menu_viewer): Added. | |
7109 | (grub_menu_execute_entry): Likewise. | |
7110 | (grub_menu_run): Removed. | |
7111 | ||
7112 | * DISTLIST: Added include/grub/menu.h. | |
7113 | Added include/grub/menu_viewer.h. | |
7114 | Added normal/menu_viewer.c. | |
7115 | ||
7116 | 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi> | |
7117 | ||
7118 | * normal/execute.c (grub_script_execute_menuentry): Changed to use | |
7119 | arglist for menutitle arguments. | |
7120 | ||
7121 | * normal/main.c (grub_normal_menu_addentry): Likewise. | |
7122 | ||
7123 | * normal/parser.y (menuentry): Likewise. | |
7124 | ||
7125 | * normal/script.c (grub_script_create_cmdmenu): Likewise. | |
7126 | ||
7127 | * include/grub/script.h (grub_script_cmd_menuentry): Likewise. | |
7128 | (grub_script_create_cmdmenu): Likewise. | |
7129 | ||
7130 | * include/grub/normal.h (grub_normal_menu_addentry): Likewise. | |
7131 | ||
7132 | * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's | |
7133 | changes. | |
7134 | ||
7135 | * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise. | |
7136 | ||
7137 | * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise. | |
7138 | ||
7139 | * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise. | |
7140 | ||
7141 | * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
7142 | ||
7143 | * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
7144 | ||
7145 | * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
7146 | ||
56192c23 | 7147 | 2009-01-30 Christian Franke <franke@computer.org> |
7148 | ||
7149 | * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears | |
7150 | in option help text. | |
7151 | ||
d72521b3 | 7152 | 2009-01-27 Pavel Roskin <proski@gnu.org> |
7153 | ||
7154 | * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID. | |
7155 | ||
994b5e84 | 7156 | 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi> |
7157 | ||
7158 | * commands/lsmmap.c: Add include to grub/machine/memory.h. | |
7159 | ||
7160 | * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem. | |
7161 | ||
7162 | * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper | |
7163 | unregister function. | |
7164 | ||
6a7eab2c | 7165 | 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi> |
7166 | ||
7167 | * disk/scsi.c (grub_scsi_read): Fix sign problem. | |
7168 | ||
7169 | * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration. | |
7170 | ||
7171 | * util/grub-mkfont.c (usage): Fix typo. | |
7172 | ||
7173 | * util/elf/grub-mkimage.c (load_modules): Fix warning. | |
7174 | ||
1806b56e | 7175 | 2009-01-26 Daniel Mierswa <impulze@impulze.org> |
7176 | ||
3fb18f09 | 7177 | * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes. |
7178 | ||
336e1fb9 | 7179 | * commands/search.c (search_fs_uuid): Ignore case of the UUID. |
7180 | ||
1806b56e | 7181 | * kern/misc.c (grub_strcasecmp): New function. |
7182 | (grub_strcasecmp): Use grub_size_t instead of int for length. | |
7183 | Fix return value. | |
7184 | * include/grub/misc.h: Update function prototypes. | |
7185 | ||
580b2a0f | 7186 | 2009-01-26 Robert Millan <rmh@aybabtu.com> |
7187 | ||
7188 | * configure.ac: Fix cross-compilation check. | |
ef257b36 | 7189 | |
d31c24f1 | 7190 | 2009-01-22 Christian Franke <franke@computer.org> |
7191 | ||
7192 | * kern/misc.c (grub_vsprintf): Fix size and termination of `format2' | |
7193 | (precision) digit string. Allow `.format2' without `format1' (width). | |
7194 | Limit input chars for `%s' output to `format2' if specified. This is | |
7195 | compatible with standard printf (). | |
7196 | ||
3138b44c | 7197 | 2009-01-22 Christian Franke <franke@computer.org> |
7198 | ||
7199 | * disk/ata.c (grub_ata_wait_status): Replace by ... | |
7200 | (grub_ata_wait_not_busy): ... this function. Checks only BSY bit, | |
7201 | other status bits may be invalid while BSY is asserted. | |
7202 | (grub_ata_check_ready): New function. | |
7203 | (grub_ata_cmd): Removed. | |
7204 | (grub_ata_wait_drq): New function. | |
7205 | (grub_ata_strncpy): Remove inline. | |
7206 | (grub_ata_pio_read): Reduce to actual block transfer. BSY wait | |
7207 | and error check now done by grub_ata_wait_drq (). | |
7208 | (grub_ata_pio_write): Likewise. | |
7209 | (grub_atapi_identify): Set DEV before check for !BSY. Use | |
7210 | grub_ata_wait_drq () to wait for data. | |
7211 | (grub_ata_device_initialize): Add status register check to | |
7212 | detect missing SATA slave devices. Add debug messages. | |
7213 | (grub_atapi_wait_drq): Use grub_ata_wait_not_busy (). | |
7214 | (grub_atapi_packet): Set DEV before check for !BSY. Replace | |
7215 | transfer loop by grub_ata_pio_write (). | |
7216 | (grub_ata_identify): Set DEV before check for !BSY. Use | |
7217 | grub_ata_wait_drq () to wait for data. | |
ef257b36 | 7218 | (grub_ata_setaddress): Set DEV before check for !BSY. |
3138b44c | 7219 | (grub_ata_readwrite): Remove duplicate code, handle batch/rest and |
7220 | read/write in one loop. Fix invalid command on write. Fix incomplete | |
7221 | command on (size % batch) == 0. Add missing error check after write of | |
7222 | last block. Add debug messages. | |
7223 | (grub_atapi_read): Replace transfer loop by grub_ata_pio_read (). | |
7224 | ||
59a64ef6 | 7225 | 2009-01-19 Christian Franke <franke@computer.org> |
7226 | ||
7227 | * disk/ata.c (GRUB_ATAPI_REG_*): New defines. | |
7228 | (GRUB_ATAPI_IREASON_*): Likewise. | |
7229 | (grub_ata_pio_write): Fix timeout error return. | |
7230 | (grub_atapi_identify): Add grub_ata_wait () after cmd. | |
7231 | (grub_atapi_wait_drq): New function. | |
7232 | (grub_atapi_packet): New parameter `size'. | |
7233 | Use grub_atapi_wait_drq () and direct write instead of | |
7234 | grub_ata_pio_write (). | |
7235 | (grub_atapi_read): Replace grub_ata_pio_read () by a loop which | |
7236 | reads the number of bytes requested by the device for each DRQ | |
7237 | assertion. | |
7238 | (grub_atapi_write): Remove old implementation, return not | |
7239 | implemented instead. | |
7240 | ||
1cfe20b3 | 7241 | 2009-01-19 Christian Franke <franke@computer.org> |
7242 | ||
7243 | * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead | |
7244 | of 512 to calculate data size. | |
7245 | (grub_scsi_read12): Likewise. | |
7246 | (grub_scsi_write10): Likewise. | |
7247 | (grub_scsi_write12): Likewise. | |
7248 | (grub_scsi_read): Adjust size according to blocksize. | |
7249 | Add checks for invalid blocksize and unaligned transfer. | |
7250 | ||
bee5fe5d | 7251 | 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi> |
7252 | ||
7253 | * font/font.c (grub_font_loader_init): Re-position unknown glyph. | |
7254 | ||
ef257b36 | 7255 | * term/gfxterm.c (write_char): Fix background rendering for wide |
bee5fe5d | 7256 | width glyphs. |
7257 | ||
3e643f8c | 7258 | 2009-01-19 Robert Millan <rmh@aybabtu.com> |
7259 | ||
7260 | * config.guess: Update to latest version from config git. | |
7261 | * config.sub: Likewise. | |
7262 | ||
4fa80998 | 7263 | 2009-01-17 Felix Zielcke <fzielcke@z-51.de> |
7264 | ||
7265 | * Makefile.in: Change font compilation to use new grub-mkfont instead | |
7266 | of java version. | |
7267 | ||
7268 | * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove. | |
7269 | * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. | |
7270 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. | |
7271 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. | |
7272 | * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise. | |
7273 | * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. | |
7274 | * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. | |
7275 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise. | |
7276 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise. | |
7277 | ||
7086085b | 7278 | 2009-01-16 Christian Franke <franke@computer.org> |
7279 | ||
7280 | * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS. | |
7281 | (enum grub_ata_timeout_milliseconds): New enum. | |
7282 | (grub_ata_wait_status): Add parameter milliseconds. | |
7283 | (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow | |
7284 | recovery from timed-out commands. | |
7285 | (grub_ata_pio_read): Add parameter milliseconds. Fix error return, | |
7286 | return grub_errno instead of REG_ERROR. | |
7287 | (grub_ata_pio_write): Add parameter milliseconds. | |
7288 | (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector. | |
7289 | Pass milliseconds to grub_ata_wait_status () and | |
7290 | grub_ata_pio_read (). | |
7291 | (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write (). | |
7292 | (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to | |
7293 | grub_ata_wait_status (). Fix IDENTIFY timeout check. | |
7294 | (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS. | |
7295 | It is not suitable for device detection, because DEV bit is ignored, | |
7296 | the command may run too long, and not all devices set the signature | |
7297 | properly. | |
7298 | (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize (). | |
7299 | (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status (). | |
7300 | Fix device selection, DEV bit must be set first to address the registers | |
7301 | of the correct device. | |
7302 | (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and | |
7303 | grub_ata_pio_read/write (). | |
7304 | (grub_atapi_read): Pass milliseconds to grub_ata_pio_read (). | |
7305 | (grub_atapi_write): Pass milliseconds to grub_ata_pio_write (). | |
7306 | ||
4a412913 | 7307 | 2009-01-13 Carles Pina i Estany <carles@pina.cat> |
7308 | ||
7309 | * util/grub-editenv.c (main): Use fseeko(), not fseek(). | |
7310 | ||
7795c55e | 7311 | 2009-01-13 Bean <bean123ch@gmail.com> |
d913988c | 7312 | |
7313 | * util/grub-mkfont.c (write_font): forget to remove some debug code. | |
7314 | ||
7795c55e | 7315 | 2009-01-13 Bean <bean123ch@gmail.com> |
e52db1f7 | 7316 | |
7317 | * Makefile.in: (enable_grub_mkfont): New variable. | |
7318 | (freetype_cflags): Likewise. | |
7319 | (freetype_libs): Likewise. | |
7320 | ||
7321 | * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested. | |
7322 | (grub_mkfont_SOURCES): New variable. | |
7323 | (grub_mkfont_CFLAGS): Likewise. | |
7324 | (grub_mkfont_LDFLAGS): Likewise. | |
7325 | ||
7326 | * configure.ac (--enable-grub-mkfont): New option. Check for freetype2 | |
7327 | library if `--enable-grub-mkfont' is requested. | |
7328 | (enable_grub_mkfont): New variable. | |
7329 | (freetype_cflags): Likewise. | |
7330 | (freetype_libs): Likewise. | |
7331 | ||
7332 | * util/grub-mkfont.c: New file. | |
7333 | ||
093af1fe | 7334 | 2009-01-12 Christian Franke <franke@computer.org> |
7335 | ||
7336 | * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility | |
7337 | mode check. Fix setting of compat_use[]. | |
7338 | ||
f36cc108 | 7339 | 2009-01-10 Robert Millan <rmh@aybabtu.com> |
7340 | ||
7341 | Update a few copyright years which we forgot to do in 2008 (only for | |
7342 | files whose changes made in 2008 were copyright-significant) | |
7343 | ||
7344 | * Makefile.in: Add 2008 to Copyright line. | |
7345 | * disk/ieee1275/ofdisk.c: Likewise. | |
7346 | * disk/efi/efidisk.c: Likewise. | |
7347 | * kern/dl.c: Likewise. | |
7348 | * kern/sparc64/ieee1275/init.c: Likewise. | |
7349 | * kern/mm.c: Likewise. | |
7350 | * kern/efi/mm.c: Likewise. | |
7351 | * boot/i386/pc/boot.S: Likewise. | |
7352 | * genfslist.sh: Likewise. | |
7353 | * fs/iso9660.c: Likewise. | |
7354 | * fs/hfs.c: Likewise. | |
7355 | * fs/jfs.c: Likewise. | |
7356 | * fs/minix.c: Likewise. | |
7357 | * fs/ufs.c: Likewise. | |
7358 | * gensymlist.sh.in: Likewise. | |
7359 | * genkernsyms.sh.in: Likewise. | |
7360 | * include/grub/misc.h: Likewise. | |
7361 | * include/grub/types.h: Likewise. | |
7362 | * include/grub/symbol.h: Likewise. | |
7363 | * include/grub/elf.h: Likewise. | |
7364 | * include/grub/kernel.h: Likewise. | |
7365 | * include/grub/disk.h: Likewise. | |
7366 | * include/grub/dl.h: Likewise. | |
7367 | * include/grub/i386/linux.h: Likewise. | |
7368 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
7369 | * include/grub/efi/api.h: Likewise. | |
7370 | * include/grub/efi/pe32.h: Likewise. | |
7371 | * include/grub/util/misc.h: Likewise. | |
7372 | * normal/execute.c: Likewise. | |
7373 | * normal/arg.c: Likewise. | |
7374 | * normal/completion.c: Likewise. | |
7375 | * normal/lexer.c: Likewise. | |
7376 | * normal/parser.y: Likewise. | |
7377 | * normal/misc.c: Likewise. | |
7378 | * commands/i386/pc/vbeinfo.c: Likewise. | |
7379 | * commands/hexdump.c: Likewise. | |
7380 | * commands/terminal.c: Likewise. | |
7381 | * commands/ls.c: Likewise. | |
7382 | * commands/help.c: Likewise. | |
7383 | * partmap/pc.c: Likewise. | |
7384 | * loader/efi/chainloader.c: Likewise. | |
7385 | * loader/multiboot_loader.c: Likewise. | |
7386 | * loader/i386/pc/multiboot2.c: Likewise. | |
7387 | * term/efi/console.c: Likewise. | |
7388 | * term/i386/pc/serial.c: Likewise. | |
7389 | * util/lvm.c: Likewise. | |
7390 | * util/console.c: Likewise. | |
7391 | * util/i386/efi/grub-mkimage.c: Likewise. | |
7392 | * util/raid.c: Likewise. | |
7393 | ||
7f02114b | 7394 | 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi> |
7395 | ||
7396 | * commands/videotest.c: Removed include to grub/machine/memory.h. | |
7397 | ||
7398 | * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod, | |
7399 | videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod. | |
7400 | (video_mod_SOURCES): Removed. | |
7401 | (video_mod_CFLAGS): Likewise. | |
7402 | (video_mod_LDFLAGS): Likewise. | |
7403 | (gfxterm_mod_SOURCES): Likewise. | |
7404 | (gfxterm_mod_CFLAGS): Likewise. | |
7405 | (gfxterm_mod_LDFLAGS): Likewise. | |
7406 | (videotest_mod_SOURCES): Likewise. | |
7407 | (videotest_mod_CFLAGS): Likewise. | |
7408 | (videotest_mod_LDFLAGS): Likewise. | |
7409 | (bitmap_mod_SOURCES): Likewise. | |
7410 | (bitmap_mod_CFLAGS): Likewise. | |
7411 | (bitmap_mod_LDFLAGS): Likewise. | |
7412 | (tga_mod_SOURCES): Likewise. | |
7413 | (tga_mod_CFLAGS): Likewise. | |
7414 | (tga_mod_LDFLAGS): Likewise. | |
7415 | (jpeg_mod_SOURCES): Likewise. | |
7416 | (jpeg_mod_CFLAGS): Likewise. | |
7417 | (jpeg_mod_LDFLAGS): Likewise. | |
7418 | (png_mod_SOURCES): Likewise. | |
7419 | (png_mod_CFLAGS): Likewise. | |
7420 | (png_mod_LDFLAGS): Likewise. | |
7421 | ||
7422 | * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod, | |
7423 | bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod | |
7424 | (video_mod_SOURCES): Added. | |
7425 | (video_mod_CFLAGS): Likewise. | |
7426 | (video_mod_LDFLAGS): Likewise. | |
7427 | (videotest_mod_SOURCES): Likewise. | |
7428 | (videotest_mod_CFLAGS): Likewise. | |
7429 | (videotest_mod_LDFLAGS): Likewise. | |
7430 | (bitmap_mod_SOURCES): Likewise. | |
7431 | (bitmap_mod_CFLAGS): Likewise. | |
7432 | (bitmap_mod_LDFLAGS): Likewise. | |
7433 | (tga_mod_SOURCES): Likewise. | |
7434 | (tga_mod_CFLAGS): Likewise. | |
7435 | (tga_mod_LDFLAGS): Likewise. | |
7436 | (jpeg_mod_SOURCES): Likewise. | |
7437 | (jpeg_mod_CFLAGS): Likewise. | |
7438 | (jpeg_mod_LDFLAGS): Likewise. | |
7439 | (png_mod_SOURCES): Likewise. | |
7440 | (png_mod_CFLAGS): Likewise. | |
7441 | (png_mod_LDFLAGS): Likewise. | |
7442 | (gfxterm_mod_SOURCES): Likewise. | |
7443 | (gfxterm_mod_CFLAGS): Likewise. | |
7795c55e | 7444 | (gfxterm_mod_LDFLAGS): Likewise. |
7f02114b | 7445 | |
7446 | * term/gfxterm.c: Removed include to grub/machine/memory.h, | |
7447 | grub/machine/console.h. | |
7448 | ||
644fff97 | 7449 | 2009-01-04 Jerone Young <jerone@gmail.com> |
7450 | ||
7451 | Make on screen instructions clearer | |
7452 | ||
7453 | Based on patch created by Jidanni <jidanni@jidanni.org> | |
7454 | ||
7455 | * normal/menu.c: print clearer instructions on the screen | |
7456 | ||
1e901a75 | 7457 | 2009-01-02 Colin D Bennett <colin@gibibit.com> |
7458 | ||
7459 | New font engine. | |
34c44600 | 7460 | |
1e901a75 | 7461 | Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to |
7462 | build system and fixed gfxterm.c to work with different sized fonts. | |
7463 | ||
7464 | * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF. | |
34c44600 | 7465 | |
1e901a75 | 7466 | * configure: Re-generated. |
34c44600 | 7467 | |
1e901a75 | 7468 | * DISTLIST: Removed font/manager.c. |
7469 | Added font/font.c. | |
7470 | Added font/font_cmd.c. | |
34c44600 | 7471 | |
1e901a75 | 7472 | * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool |
7473 | compilation. | |
34c44600 | 7474 | |
1e901a75 | 7475 | * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users. |
34c44600 | 7476 | |
7477 | * kern/misc.c (grub_utf8_to_ucs4): Changed prototype. | |
1e901a75 | 7478 | |
7479 | * kern/term.c: Changed users of grub_utf8_to_ucs4. | |
34c44600 | 7480 | |
1e901a75 | 7481 | * normal/menu.c: Likewise. |
34c44600 | 7482 | |
1e901a75 | 7483 | * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c. |
7484 | (font_mod_SOURCES): Added font/font_cmd.c, font/font.c. | |
34c44600 | 7485 | |
1e901a75 | 7486 | * include/grub/font.h: Replaced with new file. |
34c44600 | 7487 | |
1e901a75 | 7488 | * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value. |
7489 | (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise. | |
7490 | (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise. | |
7491 | (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added. | |
7492 | (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED. | |
34c44600 | 7493 | (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha, |
1e901a75 | 7494 | fg_red, fg_green, fg_blue, fg_alpha. |
7495 | (grub_video_adapter): Removed blit_glyph. | |
34c44600 | 7496 | (grub_video_blit_glyph): Removed. |
7497 | ||
1e901a75 | 7498 | * font/manager.c: Removed file. |
34c44600 | 7499 | |
7500 | * font/font.c: New file. | |
7501 | ||
1e901a75 | 7502 | * font/font_cmd.c: Likewise. |
34c44600 | 7503 | |
1e901a75 | 7504 | * video/video.c (grub_video_blit_glyph): Removed. |
34c44600 | 7505 | |
1e901a75 | 7506 | * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support. |
7507 | (grub_video_vbe_map_rgba): Likewise. | |
7508 | (grub_video_vbe_unmap_color_int): Likewise. | |
7509 | (grub_video_vbe_blit_glyph): Removed. | |
7510 | (grub_video_vbe_adapter): Removed blit_glyph. | |
34c44600 | 7511 | |
1e901a75 | 7512 | * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support. |
7513 | (get_pixel): Likewise. | |
34c44600 | 7514 | (set_pixel): Likewise. |
7515 | ||
1e901a75 | 7516 | * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts. |
34c44600 | 7517 | |
1e901a75 | 7518 | * term/gfxterm.c: Adapted to new font engine. |
34c44600 | 7519 | |
1e901a75 | 7520 | * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile. |
34c44600 | 7521 | |
1e901a75 | 7522 | * term/i386/pc/vga.c: Likewise. |
34c44600 | 7523 | |
1e901a75 | 7524 | * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file. |
34c44600 | 7525 | |
1e901a75 | 7526 | * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. |
34c44600 | 7527 | |
1e901a75 | 7528 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. |
34c44600 | 7529 | |
1e901a75 | 7530 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. |
34c44600 | 7531 | |
1e901a75 | 7532 | * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise. |
34c44600 | 7533 | |
1e901a75 | 7534 | * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. |
34c44600 | 7535 | |
1e901a75 | 7536 | * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. |
34c44600 | 7537 | |
1e901a75 | 7538 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise. |
34c44600 | 7539 | |
1e901a75 | 7540 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise. |
7541 | ||
7542 | * util/grub.d/00_header.in: Changed to use new loadfont command. | |
34c44600 | 7543 | |
1e901a75 | 7544 | * util/grub-mkconfig_lib.in: Changed font extension. |
7545 | ||
278922e8 | 7546 | 2008-12-28 Felix Zielcke <fzielcke@z-51.de> |
7547 | ||
7548 | * util/getroot.c (grub_util_get_grub_dev): Add support for | |
7549 | /dev/md/dNNpNN style partitionable mdraid devices. | |
7550 | ||
3ced05cf | 7551 | 2008-12-12 Alex Smith <alex@alex-smith.me.uk> |
7552 | ||
7553 | * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection | |
7554 | at a time limit of the PXE TFTP API correctly. | |
7555 | (grub_pxefs_close): Likewise. | |
7556 | ||
7fd0ee30 | 7557 | 2008-11-29 Robert Millan <rmh@aybabtu.com> |
7558 | ||
34c44600 | 7559 | * disk/ata.c (grub_ata_pciinit): Handle errors raised by |
7fd0ee30 | 7560 | grub_ata_device_initialize() calls. |
7561 | ||
34c44600 | 7562 | 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl> |
0c5e79ab | 7563 | |
7564 | * fs/affs.c (grub_affs_iterate_dir): Return failure when directory | |
7565 | iteration failed. | |
7566 | * fs/sfs.c (grub_sfs_iterate_dir): Likewise. | |
7567 | ||
89313780 | 7568 | 2008-11-28 Robert Millan <rmh@aybabtu.com> |
7569 | ||
7570 | Fix build on powerpc-ieee1275. Based on patch created by | |
7571 | Manoel Abranches <mrabran@linux.vnet.ibm.com>. | |
7572 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
7573 | `kern/ieee1275/mmap.c'. | |
7574 | * include/grub/powerpc/ieee1275/memory.h: New file. | |
7575 | ||
15257703 | 7576 | Provide grub-install on coreboot. |
7577 | * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'. | |
7578 | (grub_install_SOURCES): New variable. | |
7579 | * util/i386/pc/grub-install.in: Add a few condition checks to make it | |
7580 | usable on coreboot. | |
7581 | ||
9fc5388a | 7582 | 2008-11-25 Felix Zielcke <fzielcke@z-51.de> |
7583 | ||
7584 | * util/grub-fstest.c (grub_term_get_current_input): Change return type | |
7585 | to `grub_term_input_t'. | |
7586 | (grub_term_get_current_output): Change return type to | |
7587 | `grub_term_output_t'. | |
7588 | ||
bc3a2f31 | 7589 | 2008-11-22 Robert Millan <rmh@aybabtu.com> |
7590 | ||
34c44600 | 7591 | Fix breakage on coreboot due to declaration mismatch. |
bc3a2f31 | 7592 | * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function. |
7593 | (grub_vga_text_term): Use grub_vga_text_init_fini() instead of | |
7594 | grub_vga_text_cls(). | |
7595 | ||
80fc88f2 | 7596 | * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve |
34c44600 | 7597 | comments. Avoid copying one more byte than necessary (just in case). |
80fc88f2 | 7598 | |
cbf36fd3 | 7599 | * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address |
7600 | to 0x200000 (avoids trouble with some OFW implementations, and matches | |
7601 | with the one in Yaboot). | |
7602 | Reported by Manoel Abranches | |
7603 | ||
73e8e268 | 7604 | 2008-11-20 Robert Millan <rmh@aybabtu.com> |
3cf6ac19 | 7605 | |
7606 | * kern/i386/coreboot/init.c (grub_time_tics): Remove variable. | |
7607 | (grub_get_rtc, grub_exit): Abort with grub_fatal() if called. | |
7608 | ||
73e8e268 | 7609 | * util/grub-mkconfig_lib.in (grub_warn): New function. |
7610 | (convert_system_path_to_grub_path): Use grub_warn() when issuing | |
7611 | warnings, to obtain consistent formatting. | |
7612 | * util/grub.d/00_header.in: Likewise. | |
7613 | * util/update-grub_lib.in: Likewise. | |
7614 | ||
e94045a1 | 7615 | * loader/i386/linux.c (allocate_pages): Fix a warning. |
40f9faa4 | 7616 | Move comment text to `#error' stanza. |
e94045a1 | 7617 | |
79d29fd7 | 7618 | Harmonize ieee1275's grub_available_iterate() with the generic |
7619 | grub_machine_mmap_iterate() interface (fixes a recently-introduced | |
7620 | build problem on i386-ieee1275): | |
7621 | * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ... | |
7622 | * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third | |
7623 | parameter `type'. Update all users of this function. | |
7624 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add | |
7625 | `kern/ieee1275/mmap.c'. | |
7626 | * kern/ieee1275/init.c | |
7627 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace | |
7628 | with ... | |
7629 | (grub_machine_mmap_iterate): ... this. | |
7630 | * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change | |
7631 | return type to `grub_err_t'. Update all implementations of this | |
7632 | function prototype. | |
7633 | * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate): | |
7634 | Likewise. | |
7635 | ||
60d6b16e | 7636 | Add `lsmmap' command (lists firmware-provided memory map): |
7637 | * commands/lsmmap.c: New file. | |
7638 | * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'. | |
7639 | (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New | |
7640 | variables. | |
7641 | * conf/powerpc-ieee1275.rmk: Likewise. | |
7642 | * conf/i386-coreboot.rmk: Likewise. | |
7643 | * conf/i386-ieee1275.rmk: Likewise. | |
7644 | ||
ebaaf49b | 7645 | 2008-11-19 Robert Millan <rmh@aybabtu.com> |
7646 | ||
7647 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo. | |
92907110 | 7648 | * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed |
7649 | constraints to initrd allocation (based on code from | |
7650 | loader/i386/pc/linux.c). Without them, initrd was allocated too high | |
7651 | for Linux to find it. | |
ebaaf49b | 7652 | |
dfab719f | 7653 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
7654 | ||
7655 | * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in | |
7656 | order to cope with duplicate slashes. | |
7657 | ||
10fc3eb9 | 7658 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
7659 | ||
7660 | * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE): | |
7661 | Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We | |
7662 | don't want to mess with lower memory, because it is used in the Linux | |
7663 | loader. | |
7664 | ||
7665 | * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in | |
34c44600 | 7666 | an appropriate place in lower memory, between 0x10000 and 0x90000, |
10fc3eb9 | 7667 | like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem |
7668 | is in our heap (probably as a result of it being corrupted during | |
2f2a3442 | 7669 | decompression). Add #error instance with comment to explain why this |
7670 | loader isn't currently usable on PC/BIOS. | |
10fc3eb9 | 7671 | |
e2e07847 | 7672 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
7673 | ||
7674 | * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS] | |
34c44600 | 7675 | (GRUB_SERIAL_PORT_NUM): Fix miscalculation. |
e2e07847 | 7676 | |
fe8e8d69 | 7677 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
7678 | ||
7679 | Make loader/i386/linux.c buildable on i386-pc (although disabled). | |
7680 | ||
7681 | * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'. | |
7682 | (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move | |
7683 | from here ... | |
7684 | * include/grub/i386/pc/memory.h: ... to here. | |
7685 | ||
976b07d0 | 7686 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
7687 | ||
7688 | Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text | |
7689 | split). | |
7690 | ||
7691 | * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'. | |
7692 | (grub_console_cur_color, grub_console_real_putchar) | |
7693 | (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh) | |
7694 | (grub_console_setcolorstate, grub_console_setcolor) | |
7695 | (grub_console_getcolor): Move from here ... | |
7696 | * include/grub/i386/vga_common.h: ... to here (new file). | |
7697 | ||
7698 | * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with | |
7699 | `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with | |
7700 | `<grub/i386/io.h>'. | |
7701 | * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with | |
7702 | `<grub/i386/vga_common.h>'. | |
7703 | ||
76679cd3 | 7704 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
7705 | ||
7706 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'. | |
7707 | * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'. | |
7708 | (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New | |
7709 | variables. | |
7710 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace | |
7711 | `term/i386/pc/console.c' with `term/i386/vga_common.c'. | |
7712 | ||
7713 | * kern/i386/coreboot/init.c (grub_machine_init): Replace call to | |
7714 | grub_console_init() with call to grub_vga_text_init(). | |
7715 | (grub_machine_fini): Replace call to | |
7716 | grub_console_fini() with call to grub_vga_text_fini() and | |
7717 | grub_at_keyboard_fini(). | |
7718 | ||
7719 | * include/grub/i386/pc/console.h: Include `<grub/term.h>'. | |
7720 | (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh) | |
7721 | (grub_console_setcolorstate, grub_console_setcolor) | |
7722 | (grub_console_getcolor): New function prototypes. | |
7723 | ||
7724 | * term/i386/pc/vga_text.c: Include `<grub/dl.h>'. | |
7725 | (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls) | |
7726 | (grub_vga_text_setcursor): Static-ize. | |
7727 | (grub_vga_text_term): New structure. | |
7728 | (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions. | |
7729 | ||
7730 | * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'. | |
7731 | (grub_console_cur_color, grub_console_standard_color) | |
7732 | (grub_console_normal_color, grub_console_highlight_color) | |
7733 | (map_char, grub_console_putchar, grub_console_getcharwidth) | |
7734 | (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor) | |
7735 | (grub_console_getcolor): Move from here ... | |
7736 | * term/i386/vga_common.c: ... to here (same function names). | |
7737 | ||
95b841d3 | 7738 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
7739 | ||
7740 | Use newly-added Multiboot support in coreboot. | |
7741 | ||
7742 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace | |
7743 | `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'. | |
7744 | ||
7745 | * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its | |
7746 | alignment, set `MULTIBOOT_MEMORY_INFO' flag. | |
7747 | (codestart): Store the MBI in `startup_multiboot_info' when we're | |
7748 | being loaded using Multiboot. | |
7749 | ||
7750 | * kern/i386/coreboot/init.c (grub_machine_init): Move | |
7751 | grub_at_keyboard_init() call to beginning of function (useful for | |
7752 | debugging). Call grub_machine_mmap_init() before attempting to use | |
7753 | grub_machine_mmap_iterate(). | |
7754 | (grub_lower_mem, grub_upper_mem): Move from here ... | |
7755 | * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to | |
7756 | here (new file). | |
7757 | ||
7758 | * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New | |
7759 | function prototype. | |
7760 | ||
761ca975 | 7761 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
7762 | ||
7763 | Fix a regression introduced by the at_keyboard.mod split. Because | |
7764 | some terminals are default on some platforms and non-default on | |
7765 | others, the first terminal being registered determines which is | |
7766 | going to be default. | |
7767 | ||
7768 | * kern/term.c (grub_term_register_input): If this is the first | |
7769 | terminal being registered, set it as the current one. | |
7770 | (grub_term_register_output): Likewise. | |
7771 | ||
7772 | * term/efi/console.c (grub_console_init): Do not call | |
7773 | grub_term_set_current_output() or grub_term_set_current_input(). | |
7774 | * term/ieee1275/ofconsole.c (grub_console_init): Likewise. | |
7775 | * term/i386/pc/console.c (grub_console_init): Likewise. | |
7776 | (grub_console_fini): Do not call grub_term_set_current_input() | |
7777 | (but leave grub_term_set_current_output() to restore text mode). | |
7778 | ||
6c529df7 | 7779 | 2008-11-10 Robert Millan <rmh@aybabtu.com> |
7780 | ||
7781 | * util/grub.d/00_header.in: Add backward compatibility check for | |
7782 | versions of terminal.mod that don't understand `terminal_input' or | |
7783 | `terminal_output'. | |
7784 | ||
132e4113 | 7785 | 2008-11-09 Robert Millan <rmh@aybabtu.com> |
7786 | ||
7787 | * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister | |
7788 | `terminal_input' / `terminal_output', not `terminal'. | |
7789 | ||
ac293d50 | 7790 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
7791 | ||
7792 | * Makefile.in (include_DATA): Fix srcdir=. assumption. | |
2a9c5940 | 7793 | (DISTCLEANFILES): Add `build_env.mk'. |
ac293d50 | 7794 | |
0025933a | 7795 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
7796 | ||
7797 | * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to | |
dba3f844 | 7798 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' |
0025933a | 7799 | members. Update all users. |
7800 | * util/console.c (grub_ncurses_term): Split in ... | |
7801 | (grub_ncurses_term_input): ... this, and ... | |
7802 | (grub_ncurses_term_output): ... this. Update all users. | |
dcb6fa0a | 7803 | * term/ieee1275/ofconsole.c: Remove stale `#endif'. |
0025933a | 7804 | |
37c86336 | 7805 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
7806 | ||
7807 | * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR). | |
7808 | (PKGDATA): Add $(pkgdata_SRCDIR). | |
7809 | (pkglib_BUILDDIR): New variable. | |
7810 | (pkgdata_SRCDIR): New variable. | |
7811 | (build_env.mk): New target. | |
7812 | (include_DATA): New variable. | |
7813 | (install-local): Install $(include_DATA) files in $(includedir). | |
7814 | ||
b6c15a2d | 7815 | 2008-11-07 Pavel Roskin <proski@gnu.org> |
7816 | ||
d99d46f1 | 7817 | * gendistlist.sh: Use C locale for sorting to ensure consistent |
7818 | output on all systems. | |
7819 | ||
b6c15a2d | 7820 | * util/grub.d/00_header.in: Remove incorrect space before |
7821 | "serial". | |
7822 | ||
c32ee8c9 | 7823 | 2008-11-07 Robert Millan <rmh@aybabtu.com> |
7824 | ||
7825 | * include/multiboot2.h (struct multiboot_header): Add `flags' member as | |
7826 | per specification. | |
7827 | * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check. | |
7828 | * loader/multiboot_loader.c (find_multi_boot2_header): New function | |
7829 | (based on find_multi_boot1_header). | |
7830 | (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header, | |
7831 | using find_multi_boot2_header(), and abort if neither Multiboot or | |
7832 | Multiboot headers were found. | |
7833 | ||
651c29b7 | 7834 | 2008-11-07 Robert Millan <rmh@aybabtu.com> |
7835 | ||
7836 | Modularize at_keyboard.mod: | |
7837 | ||
7838 | * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'. | |
7839 | (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS) | |
7840 | (at_keyboard_mod_LDFLAGS): New variables. | |
7841 | ||
7842 | Actual terminal split: | |
7843 | ||
7844 | * include/grub/term.h (struct grub_term): Split in ... | |
7845 | (struct grub_term_input): ... this, and ... | |
7846 | (struct grub_term_output): ... this. Update all users. | |
7847 | (grub_term_set_current): Split in ... | |
7848 | (grub_term_set_current_input): ... this, and ... | |
7849 | (grub_term_set_current_output): ... this. | |
7850 | (grub_term_get_current): Split in ... | |
7851 | (grub_term_get_current_input): ... this, and ... | |
7852 | (grub_term_get_current_output): ... this. | |
7853 | (grub_term_register): Split in ... | |
7854 | (grub_term_register_input): ... this, and ... | |
7855 | (grub_term_register_output): ... this. | |
7856 | (grub_term_unregister): Split in ... | |
7857 | (grub_term_unregister_input): ... this, and ... | |
7858 | (grub_term_unregister_output): ... this. | |
7859 | (grub_term_iterate): Split in ... | |
7860 | (grub_term_iterate_input): ... this, and ... | |
7861 | (grub_term_iterate_output): ... this. | |
7862 | ||
7863 | * kern/term.c (grub_term_list): Split in ... | |
7864 | (grub_term_list_input): ... this, and ... | |
7865 | (grub_term_list_output): ... this. Update all users. | |
7866 | (grub_cur_term): Split in ... | |
7867 | (grub_cur_term_input): ... this, and ... | |
7868 | (grub_cur_term_output): ... this. Update all users. | |
7869 | (grub_term_set_current): Split in ... | |
7870 | (grub_term_set_current_input): ... this, and ... | |
7871 | (grub_term_set_current_output): ... this. | |
7872 | (grub_term_get_current): Split in ... | |
7873 | (grub_term_get_current_input): ... this, and ... | |
7874 | (grub_term_get_current_output): ... this. | |
7875 | (grub_term_register): Split in ... | |
7876 | (grub_term_register_input): ... this, and ... | |
7877 | (grub_term_register_output): ... this. | |
7878 | (grub_term_unregister): Split in ... | |
7879 | (grub_term_unregister_input): ... this, and ... | |
7880 | (grub_term_unregister_output): ... this. | |
7881 | (grub_term_iterate): Split in ... | |
7882 | (grub_term_iterate_input): ... this, and ... | |
7883 | (grub_term_iterate_output): ... this. | |
7884 | ||
7885 | * kern/misc.c (grub_abort): Split use of grub_term_get_current() into | |
7886 | a check for input and one for output (and only attempt to get keys | |
7887 | from user when input works). | |
7888 | ||
7889 | * util/grub-probe.c (grub_term_get_current): Split in ... | |
7890 | (grub_term_get_current_input): ... this, and ... | |
7891 | (grub_term_get_current_output): ... this. | |
7892 | * util/grub-fstest.c: Likewise. | |
7893 | * util/i386/pc/grub-setup.c: Likewise. | |
7894 | * util/grub-editenv.c: Likewise. | |
7895 | ||
7896 | Portability adjustments: | |
7897 | ||
7898 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove | |
7899 | `term/i386/pc/at_keyboard.c'. | |
7900 | * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to | |
7901 | grub_keyboard_controller_init() (now handled by terminal .init). | |
7902 | * kern/i386/coreboot/init.c (grub_machine_init): Add call to | |
7903 | grub_at_keyboard_init(). | |
7904 | * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init) | |
7905 | (grub_console_checkkey, grub_console_getkey): Remove (now provided by | |
7906 | at_keyboard.mod via input terminal interface). | |
7907 | * include/grub/i386/coreboot/console.h: Convert into a stub for | |
7908 | `<grub/i386/pc/console.h>'. | |
7909 | ||
7910 | Migrate full terminals to new API: | |
7911 | ||
7912 | * term/efi/console.c (grub_console_term): Split into ... | |
7913 | (grub_console_term_input): ... this, and ... | |
7914 | (grub_console_term_output): ... this. Update all users. | |
7915 | * term/ieee1275/ofconsole.c: Remove __i386__ hack. | |
7916 | (grub_ofconsole_init): Split into ... | |
7917 | (grub_ofconsole_init_input): ... this, and ... | |
7918 | (grub_ofconsole_init_output): ... this. | |
7919 | (grub_ofconsole_term): Split into ... | |
7920 | (grub_ofconsole_term_input): ... this, and ... | |
7921 | (grub_ofconsole_term_output): ... this. Update all users. | |
7922 | * term/i386/pc/serial.c (grub_serial_term): Split into ... | |
7923 | (grub_serial_term_input): ... this, and ... | |
7924 | (grub_serial_term_output): ... this. Update all users. | |
7925 | * term/i386/pc/console.c (grub_console_term): Split into ... | |
7926 | (grub_console_term_input): ... this, and ... | |
7927 | (grub_console_term_output): ... this. Update all users. | |
7928 | (grub_console_term_input): Only enable it on PC/BIOS platform. | |
7929 | (grub_console_init): Remove grub_keyboard_controller_init() call. | |
7930 | ||
7931 | Migrate input terminals to new API: | |
7932 | ||
7933 | * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with | |
7934 | `i386' and `i386/pc' to enable build on x86_64 (this driver is | |
7935 | i386-specific anyway). | |
7936 | (grub_console_checkkey): Rename to ... | |
7937 | (grub_at_keyboard_checkkey): ... this. Static-ize. Update all | |
7938 | users. | |
7939 | (grub_keyboard_controller_orig): New variable. | |
7940 | (grub_console_getkey): Rename to ... | |
7941 | (grub_at_keyboard_getkey): ... this. Static-ize. Update all | |
7942 | users. | |
7943 | (grub_keyboard_controller_init): Static-ize. Save original | |
7944 | controller value so that it can be restored ... | |
7945 | (grub_keyboard_controller_fini): ... here (new function). | |
7946 | (grub_at_keyboard_term): New structure. | |
7947 | (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New | |
7948 | functions. | |
7949 | ||
7950 | Migrate output terminals to new API: | |
7951 | ||
7952 | * term/i386/pc/vga.c (grub_vga_term): Change type to | |
7953 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' | |
7954 | members. Update all users. | |
7955 | * term/gfxterm.c (grub_video_term): Change type to | |
7956 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' | |
7957 | members. Update all users. | |
7958 | * include/grub/i386/pc/console.h (grub_console_checkkey) | |
7959 | (grub_console_getkey): Do not export (no longer needed by gfxterm, | |
7960 | etc). | |
7961 | ||
7962 | Migrate `terminal' command and userland tools to new API: | |
7963 | ||
7964 | * commands/terminal.c (grub_cmd_terminal): Split into ... | |
7965 | (grub_cmd_terminal_input): ... this, and ... | |
7966 | (grub_cmd_terminal_output): ... this. | |
7967 | (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands: | |
7968 | `terminal_input' and `terminal_output'. | |
7969 | * util/grub.d/00_header.in: Adjust `terminal' calls to new | |
7970 | `terminal_input' / `terminal_output' API. | |
7971 | * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and | |
7972 | ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user | |
7973 | provided ${GRUB_TERMINAL}, convert it). | |
7974 | ||
96e5d876 | 7975 | 2008-11-04 Robert Millan <rmh@aybabtu.com> |
7976 | ||
7977 | * util/grub.d/10_freebsd.in: New file. Generate grub configuration | |
7978 | for FreeBSD. | |
7979 | * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd. | |
7980 | ||
556f3775 | 7981 | 2008-11-03 Bean <bean123ch@gmail.com> |
7982 | ||
7983 | * kern/elf.c (grub_elf32_load): Revert to previous code. | |
7984 | (grub_elf64_load): Likewise. | |
7985 | ||
7986 | * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address. | |
7987 | ||
926b9823 | 7988 | 2008-11-01 Robert Millan <rmh@aybabtu.com> |
7989 | ||
7990 | * Makefile.in (CPPFLAGS): Fix builddir=. assumption. | |
7991 | (TARGET_CPPFLAGS): Likewise. | |
7992 | * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions. | |
7993 | ||
1432e958 | 7994 | 2008-11-01 Carles Pina i Estany <carles@pina.cat> |
7995 | ||
7996 | * normal/menu.c (run_menu): Add Previous and Next Page keys in menu. | |
7997 | ||
dba3f844 | 7998 | 2008-10-29 Guillem Jover <guillem.jover@nokia.com> |
de4fa71c | 7999 | |
8000 | * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the | |
8001 | addition of objects until the code is not going to be able to fail. | |
8002 | ||
dba3f844 | 8003 | 2008-10-29 Guillem Jover <guillem.jover@nokia.com> |
b7279447 | 8004 | |
8005 | * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling | |
8006 | (add a missing NULL check, and correct them by moving the pointer | |
8007 | operations after the actual check). | |
8008 | ||
7ab28c21 | 8009 | 2008-10-29 Robert Millan <rmh@aybabtu.com> |
8010 | ||
8011 | * util/i386/pc/grub-install.in: Handle empty string as output from | |
8012 | make_system_path_relative_to_its_root(). | |
8013 | ||
1b7748eb | 8014 | 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org> |
8015 | ||
8016 | * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the | |
8017 | circular metadata worst case scenario. If the metadata is circular | |
8018 | then copy the wrap in place. | |
8019 | * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2 | |
8020 | project lib/format_text/layout.h | |
8021 | Circular metadata bug found and patch debugged by Jan Derk Gerlings. | |
8022 | ||
c9618ab2 | 8023 | 2008-10-03 Felix Zielcke <fzielcke@z-51.de> |
8024 | ||
7a36edca | 8025 | * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib. |
c9618ab2 | 8026 | |
bf981c62 | 8027 | 2008-10-03 Felix Zielcke <fzielcke@z-51.de> |
8028 | ||
8029 | * util/update-grub_lib.in: Mention filename in warning message. | |
8030 | ||
6d994591 | 8031 | 2008-09-29 Felix Zielcke <fzielcke@z-51.de> |
8032 | ||
8033 | * NEWS: Update for rename of update-grub to grub-mkconfig. | |
8034 | ||
18ade780 | 8035 | 2008-09-29 Felix Zielcke <fzielcke@z-51.de> |
8036 | ||
8037 | * util/update-grub_lib.in: Copy to ... | |
8038 | * util/grub-mkconfig_lib.in: ... this. Update all users. | |
7c3ff286 | 8039 | * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'. |
18ade780 | 8040 | * util/update-grub.in: Rename to ... |
8041 | * util/grub-mkconfig.in: ... this. Update all users. Remove `-y' | |
8042 | option. Add `--output' option to allow users to specify the generated | |
8043 | configuration file. Default to stdout. | |
8044 | (update_grub_dir): Rename to ... | |
8045 | (grub_mkconfig_dir): ... this. | |
8046 | (grub_cfg): Default to an empty string. | |
8047 | * conf/common.rmk (update-grub): Rename to ... | |
8048 | (grub-mkconfig): ... this. | |
8049 | (update-grub_lib): Copy to ... | |
8050 | (grub-mkconfig_lib): ... this. | |
8051 | (update-grub_SCRIPTS): Copy to ... | |
8052 | (grub-mkconfig_SCRIPTS): ... this. Update all users. | |
8053 | (update-grub_DATA): Rename to ... | |
8054 | (grub-mkconfig_DATA): ... this. | |
8055 | ||
556ce6ac | 8056 | 2008-09-28 Robert Millan <rmh@aybabtu.com> |
8057 | ||
8058 | * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created' | |
8059 | to `modified'. Add the real `created' field. | |
8060 | (grub_iso9660_uuid): Use `modified' rather than `created' for | |
8061 | constructing the UUID. | |
8062 | ||
8063 | 2008-09-28 Felix Zielcke <fzielcke@z-51.de> | |
eb079ba9 | 8064 | |
8065 | fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one. | |
8066 | Based on code from Tomas Ebenlendr <ebik@ucw.cz>. | |
8067 | ||
92274e85 | 8068 | 2008-09-28 Bean <bean123ch@gmail.com> |
8069 | ||
8070 | * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch. | |
8071 | Thanks to Christian Franke for finding this bug. | |
8072 | ||
add6f17a | 8073 | 2008-09-25 Robert Millan <rmh@aybabtu.com> |
8074 | ||
8075 | * util/grub-mkdevicemap.c (make_device_map): Actually replace all | |
8076 | instances of grub_util_get_disk_name() (see previous commit). | |
8077 | ||
d2a367b8 | 8078 | 2008-09-25 Robert Millan <rmh@aybabtu.com> |
8079 | ||
8080 | * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove | |
8081 | `util/i386/get_disk_name.c'. | |
8082 | * conf/i386-efi.rmk: Likewise. | |
8083 | * conf/x86_64-efi.rmk: Likewise. | |
8084 | * conf/i386-coreboot.rmk: Likewise. | |
8085 | * conf/i386-ieee1275.rmk: Likewise. | |
8086 | * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove | |
8087 | `util/ieee1275/get_disk_name.c'. | |
8088 | * include/grub/util/misc.h (grub_util_get_disk_name): Remove. | |
8089 | * util/ieee1275/get_disk_name.c: Remove file. | |
8090 | * util/i386/get_disk_name.c: Remove file. | |
8091 | * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding | |
8092 | "hd%d" for device.map entries, rather than using | |
8093 | grub_util_get_disk_name(). | |
8094 | ||
81a06771 | 8095 | 2008-09-24 Carles Pina i Estany <carles@pina.cat> |
b0c301f7 | 8096 | |
8097 | * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter' | |
8098 | warning. | |
8099 | * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise. | |
8100 | ||
5a004279 | 8101 | 2008-09-24 Carles Pina i Estany <carles@pina.cat> |
8102 | ||
8103 | * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE): | |
8104 | Changed to 0x5100. | |
8105 | (GRUB_TERM_PPAGE): Changed to 0x4900. | |
8106 | ||
397093d3 | 8107 | 2008-09-24 Robert Millan <rmh@aybabtu.com> |
8108 | ||
8109 | * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove | |
8110 | macros (they were i386-pc specific). | |
8111 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
8112 | * include/grub/efi/console.h: Likewise. | |
8113 | ||
a91b6c7c | 8114 | 2008-09-22 Bean <bean123ch@gmail.com> |
8115 | ||
8116 | * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is | |
8117 | resident and in attribute list. | |
8118 | ||
8119 | * include/grub/ntfs.h (BMP_LEN): Removed. | |
8120 | ||
c40fd116 | 8121 | 2008-09-22 Bean <bean123ch@gmail.com> |
8122 | ||
81a06771 | 8123 | * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set |
c40fd116 | 8124 | scsi->name and scsi->luns, as they will be set in grub_scsi_open. |
8125 | ||
8126 | * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when | |
8127 | error occurs, as grub_disk_open will call grub_disk_close, which will | |
8128 | call p->close (scsi). | |
8129 | ||
81a06771 | 8130 | 2008-09-21 Felix Zielcke <fzielcke@z-51.de> |
eb73121d | 8131 | |
8132 | * configure.ac (AC_INIT): Quote `GRUB' string and version number. | |
8133 | (AC_PREREQ): Bumped to 2.59. | |
8134 | (AC_TRY_COMPILE): Replace obsolete macro with ... | |
8135 | (AC_COMPILE_IFELSE): ... this. | |
8136 | * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ... | |
8137 | (AC_LINK_IFELSE): ... this. | |
8138 | ||
5dc43410 | 8139 | 2008-09-21 Felix Zielcke <fzielcke@z-51.de> |
8140 | ||
8141 | * autogen.sh: Add a call to `gendistlist.sh'. | |
8142 | ||
9035dce4 | 8143 | 2008-09-19 Christian Franke <franke@computer.org> |
8144 | ||
8145 | * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function. | |
8146 | * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK. | |
8147 | * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]: | |
8148 | Export __enable_execute_stack() to modules. | |
8149 | * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack): | |
8150 | New function. | |
8151 | ||
7fd75377 | 8152 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> |
8153 | ||
040030b3 | 8154 | * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'. |
8155 | Sort the list. | |
8156 | ||
8157 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> | |
8158 | ||
8159 | * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with | |
7fd75377 | 8160 | #include <grub/util/hostdisk.h>. |
8161 | ||
89d5ffcf | 8162 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
8163 | ||
8164 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip | |
8165 | segments when their filesz is zero (grub_file_read() interprets | |
81a06771 | 8166 | zero-size as "read until EOF", which results in memory corruption). |
89d5ffcf | 8167 | Use `lowest_segment' rather than 0 for calculating the current |
8168 | segment load address. | |
8169 | ||
40da438f | 8170 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
8171 | ||
8172 | * util/hostdisk.c (open_device): Replace a grub_util_info() call | |
8173 | with grub_dprintf("hostdisk", ...), as it was so verbose that it | |
8174 | clobbered useful information. | |
8175 | ||
ddbf5556 | 8176 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
8177 | ||
8178 | * include/grub/util/biosdisk.h: Move to ... | |
8179 | * include/grub/util/hostdisk.h: ... here. Update all users. | |
8180 | * util/biosdisk.c: Move to ... | |
8181 | * util/hostdisk.c: ... here. Update all users. | |
8182 | ||
783d0f48 | 8183 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
8184 | ||
8185 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove | |
8186 | variables. | |
8187 | (grub_multiboot): Move `mbi' allocation upwards, so that mmap address | |
8188 | and length can be stored directly in the `mbi->mmap_addr' and | |
8189 | `mbi->mmap_length' struct fields. | |
8190 | ||
548e2ea5 | 8191 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
8192 | ||
8193 | * conf/i386.rmk: New file. Provides declaration for building | |
8194 | `cpuid.mod'. | |
8195 | * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'. | |
8196 | (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove | |
8197 | variables. | |
8198 | Include `conf/i386.mk'. | |
8199 | * conf/i386-efi.rmk: Likewise. | |
8200 | * conf/x86_64-efi.rmk: Likewise. | |
8201 | * conf/i386-coreboot.rmk: Likewise. | |
8202 | * conf/i386-ieee1275.rmk: Likewise. | |
8203 | ||
0ea85a37 | 8204 | 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi> |
8205 | ||
8206 | Based on patch created by Colin D Bennett <colin@gibibit.com>. | |
8207 | Adds optimization support for BGR based modes. | |
8208 | ||
8209 | * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed. | |
8210 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
8211 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
8212 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
8213 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
8214 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
8215 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
8216 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
8217 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
8218 | (grub_video_i386_vbeblit_index_index): Likewise. | |
8219 | (grub_video_i386_vbeblit_replace_directN): Added. | |
8220 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
8221 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
8222 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
8223 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
8224 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
8225 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
81a06771 | 8226 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. |
0ea85a37 | 8227 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. |
8228 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
8229 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
8230 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
8231 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
8232 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
8233 | ||
8234 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed. | |
8235 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
8236 | (grub_video_i386_vbefill_index): Likewise. | |
8237 | (grub_video_i386_vbefill_direct32): Added. | |
8238 | (grub_video_i386_vbefill_direct24): Likewise. | |
8239 | (grub_video_i386_vbefill_direct16): Likewise. | |
8240 | (grub_video_i386_vbefill_direct8): Likewise. | |
8241 | ||
81a06771 | 8242 | * include/grub/video.h (grub_video_blit_format): Removed |
0ea85a37 | 8243 | GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8. |
8244 | (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888, | |
8245 | GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888, | |
8246 | GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565, | |
8247 | GRUB_VIDEO_BLIT_FORMAT_BGR_565. | |
81a06771 | 8248 | |
0ea85a37 | 8249 | * video/video.c (grub_video_get_blit_format): Updated to use new |
8250 | blit formats. Added handling for 16 bit color modes. | |
81a06771 | 8251 | |
8252 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new | |
0ea85a37 | 8253 | fillers. |
8254 | (common_blitter): Updated to use new blitters. | |
8255 | ||
8256 | * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): | |
8257 | Removed. | |
8258 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
8259 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
8260 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
8261 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
8262 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
8263 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
8264 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
8265 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
8266 | (grub_video_i386_vbeblit_index_index): Likewise. | |
8267 | (grub_video_i386_vbeblit_replace_directN): Added. | |
8268 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
8269 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
8270 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
8271 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
8272 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
8273 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
8274 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. | |
8275 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. | |
8276 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
8277 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
8278 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
8279 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
8280 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
81a06771 | 8281 | |
0ea85a37 | 8282 | * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed. |
8283 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
8284 | (grub_video_i386_vbefill_index): Likewise. | |
8285 | (grub_video_i386_vbefill_direct32): Added. | |
8286 | (grub_video_i386_vbefill_direct24): Likewise. | |
8287 | (grub_video_i386_vbefill_direct16): Likewise. | |
8288 | (grub_video_i386_vbefill_direct8): Likewise. | |
81a06771 | 8289 | |
0ea85a37 | 8290 | * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter |
8291 | types. | |
81a06771 | 8292 | |
0ea85a37 | 8293 | * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter |
8294 | types. | |
81a06771 | 8295 | |
0ea85a37 | 8296 | * video/readers/png.c (grub_png_decode_image_header): Adapt to new |
8297 | blitter types. | |
81a06771 | 8298 | |
0ea85a37 | 8299 | * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter |
8300 | types. | |
8301 | ||
e8a83df6 | 8302 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
8303 | ||
8304 | * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for | |
8305 | RAID level 1. | |
8306 | ||
6bcd8ee5 | 8307 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
c375ae58 | 8308 | |
6bcd8ee5 | 8309 | * fs/iso9660.c (grub_iso9660_date): New structure. |
8310 | (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member. | |
8311 | (grub_iso9660_uuid): New function. | |
c375ae58 | 8312 | |
59261157 | 8313 | 2008-09-05 Bean <bean123ch@gmail.com> |
8314 | ||
8315 | * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names. | |
8316 | ||
8317 | * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case | |
8318 | insensitive bit for names in Win32 and Win32 & DOS namespace. | |
8319 | ||
8320 | * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro. | |
8321 | ||
8322 | * include/grub/types.h (LONG_MAX): Likewise. | |
8323 | ||
58b6645a | 8324 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> |
8325 | ||
4ee55921 | 8326 | * util/getroot.c: Include <config.h>. |
8327 | (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices, | |
8328 | add support for /dev/md/N devices and handle LVM double dash escaping. | |
8329 | ||
8330 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> | |
8331 | ||
8332 | * config.guess: Update to latest version from config git. | |
8333 | * config.sub: Likewise. | |
58b6645a | 8334 | |
9124f65d | 8335 | 2008-09-03 Robert Millan <rmh@aybabtu.com> |
8336 | ||
8337 | * disk/scsi.c (grub_scsi_open): Remove size limit when printing | |
8338 | `disk->total_sectors'. | |
8339 | ||
81a06771 | 8340 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
a0224a4e | 8341 | |
8342 | * include/grub/normal.h: Fixed incorrect comment for | |
8343 | GRUB_COMMAND_FLAG_NO_ARG_PARSE. | |
8344 | ||
81a06771 | 8345 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
f0619958 | 8346 | |
8347 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant | |
8348 | values with defines. | |
8349 | ||
8350 | * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added. | |
8351 | (GRUB_VBE_MODEATTR_RESERVED_1): Likewise. | |
8352 | (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise. | |
8353 | (GRUB_VBE_MODEATTR_COLOR): Likewise. | |
8354 | (GRUB_VBE_MODEATTR_GRAPHICS): Likewise. | |
8355 | (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise. | |
8356 | (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise. | |
8357 | (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise. | |
8358 | (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise. | |
8359 | (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise. | |
8360 | (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise. | |
8361 | (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise. | |
8362 | (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise. | |
8363 | (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise. | |
8364 | (GRUB_VBE_MEMORY_MODEL_CGA): Likewise. | |
8365 | (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise. | |
8366 | (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise. | |
8367 | (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise. | |
8368 | (GRUB_VBE_MEMORY_MODEL_YUV): Likewise. | |
8369 | ||
93d5cbf8 | 8370 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
8371 | ||
8372 | * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix | |
8373 | declaration. | |
8374 | (grub_multiboot): Fix a few warnings. | |
8375 | ||
21751d50 | 8376 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
8377 | ||
8378 | * loader/i386/pc/multiboot.c: Update comment not to say that | |
8379 | boot_device support is unimplemented. | |
8380 | ||
e27a75c5 | 8381 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
8382 | ||
8383 | * loader/i386/pc/multiboot.c: Update comment not to say that a.out | |
8384 | or memory map support are unimplemented. | |
8385 | ||
81a06771 | 8386 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
64d2d53c | 8387 | |
8388 | * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories. | |
8389 | ||
81a06771 | 8390 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
c08a6c18 | 8391 | |
8392 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and | |
8393 | total video memory in 'vbeinfo' output; show color format details for | |
8394 | each video mode. | |
8395 | ||
7c5d8d95 | 8396 | 2008-08-30 Pavel Roskin <proski@gnu.org> |
8397 | ||
8398 | * util/genmoddep.c: Remove for real this time. | |
8399 | * DISTLIST: Remove util/genmoddep.c. | |
8400 | ||
4cebd25a | 8401 | 2008-08-30 Robert Millan <rmh@aybabtu.com> |
8402 | ||
8403 | * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment | |
8404 | as required by Multiboot spec (it was already 4-byte aligned, but | |
8405 | only by chance). | |
8406 | ||
b497a269 | 8407 | 2008-08-29 Pavel Roskin <proski@gnu.org> |
8408 | ||
e3925185 | 8409 | * kern/powerpc/ieee1275/crt0.S: Rename to ... |
8410 | * kern/powerpc/ieee1275/startup.S: ... this. | |
8411 | * conf/powerpc-ieee1275.rmk: Adjust for the above. | |
8412 | * DISTLIST: Likewise. | |
8413 | ||
b497a269 | 8414 | * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and |
8415 | grub/cpu/kernel.h. Add start label for consistency with other | |
8416 | platforms. Add grub_prefix immediately after start. Add jump | |
8417 | to the code after grub_prefix. | |
8418 | * include/grub/powerpc/kernel.h: Provide valid values for | |
8419 | GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END. | |
8420 | ||
6e5a42fe | 8421 | 2008-08-29 Bean <bean123ch@gmail.com> |
8422 | ||
8423 | * configure.ac: Change host_os to cygwin for mingw. | |
8424 | (asprintf): New check for function. | |
8425 | ||
8426 | * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with | |
8427 | #if ! defined (__CYGWIN__) && ! defined (__MINGW32__). | |
8428 | ||
8429 | * include/grub/util/misc.h: #include <config.h> and <grub/types.h>, | |
81a06771 | 8430 | declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello, |
6e5a42fe | 8431 | sync, sleep and grub_util_get_disk_size for mingw. |
8432 | ||
8433 | * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size | |
8434 | to get size in mingw. | |
8435 | (open_device): Use flag O_BINARY if it's defined. | |
8436 | (find_root_device): Add dummy code for mingw. | |
8437 | ||
8438 | * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw. | |
8439 | (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw. | |
8440 | (get_scsi_disk_name): Return 0 for mingw. | |
8441 | ||
8442 | * util/hostfs.c: #include <grub/util/misc.h>. | |
8443 | (grub_hostfs_open): Use "rb" flag to open file, use | |
8444 | grub_util_get_disk_size to get disk size for mingw. | |
8445 | ||
8446 | * util/misc.c: #include <windows.h> and <winioctl.h> in mingw. | |
8447 | (asprintf): New function if HAVE_ASPRINTF is not set. | |
8448 | (sync): New function for mingw. | |
8449 | (sleep): Likewise. | |
8450 | (grub_util_get_disk_size): Likewise. | |
8451 | ||
ab3f2673 | 8452 | 2008-08-28 Pavel Roskin <proski@gnu.org> |
8453 | ||
8454 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
8455 | kern/time.c. | |
8456 | ||
1c282483 | 8457 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
8458 | ||
8459 | * util/biosdisk.c (find_grub_drive): Declare missing `i' variable. | |
8460 | ||
678e849c | 8461 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
8462 | ||
8463 | Change find_grub_drive() syntax so it doesn't prevent it from | |
8464 | detecting NULL names as errors. | |
8465 | ||
8466 | * util/biosdisk.c (find_grub_drive): Move free slot search code | |
8467 | from here ... | |
8468 | (find_free_slot): ... to here. | |
8469 | (read_device_map): Use find_free_slot() to search for free slots. | |
8470 | ||
965c75ca | 8471 | 2008-08-27 Marco Gerards <marco@gnu.org> |
8472 | ||
8473 | * conf/common.rmk (pkglib_MODULES): Add scsi.mod. | |
8474 | (scsi_mod_SOURCES): New variable. | |
8475 | (scsi_mod_CFLAGS): Likewise | |
8476 | (scsi_mod_LDFLAGS): Likewise. | |
8477 | ||
8478 | * disk/scsi.c: New file. | |
8479 | ||
8480 | * include/grub/scsi.h: Likewise. | |
8481 | ||
8482 | * include/grub/scsicmd.h: Likewise. | |
8483 | ||
8484 | * disk/ata.c: Include <grub/scsi.h>. | |
8485 | (grub_atapi_packet): Do not use grub_ata_cmd, use registers | |
8486 | instead. | |
8487 | (grub_ata_iterate): Skip ATAPI devices. | |
8488 | (grub_ata_open): Only handle ATAPI devices. | |
8489 | (struct grub_atapi_read): Removed. | |
8490 | (grub_atapi_readsector): Likewise. | |
8491 | (grub_ata_read): No longer handle ATAPI devices. | |
8492 | (grub_ata_write): Likewise. | |
8493 | (grub_atapi_iterate): New function. | |
8494 | (grub_atapi_read): Likewise. | |
8495 | (grub_atapi_write): Likewise. | |
8496 | (grub_atapi_open): Likewise. | |
8497 | (grub_atapi_close): Likewise. | |
8498 | (grub_atapi_dev): New variable. | |
8499 | (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device. | |
8500 | (GRUB_MOD_FINI(ata)): Unregister ATAPI. | |
8501 | ||
8502 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
8503 | `GRUB_DISK_DEVICE_SCSI_ID'. | |
8504 | ||
c07ae501 | 8505 | 2008-08-26 Robert Millan <rmh@aybabtu.com> |
8506 | ||
8507 | * util/biosdisk.c (grub_util_biosdisk_open, open_device) | |
8508 | (grub_util_biosdisk_get_grub_dev): Make error messages a bit more | |
8509 | descriptive. | |
8510 | ||
5ed20adc | 8511 | 2008-08-23 Bean <bean123ch@gmail.com> |
8512 | ||
8513 | * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c. | |
8514 | (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
8515 | disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c. | |
8516 | (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and | |
8517 | dm_nv.mod. | |
8518 | (raid5rec_mod_SOURCES): New macro. | |
8519 | (raid5rec_mod_CFLAGS): Likewise. | |
8520 | (raid5rec_mod_LDFLAGS): Likewise. | |
8521 | (raid6rec_mod_SOURCES): Likewise. | |
8522 | (raid6rec_mod_CFLAGS): Likewise. | |
8523 | (raid6rec_mod_LDFLAGS): Likewise. | |
8524 | (mdraid_mod_SOURCES): Likewise. | |
8525 | (mdraid_mod_CFLAGS): Likewise. | |
8526 | (mdraid_mod_LDFLAGS): Likewise. | |
8527 | (dm_nv_mod_SOURCES): Likewise. | |
8528 | (dm_nv_mod_CFLAGS): Likewise. | |
8529 | (dm_nv_mod_LDFLAGS): Likewise. | |
8530 | ||
8531 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c. | |
8532 | (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
8533 | disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
8534 | ||
8535 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c, | |
8536 | disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
8537 | ||
8538 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
8539 | ||
8540 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
8541 | ||
8542 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
8543 | ||
8544 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
8545 | ||
8546 | * disk/raid5_recover.c: New file. | |
8547 | ||
8548 | * disk/raid6_recover.c: Likewise. | |
8549 | ||
8550 | * disk/mdraid_linux.c: Likewise. | |
8551 | ||
8552 | * disk/dmraid_nvidia.c: Likewise. | |
8553 | ||
8554 | * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to | |
8555 | ULONG_MAX. | |
8556 | ||
8557 | * disk/raid.c (grub_raid_open): Use the size of the smallest disk to | |
8558 | calculate the size of raid device. | |
8559 | (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four | |
8560 | different layout of raid5. | |
8561 | (grub_raid_scan_device): Remove code specific to mdraid. | |
8562 | (grub_raid_list): New variable. | |
8563 | (free_array): New function. | |
8564 | (grub_raid_register): Likewise. | |
8565 | (grub_raid_unregister): Likewise. | |
8566 | (grub_raid_rescan): Likewise. | |
8567 | (GRUB_MOD_INIT): Don't iterate device here. | |
8568 | (GRUB_MOD_FINI): Use free_array to release resource. | |
8569 | ||
8570 | * include/grub/raid.h: Remove macro and structure specific to mdraid. | |
8571 | (grub_raid5_recover_func_t): New function variable type. | |
8572 | (grub_raid6_recover_func_t): Likewise. | |
8573 | (grub_raid5_recover_func): New variable. | |
8574 | (grub_raid6_recover_func): Likewise. | |
8575 | (grub_raid_register): New function. | |
8576 | (grub_raid_unregister): Likewise. | |
8577 | (grub_raid_rescan): Likewise. | |
8578 | (grub_raid_block_xor): Likewise. | |
8579 | ||
8580 | * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>. | |
8581 | (CMD_CRC): New macro. | |
8582 | (part): Removed. | |
8583 | (read_file): Handle device as well as file. | |
8584 | (cmd_crc): New function. | |
8585 | (fstest): Handle multiple disks. | |
8586 | (options): Remove part, raw and long, add root and diskcount. | |
8587 | (usage): Add crc, remove -p, -r, -l, add -r and -c. | |
dba3f844 | 8588 | (main): Find the first non option entry and ignore subsequent options, |
5ed20adc | 8589 | add handling for the new options, support multiple disks. |
8590 | ||
8591 | * util/grub-probe.c (probe): Add mdraid to abstraction_name. | |
8592 | ||
29c18915 | 8593 | 2008-08-23 Bean <bean123ch@gmail.com> |
8594 | ||
8595 | * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0. | |
8596 | ||
8597 | * genfslist.sh: Ignore kernel.mod. | |
8598 | ||
8599 | * genpartmaplist.sh: Likewise. | |
8600 | ||
8415f261 | 8601 | 2008-08-23 Robert Millan <rmh@aybabtu.com> |
8602 | ||
8603 | * util/getroot.c (find_root_device): Skip anything that starts with | |
8604 | a dot, not just directories. This avoids things like /dev/.tmp.md0. | |
8605 | ||
d5a7dc5b | 8606 | 2008-08-22 Felix Zielcke <fzielcke@z-51.de> |
81a06771 | 8607 | |
d5a7dc5b | 8608 | * util/update-grub.in (GRUB_GFXMODE): Export variable. |
8609 | * util/grub.d/00_header.in: Allow the administrator to change default | |
8610 | gfxmode via ${GRUB_GFXMODE}. | |
8611 | ||
380cfbb4 | 8612 | 2008-08-21 Felix Zielcke <fzielcke@z-51.de> |
8613 | ||
8614 | * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak. | |
8615 | ||
c9baafe7 | 8616 | 2008-08-21 Robert Millan <rmh@aybabtu.com> |
8617 | ||
8618 | * loader/i386/linux.c: New file. Implements generic 32-bit Linux | |
8619 | loader. | |
8620 | * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace | |
8621 | `loader/i386/pc/linux.c' with `loader/i386/linux.c'. | |
8622 | ||
e290bef2 | 8623 | 2008-08-20 Carles Pina i Estany <carles@pina.cat> |
8624 | ||
8625 | * menu/normal.c (run_menu): Replace hardcoded numbers with macros | |
8626 | (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN) | |
8627 | ||
f9dbfc96 | 8628 | 2008-08-19 Robert Millan <rmh@aybabtu.com> |
8629 | ||
8630 | * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove. | |
8631 | (struct grub_virtual_screen): Remove `cursor_color'. | |
8632 | (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color' | |
8633 | initialization. | |
8634 | (write_cursor): Use `virtual_screen.fg_color' to draw cursor. | |
8635 | ||
dd6bd6ab | 8636 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
8637 | ||
8638 | Unify (identical) linux_normal.c files. | |
8639 | * loader/i386/efi/linux_normal.c: Move from here ... | |
8640 | * loader/linux_normal.c: ... to here. Update all users. | |
8641 | * loader/i386/pc/linux_normal.c: Delete. Update all users. | |
8642 | * loader/i386/ieee1275/linux_normal.c: Likewise. | |
8643 | ||
7f42f83e | 8644 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
8645 | ||
8646 | * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO) | |
8647 | (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT) | |
8648 | (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT) | |
8649 | (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT) | |
8650 | (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU): | |
8651 | New macros. | |
8652 | (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ... | |
8653 | * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET) | |
8654 | (GRUB_LINUX_CL_END_OFFSET): ... to here. | |
8655 | * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ... | |
8656 | (GRUB_LINUX_CL_OFFSET): ... this. Update all users. | |
8657 | (GRUB_EFI_CL_END_OFFSET): Rename to ... | |
8658 | (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users. | |
8659 | (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization. | |
8660 | Initialize `params->video_cursor_x' and `params->video_cursor_y' | |
8661 | portably using grub_getxy(). | |
8662 | Replace `-EFI' with `-bzImage' in boot message. | |
8663 | ||
38487ddb | 8664 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
8665 | ||
8666 | * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub). | |
8667 | ||
deceb3ec | 8668 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
8669 | ||
8670 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'. | |
8671 | ||
8672 | * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE) | |
8673 | (GRUB_MACHINE_MEMORY_RESERVED): New macros. | |
8674 | (grub_machine_mmap_iterate): New function declaration. | |
8675 | * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New | |
8676 | structure. | |
8677 | (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New | |
8678 | macros. | |
8679 | ||
8680 | * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region | |
8681 | type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'. | |
8682 | Move e820 parsing from here ... | |
8683 | * kern/i386/pc/mmap.c: New file. | |
8684 | (grub_machine_mmap_iterate): ... to here. | |
8685 | ||
8686 | * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'. | |
8687 | (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ... | |
8688 | (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users. | |
8689 | (grub_available_iterate): Redeclare to return `void', and redeclare | |
8690 | its hook to use grub_uint64_t as addr and size parameters, and rename | |
8691 | to ... | |
8692 | (grub_machine_mmap_iterate): ... this. Update all users. | |
8693 | ||
8694 | * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop | |
8695 | to make it more readable. Rename to ... | |
8696 | (grub_machine_mmap_iterate): ... this. | |
8697 | ||
8698 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables. | |
8699 | (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions. | |
8700 | (grub_multiboot): Allocate an extra region after the payload, and fill | |
8701 | it with a Multiboot memory map. Adjust a.out loader to calculate size | |
8702 | with the extra space. | |
8703 | (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size | |
8704 | with the extra space. | |
8705 | ||
f8aa0f43 | 8706 | 2008-08-17 Carles Pina i Estany <carles@pina.cat> |
8707 | ||
9807deb9 | 8708 | * menu/normal.c (run_menu): Add Home and End keys in grub-menu. |
f8aa0f43 | 8709 | |
605f5bb6 | 8710 | 2008-08-17 Felix Zielcke <fzielcke@z-51.de> |
8711 | ||
8712 | * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc, | |
8713 | mdate-sh to the list `find' searches for. | |
8714 | * DISTLIST: Regenerated. | |
8715 | ||
210db6c6 | 8716 | 2008-08-16 Felix Zielcke <fzielcke@z-51.de> |
8717 | ||
8718 | * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh, | |
8719 | genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in, | |
48cdbfd4 | 8720 | genmoddep.awk, gensymlist.sh.in. |
8721 | (DISTDIRS): Add bus, docs, hook, lib. | |
210db6c6 | 8722 | * DISTLIST: Regenerated. |
48cdbfd4 | 8723 | * NEWS: Add cygwin support and change the `os-prober' entry a bit. |
210db6c6 | 8724 | |
1082b929 | 8725 | 2008-08-16 Robert Millan <rmh@aybabtu.com> |
8726 | ||
8727 | * disk/raid.c (grub_raid_init): Handle/report errors set by | |
8728 | grub_device_iterate(). | |
8729 | * disk/lvm.c (grub_lvm_init): Likewise. | |
8730 | ||
42ce5170 | 8731 | 2008-08-15 Bean <bean123ch@gmail.com> |
8732 | ||
8733 | * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
8734 | and datehook.mod. | |
8735 | (datetime_mod_SOURCES): New macro. | |
8736 | (datetime_mod_CFLAGS): Likewise. | |
8737 | (datetime_mod_LDFLAGS): Likewise. | |
8738 | (date_mod_SOURCES): Likewise. | |
8739 | (date_mod_CFLAGS): Likewise. | |
8740 | (date_mod_LDFLAGS): Likewise. | |
8741 | (datehook_mod_SOURCES): Likewise. | |
8742 | (datehook_mod_CFLAGS): Likewise. | |
8743 | (datehook_mod_LDFLAGS): Likewise. | |
8744 | ||
8745 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
8746 | and datehook.mod. | |
8747 | (datetime_mod_SOURCES): New macro. | |
8748 | (datetime_mod_CFLAGS): Likewise. | |
8749 | (datetime_mod_LDFLAGS): Likewise. | |
8750 | (date_mod_SOURCES): Likewise. | |
8751 | (date_mod_CFLAGS): Likewise. | |
8752 | (date_mod_LDFLAGS): Likewise. | |
8753 | (datehook_mod_SOURCES): Likewise. | |
8754 | (datehook_mod_CFLAGS): Likewise. | |
8755 | (datehook_mod_LDFLAGS): Likewise. | |
8756 | ||
8757 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
8758 | and datehook.mod. | |
8759 | (datetime_mod_SOURCES): New macro. | |
8760 | (datetime_mod_CFLAGS): Likewise. | |
8761 | (datetime_mod_LDFLAGS): Likewise. | |
8762 | (date_mod_SOURCES): Likewise. | |
8763 | (date_mod_CFLAGS): Likewise. | |
8764 | (date_mod_LDFLAGS): Likewise. | |
8765 | (datehook_mod_SOURCES): Likewise. | |
8766 | (datehook_mod_CFLAGS): Likewise. | |
8767 | (datehook_mod_LDFLAGS): Likewise. | |
8768 | ||
8769 | * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
8770 | and datehook.mod. | |
8771 | (datetime_mod_SOURCES): New macro. | |
8772 | (datetime_mod_CFLAGS): Likewise. | |
8773 | (datetime_mod_LDFLAGS): Likewise. | |
8774 | (date_mod_SOURCES): Likewise. | |
8775 | (date_mod_CFLAGS): Likewise. | |
8776 | (date_mod_LDFLAGS): Likewise. | |
8777 | (datehook_mod_SOURCES): Likewise. | |
8778 | (datehook_mod_CFLAGS): Likewise. | |
8779 | (datehook_mod_LDFLAGS): Likewise. | |
8780 | ||
8781 | * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
8782 | and datehook.mod. | |
8783 | (datetime_mod_SOURCES): New macro. | |
8784 | (datetime_mod_CFLAGS): Likewise. | |
8785 | (datetime_mod_LDFLAGS): Likewise. | |
8786 | (date_mod_SOURCES): Likewise. | |
8787 | (date_mod_CFLAGS): Likewise. | |
8788 | (date_mod_LDFLAGS): Likewise. | |
8789 | (datehook_mod_SOURCES): Likewise. | |
8790 | (datehook_mod_CFLAGS): Likewise. | |
8791 | (datehook_mod_LDFLAGS): Likewise. | |
8792 | ||
8793 | * kern/env.c (grub_env_insert): Fix a bug in prevp pointer. | |
8794 | ||
8795 | * commands/date.c: New file. | |
8796 | ||
8797 | * hook/datehook.c: Likewise. | |
8798 | ||
8799 | * include/grub/lib/datetime.h: Likewise. | |
8800 | ||
8801 | * include/grub/i386/cmos.h: Likewise. | |
8802 | ||
8803 | * lib/datetime.c: Likewise. | |
8804 | ||
8805 | * lib/i386/datetime.c: Likewise. | |
8806 | ||
8807 | * lib/efi/datetime.c: Likewise. | |
8808 | ||
0e9242da | 8809 | 2008-08-14 Robert Millan <rmh@aybabtu.com> |
8810 | ||
8811 | * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'. | |
8812 | (grub_mkelfimage_SOURCES): New variable. | |
8813 | (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise. | |
8814 | ||
8815 | * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES) | |
8816 | (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove. | |
8817 | * conf/powerpc-ieee1275.rmk: Likewise. | |
8818 | * conf/i386-ieee1275.rmk: Likewise. | |
8819 | ||
8820 | * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'. | |
8821 | * kern/i386/coreboot/init.c: Likewise. | |
8822 | ||
8823 | * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>' | |
8824 | with `<grub/cpu/kernel.h>'. | |
8825 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed | |
8826 | to ... | |
8827 | (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this. | |
8828 | * kern/i386/coreboot/startup.S: Likewise. | |
8829 | ||
8830 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN) | |
8831 | (GRUB_MOD_GAP): Remove. | |
8832 | * include/grub/powerpc/kernel.h: New file. | |
8833 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX) | |
8834 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
8835 | * include/grub/i386/kernel.h: New file. | |
8836 | * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN) | |
8837 | (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX) | |
8838 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
8839 | ||
8840 | * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use | |
8841 | `grub-mkelfimage'. | |
8842 | Use --directory when invoking grub_mkimage. | |
8843 | ||
8844 | * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'. | |
8845 | (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and | |
8846 | GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END | |
8847 | and GRUB_KERNEL_CPU_PREFIX. | |
8848 | ||
b86408f8 | 8849 | 2008-08-14 Felix Zielcke <fzielcke@z-51.de> |
8850 | ||
d5e619ca | 8851 | * include/grub/err.h (grub_err_printf): New function prototype. |
8852 | * util/misc.c (grub_err_printf): New function. | |
8853 | * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for | |
8854 | grub_printf. | |
8855 | * kern/err.c (grub_print_error): Use grub_err_printf. | |
b86408f8 | 8856 | |
7161f0e0 | 8857 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
8858 | ||
8859 | * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry. | |
8860 | ||
a1967522 | 8861 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
8862 | ||
8863 | * docs/grub.cfg: Use the native device name for the example GNU/Hurd | |
8864 | boot entry. | |
8865 | ||
371458b5 | 8866 | 2008-08-12 Robert Millan <rmh@aybabtu.com> |
8867 | ||
8868 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part | |
8869 | of the relocation code from here ... | |
8870 | (grub_multiboot): ... to here. | |
8871 | (forward_relocator, backward_relocator): Move from here ... | |
8872 | * kern/i386/loader.S (grub_multiboot_forward_relocator) | |
8873 | (grub_multiboot_backward_relocator): ... to here. | |
8874 | (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot | |
8875 | magic in %eax. Use %ebp for jumping (so %edx is not trashed). | |
8876 | * include/grub/i386/loader.h (grub_multiboot_forward_relocator) | |
8877 | (grub_multiboot_forward_relocator_end) | |
8878 | (grub_multiboot_backward_relocator) | |
8879 | (grub_multiboot_backward_relocator_end): New variables. | |
8880 | ||
05f9452b | 8881 | 2008-08-12 Bean <bean123ch@gmail.com> |
8882 | ||
8883 | * disk/raid.c (grub_raid_read): Fix a bug in raid0 code. | |
8884 | ||
20024ab0 | 8885 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
8886 | ||
8887 | * kern/i386/linuxbios/startup.S: Move from here ... | |
8888 | * kern/i386/coreboot/startup.S: ... to here. | |
8889 | ||
8890 | * kern/i386/linuxbios/init.c: Move from here ... | |
8891 | * kern/i386/coreboot/init.c: ... to here. | |
8892 | ||
8893 | * kern/i386/linuxbios/table.c: Move from here ... | |
8894 | * kern/i386/coreboot/mmap.c: ... to here. | |
8895 | ||
8896 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files. | |
8897 | ||
e352e9cd | 8898 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
8899 | ||
8900 | * kern/device.c (grub_device_open): Do not handle grub_disk_open() | |
8901 | errors. Leave it to the upper layer to handle them. | |
8902 | ||
2d05bc6a | 8903 | 2008-08-09 Christian Franke <franke@computer.org> |
8904 | ||
8905 | * Makefile.in: Add `target_os' and `enable_grub_pe2elf'. | |
8906 | * conf/common.rmk: Install `grub-pe2elf' only if requested. | |
8907 | Install `grub.d/10_windows' only on Cygwin. | |
8908 | * configure.ac: Add subst of `target_os'. | |
8909 | Check `target_os' also before setting TARGET_OBJ2ELF. | |
8910 | Add `--enable-grub-pe2elf'. | |
8911 | ||
042bd419 | 8912 | 2008-08-08 Robert Millan <rmh@aybabtu.com> |
8913 | ||
8914 | * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
8915 | (grub_last_time): Change type to grub_uint64_t. | |
8916 | (grub_disk_open): Migrate code from to using grub_get_time_ms(). | |
8917 | (grub_disk_close): Likewise. | |
8918 | ||
8919 | * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
8920 | (run_menu): Migrate code from to using grub_get_time_ms(). | |
8921 | ||
8922 | * util/misc.c (grub_get_time_ms): New function. | |
8923 | ||
7f280db5 | 8924 | 2008-08-08 Marco Gerards <marco@gnu.org> |
8925 | ||
8926 | * disk/ata.c (grub_ata_regget): Change return type to | |
8927 | `grub_uint8_t'. | |
8928 | (grub_ata_regget2): Likewise. | |
8929 | (grub_ata_wait_status): New function. | |
8930 | (grub_ata_wait_busy): Removed function, updated all users to use | |
8931 | `grub_ata_wait_status'. | |
8932 | (grub_ata_wait_drq): Likewise. | |
8933 | (grub_ata_cmd): New function. | |
8934 | (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add | |
8935 | error handling. | |
8936 | (grub_ata_pio_write): Add error handling. | |
8937 | (grub_atapi_identify): Likewise. | |
8938 | (grub_atapi_packet): Use `grub_ata_cmd' and improve error | |
8939 | handling. | |
8940 | (grub_ata_identify): Use `grub_ata_cmd' and improve error | |
8941 | handling. Actually use the detected registers. Reorder the | |
8942 | detection logic such that it is easier to read. | |
8943 | (grub_ata_pciinit): Do not assign the same ID to each controller. | |
8944 | (grub_ata_setaddress): Use `grub_ata_cmd' and improve error | |
8945 | handling. | |
8946 | (grub_atapi_readsector): Check the result of `grub_ata_pio_read'. | |
8947 | ||
8948 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'. | |
8949 | ||
1fbc5e66 | 8950 | 2008-08-08 Marco Gerards <marco@gnu.org> |
8951 | ||
8952 | * NEWS: Update. | |
8953 | ||
819ce6c0 | 8954 | 2008-08-07 Bean <bean123ch@gmail.com> |
8955 | ||
8956 | * include/grub/x86_64/pci.h: New file. | |
8957 | ||
5c41d44d | 8958 | 2008-08-07 Christian Franke <franke@computer.org> |
8959 | ||
8960 | * kern/i386/pit.c (TIMER2_SPEAKER): New define. | |
8961 | (TIMER2_GATE): Likewise. | |
8962 | (grub_pit_wait): Add enable/disable of the timer2 gate | |
8963 | bit of port 0x61. This fixes a possible infinite loop. | |
8964 | ||
5ebc275d | 8965 | 2008-08-07 Bean <bean123ch@gmail.com> |
8966 | ||
8967 | * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c, | |
8968 | kern/i386/tsc.c and kern/i386/pit.c. | |
8969 | ||
8970 | * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle | |
8971 | x86_64 platform. | |
8972 | ||
8973 | * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with | |
8974 | <grub/i386/tsc.h>. | |
8975 | ||
8976 | * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>. | |
8977 | ||
e383b3d0 | 8978 | 2008-08-07 Bean <bean123ch@gmail.com> |
8979 | ||
8980 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c. | |
8981 | ||
8982 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c, | |
8983 | ||
8984 | * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid | |
8985 | multiple inclusion. Add #include <grub/types.h>. | |
8986 | ||
1cbb58ac | 8987 | 2008-08-06 Christian Franke <franke@computer.org> |
8988 | ||
8989 | * conf/common.rmk: Build and install `10_windows'. | |
8990 | * util/grub.d/10_windows.in: New script. | |
8991 | ||
337f5a1e | 8992 | 2008-08-06 Pavel Roskin <proski@gnu.org> |
8993 | ||
8994 | * kern/i386/pit.c: Include `<grub/i386/pit.h>'. | |
8995 | ||
057bc4ac | 8996 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
8997 | ||
8998 | * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable. | |
8999 | * kern/i386/tsc.c: Include `<grub/i386/pit.h>'. | |
9000 | ||
2b99f123 | 9001 | 2008-08-06 Bean <bean123ch@gmail.com> |
9002 | ||
9003 | * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size. | |
9004 | (grub_pxefs_fs_int): Remove dummy definition. | |
9005 | (grub_pxefs_open): Use data->block_size to store the current block | |
9006 | size setting. | |
9007 | (grub_pxefs_read): Use block size stored in data->block_size. As the | |
9008 | value of grub_pxe_blksize can be changed after the file is opened. | |
9009 | ||
9f0234cb | 9010 | 2008-08-06 Bean <bean123ch@gmail.com> |
9011 | ||
9012 | * fs/i386/pc/pxe.c (curr_file): new variable. | |
9013 | (grub_pxefs_open): Simply the handling of pxe file system. Don't | |
9014 | require the dummy internal file system anymore. | |
9015 | (grub_pxefs_read): Removed. | |
9016 | (grub_pxefs_close): Likewise. | |
9017 | (grub_pxefs_fs_int): Likewise. | |
9018 | (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp | |
9019 | connection when we switch file. | |
9020 | (grub_pxefs_close_int): Renamed to grub_pxefs_close. | |
9021 | ||
a55d42e0 | 9022 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
9023 | ||
9024 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and | |
9025 | `halt.mod'. | |
9026 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS) | |
9027 | (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables. | |
9028 | ||
9029 | * kern/i386/halt.c: New file. | |
9030 | * kern/i386/reboot.c: Likewise. | |
9031 | * include/grub/i386/reboot.h: Likewise. | |
9032 | * include/grub/i386/halt.h: Likewise. | |
9033 | ||
9034 | * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]: | |
9035 | Include `<grub/cpu/halt.h>'. | |
9036 | * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI] | |
9037 | [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'. | |
9038 | ||
9039 | * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'. | |
9040 | (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA) | |
9041 | (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ) | |
9042 | (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT) | |
9043 | (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY) | |
9044 | (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move | |
9045 | from here ... | |
9046 | * include/grub/i386/at_keyboard.h: ... to here. | |
9047 | ||
24371d26 | 9048 | 2008-08-05 Robert Millan <rmh@aybabtu.com> |
9049 | ||
9050 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'. | |
9051 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise. | |
9052 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add | |
9053 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
9054 | `kern/generic/millisleep.c'. | |
9055 | ||
9056 | * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait() | |
9057 | instead of grub_get_rtc(). | |
9058 | (grub_tsc_init): Initialize `tsc_boot_time'. | |
9059 | ||
9060 | * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub. | |
9061 | (grub_machine_init): Use grub_tsc_init() rather than | |
9062 | installing an RTC-based handler via grub_install_get_time_ms(). | |
9063 | ||
9064 | * kern/i386/pit.c: New file. | |
9065 | * include/grub/i386/pit.h: Likewise. | |
9066 | ||
9e7007b3 | 9067 | 2008-08-05 Bean <bean123ch@gmail.com> |
9068 | ||
9069 | * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe. | |
9070 | ||
9071 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h. | |
9072 | (pkglib_MODULES): Add pxe.mod and pxecmd.mod. | |
9073 | (pxe_mod_SOURCES): New macro. | |
9074 | (pxe_mod_CFLAGS): Likewise. | |
9075 | (pxe_mod_LDFLAGS): Likewise. | |
9076 | (pxecmd_mod_SOURCES): Likewise. | |
9077 | (pxecmd_mod_CFLAGS): Likewise. | |
9078 | (pxecmd_mod_LDFLAGS): Likewise. | |
9079 | ||
9080 | * kern/i386/pc/startup.S (grub_pxe_scan): New function. | |
9081 | (grub_pxe_call): Likewise. | |
9082 | ||
9083 | * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID. | |
9084 | ||
9085 | * commands/i386/pc/pxecmd.c: New file. | |
9086 | ||
9f0234cb | 9087 | * fs/i386/pc/pxe.c: Likewise. |
9e7007b3 | 9088 | |
9089 | * include/grub/i386/pc/pxe.h: Likewise. | |
9090 | ||
6977d49f | 9091 | 2008-08-05 Bean <bean123ch@gmail.com> |
9092 | ||
9093 | * util/console.c (grub_console_cur_color): New variable. | |
9094 | (grub_console_standard_color): Likewise. | |
9095 | (grub_console_normal_color): Likewise. | |
9096 | (grub_console_highlight_color): Likewise. | |
9097 | (color_map): Likewise. | |
9098 | (use_color): Likewise. | |
9099 | (NUM_COLORS): New macro. | |
9100 | (grub_ncurses_setcolorstate): Handle color properly. | |
9101 | (grub_ncurses_setcolor): Don't change color here, just remember the | |
9102 | settings, color will be set in grub_ncurses_setcolorstate. | |
9103 | (grub_ncurses_getcolor): New function. | |
9104 | (grub_ncurses_init): Initialize color pairs. | |
9105 | (grub_ncurses_term): New member grub_ncurses_getcolor. | |
9106 | ||
9c2ff3ee | 9107 | 2008-08-05 Colin D Bennett <colin@gibibit.com> |
337f5a1e | 9108 | |
9c2ff3ee | 9109 | High resolution timer support. Implemented for x86 CPUs using TSC. |
9110 | Extracted generic grub_millisleep() so it's linked in only as needed. | |
9111 | This requires a Pentium compatible CPU; if the RDTSC instruction is | |
9112 | not supported, then it falls back on the generic grub_get_time_ms() | |
9113 | implementation that uses the machine's RTC. | |
9114 | ||
9115 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c', | |
9116 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
9117 | `kern/generic/millisleep.c'. | |
9118 | ||
9119 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c', | |
9120 | `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'. | |
9121 | ||
9122 | * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add | |
9123 | `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'. | |
9124 | ||
9125 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
9126 | ||
9127 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
9128 | `kern/generic/millisleep.c'. | |
9129 | ||
9130 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
9131 | ||
9132 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'. | |
9133 | ||
9134 | * kern/generic/rtc_get_time_ms.c: New file. | |
9135 | ||
9136 | * kern/generic/millisleep.c: New file. | |
337f5a1e | 9137 | |
9c2ff3ee | 9138 | * kern/misc.c: Don't include |
9139 | <kern/time.h> anymore. | |
9140 | (grub_millisleep_generic): Removed. | |
9141 | ||
9142 | * commands/sleep.c (grub_interruptible_millisleep): Uses | |
9143 | grub_get_time_ms() instead of grub_get_rtc(). | |
9144 | ||
9145 | * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline | |
9146 | function. | |
9147 | (grub_cpu_is_cpuid_supported): New inline function. | |
9148 | (grub_cpu_is_tsc_supported): New inline function. | |
9149 | (grub_tsc_init): New function prototype. | |
9150 | (grub_tsc_get_time_ms): New function prototype. | |
9151 | ||
9152 | * kern/i386/tsc.c (grub_get_time_ms): New file. | |
9153 | ||
9154 | * include/grub/time.h: Include <grub/types.h. | |
9155 | (grub_millisleep_generic): Removed. | |
9156 | (grub_get_time_ms): New prototype. | |
9157 | (grub_install_get_time_ms): New prototype. | |
9158 | (grub_rtc_get_time_ms): New prototype. | |
9159 | ||
9160 | * kern/time.c (grub_get_time_ms): New function. | |
9161 | (grub_install_get_time_ms): New function. | |
9162 | ||
9163 | * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include | |
9164 | <grub/time.h> anymore. | |
9165 | (grub_millisleep): Removed. | |
9166 | (grub_machine_init): Call grub_tsc_init. | |
9167 | ||
9168 | * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC | |
9169 | get_time_ms() implementation. | |
9170 | ||
9171 | * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed. | |
9172 | (ieee1275_get_time_ms): New function. | |
9173 | (grub_machine_init): Install get_time_ms() implementation. | |
9174 | ||
9175 | * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>. | |
9176 | (grub_machine_init): Call grub_tsc_init(). | |
9177 | (grub_millisleep): Removed. | |
bf06a93f | 9178 | |
9c2ff3ee | 9179 | * kern/ieee1275/init.c (grub_millisleep): Removed. |
9180 | (grub_machine_init): Install ieee1275_get_time_ms() | |
9181 | implementation. | |
9182 | (ieee1275_get_time_ms): New function. | |
9183 | (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the | |
9184 | real work. | |
9185 | ||
9ec92aaf | 9186 | 2008-08-05 Marco Gerards <marco@gnu.org> |
9187 | ||
9188 | * disk/ata.c: Include <grub/pci.h>. | |
9189 | (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'. | |
9190 | (grub_ata_initialize): Rewritten. | |
9191 | (grub_ata_device_initialize): New function. | |
9192 | ||
8d23f507 | 9193 | 2008-08-04 Pavel Roskin <proski@gnu.org> |
9194 | ||
9195 | * kern/main.c: Include grub/mm.h. | |
9196 | ||
5e15ee3d | 9197 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
9198 | ||
9199 | * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS) | |
9200 | (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code | |
9201 | corruption problem). | |
9202 | ||
a9053f8f | 9203 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
9204 | ||
9205 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc | |
9206 | warnings introduced in my last commit. | |
9207 | ||
dd19c7d7 | 9208 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
9209 | ||
9210 | Make PCI available on all i386 architectures. | |
9211 | ||
9212 | * include/grub/i386/pc/pci.h: Move from here ... | |
9213 | * include/grub/i386/pci.h: ... to here. | |
9214 | ||
9215 | * include/grub/i386/pc/pci.h: Remove. | |
9216 | * include/grub/i386/efi/pci.h: Remove. | |
9217 | * include/grub/x86_64/efi/pci.h: Remove. | |
9218 | ||
9219 | * include/grub/pci.h: Replace `<grub/machine/pci.h>' with | |
9220 | `<grub/cpu/pci.h>'. | |
9221 | ||
9222 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'. | |
9223 | (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES) | |
9224 | (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables. | |
9225 | ||
9226 | * conf/i386-ieee1275.rmk: Likewise. | |
9227 | ||
e14a6184 | 9228 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
9229 | ||
9230 | * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro. | |
9231 | (grub_console_setcursor): Make it possible to set cursor off. | |
9232 | ||
52768e37 | 9233 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
9234 | ||
9235 | * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence | |
9236 | of modules instead of assuming which platform provides what. | |
9237 | * util/update-grub.in: Likewise. | |
9238 | ||
2d52f57f | 9239 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
9240 | ||
9241 | * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix' | |
9242 | instead of `grub_install_dos_part' to determine whether a drive needs | |
9243 | to be prepended to prefix (`grub_install_dos_part' is not reliable, | |
825aa57a | 9244 | because it can be overridden when loading GRUB via Multiboot). |
2d52f57f | 9245 | |
2a5cd121 | 9246 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
9247 | ||
9248 | * util/i386/pc/grub-install.in: Remove trailing slash from prefix. | |
9249 | ||
93808428 | 9250 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
9251 | ||
9252 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair | |
9253 | of informational grub_dprintf() calls. | |
9254 | ||
3bd0a12a | 9255 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
9256 | ||
9257 | * disk/memdisk.c (memdisk_size): Don't initialize. | |
9258 | (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate(). | |
9259 | ||
9260 | * include/grub/i386/pc/kernel.h | |
9261 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro. | |
9262 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift. | |
9263 | (grub_memdisk_image_size, grub_arch_memdisk_addr) | |
9264 | (grub_arch_memdisk_size): Remove. | |
9265 | ||
9266 | * include/grub/kernel.h (struct grub_module_header): Remove `offset' | |
9267 | field (was only used to transfer a constant). Add `type' field to | |
9268 | support multiple module types. | |
9269 | (grub_module_iterate): New function. | |
9270 | ||
9271 | * kern/device.c (grub_device_open): Do not hide error messages | |
9272 | when grub_disk_open() fails. Use grub_print_error() instead. | |
9273 | ||
9274 | * kern/i386/pc/init.c (grub_arch_modules_addr) | |
9275 | (grub_arch_memdisk_size): Remove functions. | |
9276 | (grub_arch_modules_addr): Return the module address in high memory | |
9277 | (now that it isn't copied anymore). | |
9278 | ||
9279 | * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable. | |
9280 | (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA | |
9281 | decompression routine (grub_total_module_size already includes that | |
9282 | now). Don't copy modules back to low memory. | |
9283 | ||
9284 | * kern/main.c: Include `<grub/mm.h>'. | |
9285 | (grub_load_modules): Split out (and use) ... | |
9286 | (grub_module_iterate): ... this function, which iterates through | |
9287 | module objects and runs a hook. | |
9288 | Comment out grub_mm_init_region() call, as it would cause non-ELF | |
9289 | modules to be overwritten. | |
9290 | ||
9291 | * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending | |
9292 | the memdisk image in its own region, make it part of the module list. | |
9293 | * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option. | |
9294 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
9295 | parameter to generate_image(). | |
9296 | (add_segments): Pass `memdisk_path' down to load_modules(). | |
9297 | (load_modules): Embed memdisk image in module section when requested. | |
9298 | * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize | |
9299 | `header.type' instead of `header.offset'. | |
9300 | ||
9301 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'. | |
9302 | (memdisk_mod_SOURCES, memdisk_mod_CFLAGS) | |
9303 | (memdisk_mod_LDFLAGS): New variables. | |
9304 | * conf/i386-coreboot.rmk: Likewise. | |
9305 | * conf/i386-ieee1275.rmk: Likewise. | |
9306 | ||
a927cc73 | 9307 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
9308 | ||
9309 | * loader/i386/pc/multiboot.c (playground, forward_relocator) | |
9310 | (backward_relocator): New variables. Used to allocate and relocate | |
9311 | the payload, respectively. | |
9312 | (grub_multiboot_load_elf32): Load into heap instead of requested | |
825aa57a | 9313 | address, install the appropriate relocator code in each bound of |
a927cc73 | 9314 | the payload, and set the entry point such that |
9315 | grub_multiboot_real_boot() will jump to one of them. | |
9316 | ||
9317 | * kern/i386/loader.S (grub_multiboot_payload_size) | |
9318 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
9319 | (grub_multiboot_payload_entry_offset): New variables. | |
9320 | (grub_multiboot_real_boot): Set cpu context to what the relocator | |
9321 | expects, and jump to the relocator instead of the payload. | |
9322 | ||
9323 | * include/grub/i386/loader.h (grub_multiboot_payload_size) | |
9324 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
9325 | (grub_multiboot_payload_entry_offset): Export. | |
9326 | ||
b15d8a0c | 9327 | 2008-08-01 Bean <bean123ch@gmail.com> |
9328 | ||
9329 | * normal/menu_entry.c (editor_getline): Don't return the original | |
9330 | string as result, as it will be released by lexer once it has done | |
9331 | using it. | |
9332 | ||
cdfb3d22 | 9333 | 2008-08-01 Robert Millan <rmh@aybabtu.com> |
9334 | ||
9335 | * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from | |
9336 | within menuentries, not before them. | |
9337 | util/grub.d/10_hurd.in: Likewise. | |
9338 | ||
9175e93d | 9339 | 2008-08-01 Bean <bean123ch@gmail.com> |
9340 | ||
9341 | * conf/common.rmk (pkglib_MODULES): Add bufio.mod. | |
9342 | (bufio_mod_SOURCES): New macro. | |
9343 | (bufio_mod_CFLAGS): Likewise. | |
9344 | (bufio_mod_LDFLAGS): Likewise. | |
9345 | ||
9346 | * include/grub/bufio.h: New file. | |
9347 | ||
9348 | * io/bufio.c: Likewise. | |
9349 | ||
9350 | * video/png.c: Replace <grub/file.h> with <grub/bufio.h>. | |
9351 | (grub_video_reader_png): Use grub_buffile_open to open file. | |
9352 | ||
9353 | * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>. | |
9354 | (grub_video_reader_jpeg): Use grub_buffile_open to open file. | |
9355 | ||
9356 | * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>. | |
9357 | (grub_video_reader_tga): Use grub_buffile_open to open file. | |
9358 | ||
9359 | * font/manager.c: Include <grub/bufio.h>. | |
9360 | (add_font): Use grub_buffile_open to open file. | |
9361 | ||
3d8383e7 | 9362 | 2008-07-31 Robert Millan <rmh@aybabtu.com> |
9363 | ||
9364 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading | |
9365 | ELF segments, use a macro for arbitrarily accessing any of them instead | |
9366 | of preparing a pointer that allows access to one at a time. | |
9367 | (grub_multiboot_load_elf64): Likewise. | |
9368 | ||
16e641b6 | 9369 | 2008-07-31 Bean <bean123ch@gmail.com> |
9370 | ||
9371 | * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with | |
9372 | GRUB_KERNEL_MACHINE_DATA_END. | |
9373 | ||
59198b72 | 9374 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
9375 | ||
9376 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END): | |
9377 | Increase from 0x50 to 0x60. | |
9378 | * util/i386/pc/grub-install.in: Detect cross-disk installs, and | |
9379 | use UUIDs to identify the root drive for them. If that's not | |
9380 | possible, abort. | |
9381 | * util/i386/pc/grub-setup.c (setup): Do not special-case, or even | |
9382 | check, for cross-disk installs. | |
9383 | ||
ae88bca3 | 9384 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
9385 | ||
9386 | * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix' | |
9387 | is non-empty, use it to set the `prefix' environment variable instead | |
9388 | of the usual approach. | |
9389 | * kern/i386/linuxbios/init.c (make_install_device): Remove function. | |
9390 | (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix' | |
9391 | environment variable instead of dummy make_install_device(). | |
9392 | ||
9393 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'. | |
9394 | (start): Insert a data section, with `grub_prefix' variable. | |
825aa57a | 9395 | * kern/i386/linuxbios/startup.S: Likewise. |
ae88bca3 | 9396 | |
9397 | * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix): | |
9398 | New variable reference. | |
9399 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX): | |
9400 | New macro. Defines offset of `grub_prefix' within startup.S (relative | |
9401 | to `start'). | |
9402 | (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data | |
9403 | section within startup.S (relative to `start'). | |
9404 | * include/grub/i386/coreboot/kernel.h: Likewise. | |
9405 | ||
9406 | * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter. | |
9407 | Overwrite grub_prefix with its contents, at the beginning of the | |
9408 | first segment. | |
9409 | (main): Understand -p|--prefix. | |
9410 | ||
14f41dd1 | 9411 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
9412 | ||
9413 | * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib. | |
9414 | ||
4ca049a3 | 9415 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
9416 | ||
9417 | * term/i386/pc/vga_text.c (grub_console_cls): Use | |
9418 | grub_console_gotoxy() to go back to beginning of the screen. | |
9419 | Found by Patrick Georgi <patrick.georgi@coresystems.de> | |
9420 | ||
2921d337 | 9421 | 2008-07-29 Christian Franke <franke@computer.org> |
9422 | ||
9423 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
9424 | Add conversion of emulated mount points on Cygwin. | |
9425 | ||
b609876d | 9426 | 2008-07-29 Christian Franke <franke@computer.org> |
9427 | ||
9428 | * util/update-grub.in: Add a check for admin | |
9429 | group on Cygwin. | |
9430 | Remove old `grub.cfg.new' before creation. | |
9431 | Add `-f' to `mv' to handle the different filesystem | |
9432 | semantics of Windows. | |
9433 | ||
e93e4679 | 9434 | 2008-07-29 Bean <bean123ch@gmail.com> |
9435 | ||
9436 | * normal/main.c (get_line): Fix buffer overflow bug. | |
9437 | ||
41694fd0 | 9438 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
9439 | ||
9440 | * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro. | |
9441 | (struct grub_apple_header): New struct. Describes the layout of | |
9442 | the partmap header. | |
9443 | (apple_partition_map_iterate): Check the header magic as well as the | |
9444 | partition magic (which was already being checked). | |
9445 | ||
cfd0b4e6 | 9446 | 2008-07-28 Pavel Roskin <proski@gnu.org> |
9447 | ||
9448 | * genmk.rb: Add a warning to the beginning of the output that | |
9449 | it's a generated file and should not be edited. | |
9450 | ||
93cce016 | 9451 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
9452 | ||
9453 | * disk/raid.c (grub_raid_scan_device): Do not abort when two disks | |
9454 | with the same number are found, just use issue a warning with | |
9455 | grub_dprintf(), as this error has been reported to be non-fatal. | |
c298def0 | 9456 | |
cd1df915 | 9457 | 2008-07-27 Robert Millan <rmh@aybabtu.com> |
9458 | ||
9459 | * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging | |
9460 | information. | |
9461 | ||
b70a8427 | 9462 | 2008-07-27 Bean <bean123ch@gmail.com> |
9463 | ||
9464 | * fs/fat.c (GRUB_FAT_MAXFILE): New constant. | |
9465 | (grub_fat_find_dir): Ignore case when comparing filename. | |
9466 | ||
8f5e379f | 9467 | 2008-07-27 Bean <bean123ch@gmail.com> |
9468 | ||
9469 | * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to | |
9470 | smallino, as it's more descriptive, and i8count can be confused with | |
9471 | the other field count. | |
9472 | (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small | |
9473 | inode type. | |
9474 | ||
a85cd5a0 | 9475 | 2008-07-27 Bean <bean123ch@gmail.com> |
9476 | ||
9477 | * commands/crc.c: New file. | |
9478 | ||
9479 | * lib/crc.c: Likewise. | |
9480 | ||
9481 | * include/grub/lib/crc.h: Likewise. | |
9482 | ||
9483 | * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h. | |
9484 | ||
9485 | * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h. | |
9486 | (hexdump): Move this function to ... | |
9487 | ||
9488 | * lib/hexdump.c: ... here. | |
9489 | ||
9490 | * include/grub/hexdump.h: Renamed to ... | |
9491 | ||
9492 | * include/grub/lib/hexdump.h: ... this. | |
9493 | ||
9494 | * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h | |
9495 | ||
9496 | * util/grub-editenv.c: Likewise. | |
9497 | ||
9498 | * include/envblk.h: Renamed to ... | |
9499 | ||
9500 | * include/lib/envblk.h: ... this. | |
9501 | ||
9502 | * util/envblk.c: Renamed to ... | |
9503 | ||
9504 | * lib/envblk.c: ... this. | |
9505 | ||
9506 | * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c => | |
9507 | lib/hexdump.c. | |
9508 | (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c | |
9509 | (pkglib_MODULES): Add crc.mod. | |
9510 | (hexdump_mod_SOURCES): Add lib/hexdump.c. | |
9511 | (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c. | |
9512 | (crc_mod_SOURCES): New macro. | |
9513 | (crc_mod_CFLAGS): Likewise. | |
9514 | (crc_mod_LDFLAGS): Likewise. | |
9515 | ||
9516 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c. | |
9517 | ||
9518 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
9519 | ||
9520 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
9521 | ||
9522 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
9523 | ||
9524 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
9525 | ||
c298def0 | 9526 | 2008-07-27 Felix Zielcke <fzielcke@z-51.de> |
8749e9e5 | 9527 | |
9528 | * commands/help.c: Include <grub/term.h>. | |
9529 | (TERM_WIDTH): Removed. Updated all users. | |
9530 | ||
cc349fb3 | 9531 | 2008-07-27 Pavel Roskin <proski@gnu.org> |
9532 | ||
9533 | * util/getroot.c (find_root_device): Rephrase a comment to avoid | |
9534 | spurious warnings about a comment within a comment. | |
9535 | ||
9051607e | 9536 | 2008-07-25 Robert Millan <rmh@aybabtu.com> |
9537 | ||
9538 | * util/getroot.c (find_root_device): Skip devices that match | |
9539 | /dev/dm-[0-9]. This lets the real device be found for any type of | |
9540 | abstraction (LVM, EVMS, RAID..). | |
9541 | (grub_guess_root_device): Do not traverse /dev/mapper (for LVM) | |
9542 | and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9] | |
9543 | device is found first, find_root_device() will now skip it. | |
9544 | ||
01453bfc | 9545 | 2008-07-24 Pavel Roskin <proski@gnu.org> |
9546 | ||
9547 | * include/grub/types.h: Use __builtin_bswap32() and | |
9548 | __builtin_bswap64() with gcc 4.3 and newer. | |
9549 | ||
6af9849f | 9550 | 2008-07-24 Christian Franke <franke@computer.org> |
9551 | ||
3a0fa256 | 9552 | * util/i386/pc/grub-install.in: If `--debug' is specified, |
9553 | pass `--verbose' to grub-setup. | |
9554 | Abort script if make_system_path_relative_to_its_root() fails. | |
9555 | ||
7810e747 | 9556 | 2008-07-24 Bean <bean123ch@gmail.com> |
9557 | ||
9558 | * configure.ac: Fixed a bug caused by the previous cygwin patch, | |
9559 | variable `target_platform' should be `platform'. | |
9560 | ||
42290e17 | 9561 | 2008-07-24 Bean <bean123ch@gmail.com> |
9562 | ||
51cc5193 | 9563 | * video/reader/png.c (DEFLATE_HLIT_MAX): Change value. |
42290e17 | 9564 | (grub_png_init_fixed_block): New function. |
9565 | (grub_png_decode_image_data): Handle fixed huffman code compression. | |
9566 | ||
2a8a80e4 | 9567 | 2008-07-24 Bean <bean123ch@gmail.com> |
9568 | ||
9569 | * common.rmk (bin_UTILITIES): Add grub-pe2elf. | |
9570 | (grub_pe2elf_SOURCES): New macro. | |
9571 | (CLEANFILES): Add grub-pe2elf. | |
9572 | ||
9573 | * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant. | |
9574 | (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise. | |
9575 | (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise. | |
9576 | (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise. | |
9577 | (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise. | |
9578 | (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise. | |
9579 | (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise. | |
9580 | (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise. | |
9581 | (GRUB_PE32_SCN_ALIGN_MASK): Likewise. | |
9582 | (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise. | |
9583 | (GRUB_PE32_SYM_CLASS_STATIC): Likewise. | |
9584 | (GRUB_PE32_SYM_CLASS_FILE): Likewise. | |
9585 | (GRUB_PE32_DT_FUNCTION): Likewise. | |
9586 | (GRUB_PE32_REL_I386_DIR32): Likewise. | |
9587 | (GRUB_PE32_REL_I386_REL32): Likewise. | |
9588 | (grub_pe32_symbol): New structure. | |
9589 | (grub_pe32_reloc): Likewise. | |
9590 | ||
9591 | * util/grub-pe2elf.c: New file. | |
9592 | ||
9593 | * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for | |
9594 | start symbol in non pc platform. | |
9595 | ||
9596 | * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf. | |
9597 | ||
9598 | The following patches are from Christian Franke. | |
9599 | ||
9600 | * include/grub/dl.h: Remove .previous, gas supports this only | |
9601 | for ELF format. | |
9602 | ||
9603 | * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE): | |
9604 | Remove .type, gas supports this only for ELF format. | |
9605 | ||
9606 | * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing | |
9607 | nullbytes in symbol table. This fixes an infinite loop if table is | |
9608 | zero filled. | |
9609 | ||
9610 | * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT, | |
9611 | TARGET_IMG_LDFLAGS and EXEEXT. | |
9612 | ||
9613 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by | |
9614 | TARGET_IMG_LDFLAGS_AC. | |
9615 | (grub_CHECK_STACK_ARG_PROBE): New function. | |
9616 | ||
9617 | * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS. | |
9618 | ||
9619 | * conf/i386-pc-cygwin-ld-img.sc: New linker script. | |
9620 | ||
9621 | * configure.ac: Add check for linker script "conf/${target}-img-ld.c" | |
9622 | to set TARGET_IMG_LD* accordingly. | |
9623 | Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly. | |
9624 | Add call to grub_CHECK_STACK_ARG_PROBE. | |
9625 | Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols. | |
9626 | ||
9627 | * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case. | |
9628 | ||
9629 | * genmk.rb: Add EXEEXT to CLEANFILES. | |
9630 | ||
12ccdb75 | 9631 | 2008-07-23 Robert Millan <rmh@aybabtu.com> |
9632 | ||
9633 | * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they | |
9634 | define the codes for arrows and lines used for the menu). | |
9635 | (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES) | |
9636 | as well. | |
9637 | ||
9638 | * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete | |
9639 | fonts, because the latter are too slow. | |
9640 | ||
18eeaf04 | 9641 | 2008-07-21 Bean <bean123ch@gmail.com> |
9642 | ||
9643 | * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for | |
9644 | a20. Run keyboard test last, as it will cause macbook to halt. | |
9645 | ||
b095e2ad | 9646 | 2008-07-18 Pavel Roskin <proski@gnu.org> |
9647 | ||
9648 | * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot | |
9649 | load foreign architecture modules correctly anyway. Keep | |
9650 | support for loading host architecture modules, whether we | |
9651 | compile them or not. | |
9652 | ||
737feb35 | 9653 | 2008-07-17 Pavel Roskin <proski@gnu.org> |
9654 | ||
3f4ce737 | 9655 | * configure.ac: Use -m32 or -m64 regardless of whether we had to |
9656 | change target_cpu. The compiler default can mismatch target_cpu | |
9657 | in any case. | |
9658 | ||
4ad2d049 | 9659 | * disk/efi/efidisk.c: Fix format warnings on x86_64. |
9660 | * kern/efi/efi.c: Likewise. | |
9661 | ||
f6130a12 | 9662 | * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the |
9663 | target compiler is functional. | |
9664 | * configure.ac: Call grub_PROG_TARGET_CC once all target flags | |
9665 | are set up. | |
9666 | ||
58393a2d | 9667 | * configure.ac: Default to efi platform for x86_64-apple. Allow |
9668 | powerpc64 CPU, default to ieee1275 platform for it. Split CPU | |
9669 | adjustments from the rest, only do them if target is not | |
9670 | explicitly given. Merge other adjustments with the final sanity | |
9671 | check. Remove an extraneous check for supported CPU. Be | |
9672 | specific which CPU and which platform is not supported. | |
9673 | ||
737feb35 | 9674 | * configure.ac: Default to pc platform for x86_64. |
9675 | ||
546f966a | 9676 | 2008-07-17 Robert Millan <rmh@aybabtu.com> |
9677 | ||
9678 | Partial LinuxBIOS -> Coreboot rename. | |
9679 | ||
9680 | * conf/i386-linuxbios.rmk: Renamed to ... | |
9681 | * conf/i386-coreboot.rmk: ... this. | |
9682 | * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g. | |
9683 | * configure.ac: Accept "coreboot" as input platform (but maintain | |
9684 | compatibility with "linuxbios"). | |
9685 | * include/grub/i386/linuxbios: Renamed to ... | |
9686 | * include/grub/i386/coreboot: ... this. | |
9687 | ||
20011694 | 9688 | 2008-07-17 Bean <bean123ch@gmail.com> |
9689 | ||
9690 | * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod. | |
c11f6d16 | 9691 | (appleldr_mod_SOURCE): New variable. |
20011694 | 9692 | (appleldr_mod_CFLAGS): Likewise. |
9693 | (appleldr_mod_LDFLAGS): Likewise. | |
9694 | (pci_mod_SOURCES): Likewise. | |
9695 | (pci_mod_CFLAGS): Likewise. | |
9696 | (pci_mod_LDFLAGS): Likewise. | |
9697 | (lspci_mod_SOURCES): Likewise. | |
9698 | (lspci_mod_CFLAGS): Likewise. | |
9699 | (lspci_mod_LDFLAGS): Likewise. | |
9700 | ||
9701 | * conf/x86_64-efi.rmk: New file. | |
9702 | ||
9703 | * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N | |
9704 | macro. | |
9705 | (grub_efidisk_write): Likewise. | |
9706 | ||
9707 | * include/efi/api.h (efi_call_0): New macro. | |
9708 | (efi_call_1): Likewise. | |
9709 | (efi_call_2): Likewise. | |
9710 | (efi_call_3): Likewise. | |
9711 | (efi_call_4): Likewise. | |
9712 | (efi_call_5): Likewise. | |
9713 | (efi_call_6): Likewise. | |
9714 | ||
9715 | * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to | |
9716 | grub_rescue_cmd_chainloader. | |
9717 | ||
9718 | * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro. | |
9719 | (grub_pe32_optional_header): Change some fields based on i386 or | |
9720 | x86_64 platform. | |
9721 | (GRUB_PE32_PE32_MAGIC): Likewise. | |
9722 | ||
9723 | * include/grub/efi/uga_draw.h: New file. | |
9724 | ||
9725 | * include/grub/elf.h (STN_ABS): New constant. | |
9726 | (R_X86_64_NONE): Relocation constant for x86_64. | |
9727 | (R_X86_64_64): Likewise. | |
9728 | (R_X86_64_PC32): Likewise. | |
9729 | (R_X86_64_GOT32): Likewise. | |
9730 | (R_X86_64_PLT32): Likewise. | |
9731 | (R_X86_64_COPY): Likewise. | |
9732 | (R_X86_64_GLOB_DAT): Likewise. | |
9733 | (R_X86_64_JUMP_SLOT): Likewise. | |
9734 | (R_X86_64_RELATIVE): Likewise. | |
9735 | (R_X86_64_GOTPCREL): Likewise. | |
9736 | (R_X86_64_32): Likewise. | |
9737 | (R_X86_64_32S): Likewise. | |
9738 | (R_X86_64_16): Likewise. | |
9739 | (R_X86_64_PC16): Likewise. | |
9740 | (R_X86_64_8): Likewise. | |
9741 | (R_X86_64_PC8): Likewise. | |
9742 | ||
9743 | * include/grub/i386/efi/pci.h: New file. | |
9744 | ||
9745 | * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE): | |
9746 | Change it value based on platform. | |
9747 | (GRUB_LINUX_EFI_SIGNATURE_0204): New constant. | |
9748 | (GRUB_E820_RAM): Likewise. | |
9749 | (GRUB_E820_RESERVED): Likewise. | |
9750 | (GRUB_E820_ACPI): Likewise. | |
9751 | (GRUB_E820_NVS): Likewise. | |
9752 | (GRUB_E820_EXEC_CODE): Likewise. | |
9753 | (GRUB_E820_MAX_ENTRY): Likewise. | |
9754 | (grub_e820_mmap): New structure. | |
9755 | (linux_kernel_header): Change the efi field according to different | |
9756 | kernel version, also field from linux_kernel_header. | |
9757 | ||
9758 | * include/grub/kernel.h (grub_module_info): Add padding for x86_64. | |
9759 | ||
9760 | * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant. | |
9761 | (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise. | |
9762 | (GRUB_PCI_ADDR_SPACE_IO): Likewise. | |
9763 | (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise. | |
9764 | (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise. | |
9765 | (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise. | |
9766 | (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise. | |
9767 | (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise. | |
9768 | (GRUB_PCI_ADDR_MEM_MASK): Likewise. | |
9769 | (GRUB_PCI_ADDR_IO_MASK): Likewise. | |
9770 | ||
9771 | * include/grub/x86_64/efi/kernel.h: New file. | |
9772 | ||
9773 | * include/grub/x86_64/efi/loader.h: Likewise. | |
9774 | ||
9775 | * include/grub/x86_64/efi/machine.h: Likewise. | |
9776 | ||
9777 | * include/grub/x86_64/efi/pci.h: Likewise. | |
9778 | ||
9779 | * include/grub/x86_64/efi/time.h: Likewise. | |
9780 | ||
9781 | * include/grub/x86_64/linux.h: Likewise. | |
9782 | ||
9783 | * include/grub/x86_64/setjmp.h: Likewise. | |
9784 | ||
9785 | * include/grub/x86_64/time.h: Likewise. | |
9786 | ||
9787 | * include/grub/x86_64/types.h: Likewise. | |
9788 | ||
9789 | * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to | |
9790 | GRUB_TARGET_SIZEOF_VOID_P. | |
9791 | ||
9792 | * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls. | |
9793 | (grub_efi_locate_handle): Likewise. | |
9794 | (grub_efi_open_protocol): Likewise. | |
9795 | (grub_efi_set_text_mode): Likewise. | |
9796 | (grub_efi_stall): Likewise. | |
9797 | (grub_exit): Likewise. | |
9798 | (grub_reboot): Likewise. | |
9799 | (grub_halt): Likewise. | |
9800 | (grub_efi_exit_boot_services): Likewise. | |
9801 | (grub_get_rtc): Likewise. | |
9802 | ||
9803 | * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models. | |
9804 | (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P. | |
9805 | (grub_efi_allocate_pages): Wrap efi calls. | |
9806 | (grub_efi_free_pages): Wrap efi calls. | |
9807 | (grub_efi_get_memory_map): Wrap efi calls. | |
9808 | ||
9809 | * kern/x86_64/dl.c: New file. | |
9810 | ||
9811 | * kern/x86_64/efi/callwrap.S: Likewise. | |
9812 | ||
9813 | * kern/x86_64/efi/startup.S: Likewise. | |
9814 | ||
9815 | * loader/efi/appleloader.c: Likewise. | |
9816 | ||
9817 | * loader/efi/chainloader.c (cmdline): New variable. | |
9818 | (grub_chainloader_unload): Wrap efi calls. | |
9819 | (grub_chainloader_boot): Likewise. | |
9820 | (grub_rescue_cmd_chainloader): Wrap efi calls, handle | |
9821 | command line. | |
9822 | ||
9823 | * loader/efi/chainloader_normal.c (chainloader_command): | |
9824 | Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass | |
9825 | command line. | |
9826 | ||
9827 | * loader/i386/efi/linux.c (allocate_pages): Change allocation | |
9828 | method. | |
9829 | (grub_e820_add_region): New function. | |
9830 | (grub_linux_boot): Construct e820 map from efi map, handle x86_64 | |
9831 | booting. | |
9832 | (grub_find_video_card): New function. | |
9833 | (grub_linux_setup_video): New function. | |
9834 | (grub_rescue_cmd_linux): Probe for video information. | |
9835 | ||
9836 | * normal/x86_64/setjmp.S: New file. | |
9837 | ||
9838 | * term/efi/console.c (map_char): New function. | |
9839 | (grub_console_putchar): Map unicode char. | |
9840 | (grub_console_checkkey): Wrap efi calls. | |
9841 | (grub_console_getkey): Likewise. | |
9842 | (grub_console_getwh): Likewise. | |
9843 | (grub_console_gotoxy): Likewise. | |
9844 | (grub_console_cls): Likewise. | |
9845 | (grub_console_setcolorstate): Likewise. | |
9846 | (grub_console_setcursor): Likewise. | |
9847 | ||
9848 | * util/i386/efi/grub-mkimage.c: Add support for x86_64. | |
9849 | ||
59652a20 | 9850 | 2008-07-16 Pavel Roskin <proski@gnu.org> |
9851 | ||
ef294055 | 9852 | * loader/i386/efi/linux.c (allocate_pages): Fix warnings in |
9853 | format strings. | |
9854 | ||
59652a20 | 9855 | * util/i386/efi/grub-mkimage.c (get_target_address): Return a |
9856 | pointer, not an integer. This fixes a warning and prevents | |
9857 | precision loss on 64-bit systems. | |
9858 | (relocate_addresses): Remove unneeded cast. | |
9859 | ||
afc3b5d7 | 9860 | 2008-07-15 Pavel Roskin <proski@gnu.org> |
9861 | ||
506b2b3e | 9862 | * kern/i386/ieee1275/init.c: Include grub/cache.h. |
9863 | ||
62ead89c | 9864 | * term/ieee1275/ofconsole.c: Disable code unused on i386. |
9865 | ||
c4cd51d7 | 9866 | * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property): |
9867 | Fix comparison between signed and unsigned. | |
9868 | ||
0d3d8f28 | 9869 | * include/grub/i386/ieee1275/console.h: Declare |
9870 | grub_console_init() and grub_console_fini(). | |
9871 | ||
8804b286 | 9872 | * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove. |
9873 | It's empty and unused. | |
9874 | ||
ee01cf35 | 9875 | * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the |
9876 | beginning to avoid warnings with some compilers. | |
9877 | ||
afc3b5d7 | 9878 | * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h. |
9879 | [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast. | |
9880 | ||
e4e8eaa5 | 9881 | 2008-07-14 Pavel Roskin <proski@gnu.org> |
9882 | ||
407aceb4 | 9883 | * kern/env.c (grub_register_variable_hook): Don't copy empty |
9884 | string, it leaks memory. Pass "" to grub_env_set(), it should | |
9885 | handle constant strings. | |
9886 | ||
e4e8eaa5 | 9887 | * commands/blocklist.c (grub_cmd_blocklist): Fix format warning. |
9888 | * commands/cmp.c (grub_cmd_cmp): Likewise. | |
9889 | * kern/dl.c (grub_dl_flush_cache): Likewise. | |
9890 | (grub_dl_load_core): Likewise. | |
9891 | * kern/elf.c (grub_elf32_load_phdrs): Likewise. | |
9892 | (grub_elf64_load_phdrs): Likewise. | |
9893 | ||
d4e2dad3 | 9894 | 2008-07-13 Pavel Roskin <proski@gnu.org> |
9895 | ||
9896 | * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison | |
9897 | between signed and unsigned. | |
9898 | (LzmaEnc_Finish): Fix warning about an unused parameter. | |
9899 | ||
aa24b516 | 9900 | 2008-07-13 Bean <bean123ch@gmail.com> |
9901 | ||
9902 | * Makefile.in (enable_lzo): New rule. | |
9903 | ||
9904 | * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo. | |
9905 | ||
9906 | * configure.ac (ENABLE_LZO): New option --enable-lzo. | |
9907 | ||
9908 | * boot/i386/pc/lnxboot.S: #include <config.h>. | |
9909 | ||
9910 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change | |
fe987087 | 9911 | its value according to the compression algorithm used, lzo or lzma. |
aa24b516 | 9912 | |
9913 | * util/i386/pc/grub-mkimage.c (compress_kernel): Use different | |
9914 | compression algorithm according to configure macro. | |
9915 | ||
9916 | * kern/i386/pc/startup.S (codestart): Likewise. | |
9917 | ||
9918 | * kern/i386/pc/lzma_decode.S: New file. | |
9919 | ||
9920 | * include/grub/lib/LzFind.h: Likewise. | |
9921 | ||
9922 | * include/grub/lib/LzHash.h: Likewise. | |
9923 | ||
9924 | * include/grub/lib/LzmaDec.h: Likewise. | |
9925 | ||
9926 | * include/grub/lib/LzmaEnc.h: Likewise. | |
9927 | ||
9928 | * include/grub/lib/LzmaTypes.h: Likewise. | |
9929 | ||
9930 | * lib/LzFind.c: Likewise. | |
9931 | ||
9932 | * lib/LzmaDec.c: Likewise. | |
9933 | ||
9934 | * lib/LzmaEnc.c: Likewise. | |
9935 | ||
4ae821ac | 9936 | 2008-07-13 Bean <bean123ch@gmail.com> |
9937 | ||
9938 | * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro. | |
9939 | (grub_ext4_extent_header): New structure. | |
9940 | (grub_ext4_extent): Likewise. | |
9941 | (grub_ext4_extent_idx): Likewise. | |
9942 | (grub_ext4_find_leaf): New function. | |
9943 | (grub_ext2_read_block): Handle extents. | |
9944 | ||
9a745147 | 9945 | 2008-07-12 Robert Millan <rmh@aybabtu.com> |
9946 | ||
9947 | * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g. | |
9948 | ||
d49a4cf6 | 9949 | 2008-07-11 Robert Millan <rmh@aybabtu.com> |
9950 | ||
9951 | * util/grub.d/40_custom.in: New file. Example on how to add custom | |
9952 | entries to /etc/grub.d. | |
9953 | * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install | |
9954 | 40_custom (implicitly, by merging all the grub.d rules). | |
9955 | ||
947414b4 | 9956 | 2008-07-11 Pavel Roskin <proski@gnu.org> |
9957 | ||
0059cf6f | 9958 | * commands/read.c (grub_getline): Fix invalid memory access. |
9959 | Don't add newline to the variable value. | |
9960 | ||
947414b4 | 9961 | * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant. |
9962 | [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3. | |
9963 | (serial_hw_get_port): Check validity of the port number. | |
9964 | (grub_cmd_serial): Check return value of serial_hw_get_port(). | |
9965 | ||
62a02d00 | 9966 | 2008-07-07 Pavel Roskin <proski@gnu.org> |
9967 | ||
9968 | * boot/i386/pc/diskboot.S (notification_string): Replace | |
9969 | "Loading kernel" with just "loading". This is shorter, less | |
9970 | confusing and saves a few bytes for possible future changes. | |
9971 | ||
3e5581b0 | 9972 | 2008-07-05 Pavel Roskin <proski@gnu.org> |
9973 | ||
ea387a48 | 9974 | * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and |
9975 | size for ATAPI devices, they are undefined. Output sector | |
9976 | number in decimal form. | |
9977 | ||
3e5581b0 | 9978 | * disk/ata.c: Use named constants for status bits. |
9979 | ||
fdecb8fd | 9980 | 2008-07-04 Pavel Roskin <proski@gnu.org> |
9981 | ||
bcd35b90 | 9982 | * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to |
9983 | grub_addr_t before casting it to the void pointer to fix a | |
9984 | warning. Non-addressable regions are discarded earlier. | |
9985 | (grub_arch_modules_addr): Cast _end to grub_addr_t. | |
9986 | * kern/i386/linuxbios/table.c: Include grub/misc.h. | |
9987 | (check_signature): Don't shadow table_header. | |
9988 | (grub_linuxbios_table_iterate): Cast numeric constants to | |
9989 | grub_linuxbios_table_header_t. | |
9990 | * include/grub/i386/linuxbios/init.h: Add noreturn attribute to | |
9991 | grub_stop(). | |
9992 | ||
af58ab3d | 9993 | * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to |
9994 | prevent warnings. | |
9995 | ||
1759aa57 | 9996 | * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a |
9997 | pointer, which can cause warnings. Support 64-bit addresses. | |
9998 | ||
fdecb8fd | 9999 | * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead |
10000 | of sizeof(long). This fixes PowerPC image generation on x86_64. | |
10001 | ||
8516d2a8 | 10002 | 2008-07-04 Robert Millan <rmh@aybabtu.com> |
10003 | ||
10004 | This fixes a performance issue when pc & gpt partmap iterators | |
10005 | didn't abort iteration even after our hook found what it was | |
fe987087 | 10006 | looking for (often causing expensive probes of non-existent drives). |
8516d2a8 | 10007 | |
10008 | Some callers relied on previous buggy behaviour, since they would | |
34c44600 | 10009 | raise an error when their own hooks caused early abortion of its |
8516d2a8 | 10010 | iteration. |
10011 | ||
10012 | * kern/device.c (grub_device_open): Improve error message. | |
10013 | * disk/lvm.c (grub_lvm_open): Likewise. | |
10014 | * disk/raid.c (grub_raid_open): Likewise. | |
10015 | ||
10016 | * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration | |
10017 | when hook requests it, independently of grub_errno. | |
10018 | (pc_partition_map_probe): Do not fail when find_func() caused | |
10019 | early abortion of pc_partition_map_iterate(). | |
10020 | ||
10021 | * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration | |
10022 | when hook requests it, independently of grub_errno. | |
10023 | (gpt_partition_map_probe): Do not fail when find_func() caused | |
10024 | early abortion of gpt_partition_map_iterate(). | |
10025 | ||
10026 | * kern/partition.c (grub_partition_iterate): Abort parent iteration | |
10027 | when hook requests it, independently of grub_errno. Do not fail when | |
10028 | part_map_iterate_hook() caused early abortion of p->iterate(). | |
10029 | ||
10030 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail | |
10031 | when grub_partition_iterate() returned with non-zero. | |
10032 | ||
277d0de9 | 10033 | 2008-07-03 Pavel Roskin <proski@gnu.org> |
10034 | ||
10035 | * disk/ata.c (grub_ata_pio_write): Check status before writing, | |
10036 | like we do in grub_ata_pio_read(). | |
10037 | (grub_ata_readwrite): Always write individual sectors. Fix the | |
10038 | sector count for the remainder. | |
10039 | (grub_ata_write): Enable writing to ATA devices. Correctly | |
10040 | report error for ATAPI devices. | |
10041 | ||
d4c9b428 | 10042 | 2008-07-02 Pavel Roskin <proski@gnu.org> |
10043 | ||
e43fc690 | 10044 | * boot/i386/pc/cdboot.S: Add _start entry to fix a linker |
10045 | warning. | |
10046 | ||
f707af42 | 10047 | * disk/ata.c (grub_ata_readwrite): Don't increment sector number |
10048 | for every read sector, we already increment it for the whole | |
10049 | batch. This fixes reading more than 256 sectors at once. | |
10050 | ||
11e16b15 | 10051 | * util/grub-editenv.c (cmd_info): Cast argument to long |
10052 | explicitly. ptrdiff_t reduces to int on i386. | |
10053 | ||
cbabfdd4 | 10054 | * util/grub-editenv.c (main): Be specific which parameter is |
10055 | missing. | |
10056 | ||
b8fbce0a | 10057 | * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings. |
10058 | (memdisk): Make memdisk_orig_addr a pointer. | |
10059 | ||
c9c8e606 | 10060 | * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t |
10061 | for file offsets, use grub_off_t instead. Fix printf format | |
10062 | warnings. | |
10063 | ||
ca62e598 | 10064 | * fs/reiserfs.c: Remove #warning, TODO list items don't belong |
10065 | there. Real unexpected warnings should not drown in the noise | |
10066 | about known problems. | |
10067 | ||
ce8d1766 | 10068 | * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of |
10069 | grub_disk_addr_t for memory addresses. | |
10070 | ||
00c7a56a | 10071 | * loader/aout.c (grub_aout_load): Cast load_addr to pointer |
10072 | explicitly to fix a warning. | |
10073 | ||
08d3ef09 | 10074 | * util/grub-editenv.c (cmd_info): Fix warning in printf format. |
10075 | ||
cb71ba20 | 10076 | * Makefile.in (MODULE_LDFLAGS): New variable. |
10077 | * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if | |
10078 | the linker accepts --build-id=none. | |
10079 | * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute | |
10080 | MODULE_LDFLAGS. | |
10081 | * genmk.rb: Use MODULE_LDFLAGS when linking modules. | |
10082 | ||
d4c9b428 | 10083 | * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to |
10084 | those in Linux XFS code. Provide a way to access 64-bit parent | |
10085 | inode. | |
10086 | (grub_xfs_iterate_dir): Use the new names. Avoid reading past | |
10087 | the end of struct grub_xfs_dir_header. | |
10088 | ||
d4156eee | 10089 | 2008-07-02 Bean <bean123ch@gmail.com> |
10090 | ||
10091 | * include/grub/ieee1275.h (grub_ieee1275_flag): New constant | |
10092 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
10093 | and GRUB_IEEE1275_FLAG_NO_ANSI. | |
10094 | ||
10095 | * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag | |
10096 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
10097 | and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware. | |
10098 | ||
10099 | * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return | |
10100 | immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set. | |
10101 | ||
10102 | * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if | |
10103 | GRUB_IEEE1275_FLAG_FORCE_CLAIM is set. | |
10104 | ||
10105 | * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output | |
10106 | esc sequence on non ANSI terminal. | |
10107 | (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal. | |
10108 | ||
10109 | * util/elf/grub-mkimage.c (add_segments): Move ELF header to the | |
10110 | beginning of file. | |
10111 | ||
2270f77b | 10112 | 2008-07-02 Bean <bean123ch@gmail.com> |
10113 | ||
10114 | * conf/common.rmk (bin_UTILITIES): Add grub-editenv. | |
10115 | (grub_editenv_SOURCES): New variable. | |
10116 | (pkglib_MODULES): Add loadenv.mod. | |
10117 | (loadenv_mod_SOURCES): New variable. | |
10118 | (loadenv_mod_CFLAGS): Likewise. | |
10119 | (loadenv_mod_LDFLAGS): Likewise. | |
10120 | ||
10121 | * include/grub/envblk.h: New file. | |
10122 | ||
10123 | * util/envblk.c: New file. | |
10124 | ||
10125 | * util/grub-editenv.c: New file. | |
10126 | ||
10127 | * commands/loadenv.c: New file. | |
10128 | ||
0e9e51ec | 10129 | 2008-07-01 Pavel Roskin <proski@gnu.org> |
10130 | ||
d89b7634 | 10131 | * include/multiboot2.h (struct multiboot_tag_module): Use char, |
10132 | not unsigned char. This fixes warnings and is consistent with | |
10133 | other tags. | |
10134 | ||
bf1835b1 | 10135 | * disk/fs_uuid.c (search_fs_uuid): Correctly increment count. |
10136 | ||
8222a04b | 10137 | * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings. |
10138 | ||
6a42d99d | 10139 | * term/tparm.c (analyze): Always set *popcount. |
10140 | ||
10b159d1 | 10141 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless |
10142 | cast to fix a warning. | |
10143 | ||
b8789f6c | 10144 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use |
10145 | cast to suppress a warning. | |
10146 | ||
29d7e38a | 10147 | * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as |
10148 | grub_fshelp_read_file() expects. | |
10149 | ||
f341f669 | 10150 | * fs/fat.c: Fix UUID calculation on big-endian systems. We |
10151 | write uuid as a 32-bit value in CPU byte order, so declare and | |
10152 | use it as such. | |
10153 | ||
0e9e51ec | 10154 | * disk/raid.c: Cast grub_dprintf() arguments to unsigned long |
10155 | long if the format specifier expects it. | |
10156 | * partmap/gpt.c (gpt_partition_map_iterate): Likewise. | |
10157 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
10158 | * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long | |
10159 | long to fix a warning. | |
10160 | * fs/reiserfs.c (grub_reiserfs_read): Change casts in | |
10161 | grub_dprintf() arguments to fix warnings. | |
10162 | ||
3aefa857 | 10163 | 2008-06-30 Pavel Roskin <proski@gnu.org> |
10164 | ||
56c7668b | 10165 | * util/i386/pc/grub-setup.c (setup): Write install_dos_part and |
10166 | install_bsd_part immediately before core.img is embedded or | |
10167 | modified on disk. This fixes core.img verification if core.img | |
10168 | cannot be embedded. | |
10169 | ||
3aefa857 | 10170 | * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not |
10171 | core_path to calculate the blocklist. | |
10172 | Patch from Javier Martín <lordhabbit@gmail.com> | |
10173 | ||
5444088d | 10174 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
10175 | ||
10176 | * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem | |
10177 | block to disk block. | |
10178 | (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result. | |
10179 | Patch from Niels Böhm <bitbucket@arcor.de> | |
10180 | ||
674835c8 | 10181 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
10182 | ||
10183 | * util/update-grub_lib.in (font_path): Search for fonts in | |
10184 | /boot/grub first, which is more likely to be readable (we aren't | |
10185 | deciding where fonts live, just looking for them). | |
10186 | ||
f527dbc8 | 10187 | 2008-06-26 Pavel Roskin <proski@gnu.org> |
10188 | ||
6c2d8df6 | 10189 | * util/biosdisk.c (read_device_map): Don't leave dead map |
10190 | entries for devices failing stat() check. | |
10191 | ||
f527dbc8 | 10192 | * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use |
10193 | core_path_dev for the core.img path on the target device. | |
10194 | ||
aebe3d13 | 10195 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
10196 | ||
10197 | * disk/fs_uuid.c: New file. | |
10198 | * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'. | |
10199 | (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS) | |
10200 | (fs_uuid_mod_LDFLAGS): New variables. | |
10201 | * include/grub/disk.h (grub_disk_dev_id): Add | |
10202 | `GRUB_DISK_DEVICE_UUID_ID'. | |
10203 | * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to | |
10204 | implement iterate(). | |
10205 | ||
37aaf354 | 10206 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
10207 | ||
10208 | * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either | |
10209 | "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a | |
10210 | Linux image includes no initrd. | |
10211 | ||
25ff262a | 10212 | 2008-06-21 Javier Martín <lordhabbit@gmail.com> |
10213 | ||
10214 | * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a | |
10215 | call to resolve the core image location that effectively appended the | |
10216 | name twice. | |
10217 | ||
76a2bd44 | 10218 | 2008-06-21 Robert Millan <rmh@aybabtu.com> |
10219 | ||
10220 | * util/grub.d/00_header.in: Move last prepare_grub_to_access_device() | |
10221 | call from here ... | |
10222 | ||
10223 | * util/grub.d/10_hurd.in: ... to here ... | |
10224 | * util/grub.d/10_linux.in: ... and here. | |
10225 | ||
650e1c79 | 10226 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
10227 | ||
fe987087 | 10228 | * kern/main.c (grub_main): Export `prefix' variable immediately |
650e1c79 | 10229 | after it has been set by grub_machine_set_prefix(). |
10230 | ||
6ce63911 | 10231 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
10232 | ||
10233 | * commands/search.c (search_label, search_fs_uuid, search_file): Print | |
10234 | search result when not saving to variable, not the other way around. | |
10235 | When saving to variable, abort iteration as soon as a match is found. | |
10236 | ||
73940cec | 10237 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
10238 | ||
10239 | * util/update-grub_lib.in (prepare_grub_to_access_device): Remove | |
10240 | check for partition that provides /boot/grub. Its logic is flawed, | |
10241 | as it prevents prepare_grub_to_access_device() from being called | |
10242 | multiple times. | |
10243 | ||
3c62a39d | 10244 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
10245 | ||
10246 | * util/update-grub_lib.in (prepare_grub_to_access_device): Issue | |
10247 | "insmod" command directly when abstraction modules are needed, | |
fe987087 | 10248 | instead of relying on GRUB_PRELOAD_MODULES (which had no effect |
3c62a39d | 10249 | since it had already been processed). |
10250 | ||
47395a42 | 10251 | 2008-06-19 Pavel Roskin <proski@gnu.org> |
10252 | ||
10253 | * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has | |
10254 | changed. This is needed in case GRUB_LIBDIR changes. | |
10255 | * conf/i386-ieee1275.rmk: Likewise. | |
10256 | * conf/i386-linuxbios.rmk: Likewise. | |
10257 | * conf/i386-pc.rmk: Likewise. | |
10258 | * conf/powerpc-ieee1275.rmk: Likewise. | |
10259 | ||
a145ac2d | 10260 | 2008-06-18 Pavel Roskin <proski@gnu.org> |
10261 | ||
10262 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename | |
10263 | kernel_elf_symlist.c to symlist.c for consistency with other | |
10264 | architectures. Update all users. | |
10265 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
10266 | ||
7847c51e | 10267 | 2008-06-18 Robert Millan <rmh@aybabtu.com> |
10268 | ||
10269 | * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend | |
10270 | it in prefix. | |
10271 | ||
10272 | * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set | |
10273 | `must_embed' to 1 when root_dev is a RAID device. When dest_dev is | |
10274 | a RAID device, run setup() for all members independently on whether | |
10275 | LVM abstraction is being used. | |
10276 | (setup): Don't handle prefix at all; let grub-mkimage take care of it. | |
10277 | If grub-mkimage has set `*install_dos_part == -2', don't override this | |
10278 | value. | |
10279 | Perform *install_dos_part adjustments independently on whether | |
10280 | we're embedding or not. | |
10281 | Clarify error message when image is too big for embedding. | |
10282 | Remove duplicate *install_dos_part stanza. | |
10283 | ||
b23e5644 | 10284 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
10285 | ||
10286 | * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables. | |
10287 | (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New | |
10288 | variables. | |
10289 | (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store | |
10290 | values in grub_ofconsole_normal_color and | |
10291 | grub_ofconsole_highlight_color (they're not directly related to | |
10292 | background and foreground). | |
10293 | (grub_ofconsole_setcolorstate): Extract background and foreground | |
10294 | from grub_ofconsole_normal_color and grub_ofconsole_highlight_color. | |
10295 | ||
0aac2f79 | 10296 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
10297 | ||
10298 | * util/update-grub_lib.in (prepare_grub_to_access_device): Use | |
10299 | /boot/grub for the check in last commit, not /boot (they could be | |
10300 | different partitions). | |
10301 | ||
3cca7ef3 | 10302 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
10303 | ||
10304 | * util/update-grub_lib.in (prepare_grub_to_access_device): If we were | |
10305 | asked to setup access for the same partition that provides /boot, | |
10306 | don't bother using UUIDs since our root already has the value we | |
10307 | want. | |
10308 | ||
347396d8 | 10309 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
10310 | ||
10311 | * util/biosdisk.c (convert_system_partition_to_system_disk): Detect | |
10312 | I2O devices. | |
10313 | Patch from Sven Mueller <sven@debian.org>. | |
10314 | ||
991477f8 | 10315 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
10316 | ||
10317 | * util/update-grub.in: Check for $EUID instead of $UID. | |
10318 | Reported by Vincent Zweije. | |
10319 | ||
d31a32a1 | 10320 | 2008-06-16 Bean <bean123ch@gmail.com> |
10321 | ||
fe987087 | 10322 | * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state. |
d31a32a1 | 10323 | (grub_ext2_read_block): Likewise. |
10324 | (grub_ext2_read_inode): Likewise. | |
10325 | (grub_ext2_mount): Likewise. | |
10326 | (grub_ext2_close): Likewise. | |
10327 | (grub_ext3_get_journal): Removed. | |
10328 | ||
fe987087 | 10329 | * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state. |
d31a32a1 | 10330 | (grub_reiserfs_read_symlink): Likewise. |
10331 | (grub_reiserfs_mount): Likewise. | |
10332 | (grub_reiserfs_open): Likewise. | |
10333 | (grub_reiserfs_read): Likewise. | |
10334 | (grub_reiserfs_close): Likewise. | |
10335 | (grub_reiserfs_get_journal): Removed. | |
10336 | ||
10337 | * fs/fshelp.c (grub_fshelp_read): Removed. | |
10338 | (grub_fshelp_map_block): Likewise. | |
10339 | ||
10340 | * include/grub/fshelp.h (grub_fshelp_journal_type): Removed. | |
10341 | (grub_fshelp_journal): Likewise. | |
10342 | (grub_fshelp_read): Likewise. | |
10343 | (grub_fshelp_map_block): Likewise. | |
10344 | ||
3540a760 | 10345 | 2008-06-16 Pavel Roskin <proski@gnu.org> |
10346 | ||
10347 | * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use | |
10348 | floating point anymore. | |
10349 | * include/grub/powerpc/libgcc.h: Leave only necessary exports. | |
10350 | ||
95614c84 | 10351 | 2008-06-15 Pavel Roskin <proski@gnu.org> |
10352 | ||
10353 | * commands/ls.c (grub_ls_list_files): Use integer calculations | |
10354 | for human readable format, avoid floating point use. | |
10355 | * kern/misc.c (grub_ftoa): Remove. | |
10356 | (grub_vsprintf): Remove floating point support. | |
10357 | ||
50465dd6 | 10358 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
10359 | ||
fe6b695a | 10360 | * util/grub.d/10_linux.in: Use the underlying device for loop-AES |
50465dd6 | 10361 | devices. |
10362 | Reported by Max Vozeler. | |
10363 | ||
a9207284 | 10364 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
10365 | ||
10366 | * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive | |
10367 | in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be | |
10368 | skipped later. | |
10369 | (main): If a memdisk was requested, add "(memdisk)" drive explicitly to | |
10370 | the beginning of the prefix. | |
10371 | ||
10372 | * kern/i386/pc/init.c (make_install_device): Remove memdisk check. | |
10373 | It is assumed that if we have a memdisk, grub-mkimage has set | |
10374 | grub_prefix to include the "(memdisk)" drive in it. | |
10375 | ||
a7cbd45a | 10376 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
10377 | ||
10378 | * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init): | |
10379 | Initialize keyboard controller after registering the terminal, so that | |
10380 | grub_printf() can be called from grub_keyboard_controller_init(). | |
10381 | ||
21cf716a | 10382 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
10383 | ||
10384 | * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in | |
10385 | extent-btree which is written as big endian on disk. | |
10386 | Reported by Alain Greppin <al@chilibi.org>. | |
10387 | ||
23a64d8e | 10388 | 2008-06-14 Robert Millan <rmh@aybabtu.com> |
10389 | ||
10390 | * util/i386/efi/grub-install.in (modules): Remove `_chain'. | |
10391 | * util/i386/pc/grub-install.in (modules): Likewise. | |
10392 | ||
d687651c | 10393 | 2008-06-13 Pavel Roskin <proski@gnu.org> |
10394 | ||
10395 | * commands/ls.c (grub_ls_list_files): Fix format warnings. | |
10396 | ||
dfe9ddd4 | 10397 | 2008-06-13 Bean <bean123ch@gmail.com> |
10398 | ||
10399 | * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition. | |
10400 | ||
10401 | * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling. | |
10402 | ||
10403 | * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used | |
10404 | to indicate sparse block. | |
10405 | ||
16ae7781 | 10406 | 2008-06-12 Pavel Roskin <proski@gnu.org> |
10407 | ||
e6d1a308 | 10408 | * fs/ext2.c (grub_ext2_read_inode): Don't normalize block |
10409 | number, grub_fshelp_read() does it for us. | |
10410 | ||
16ae7781 | 10411 | * fs/fshelp.c (grub_fshelp_read): New function. Implement |
10412 | linear disk read with journal translation. | |
10413 | * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read(). | |
10414 | * include/grub/fshelp.h: Declare grub_fshelp_read(). | |
10415 | ||
40fd3a2b | 10416 | 2008-06-09 Pavel Roskin <proski@gnu.org> |
10417 | ||
10418 | * fs/minix.c (grub_minix_mount): Handle error reading | |
10419 | superblock. | |
10420 | ||
f5679726 | 10421 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
10422 | ||
10423 | * util/i386/pc/grub-setup.c (main): If install drive is an LVM, | |
10424 | don't append the RAID prefix afterwards. | |
10425 | Reported by Clint Adams. | |
10426 | ||
ce525529 | 10427 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
10428 | ||
10429 | Based on description from Pavel: | |
10430 | * kern/disk.c (grub_disk_check_range): Rename to ... | |
10431 | (grub_disk_adjust_range): ... this. Add a comment explaining the | |
10432 | tasks performed by this function. | |
10433 | ||
ad4936a0 | 10434 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
10435 | ||
10436 | * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to | |
10437 | `num_serial' (for consistency with other variables). | |
10438 | (struct grub_ntfs_data): Add `uuid' member. | |
10439 | * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'. | |
10440 | (grub_ntfs_uuid): New function. | |
10441 | (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member. | |
10442 | ||
dc20b0f9 | 10443 | 2008-06-07 Pavel Roskin <proski@gnu.org> |
10444 | ||
10445 | * util/biosdisk.c (open_device): Revert last change to the | |
10446 | function, it broke installation. The sector needs to be | |
10447 | different dependent on which device is opened. | |
10448 | ||
c5e3cfba | 10449 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
10450 | ||
10451 | Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the | |
10452 | rest of GRUB, and breakage doesn't happen if its value were modified. | |
10453 | ||
10454 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
10455 | Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of | |
10456 | a constant (same value). | |
10457 | * kern/i386/pc/startup.S: Replace hardcoded `0x50' with | |
10458 | `GRUB_KERNEL_MACHINE_DATA_END' (same value). | |
10459 | ||
26a1f8c4 | 10460 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
10461 | ||
10462 | * util/biosdisk.c (open_device): Do not modify sector offset when | |
10463 | accessing a partition. kern/disk.c already handles this for us. | |
10464 | ||
25d6b327 | 10465 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
10466 | ||
10467 | * util/grub-emu.c (grub_machine_init): Move code in this function from | |
10468 | here ... | |
10469 | (main): ... to here (before grub_util_biosdisk_init() call, to prevent | |
10470 | segfault in case grub_printf() is called). | |
10471 | ||
10472 | * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to | |
10473 | grub_probe. Update all users not to explicitly add it again. | |
10474 | (grub_device): New variable; contains corresponding device for grubdir. | |
10475 | (fs_module, partmap_module, devabstraction_module): Pass | |
10476 | `--device ${grub_device}' to grub_probe to avoid traversing /dev | |
10477 | every time. | |
10478 | ||
9ece62fb | 10479 | 2008-06-05 Robert Millan <rmh@aybabtu.com> |
10480 | ||
10481 | * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID | |
10482 | is found, print it (same layout as with labels). | |
10483 | ||
1ad36d37 | 10484 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
10485 | ||
10486 | * util/biosdisk.c (get_drive): Rename to ... | |
10487 | (find_grub_drive): ... this. Update all users. | |
10488 | ||
10489 | (get_os_disk): Rename to ... | |
10490 | (convert_system_partition_to_system_disk): ... this. Update all users. | |
10491 | ||
10492 | (find_drive): Rename to ... | |
10493 | (find_system_device): ... this. Update all users. | |
10494 | ||
e6a30859 | 10495 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
10496 | ||
10497 | * util/biosdisk.c (get_os_disk): Handle IDA devices. | |
10498 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
10499 | (make_device_map): Likewise. | |
10500 | ||
00c108a4 | 10501 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
10502 | ||
10503 | * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL | |
10504 | before dereferencing it. | |
10505 | ||
10506 | * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a | |
10507 | union with fat12/fat16-specific ones. Add some new fields, including | |
10508 | `num_serial' for both versions. | |
10509 | (struct grub_fat_data): Add `uuid' member. | |
10510 | (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new | |
10511 | names. Initialize `data->uuid' using `num_serial'. | |
10512 | (grub_fat_uuid): New function. | |
10513 | (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member. | |
10514 | ||
10515 | * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field. | |
10516 | (grub_reiserfs_uuid): New function. | |
10517 | (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct | |
10518 | member. | |
10519 | ||
10520 | * fs/xfs.c (grub_xfs_sblock): Add `uuid' field. | |
10521 | (grub_xfs_uuid): New function. | |
10522 | (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member. | |
10523 | ||
1385c5bb | 10524 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
10525 | ||
10526 | * util/update-grub_lib.in (prepare_grub_to_access_device): Generate | |
10527 | code that is backward compatible with pre-uuid search command. | |
10528 | ||
c682dfd7 | 10529 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
10530 | ||
10531 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through | |
10532 | floppies after everything else, to ensure floppy drive isn't accessed | |
10533 | unnecessarily (patch from Bean). | |
10534 | ||
b7db5d47 | 10535 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
10536 | ||
10537 | * commands/search.c (search_label, search_fs_uuid, search_file): Do | |
10538 | not print device names when we were asked to set a variable. | |
10539 | ||
6e037aa9 | 10540 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
10541 | ||
10542 | * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement | |
10543 | using "cursor-on" and "cursor-off" commands (understood at least by | |
10544 | the Open Firmware flavour on OLPC). | |
10545 | ||
41305bc8 | 10546 | 2008-05-31 Michael Gorven <michael@gorven.za.net> |
10547 | ||
10548 | * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor | |
10549 | on and off sequences. | |
10550 | ||
69ba137e | 10551 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
10552 | ||
10553 | * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'. | |
10554 | * util/update-grub.in: Likewise. | |
10555 | ||
520ae21b | 10556 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
10557 | ||
10558 | * util/biosdisk.c (linux_find_partition): Simplify logic and | |
10559 | make the code more universal. Keep special processing for | |
10560 | devfs, but use a simple rule for all other devices. If the | |
10561 | device ends with a number, append 'p' and the partition number. | |
10562 | Otherwise, append only the partition number. | |
10563 | ||
5786569b | 10564 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10565 | ||
10566 | * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable. | |
10567 | * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and | |
10568 | GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as | |
10569 | the `root' parameter to Linux. | |
10570 | ||
51500452 | 10571 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10572 | ||
10573 | * commands/search.c (options): Rename --fs_uuid to --fs-uuid. | |
10574 | * util/update-grub_lib.in (prepare_grub_to_access_device): Replace | |
10575 | --fs_uuid with --fs-uuid. | |
10576 | * util/update-grub.in: Allow filesystem UUID probes to fail (since not | |
10577 | all filesystems support them). | |
10578 | ||
811d3878 | 10579 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10580 | ||
10581 | * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as | |
f19dbdb7 | 10582 | grub_printf() flags, since we're printing in units of 2 bytes. |
811d3878 | 10583 | |
cab63c95 | 10584 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10585 | ||
10586 | * util/grub.d/00_header.in: Remove obsolete comment referencing | |
10587 | convert_system_path_to_grub_path(). | |
10588 | * util/update-grub.in: Likewise. | |
10589 | * util/update-grub_lib.in (is_path_readable_by_grub): New function. | |
10590 | (convert_system_path_to_grub_path): Add a warning message explaining | |
10591 | that this function is deprecated. Rely on is_path_readable_by_grub() | |
10592 | for the readability checks. | |
10593 | (font_path): Use is_path_readable_by_grub() for the readability | |
10594 | check rather than convert_system_path_to_grub_path(). | |
10595 | ||
972e2f7a | 10596 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10597 | ||
10598 | * util/update-grub_lib.in (prepare_grub_to_access_device): New function. | |
10599 | * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without | |
10600 | converting it first. | |
10601 | * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup | |
10602 | grub.cfg for access to font file, and afterwards call it again to set | |
10603 | the root device. | |
10604 | ||
62191274 | 10605 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10606 | ||
10607 | * commands/search.c (options): Add --fs_uuid option. | |
10608 | (search_fs_uuid): New function. | |
10609 | (grub_cmd_search): Fix --set argument passing. | |
10610 | Use search_fs_uuid() when requested via --fs_uuid. | |
10611 | (grub_search_init): Update help message. | |
10612 | * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid' | |
10613 | and redeclare it as an array of 16-bit words. | |
10614 | (grub_ext2_uuid): New function. | |
10615 | (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member. | |
10616 | * include/grub/fs.h (struct grub_fs): Add `uuid' struct member. | |
10617 | * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT) | |
10618 | (GRUB_DEVICE_BOOT_UUID): New variables. | |
10619 | (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove. | |
10620 | * util/grub.d/00_header.in: Set root using `search --fs_uuid' command | |
10621 | whenever possible. | |
10622 | * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead, | |
10623 | just assume `root' variable has the right value. | |
10624 | * util/grub.d/10_linux.in: Likewise. | |
10625 | * util/grub-probe.c (probe): Probe for filesystem UUID when requested | |
10626 | via PRINT_FS_UUID. | |
10627 | (main): Recognise `-t fs_uuid' argument. | |
10628 | ||
01b73ec8 | 10629 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
10630 | ||
10631 | * util/biosdisk.c (map): Redefine structure to hold information | |
10632 | about GRUB drive name. | |
fe6b695a | 10633 | (get_drive): Reimplement without assuming (and verifying) BIOS-like |
01b73ec8 | 10634 | drive names. |
10635 | (call_hook): Remove. | |
10636 | (grub_util_biosdisk_iterate): Access drive names via `.drive' struct | |
10637 | member. Assume drive has partitions. | |
10638 | (grub_util_biosdisk_open): Access device names via `.device' struct | |
10639 | member. | |
10640 | (open_device): Likewise. | |
10641 | (find_drive): Likewise. | |
10642 | (read_device_map): Adjust map[] usage to match the new struct | |
10643 | definition. Don't check for duplicates (still possible, but not cheap | |
10644 | anymore). | |
10645 | (grub_util_biosdisk_fini): Free malloced buffers referenced by map[]. | |
10646 | (make_device_name): Remove assumption of BIOS-like drive names. | |
10647 | ||
22f16596 | 10648 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
10649 | ||
10650 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as | |
10651 | compiling execute.c doesn't need grub_script.tab.h anymore. | |
10652 | (normal/command.c_DEPENDENCIES): Likewise. | |
10653 | (normal/function.c_DEPENDENCIES): Likewise. | |
10654 | * conf/i386-ieee1275.rmk: Likewise. | |
10655 | * conf/i386-linuxbios.rmk: Likewise. | |
10656 | * conf/i386-pc.rmk: Likewise. | |
10657 | * conf/powerpc-ieee1275.rmk: Likewise. | |
10658 | * conf/sparc64-ieee1275.rmk: Likewise. | |
10659 | ||
528ad8f2 | 10660 | 2008-05-29 Pavel Roskin <proski@gnu.org> |
10661 | ||
d1dff95d | 10662 | * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end |
10663 | when scanning metadata for volume group name. | |
10664 | ||
528ad8f2 | 10665 | * include/grub/script.h: Don't include grub_script.tab.h. It's |
10666 | a generated file, which may only be included from the files with | |
10667 | DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE, | |
10668 | use union YYSTYPE, as the later allows forward declaration. | |
10669 | * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE. | |
10670 | ||
47248e08 | 10671 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
10672 | ||
10673 | * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'. | |
10674 | (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros. | |
10675 | [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes | |
10676 | (grub_console_checkkey): Add grub_dprintf() call to report unknown | |
10677 | scan codes. | |
10678 | ||
ee632529 | 10679 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
10680 | ||
10681 | * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for | |
10682 | control key combinations. | |
10683 | ||
eee96e08 | 10684 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
10685 | ||
10686 | * util/powerpc/ieee1275/grub-install.in: Move from here ... | |
10687 | * util/ieee1275/grub-install.in: ... to here. | |
10688 | * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location. | |
10689 | * i386-ieee1275.rmk (sbin_SCRIPTS): New variable. | |
10690 | (grub_install_SOURCES): Likewise. | |
10691 | ||
da9a6a94 | 10692 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
10693 | ||
10694 | * fs/affs.c: Update copyright year. | |
10695 | * fs/ext2.c: Likewise. | |
10696 | * fs/fshelp.c: Likewise. | |
10697 | * fs/hfsplus.c: Likewise. | |
10698 | * fs/ntfs.c: Likewise. | |
10699 | * fs/xfs.c: Likewise. | |
10700 | * include/grub/fshelp.h: Likewise. | |
10701 | * util/grub-mkdevicemap.c: Likewise. | |
10702 | ||
12e65f3a | 10703 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
10704 | ||
10705 | * util/update-grub.in: Allow chmod call to fail, since /boot/grub/ | |
10706 | might need to be fatfs to support some firmware implementations | |
10707 | (e.g. OFW or EFI). | |
10708 | ||
23023641 | 10709 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
10710 | ||
10711 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC | |
10712 | devices. | |
10713 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
10714 | (make_device_map): Likewise. | |
10715 | ||
887d2619 | 10716 | 2008-05-20 Bean <bean123ch@gmail.com> |
10717 | ||
10718 | * fs/fshelp.c (grub_fshelp_map_block): New function. | |
10719 | (grub_fshelp_find_file): Use 64-bit type for pos and block address. | |
10720 | Use `>>' and `&' operator to avoid 64-bit divide and modulo. | |
10721 | ||
10722 | * include/grub/fshelp.h (grub_fshelp_journal_type): New enum. | |
10723 | (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro. | |
10724 | (grub_fshelp_journal): New structure. | |
10725 | (grub_fshelp_map_block): New function prototype. | |
10726 | (grub_fshelp_read_file): Use grub_disk_addr_t as block type. | |
10727 | (grub_fshelp_map_block): Likewise. | |
10728 | ||
10729 | * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro. | |
10730 | (EXT3_JOURNAL_MAGIC_NUMBER): Likewise. | |
10731 | (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise. | |
10732 | (EXT3_JOURNAL_COMMIT_BLOCK): Likewise. | |
10733 | (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise. | |
10734 | (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise. | |
10735 | (EXT3_JOURNAL_REVOKE_BLOCK): Likewise. | |
10736 | (EXT3_JOURNAL_FLAG_ESCAPE): Likewise. | |
10737 | (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise. | |
10738 | (EXT3_JOURNAL_FLAG_DELETED): Likewise. | |
10739 | (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise. | |
10740 | (grub_ext2_sblock): New members for journal support. | |
10741 | (grub_ext3_journal_header): New structure. | |
10742 | (grub_ext3_journal_revoke_header): Likewise. | |
10743 | (grub_ext3_journal_block_tag): Likewise. | |
10744 | (grub_ext3_journal_sblock): Likewise. | |
10745 | (grub_fshelp_node): New members logfile and journal. | |
10746 | (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use | |
10747 | grub_fshelp_map_block to get real block number. | |
10748 | (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block | |
10749 | number. | |
10750 | (grub_ext2_read_inode): Likewise. | |
10751 | (grub_ext3_get_journal): New function. | |
10752 | (grub_read_inode): Initialize journal using grub_ext3_get_journal. | |
10753 | (grub_ext2_close): Release memory used by journal. | |
10754 | ||
10755 | * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr". | |
10756 | (REISERFS_MAGIC_DESC_BLOCK): New macro. | |
10757 | (grub_reiserfs_transaction_header): Renamed to | |
10758 | grub_reiserfs_description_block, replace field data with real_blocks. | |
10759 | (grub_reiserfs_commit_block): New structure. | |
10760 | (grub_reiserfs_data): New member journal. | |
10761 | (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block | |
10762 | number. | |
10763 | (grub_reiserfs_read_symlink): Likewise. | |
10764 | (grub_reiserfs_iterate_dir): Likewise. | |
10765 | (grub_reiserfs_open): Likewise. | |
10766 | (grub_reiserfs_read): Likewise. | |
10767 | (grub_reiserfs_get_journal): New function. | |
10768 | (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are | |
10769 | three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal | |
10770 | using grub_reiserfs_get_journal. | |
10771 | (grub_reiserfs_close): Release memory used by journal. | |
10772 | ||
10773 | * fs/affs.c (grub_affs_read_block): Change block type to | |
10774 | grub_disk_addr_t. Use grub_divmod64 to do 64-bit division. | |
10775 | ||
10776 | * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t. | |
10777 | ||
10778 | * fs/hfsplus.c (grub_hfsplus_read_block): Likewise. | |
10779 | ||
10780 | * fs/ntfs.c (grub_ntfs_read_block): Likewise. | |
10781 | ||
10782 | * fs/udf.c (grub_udf_read_block): Change block type to | |
10783 | grub_disk_addr_t. Use type cast to avoid warning. | |
10784 | ||
10785 | * fs/xfs.c (grub_xfs_read_block): Likewise. | |
10786 | ||
b7c6bed5 | 10787 | 2008-05-16 Christian Franke <franke@computer.org> |
10788 | ||
10789 | * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue | |
10790 | to ensure that break with ESC will always work. | |
10791 | * commands/sleep.c (grub_interruptible_millisleep): Likewise. | |
10792 | Remove ESC from keyboard queue. | |
10793 | ||
eedf167f | 10794 | 2008-05-16 Christian Franke <franke@computer.org> |
10795 | ||
10796 | * util/biosdisk.c: [__CYGWIN__] Add includes. | |
10797 | (grub_util_biosdisk_open): Use Linux code also for Cygwin. | |
10798 | (get_os_disk): Move variable declarations to OS specific | |
10799 | parts to avoid warning. | |
10800 | [__GNU__] (get_os_disk): Fix /dev/sdXsN case. | |
10801 | [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names. | |
10802 | (grub_util_biosdisk_get_grub_dev): Use Linux code also for | |
10803 | Cygwin. | |
10804 | * util/getroot.c: [__CYGWIN__] Add includes. | |
10805 | (strip_extra_slashes): Fix "/" case. | |
10806 | [__CYGWIN__] (get_win32_path): New function. | |
10807 | [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path. | |
10808 | [__CYGWIN__] (find_root_device): Disable. | |
10809 | [__CYGWIN__] (get_bootsec_serial): New function. | |
10810 | [__CYGWIN__] (find_cygwin_root_device): Likewise. | |
10811 | [__linux__] (grub_guess_root_device): Add early returns to simplify | |
10812 | structure. | |
10813 | [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device. | |
10814 | [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID | |
10815 | check for Linux only. | |
10816 | ||
a079699e | 10817 | 2008-05-15 Bean <bean123ch@gmail.com> |
10818 | ||
10819 | * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the | |
10820 | keyboard hang problem in apple's intel mac. | |
10821 | ||
1cf4059a | 10822 | 2008-05-09 Robert Millan <rmh@aybabtu.com> |
10823 | ||
10824 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio | |
10825 | devices. | |
10826 | * util/grub-mkdevicemap.c (get_virtio_disk_name) | |
10827 | (make_device_map): Likewise. | |
10828 | Reported by Aurelien Jarno <aurel32@debian.org> | |
10829 | ||
ed759390 | 10830 | 2008-05-07 Ian Campbell <ijc@hellion.org.uk> |
10831 | ||
10832 | * util/biosdisk.c (get_os_disk): Recognise xvd type disks. | |
10833 | * util/grub-mkdevicemap.c (get_xvd_disk_name): New function. | |
10834 | (make_device_map): Output entries for xvd type disks. | |
10835 | ||
b56c4eaa | 10836 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
10837 | ||
10838 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS | |
10839 | devices. | |
10840 | * util/grub-mkdevicemap.c (get_cciss_disk_name) | |
10841 | (make_device_map): Likewise. | |
10842 | Reported by Roland Dreier <rdreier@cisco.com> | |
10843 | ||
7f8866ed | 10844 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
10845 | ||
10846 | * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional | |
10847 | grub_strstr() call. Correct a few mistakes in failure path handling. | |
10848 | ||
b0346e0f | 10849 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
10850 | ||
10851 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
10852 | Do not print a trailing slash (therefore, the root directory is an | |
10853 | empty string). | |
10854 | (convert_system_path_to_grub_path): Do not remove trailing slash | |
10855 | from make_system_path_relative_to_its_root() output. | |
10856 | ||
10857 | * util/i386/pc/grub-install.in: Add trailing slash to output from | |
10858 | make_system_path_relative_to_its_root(). | |
10859 | ||
6cf12cbd | 10860 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
10861 | ||
10862 | * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This | |
10863 | ensures that output lines aren't intermangled with those sent to | |
10864 | stderr (via grub_util_info()). | |
10865 | * util/grub-probe.c (grub_refresh): Likewise. | |
10866 | * util/i386/pc/grub-setup.c (grub_refresh): Likewise. | |
10867 | ||
0fbb3117 | 10868 | 2008-05-05 Christian Franke <franke@computer.org> |
10869 | ||
10870 | * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]: | |
10871 | Add Cygwin device names. | |
10872 | (get_ide_disk_name) [__CYGWIN__]: Likewise. | |
10873 | (get_scsi_disk_name) [__CYGWIN__]: Likewise. | |
10874 | (check_device): Return error instead of success on empty name. | |
10875 | (make_device_map): Move label inside linux specific code to | |
10876 | prevent compiler warning. | |
10877 | ||
8124cdb7 | 10878 | 2008-04-30 Robert Millan <rmh@aybabtu.com> |
10879 | ||
10880 | Based on patch from Fabian Greffrath <greffrath@leat.rub.de> | |
10881 | * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the | |
10882 | first boot option. | |
10883 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT. | |
10884 | ||
094c01d0 | 10885 | 2008-04-29 Robert Millan <rmh@aybabtu.com> |
10886 | ||
10887 | * docs/grub.cfg: New file (example GRUB configuration). | |
10888 | ||
f4b1fc02 | 10889 | 2008-04-26 Robert Millan <rmh@aybabtu.com> |
10890 | ||
329ce2a5 | 10891 | * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add |
10892 | `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c' | |
10893 | and `disk/ieee1275/nand.c'. | |
f4b1fc02 | 10894 | |
25f16ec1 | 10895 | 2008-04-25 Bean <bean123ch@gmail.com> |
f19dbdb7 | 10896 | |
25f16ec1 | 10897 | * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and |
10898 | i386-linuxbios. | |
10899 | ||
10900 | * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device, | |
10901 | change the buffer size to 4096 for cdrom device. | |
10902 | ||
10903 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod | |
10904 | and nand.mod. | |
10905 | (_linux_mod_SOURCES): New variable. | |
10906 | (_linux_mod_CFLAGS): Likewise. | |
10907 | (_linux_mod_LDFLAGS): Likewise. | |
10908 | (linux_mod_SOURCES): Likewise. | |
10909 | (linux_mod_CFLAGS): Likewise. | |
10910 | (linux_mod_LDFLAGS): Likewise. | |
10911 | (nand_mod_SOURCES): Likewise. | |
10912 | (nand_mod_CFLAGS): Likewise. | |
10913 | (nand_mod_LDFLAGS): Likewise. | |
10914 | ||
10915 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return | |
10916 | GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device | |
10917 | type property. (nand device in olpc don't have this property) | |
10918 | ||
10919 | * include/grub/disk.h (grub_disk_dev_id): New macro | |
10920 | GRUB_DISK_DEVICE_NAND_ID. | |
10921 | ||
10922 | * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New | |
10923 | function prototype. | |
10924 | (grub_rescue_cmd_initrd): Likewise. | |
10925 | ||
10926 | * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro. | |
10927 | (linux_kernel_params): Add new member ofw_signature, ofw_num_items, | |
10928 | ofw_cif_handler and ofw_idt, adjust padding number. | |
f19dbdb7 | 10929 | |
25f16ec1 | 10930 | * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if |
10931 | GRUB_MACHINE_IEEE1275 is defined. | |
10932 | ||
10933 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): | |
10934 | Use NESTED_FUNC_ATTR attribute on the hook parameter. | |
10935 | ||
10936 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR | |
10937 | on nested function heap_init. | |
10938 | (grub_upper_mem): New variable for i386-ieee1275. | |
10939 | (grub_get_extended_memory): New function for i386-ieee1275. | |
10940 | (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275. | |
10941 | ||
10942 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use | |
10943 | NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type | |
10944 | property. | |
f19dbdb7 | 10945 | |
25f16ec1 | 10946 | * loader/i386/ieee1275/linux.c: New file. |
10947 | ||
10948 | * loader/i386/ieee1275/linux_normal.c: New file. | |
10949 | ||
10950 | * disk/ieee1275/nand.c: New file. | |
10951 | ||
e89d61e9 | 10952 | 2008-04-18 Thomas Schwinge <tschwinge@gnu.org> |
10953 | ||
10954 | * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct | |
10955 | value. | |
10956 | * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise. | |
10957 | ||
602566f6 | 10958 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
10959 | ||
10960 | Restructures early code path on ieee1275 to unify grub_main() as | |
10961 | the first C function that is executed in every platform. | |
10962 | ||
10963 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype. | |
10964 | * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of | |
10965 | cmain(). | |
10966 | * kern/powerpc/ieee1275/crt0.S (_start): Likewise. | |
10967 | * kern/ieee1275/cmain.c (cmain): Rename to ... | |
10968 | * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this. | |
10969 | * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init() | |
10970 | at the beginning. | |
10971 | ||
57490c2b | 10972 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
10973 | ||
10974 | * util/update-grub.in: Fix syntax error when setting | |
10975 | `GRUB_PRELOAD_MODULES'. | |
10976 | Reported by Stephane Chazelas <stephane@artesyncp.com> | |
10977 | ||
1977517d | 10978 | 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com> |
10979 | ||
10980 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text | |
10981 | section into account, newer toolchains generate unique build ids | |
10982 | * configure.ac: remove the test for --build-id=none acceptance, | |
e0c5dacb | 10983 | we want build ids to be preserved |
1977517d | 10984 | * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id |
10985 | far from other sections don't cause the raw binary images grow | |
10986 | size | |
10987 | ||
bfb1f1a2 | 10988 | 2008-04-15 Robert Millan <rmh@aybabtu.com> |
10989 | ||
10990 | * disk/lvm.c: Update copyright year. | |
10991 | * kern/misc.c: Likewise. | |
10992 | ||
01979850 | 10993 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
10994 | ||
10995 | * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when | |
f19dbdb7 | 10996 | there is no memory left for physical volume name. |
01979850 | 10997 | |
0a1150e2 | 10998 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
10999 | ||
11000 | * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical | |
11001 | volume name mapping to support bigger than 9 character names properly. | |
11002 | ||
82ead3fe | 11003 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
11004 | ||
11005 | * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check, | |
11006 | as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm | |
11007 | ||
e54a72f5 | 11008 | 2008-04-13 Christian Franke <franke@computer.org> |
11009 | ||
11010 | * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy | |
11011 | to create a floppy emulation boot CD when non emulation mode | |
11012 | does not work. | |
11013 | Enable Joliet CD filesystem extension. | |
11014 | ||
9fe86034 | 11015 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
11016 | ||
11017 | * kern/misc.c (grub_strncat): Fix off-by-one error. | |
11018 | Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
11019 | ||
11020 | * kern/env.c (grub_env_context_close): Clear current context, not | |
11021 | previous one. | |
11022 | Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
11023 | ||
11024 | * kern/misc.c (grub_strcat): Minor speed optimization (same code size). | |
11025 | ||
7ceeee39 | 11026 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
11027 | ||
11028 | Improve robustness when handling LVM. | |
11029 | ||
11030 | * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL | |
f19dbdb7 | 11031 | (and leave `*p' unmodified). |
7ceeee39 | 11032 | (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating |
11033 | through it. | |
11034 | (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when | |
11035 | iterating through it. | |
11036 | (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating | |
11037 | through it. | |
fe6b695a | 11038 | (grub_lvm_scan_device): Check the return value (and fail gracefully |
7ceeee39 | 11039 | when due) on each grub_lvm_getvalue() or grub_strstr() call. |
11040 | Don't assume `vg->pvs != NULL' when iterating through it. | |
11041 | ||
58cd3d85 | 11042 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
11043 | ||
11044 | * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'. | |
11045 | * genmk.rb (partmap): New variable. | |
11046 | (CLEANFILES, PARTMAPFILES): Add #{partmap}. | |
11047 | (#{partmap}): New target rule. | |
11048 | * genpartmaplist.sh: New file. | |
11049 | * Makefile.in (pkglib_DATA): Add partmap.lst. | |
11050 | (partmap.lst): New target rule. | |
11051 | * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed | |
11052 | modules (including all partition maps), instead of preloading them. | |
11053 | ||
78b51059 | 11054 | 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de> |
11055 | ||
11056 | * util/grub.d/30_os-prober.in: New script. Use `os-prober' and | |
11057 | `linux-boot-prober' (if installed) to detect other operating | |
11058 | systems which are installed on the computer and add them to | |
11059 | the boot menu. | |
11060 | * conf/common.rmk: Build and install 30_os-prober. | |
11061 | ||
a91627b4 | 11062 | 2008-04-12 Robert Millan <rmh@aybabtu.com> |
11063 | ||
11064 | * kern/powerpc/ieee1275/init.c: Move from here ... | |
11065 | * kern/ieee1275/init.c: ... to here. Update all users. | |
11066 | ||
11067 | * kern/powerpc/ieee1275/cmain.c: Move from here ... | |
11068 | * kern/ieee1275/cmain.c: ... to here. Update all users. | |
11069 | ||
11070 | * kern/powerpc/ieee1275/openfw.c: Move from here ... | |
11071 | * kern/ieee1275/openfw.c: ... to here. Update all users. | |
11072 | ||
11073 | * loader/powerpc/ieee1275/multiboot2.c: Move from here ... | |
11074 | * loader/ieee1275/multiboot2.c: ... to here. Update all users. | |
11075 | ||
322562ea | 11076 | 2008-04-10 Pavel Roskin <proski@gnu.org> |
11077 | ||
11078 | * configure.ac: Always use "_cv_" in cache variables for | |
11079 | compatibility with Autoconf 2.62. | |
11080 | ||
a02a73c5 | 11081 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
11082 | ||
11083 | Revert grub/machine/init.h addition by Pavel (since it breaks on | |
11084 | i386-ieee1275 and others): | |
11085 | * util/i386/pc/misc.c: Remove grub/machine/init.h. | |
11086 | * util/powerpc/ieee1275/misc.c: Likewise. | |
11087 | ||
25c024b1 | 11088 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
11089 | ||
11090 | * util/grub-probe.c (probe): Improve error message. | |
11091 | ||
3cbd2f98 | 11092 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
11093 | ||
11094 | * util/biosdisk.c (read_device_map): Skip devices that don't exist | |
11095 | (this prevents the presence of a bogus entry from ruining the whole | |
11096 | thing). | |
11097 | ||
87a297bf | 11098 | 2008-04-06 Pavel Roskin <proski@gnu.org> |
11099 | ||
36747a62 | 11100 | * util/biosdisk.c: Include grub/util/biosdisk.h. |
11101 | * util/grub-fstest.c (execute_command): Make static. | |
11102 | * util/grub-mkdevicemap.c (check_device): Likewise. | |
11103 | * util/i386/pc/misc.c: Include grub/machine/init.h. | |
11104 | * util/powerpc/ieee1275/misc.c: Likewise. | |
11105 | * util/lvm.c: Include grub/util/lvm.h. | |
11106 | * util/misc.c: Include grub/kernel.h, grub/misc.h and | |
11107 | grub/cache.h. | |
11108 | * util/raid.c: Include grub/util/raid.h. | |
11109 | (grub_util_getdiskname): Make static. | |
11110 | ||
87a297bf | 11111 | * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and |
11112 | grub_hostfs_fini(), as they are called from grub_init_all() and | |
11113 | grub_fini_all() respectively. This fixes an infinite loop in | |
11114 | grub-fstest due to double registration of hostfs. | |
11115 | Reported by Christian Franke <Christian.Franke@t-online.de> | |
11116 | ||
f6ce7629 | 11117 | 2008-04-05 Pavel Roskin <proski@gnu.org> |
11118 | ||
11119 | * bus/pci.c (grub_pci_iterate): For multifunction devices, probe | |
11120 | all 8 functions. Otherwise, probe function 0 only. | |
11121 | ||
070e49e4 | 11122 | 2008-04-04 Pavel Roskin <proski@gnu.org> |
11123 | ||
8b088a4c | 11124 | * commands/lspci.c (grub_lspci_iter): Print the bus number |
11125 | correctly. | |
11126 | ||
4f657021 | 11127 | * commands/lspci.c (grub_pci_classes): Fix typos. |
11128 | (grub_lspci_iter): Don't print func twice. Print vendor ID | |
11129 | before device ID, as it's normally done. | |
11130 | ||
070e49e4 | 11131 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): |
11132 | Fix signedness warnings. | |
11133 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): | |
11134 | Likewise. | |
11135 | * util/ieee1275/get_disk_name.c: Include config.h so that | |
11136 | _GNU_SOURCE is defined and getline() is declared. Mark an | |
11137 | unused argument as such. Fix a signedness warning. | |
11138 | ||
ba7328dc | 11139 | 2008-04-02 Pavel Roskin <proski@gnu.org> |
11140 | ||
26887f22 | 11141 | * genkernsyms.sh.in: Use more robust assignments for CC and |
11142 | srcdir. Quote srcdir. | |
11143 | * gensymlist.sh.in: Likewise. Assert at the compile time that | |
11144 | the symbol table is not empty. | |
11145 | ||
ba7328dc | 11146 | * disk/raid.c (grub_raid_memberlist): Fix a signedness warning. |
11147 | * fs/cpio.c (grub_cpio_read): Likewise. | |
11148 | ||
0f582c6b | 11149 | 2008-04-01 Pavel Roskin <proski@gnu.org> |
11150 | ||
4b6e1995 | 11151 | * disk/ata.c (grub_ata_open): Don't lose precision in disk->id. |
11152 | * disk/host.c (grub_host_open): Likewise. | |
11153 | * disk/loopback.c (grub_loopback_open): Likewise. | |
11154 | * disk/memdisk.c (grub_memdisk_open): Use a string pointer for | |
11155 | disk->id as in disk/host.c, not a multi-character constant. | |
11156 | ||
828a2768 | 11157 | * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The |
11158 | later is obsolete, potentially dangerous and sets a bad example. | |
11159 | * util/i386/efi/grub-mkimage.c (make_header): Likewise. | |
11160 | * util/misc.c (grub_util_get_image_size): Likewise. | |
11161 | ||
2bb4fb47 | 11162 | * disk/loopback.c (options): Improve help for "--partitions". |
11163 | ||
0f582c6b | 11164 | * normal/arg.c (grub_arg_show_help): Fix spacing of the long |
11165 | options to align them with the short options, e.g. "echo -e". | |
11166 | ||
a33224e0 | 11167 | 2008-03-31 Bean <bean123ch@gmail.com> |
11168 | ||
11169 | * video/reader/png.c (grub_png_data): New member is_16bit and | |
11170 | image_data. | |
11171 | (grub_png_decode_image_header): Detect 16 bit png image. | |
11172 | (grub_png_convert_image): New function to convert 16 bit image to 8 bit. | |
11173 | (grub_png_decode_png): Call grub_png_convert_image for 16 bit image. | |
11174 | (grub_video_reader_png): Release memory occupied by image_data. | |
11175 | ||
11176 | * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than | |
11177 | 4096 bytes. | |
11178 | (grub_nfs_mount): Skip the test for sector per cluster. | |
11179 | ||
11180 | * include/grub/ntfs.h (MAX_SPC): Removed. | |
11181 | ||
86cb4f54 | 11182 | 2008-03-31 Bean <bean123ch@gmail.com> |
11183 | ||
11184 | * conf/common.rmk (pkgdata_MODULES): Add afs.mod. | |
11185 | (grub_probe_SOURCES): Add fs/afs.c. | |
11186 | (grub_fstest_SOURCES): Likewise. | |
11187 | (afs_mod_SOURCES): New variable. | |
11188 | (afs_mod_CFLAGS): Likewise. | |
11189 | (afs_mod_LDFLAGS): Likewise. | |
11190 | ||
11191 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c. | |
11192 | (grub_emu_SOURCES): Likewise. | |
11193 | ||
11194 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
11195 | ||
11196 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11197 | ||
11198 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
11199 | ||
11200 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11201 | ||
11202 | * fs/afs.c: New file. | |
11203 | ||
17c74c21 | 11204 | 2008-03-30 Pavel Roskin <proski@gnu.org> |
11205 | ||
4cb68e89 | 11206 | * disk/host.c: Include grub/misc.h to fix a warning. |
11207 | * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix | |
11208 | warnings about implicit declarations. | |
11209 | ||
8790bb04 | 11210 | * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a |
11211 | variable. | |
11212 | * include/grub/i386/loader.h: Change declaration of | |
11213 | grub_linux_boot() to match what grub_loader_set() expects. | |
11214 | * util/getroot.c (grub_guess_root_device): Return const char* to | |
11215 | fix a warning. | |
11216 | * util/grub-probe.c (probe): Fix a warning about uninitialized | |
11217 | abstraction_name variable. | |
11218 | * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark | |
11219 | second argument as unused to fix a warning. | |
11220 | ||
9a3f3296 | 11221 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add |
11222 | missing grub_error() call. | |
11223 | ||
0ecef90d | 11224 | * util/update-grub_lib.in: Define datarootdir, since Autoconf |
11225 | 2.60 and newer uses it to define datadir. | |
11226 | ||
0bf6d401 | 11227 | * commands/sleep.c: Fix warning about implicit declaration. |
11228 | * disk/memdisk.c: Likewise. | |
11229 | * loader/aout.c: Likewise. | |
11230 | * loader/i386/bsd_normal.c: Likewise. | |
11231 | * util/grub-probe.c: Likewise. | |
11232 | ||
7cdacf97 | 11233 | * commands/i386/cpuid.c (has_longmode): Make static. |
11234 | * disk/i386/pc/biosdisk.c (cd_drive): Likewise. | |
11235 | * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused. | |
11236 | ||
17c74c21 | 11237 | * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load |
11238 | GDT. This is more robust, as %ds can change. | |
11239 | (grub_biosdisk_rw_int13_extensions): Don't clear %ds before | |
11240 | calling real_to_prot(). | |
11241 | (grub_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
11242 | ||
80a3e68b | 11243 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
11244 | ||
11245 | * kern/i386/pc/startup.S: Assert that uncompressed functions | |
11246 | don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE. | |
11247 | * kern/i386/pc/lzo1x.S: Remove all .align directives in the | |
11248 | code, as they push parts of the code (error handlers) beyond | |
11249 | GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this | |
11250 | code as correctness and size. | |
11251 | ||
77bcd272 | 11252 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
11253 | ||
11254 | * kern/i386/pc/startup.S | |
11255 | (grub_biosdisk_get_diskinfo_int13_extensions): When converting | |
11256 | data block address to the real mode, keep offset minimal. This | |
11257 | works around a bug in AWARD BIOS on old Athlon systems, which | |
11258 | makes CD detection hang. | |
11259 | ||
c5dfd43b | 11260 | 2008-03-26 Pavel Roskin <proski@gnu.org> |
11261 | ||
11262 | * normal/color.c (grub_parse_color_name_pair): Make `name' a | |
11263 | const. | |
11264 | * include/grub/normal.h: Add grub_parse_color_name_pair() | |
11265 | declaration. | |
11266 | ||
bf962df2 | 11267 | 2008-03-24 Bean <bean123ch@gmail.com> |
11268 | ||
11269 | * disk/i386/pc/biosdisk.c (cd_start): Removed. | |
11270 | (cd_count): Removed. | |
11271 | (cd_drive): New variable. | |
11272 | (grub_biosdisk_get_drive): Don't check for (cdN) device. | |
11273 | (grub_biosdisk_call_hook): Likewise. | |
11274 | (grub_biosdisk_iterate): Change cdrom detection method. | |
11275 | (grub_biosdisk_open): Replace cd_start with cd_drive. | |
11276 | (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to | |
11277 | detect cdrom device. | |
11278 | ||
11279 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START): | |
11280 | Removed. | |
11281 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed. | |
11282 | (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro. | |
11283 | (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise. | |
11284 | (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise. | |
11285 | (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise. | |
11286 | (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise. | |
11287 | (GRUB_BIOSDISK_CDTYPE_MASK): Likewise. | |
11288 | (grub_biosdisk_cdrp): New structure. | |
11289 | (grub_biosdisk_get_cdinfo_int13_extensions): New function. | |
11290 | ||
11291 | * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable. | |
11292 | ||
11293 | * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root | |
11294 | device. | |
11295 | ||
11296 | * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions): | |
11297 | New function. | |
11298 | ||
68e7fc7a | 11299 | 2008-03-20 Robert Millan <rmh@aybabtu.com> |
11300 | ||
11301 | Remove 2 TiB limit in ata.mod. | |
11302 | * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t. | |
11303 | (grub_ata_dumpinfo): Print sector count with 0x%llx. | |
11304 | (grub_ata_identify): Interpret `&info16[100]' as a pointer to | |
11305 | grub_uint64_t instead of grub_uint32_t. | |
11306 | ||
38ad2cf5 | 11307 | 2008-03-05 Bean <bean123ch@gmail.com> |
11308 | ||
11309 | * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function. | |
11310 | (grub_multiboot): Set boot device. | |
11311 | ||
11312 | * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF. | |
11313 | ||
2b89344e | 11314 | 2008-03-02 Bean <bean123ch@gmail.com> |
11315 | ||
11316 | * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of | |
11317 | symlink_buffer. | |
11318 | ||
87a95d1f | 11319 | 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> |
11320 | ||
11321 | * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and | |
11322 | texinfo.tex. | |
11323 | ||
11324 | * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly | |
11325 | modified. | |
11326 | ||
11327 | * docs/fdl.texi: New file. | |
f19dbdb7 | 11328 | |
87a95d1f | 11329 | * docs/mdate-sh: New file. Copied from gnulib. |
11330 | * docs/texinfo.tex: Likewise. | |
11331 | ||
11332 | * config.guess: Updated from gnulib. | |
11333 | * install-sh: Likewise. | |
11334 | ||
7dc15d8e | 11335 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
11336 | ||
11337 | * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod. | |
11338 | (aout_mod_SOURCES): New variable. | |
11339 | (aout_mod_CFLAGS): Likewise. | |
11340 | (aout_mod_LDFLAGS): Likewise. | |
11341 | ||
11342 | * conf/i386-ieee1275.rmk: Likewise. | |
11343 | ||
b00ab696 | 11344 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
11345 | ||
11346 | * util/update-grub.in: Reorganise terminal validity check. Accept | |
11347 | `ieee1275:console' (OLPC) and `*:gfxterm' as valid too. | |
11348 | Based on suggestion by Franklin PIAT. | |
11349 | ||
79ca2d78 | 11350 | 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de> |
11351 | ||
11352 | * include/grub/util/getroot.h (grub_util_check_block_device): Export new | |
11353 | function. | |
11354 | * util/getroot.c (grub_util_check_block_device): New function that | |
11355 | returns the given argument if it is a block device and returns NULL else. | |
11356 | * util/grub-probe.c (argument_is_device): New variable. | |
11357 | (probe): Promote device_name from a variable to an argument. Receive | |
11358 | device_name from grub_util_check_block_device() if path is NULL and from | |
11359 | grub_guess_root_device() else. Do not free() device_name anymore. | |
f19dbdb7 | 11360 | (options): Introduce new parameter '-d, --device'. |
79ca2d78 | 11361 | (main): Add description of the new parameter to the help screen. |
11362 | Rename path variable to argument. Set argument_is_device if the '-d' | |
11363 | option is given. Pass argument to probe() depending on | |
11364 | argument_is_device. | |
11365 | ||
0d16e571 | 11366 | 2008-02-24 Bean <bean123ch@gmail.com> |
11367 | ||
11368 | * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro. | |
11369 | (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise. | |
11370 | (GRUB_ISO9660_VOLDESC_SUPP): Likewise. | |
11371 | (GRUB_ISO9660_VOLDESC_PART): Likewise. | |
11372 | (GRUB_ISO9660_VOLDESC_END): Likewise. | |
11373 | (grub_iso9660_primary_voldesc): New member escape. | |
11374 | (grub_iso9660_data): New member joliet. | |
11375 | (grub_iso9660_convert_string): New function. | |
11376 | (grub_iso9660_mount): Detect joliet extension. | |
11377 | (grub_iso9660_iterate_dir): Convert filename when joliet is detected. | |
11378 | (grub_iso9660_iso9660_label): Likewise. | |
11379 | ||
11380 | * conf/common.rmk (pkgdata_MODULES): Add udf.mod. | |
11381 | (grub_setup_SOURCES): Add fs/udf.c. | |
11382 | (grub_fstest_SOURCES): Likewise. | |
11383 | (udf_mod_SOURCES): New variable. | |
11384 | (udf_mod_CFLAGS): Likewise. | |
11385 | (udf_mod_LDFLAGS): Likewise. | |
11386 | ||
11387 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c. | |
11388 | (grub_emu_SOURCES): Likewise. | |
11389 | ||
11390 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
11391 | ||
11392 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11393 | ||
11394 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
11395 | ||
11396 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11397 | ||
11398 | * fs/udf.c: New file. | |
11399 | ||
8a594a17 | 11400 | 2008-02-24 Robert Millan <rmh@aybabtu.com> |
11401 | ||
11402 | * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES) | |
11403 | (normal/lexer.c_DEPENDENCIES): New variables. | |
11404 | * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
11405 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
11406 | * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES) | |
11407 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
11408 | * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES) | |
11409 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
11410 | * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
11411 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
11412 | * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
11413 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
11414 | ||
2dc33c03 | 11415 | 2008-02-23 Robert Millan <rmh@aybabtu.com> |
11416 | ||
11417 | * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member, | |
11418 | since they were intended to be in hex. This didn't break previously | |
11419 | because of a bug in gpt_partition_map_iterate() (see below). | |
11420 | ||
11421 | (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp' | |
11422 | when checking the validity of GPT header. | |
11423 | Remove `partno', since it always provides the same information as `i'. | |
11424 | ||
f6f4cfb0 | 11425 | 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org> |
11426 | ||
11427 | * include/grub/efi/time.h: Fix a wrong comment. | |
11428 | ||
79ff665f | 11429 | 2008-02-19 Pavel Roskin <proski@gnu.org> |
11430 | ||
11431 | * kern/rescue.c (grub_enter_rescue_mode): Improve initial | |
11432 | message. | |
11433 | ||
d38e24c2 | 11434 | 2008-02-19 Bean <bean123ch@gmail.com> |
11435 | ||
11436 | * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod. | |
11437 | (aout_mod_SOURCES): New variable. | |
11438 | (aout_mod_CFLAGS): Likewise. | |
11439 | (aout_mod_LDFLAGS): Likewise. | |
11440 | (_bsd_mod_SOURCES): New variable. | |
11441 | (_bsd_mod_CFLAGS): Likewise. | |
11442 | (_bsd_mod_LDFLAGS): Likewise. | |
11443 | (bsd_mod_SOURCES): New variable. | |
11444 | (bsd_mod_CFLAGS): Likewise. | |
11445 | (bsd_mod_LDFLAGS): Likewise. | |
11446 | ||
11447 | * include/grub/aout.h: New file. | |
11448 | ||
11449 | * include/grub/i386/loader.h (grub_unix_real_boot): New function. | |
11450 | ||
11451 | * include/grub/i386/bsd.h: New file. | |
11452 | ||
11453 | * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC | |
11454 | to make it public. | |
11455 | ||
11456 | * kern/elf.c (grub_elf32_load): Get the physical address after the hook | |
11457 | function is called, so that it's possible to change it inside the hook. | |
11458 | (grub_elf64_load): Likewise. | |
11459 | (grub_elf_file): Don't close the file if elf header is not found. | |
11460 | (grub_elf_close): Close the file if grub_elf_file fails (The new | |
11461 | grub_elf_file won't close it). | |
11462 | (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize. | |
11463 | (grub_elf64_size): Likewise. | |
11464 | ||
11465 | * kern/i386/loader.S (grub_unix_real_boot): New function. | |
11466 | ||
11467 | * loader/aout.c: New file. | |
11468 | ||
11469 | * loader/i386/bsd.c: New file. | |
11470 | ||
11471 | * loader/i386/bsd_normal.c: New file. | |
11472 | ||
11473 | * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format. | |
11474 | ||
11475 | * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it | |
fe987087 | 11476 | can test other formats. |
d38e24c2 | 11477 | |
b93bdb0f | 11478 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
11479 | ||
11480 | * partmap/gpt.c: Include `<grub/gpt_partition.h>'. | |
11481 | (grub_gpt_partition_type_empty): Redefine with macro from | |
11482 | `<grub/gpt_partition.h>'. | |
11483 | (gpt_partition_map_iterate): Adjust partition type comparison. | |
11484 | ||
11485 | Export `entry' as partmap-specific `part.data' struct. | |
11486 | (grub_gpt_header, grub_gpt_partentry): Move from here ... | |
11487 | ||
11488 | * include/grub/gpt_partition.h (grub_gpt_header) | |
11489 | (grub_gpt_partentry): ... to here (new file). | |
11490 | ||
11491 | * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'. | |
11492 | ||
11493 | (grub_gpt_partition_type_bios_boot): New const variable, defined | |
11494 | with macro from `<grub/gpt_partition.h>'. | |
11495 | ||
11496 | (setup): Replace `first_start' with `embed_region', which keeps | |
11497 | track of the embed region (and is partmap-agnostic). | |
11498 | ||
11499 | Replace find_first_partition_start() with find_usable_region(), | |
11500 | which finds a usable region for embedding using partmap-specific | |
11501 | knowledge (supports PC/MSDOS and GPT). | |
11502 | ||
11503 | Fix all assumptions that the embed region start at sector 1, using | |
11504 | `embed_region.start' from now on. Similarly, use `embed_region.end' | |
11505 | rather than `first_start' to calculate available size. | |
11506 | ||
11507 | In grub_util_info() message, replace "into after the MBR" with an | |
11508 | indication of the specific sector our embed region starts at. | |
11509 | ||
66cb40f6 | 11510 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
11511 | ||
11512 | * DISTLIST: Replace `commands/ieee1275/halt.c' and | |
11513 | `commands/ieee1275/reboot.c' with `commands/halt.c' and | |
11514 | `commands/reboot.c'. | |
11515 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
11516 | (halt_mod_SOURCES): Likewise. | |
11517 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
11518 | (halt_mod_SOURCES): Likewise. | |
11519 | ||
b7202015 | 11520 | 2008-02-17 Christian Franke <franke@computer.org> |
11521 | ||
11522 | * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key. | |
11523 | ||
32b0fc49 | 11524 | 2008-02-17 Robert Millan <rmh@aybabtu.com> |
11525 | ||
11526 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
11527 | set `first_start' to 0 for non-PC/MSDOS partition maps. | |
11528 | ||
aca63502 | 11529 | 2008-02-16 Robert Millan <rmh@aybabtu.com> |
11530 | ||
11531 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
11532 | do not assume partition map is PC/MSDOS before performing checks that | |
11533 | are specific to that layout. | |
11534 | ||
0de8be86 | 11535 | 2008-02-13 Robert Millan <rmh@aybabtu.com> |
11536 | ||
11537 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove | |
11538 | `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'. | |
11539 | * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs. | |
11540 | ||
c3db8364 | 11541 | 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org> |
11542 | ||
11543 | * configure.ac: Only a cosmetic change on the handling of | |
11544 | -fno-stack-protector. | |
11545 | ||
f714229e | 11546 | 2008-02-12 Alexandre Boeglin <alex@boeglin.org> |
11547 | ||
c3db8364 | 11548 | * conf/i386-efi.rmk (grub_emu_SOURCES): Replace |
11549 | commands/i386/pc/halt.c and reboot.c by commands/halt.c and | |
11550 | reboot.c. | |
f714229e | 11551 | (grub_install_SOURCES): Add halt.mod and reboot.mod. |
11552 | (halt_mod_SOURCES): New variable. | |
11553 | (halt_mod_CFLAGS): Likewise. | |
11554 | (halt_mod_LDFLAGS): Likewise. | |
11555 | (reboot_mod_SOURCES): Likewise. | |
11556 | (reboot_mod_CFLAGS): Likewise. | |
11557 | (reboot_mod_LDFLAGS): Likewise. | |
11558 | ||
c3db8364 | 11559 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace |
11560 | commands/ieee1275/halt.c and reboot.c by commands/halt.c and | |
11561 | reboot.c. | |
f714229e | 11562 | (halt_mod_SOURCES): Likewise. |
11563 | (reboot_mod_SOURCES): Likewise. | |
11564 | ||
c3db8364 | 11565 | * conf/i386-pc.rmk (grub_emu_SOURCES): Replace |
11566 | commands/i386/pc/reboot.c by commands/reboot.c. | |
f714229e | 11567 | (reboot_mod_SOURCES): Likewise. |
11568 | ||
11569 | * commands/i386/pc/reboot.c: merge this file ... | |
11570 | ||
11571 | * commands/ieee1275/reboot.c: ... and this file ... | |
11572 | ||
11573 | * commands/reboot.c: ... to this file. | |
c3db8364 | 11574 | Add some precompiler directive to include the correct header for |
11575 | each machine. | |
f714229e | 11576 | |
11577 | * commands/ieee1275/halt.c: move this file ... | |
11578 | ||
11579 | * commands/halt.c: ... to here. | |
c3db8364 | 11580 | Add some precompiler directive to include the correct header for |
11581 | each machine. | |
f714229e | 11582 | |
11583 | * include/grub/efi/efi.h (grub_reboot): New function declaration. | |
11584 | (grub_halt): Likewise. | |
11585 | ||
11586 | * kern/efi/efi.c (grub_reboot): New function. | |
11587 | (grub_halt): Likewise. | |
11588 | ||
c74493e0 | 11589 | 2008-02-12 Robert Millan <rmh@aybabtu.com> |
11590 | ||
11591 | * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before | |
11592 | /dev (like it is done for /dev/mapper). This doesn't provide support | |
11593 | for EVMS, but at least it is now easy to identify the problem when it | |
11594 | arises. | |
11595 | ||
d0db4b04 | 11596 | 2008-02-11 Robert Millan <rmh@aybabtu.com> |
11597 | ||
11598 | * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition) | |
11599 | (grub_util_biosdisk_get_grub_dev): Check open() exit status by | |
11600 | comparing it with -1, not 0. | |
11601 | ||
bf748642 | 11602 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
11603 | ||
11604 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and | |
11605 | `disk/lvm.c'. | |
11606 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11607 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
11608 | ||
11609 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and | |
11610 | `disk/lvm.c' to the end of the list. | |
11611 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
11612 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
11613 | ||
b5db202a | 11614 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
11615 | ||
11616 | * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call | |
11617 | grub_print_error() instead. This will let user know why we're entering | |
11618 | rescue mode. | |
11619 | Based on suggestions from Sam Morris. | |
11620 | ||
83abee31 | 11621 | 2008-02-10 Alexandre Boeglin <alex@boeglin.org> |
11622 | ||
11623 | * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg() | |
11624 | on remaining N args, instead of "--" arg N times. | |
11625 | ||
78d5a08b | 11626 | 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi> |
11627 | ||
11628 | * font/manager.c (unknown_glyph): Added variable for unknown glyph. | |
11629 | (fill_with_default_glyph): Changed to use unknown_glyph for fill | |
11630 | pattern for unknown glyphs. | |
11631 | ||
68807e5f | 11632 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11633 | ||
11634 | * configure.ac: Probe for `help2man'. | |
11635 | * Makefile.in (builddir): New variable. | |
11636 | (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it, | |
11637 | or otherwise add a few flags/options to it. | |
11638 | (install-local): For every executable utility or script that is | |
11639 | installed, invoke $(HELP2MAN) to install a manpage based on --help | |
11640 | output. | |
11641 | ||
11642 | * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so | |
11643 | that it doesn't prevent --help from working in build tree. | |
11644 | ||
11645 | * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org' | |
11646 | with `bug-grub@gnu.org'. | |
11647 | * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise. | |
11648 | * util/update-grub.in (usage): New function. | |
11649 | Implement proper argument check, with support for --help and --version | |
11650 | (as well as existing -y). | |
11651 | ||
11652 | 2008-02-09 Christian Franke <franke@computer.org> | |
0d9ff7f0 | 11653 | |
11654 | * commands/cat.c (grub_cmd_cat): Print '\r' as hex to | |
11655 | avoid overwriting previous output. | |
11656 | * kern/rescue.c (grub_rescue_cmd_cat): Likewise. | |
11657 | ||
c1962162 | 11658 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11659 | ||
11660 | * normal/menu.c (run_menu): If timeout is set to zero, don't bother | |
11661 | drawing the menu. | |
11662 | ||
3dac2e3f | 11663 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11664 | ||
11665 | * commands/sleep.c: New file. | |
11666 | * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'. | |
11667 | (sleep_mod_SOURCES): New variable. | |
11668 | (sleep_mod_CFLAGS): Likewise. | |
11669 | (sleep_mod_LDFLAGS): Likewise. | |
11670 | ||
7a634e08 | 11671 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11672 | ||
11673 | * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for | |
11674 | situations in which we can deduce the RAID size and the superblock | |
11675 | doesn't match it. | |
11676 | ||
b92f0c18 | 11677 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11678 | ||
11679 | * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct | |
11680 | and return a grub_diskmemberlist_t composed of LVM physical volumes. | |
11681 | [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member. | |
11682 | ||
11683 | * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct | |
11684 | and return a grub_diskmemberlist_t composed of physical array members. | |
11685 | [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member. | |
11686 | ||
11687 | * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct | |
11688 | prototype. | |
11689 | [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer. | |
11690 | [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration. | |
11691 | [GRUB_UTIL] (grub_disk_memberlist_t): New typedef. | |
11692 | ||
11693 | * util/grub-probe.c (probe): Move partmap probing code from here ... | |
11694 | (probe_partmap): ... to here. | |
11695 | (probe): Use probe_partmap() once for the disk we're probing, and | |
11696 | additionally, when such disk contains a memberlist() struct member, | |
11697 | once for each disk that is contained in the structure returned by | |
11698 | memberlist(). | |
11699 | ||
91a4bf68 | 11700 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
11701 | ||
11702 | * util/grub-probe.c (main): When `verbosity > 1', set `debug' | |
11703 | environment variable to 'all' in order to obtain debug output from | |
11704 | non-util/ code. | |
11705 | * util/i386/pc/grub-setup.c (main): Likewise. | |
11706 | ||
a96f9caa | 11707 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
11708 | ||
11709 | * disk/raid.c (grub_raid_scan_device): Check for | |
11710 | `array->device[sb.this_disk.number]' rather than for | |
11711 | `array->device[sb.this_disk.number]->name', since the latter is not | |
fe6b695a | 11712 | guaranteed to be accessible. |
a96f9caa | 11713 | |
b37a9222 | 11714 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
11715 | ||
11716 | * disk/raid.c: Update copyright. | |
11717 | * fs/cpio.c: Likewise. | |
11718 | * include/grub/raid.h: Likewise. | |
11719 | * loader/i386/pc/multiboot.c: Likewise. | |
11720 | * util/hostfs.c: Likewise. | |
11721 | ||
5626aee1 | 11722 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
11723 | ||
11724 | * include/grub/raid.h (struct grub_raid_array): Change type of `device' | |
11725 | to a grub_disk_t array. | |
11726 | * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with | |
11727 | `device[x]'. | |
11728 | (grub_raid_scan_device): Replace `device[x].name' accesses with | |
11729 | `device[x]->name'. Simplify initialization of `array->device[x]'. | |
11730 | ||
554f0187 | 11731 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
11732 | ||
11733 | * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few | |
11734 | grub_dprintf() calls. | |
11735 | * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range | |
11736 | error message. | |
11737 | ||
1ec8425d | 11738 | 2008-02-07 Christian Franke <franke@computer.org> |
11739 | ||
11740 | * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello | |
11741 | instead of fseek and ftell to support large files. | |
11742 | (grub_hostfs_read): Likewise. | |
11743 | ||
f2156fda | 11744 | 2008-02-07 Robert Millan <rmh@aybabtu.com> |
11745 | ||
11746 | Patch from Jeroen Dekkers. | |
11747 | * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk | |
fe6b695a | 11748 | failure, since successfully reading all array members might not be |
f2156fda | 11749 | required. |
11750 | ||
9216e0e7 | 11751 | 2008-02-06 Robert Millan <rmh@aybabtu.com> |
11752 | ||
11753 | * util/grub-probe.c (probe): Simplify partmap probing (with the | |
11754 | assumption that the first word up to the underscore equals to | |
11755 | the module name). | |
11756 | ||
b0dfd29a | 11757 | 2008-02-06 Christian Franke <franke@computer.org> |
11758 | ||
11759 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE | |
11760 | (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on | |
11761 | last block of a cpio or tar stream. | |
11762 | Check for "TRAILER!!!" instead of any empty data | |
11763 | block to detect last block of a cpio stream. | |
11764 | (grub_cpio_dir): Fix constness of variable np. | |
11765 | (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if | |
11766 | cpio or tar trailer is detected. This fixes a crash | |
11767 | on open of a non existing file. | |
11768 | ||
c32865bf | 11769 | 2008-02-05 Bean <bean123ch@gmail.com> |
11770 | ||
11771 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical | |
11772 | address of entry. | |
11773 | (grub_multiboot_load_elf64): Likewise. | |
11774 | (grub_multiboot): Initialize mbi structure. | |
11775 | ||
11776 | * util/grub-fstest.c: Don't include unused header file script.h. | |
11777 | ||
fe6b695a | 11778 | * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning |
c32865bf | 11779 | of file. |
11780 | (grub_fstest_SOURCES): Likewise. | |
11781 | ||
409480b7 | 11782 | 2008-02-05 Robert Millan <rmh@aybabtu.com> |
11783 | ||
11784 | * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT) | |
11785 | (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END) | |
11786 | (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC) | |
11787 | (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros. | |
11788 | ||
11789 | * kern/i386/pc/startup.S: Include `<grub/term.h>'. | |
11790 | (translation_table): Replace hardcoded values with macros | |
11791 | provided by `<grub/term.h>'. | |
11792 | ||
11793 | * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'. | |
11794 | (keyboard_map): Correct/add a few values, with macros provided | |
11795 | by `<grub/term.h>'. | |
11796 | (keyboard_map_shift): Zero values that don't differ from their | |
11797 | `keyboard_map' equivalents. | |
11798 | (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling. | |
11799 | Discard the second scan code that is always sent by Caps lock. | |
11800 | Only use `keyboard_map_shift' when it provides a non-zero value, | |
11801 | otherwise fallback to `keyboard_map'. | |
11802 | ||
99fadbaa | 11803 | 2008-02-04 Bean <bean123ch@gmail.com> |
11804 | ||
11805 | * Makefile.in (enable_grub_fstest): New variable. | |
11806 | ||
11807 | * conf/common.rmk (grub_fstest_init.lst): New rule. | |
11808 | (grub_fstest_init.h): Likewise. | |
11809 | (grub_fstest_init.c): Likewise. | |
11810 | (util/grub-fstest.c_DEPENDENCIES): New variable. | |
11811 | (grub_fstest_SOURCES): Likewise. | |
11812 | ||
11813 | * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest. | |
11814 | ||
11815 | * util/grub-fstest.c: New file. | |
11816 | ||
bf567c50 | 11817 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
11818 | ||
11819 | Make grub-setup handle a separate root device. | |
f19dbdb7 | 11820 | |
bf567c50 | 11821 | * util/i386/pc/grub-setup.c (setup): Always open the root device, |
11822 | so that the root device can be compared with the destination | |
11823 | device. | |
11824 | When embedding the core image, if the root and destination devices | |
11825 | are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to | |
11826 | 0xFF. | |
11827 | When not embedding, set ROOT_DRIVE to 0xFF. | |
f19dbdb7 | 11828 | |
9be6b98b | 11829 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
11830 | ||
11831 | Add support for having a grub directory in a different drive. This | |
11832 | is still only the data handling part. | |
f19dbdb7 | 11833 | |
9be6b98b | 11834 | * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF. |
11835 | (codestart): Save %dh in GRUB_ROOT_DRIVE. | |
11836 | (grub_root_drive): New variable. | |
11837 | ||
11838 | * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE | |
11839 | instead of GRUB_BOOT_DRIVE to construct a device name. Set | |
11840 | GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it | |
11841 | as it was. | |
11842 | ||
11843 | * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype. | |
11844 | ||
11845 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New | |
11846 | macro. | |
11847 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f. | |
11848 | ||
11849 | * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this | |
11850 | is bogus, because PXE booting does not specify any drive | |
11851 | correctly. | |
11852 | ||
11853 | * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I | |
11854 | am not sure if this is really correct. | |
11855 | ||
11856 | * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive | |
11857 | is always identical to the boot drive when booting from a CD. | |
11858 | ||
11859 | * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any | |
11860 | longer. | |
11861 | (root_drive): New variable. | |
11862 | (real_start): Unconditionally set %dh to ROOT_DRIVE. | |
11863 | (setup_sectors): Push %dx right after popping it, because %dh will | |
11864 | be modified later. | |
11865 | (copy_buffer): Restore %dx. | |
11866 | ||
e0ca0677 | 11867 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
11868 | ||
11869 | * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to | |
11870 | use `cdboot.img' for cdrom images. | |
11871 | ||
3b3f6629 | 11872 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
11873 | ||
11874 | * util/grub.d/00_header.in: Issue scripting commands for GRUB to | |
11875 | only setup gfxterm when `font' command has succeeded. | |
11876 | ||
d42b3672 | 11877 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
11878 | ||
11879 | * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS] | |
11880 | (grub_rescue_cmd_multiboot_loader) | |
11881 | (grub_rescue_cmd_module_loader): Enable multiboot1 calls. | |
11882 | ||
fa370ea6 | 11883 | 2008-02-03 Pavel Roskin <proski@gnu.org> |
11884 | ||
e0c5dacb | 11885 | * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop |
fa370ea6 | 11886 | %edx and %esi from stack only after grub_gate_a20() is called. |
11887 | grub_gate_a20() clobbers %edx. | |
11888 | ||
f2a76e1d | 11889 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
11890 | ||
11891 | * configure.ac (AC_INIT): Bumped to 1.96. | |
11892 | ||
11893 | * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c, | |
11894 | commands/lspci.c,disk/memdisk.c, include/grub/pci.h, | |
11895 | include/grub/i386/pc/pci.h, video/readers/jpeg.c, and | |
11896 | video/readers/png.c. | |
11897 | ||
90fd32d1 | 11898 | 2008-02-03 Bean <bean123ch@gmail.com> |
9be665dd | 11899 | |
11900 | * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img. | |
11901 | (cdboot_img_SOURCES): New variable. | |
11902 | (cdboot_img_ASFLAGS): New variable. | |
11903 | (cdboot_img_LDFLAGS): New variable. | |
11904 | ||
11905 | * boot/i386/pc/cdboot.S: New file. | |
11906 | ||
11907 | * disk/i386/pc/biosdisk.c (cd_start): New variable. | |
11908 | (cd_count): Likewise. | |
11909 | (grub_biosdisk_get_drive): Add support for cd device. | |
11910 | (grub_biosdisk_call_hook): Likewise. | |
11911 | (grub_biosdisk_iterate): Likewise. | |
11912 | (grub_biosdisk_open): Likewise. | |
11913 | (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro. | |
11914 | (grub_biosdisk_rw): Support reading from cd device. | |
11915 | (GRUB_MOD_INIT): Iterate cd devices. | |
11916 | ||
11917 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro. | |
11918 | (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise. | |
11919 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise. | |
11920 | ||
11921 | * kern/i386/pc/init.c (make_install_device): Check for cd device. | |
11922 | ||
4020aa53 | 11923 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
11924 | ||
11925 | * commands/read.c: New file. | |
11926 | * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'. | |
11927 | (read_mod_SOURCES): New variable. | |
11928 | (read_mod_CFLAGS): Likewise. | |
11929 | (read_mod_LDFLAGS): Likewise. | |
11930 | ||
e03a1132 | 11931 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
11932 | ||
11933 | * normal/main.c (grub_normal_execute): Check for `menu->size' when | |
11934 | determining whether menu has to be displayed. | |
11935 | ||
58c69220 | 11936 | 2008-02-02 Marco Gerards <marco@gnu.org> |
11937 | ||
11938 | * bus/pci.c: New file. | |
11939 | ||
11940 | * include/grub/pci.h: Likewise. | |
11941 | ||
11942 | * include/grub/i386/pc/pci.h: Likewise. | |
11943 | ||
11944 | * commands/lspci.c: Likewise. | |
11945 | ||
11946 | * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and | |
11947 | `lspci.mod'. | |
11948 | (pci_mod_SOURCES): New variable. | |
11949 | (pci_mod_CFLAGS): Likewise. | |
11950 | (pci_mod_LDFLAGS): Likewise. | |
11951 | (lspci_mod_SOURCES): Likewise. | |
11952 | (lspci_mod_CFLAGS): Likewise. | |
f19dbdb7 | 11953 | (lspci_mod_LDFLAGS): Likewise. |
58c69220 | 11954 | |
c004e1b4 | 11955 | 2008-02-02 Bean <bean123ch@gmail.com> |
11956 | ||
11957 | * fs/ufs.c (INODE_BLKSZ): Fix incorrect value. | |
11958 | (grub_ufs_get_file_block): Fix indirect block calculation problem. | |
11959 | ||
11960 | * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk. | |
11961 | (grub_xfs_btree_node): New structure. | |
11962 | (grub_xfs_btree_root): New structure. | |
11963 | (grub_xfs_inode): New members nblocks, extsize, nextents and btree. | |
11964 | (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents. | |
11965 | (GRUB_XFS_EXTENT_BLOCK): Likewise. | |
11966 | (GRUB_XFS_EXTENT_SIZE): Likewise. | |
11967 | (grub_xfs_read_block): Support btree format type. | |
11968 | (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook. | |
11969 | Use directory block as basic unit. | |
11970 | ||
11971 | * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block. | |
11972 | ||
11973 | * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as | |
11974 | __attribute__ ((__regparm__ (1))). | |
11975 | ||
f95562bf | 11976 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
11977 | ||
11978 | Correct a mistake in previous commit. | |
11979 | ||
11980 | * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
11981 | top. | |
11982 | (normal/command.c_DEPENDENCIES): New variable. | |
11983 | ||
7d31f41f | 11984 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
11985 | ||
11986 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
11987 | top. | |
11988 | (normal/command.c_DEPENDENCIES): New variable. | |
11989 | (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables. | |
11990 | * conf/i386-ieee1275.rmk: Likewise. | |
11991 | * conf/i386-linuxbios.rmk: Likewise. | |
11992 | * conf/i386-pc.rmk: Likewise. | |
11993 | * conf/sparc64-ieee1275.rmk: Likewise. | |
11994 | * conf/powerpc-ieee1275.rmk: Likewise. | |
11995 | (grub_emu_SOURCES): Add `fs/fshelp.c'. | |
11996 | ||
11997 | * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it. | |
11998 | ||
60b6be74 | 11999 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
12000 | ||
12001 | * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf() | |
12002 | call at beginning of function. | |
12003 | ||
078522ab | 12004 | 2008-01-31 Pavel Roskin <proski@gnu.org> |
12005 | ||
12006 | * util/powerpc/ieee1275/grub-mkrescue.in: New file. | |
d2c11005 | 12007 | * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable. |
12008 | (grub_mkrescue_SOURCES): Likewise. | |
078522ab | 12009 | * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in. |
12010 | ||
ccaa8a5f | 12011 | 2008-01-30 Robert Millan <rmh@aybabtu.com> |
12012 | ||
12013 | * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
12014 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ... | |
12015 | * conf/common.rmk (util/grub-probe.c_DEPENDENCIES) | |
12016 | (grub_probe_SOURCES): ... to here. | |
12017 | ||
12018 | * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
12019 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove. | |
12020 | * conf/i386-ieee1275.rmk: Likewise. | |
12021 | * conf/i386-linuxbios.rmk: Likewise. | |
12022 | * conf/powerpc-ieee1275.rmk: Likewise. | |
12023 | ||
ae5a9cd7 | 12024 | 2008-01-30 Tristan Gingold <gingold@free.fr> |
12025 | ||
12026 | * kern/rescue.c: Silently accept empty lines. | |
12027 | ||
70bc2ef2 | 12028 | 2008-01-29 Bean <bean123ch@gmail.com> |
12029 | ||
12030 | * boot/i386/pc/lnxboot.S (data_start): Code cleanup. | |
12031 | (real_code_2): Code cleanup and change comment style. | |
12032 | (move_memory): Avoid using 32-bit address mode. | |
12033 | ||
6a4d50ea | 12034 | 2008-01-29 Bean <bean123ch@gmail.com> |
12035 | ||
12036 | * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'. | |
12037 | (png_mod_SOURCES): New variable. | |
12038 | (png_mod_CFLAGS): Likewise. | |
12039 | (png_mod_LDFLAGS): Likewise. | |
12040 | ||
12041 | * video/readers/png.c: New file. | |
12042 | ||
11cc30ac | 12043 | 2008-01-28 Robert Millan <rmh@aybabtu.com> |
12044 | ||
12045 | * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro. | |
12046 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove | |
12047 | `ifndef GRUB_MOD_GAP' hack. | |
12048 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
12049 | ||
3abc589f | 12050 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
12051 | ||
12052 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip | |
12053 | `GRUB_MOD_GAP' for platforms in which it's not defined. | |
962ca133 | 12054 | * util/elf/grub-mkimage.c (add_segments): Likewise. |
3abc589f | 12055 | |
e1907778 | 12056 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
12057 | ||
12058 | Get grub-emu to build again (including parallel builds). | |
12059 | ||
12060 | * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable. | |
12061 | Split into ... | |
12062 | (util/grub-emu.c_DEPENDENCIES): ... this, ... | |
12063 | (normal/execute.c_DEPENDENCIES): ... this, ... | |
12064 | (grub-emu_DEPENDENCIES): ... and this. | |
12065 | ||
12066 | * conf/i386-efi.rmk: Likewise. | |
12067 | * conf/i386-linuxbios.rmk: Likewise. | |
12068 | * conf/i386-ieee1275.rmk: Likewise. | |
12069 | * conf/powerpc-ieee1275.rmk: Likewise. | |
12070 | (grub_emu_SOURCES): Remove duplicated `kern/file.c'. | |
12071 | ||
2216b101 | 12072 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
12073 | ||
12074 | * NEWS: Add a few items. | |
12075 | ||
f75172d9 | 12076 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
12077 | ||
12078 | Fix parallel builds with grub-emu. Based on earlier commit for | |
12079 | grub-probe and grub-setup. | |
12080 | ||
12081 | * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
12082 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
12083 | * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
12084 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
12085 | * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
12086 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
12087 | * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
12088 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
12089 | * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
12090 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
12091 | ||
3f51de77 | 12092 | 2008-01-27 Pavel Roskin <proski@gnu.org> |
12093 | ||
12094 | * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP | |
12095 | to create a gap between _end and the modules added to the image | |
12096 | with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC. | |
12097 | * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP. | |
12098 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
12099 | ||
2033f53e | 12100 | 2008-01-26 Pavel Roskin <proski@gnu.org> |
12101 | ||
12102 | * kern/dl.c (grub_dl_load): Don't abort if prefix is not set, | |
12103 | just return an error. | |
12104 | ||
22da1f6f | 12105 | 2008-01-26 Bean <bean123ch@gmail.com> |
12106 | ||
12107 | * fs/reiserfs.c (grub_fshelp_node): New member next_offset. | |
12108 | (grub_reiserfs_get_item): Save offset of the next item. | |
12109 | (grub_reiserfs_iterate_dir): Use next_offset to find next item. | |
12110 | ||
2a9525e6 | 12111 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
12112 | ||
12113 | * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to | |
12114 | make all filesystem sources appear together (possibly fixing omissions | |
12115 | while at it). | |
12116 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
12117 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
12118 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
12119 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
12120 | ||
12121 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally, | |
12122 | add `kern/file.c'. | |
12123 | * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise. | |
12124 | * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
12125 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise. | |
12126 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
12127 | ||
12128 | * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'. | |
12129 | (probe): Add a sanity check to make sure of our ability to read | |
12130 | requested files when probing for filesystem type. | |
12131 | ||
12132 | * genmk.rb: Update copyright year (2007). | |
12133 | ||
12134 | * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init) | |
12135 | (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init) | |
12136 | (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init) | |
12137 | (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init) | |
12138 | (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init) | |
12139 | : Remove function prototypes. | |
12140 | ||
b95f71b5 | 12141 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
12142 | ||
12143 | Revert my previous commits (based on wrong assumption of how grub_errno | |
12144 | works). | |
12145 | ||
fe6b695a | 12146 | * kern/disk.c (grub_disk_open): Stop resetting grub_errno. |
b95f71b5 | 12147 | * kern/file.c (grub_file_open): Likewise. |
12148 | ||
d08bbb49 | 12149 | 2008-01-24 Pavel Roskin <proski@gnu.org> |
12150 | ||
12151 | * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares | |
12152 | that hang if GRUB tries to setup colors. | |
12153 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set | |
12154 | colors for firmwares that don't support it. | |
12155 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): | |
12156 | Recognize Open Hack'Ware, set flags to work around its | |
12157 | limitations. | |
12158 | ||
605e36ed | 12159 | 2008-01-24 Robert Millan <rmh@aybabtu.com> |
12160 | ||
12161 | * kern/file.c (grub_file_open): Do not account previous failures of | |
12162 | unrelated functions when grub_errno is checked for. | |
12163 | Reported by Oleg Strikov. | |
12164 | ||
bac332a1 | 12165 | 2008-01-24 Bean <bean123ch@gmail.com> |
12166 | ||
12167 | * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro. | |
12168 | (grub_ufs_sblock): New member volume name. | |
12169 | (grub_ufs_find_file): Fix string copy bug. | |
12170 | (grub_ufs_label): Implement this function properly. | |
12171 | ||
12172 | * fs/hfs.c (grub_hfs_cnid_type): New enum. | |
12173 | (grub_hfs_iterate_records): Use the correct file number for extents | |
12174 | and catalog file. Fix problem in next index calculation. | |
12175 | (grub_hfs_find_node): Replace recursive function call with loop. | |
12176 | (grub_hfs_iterate_dir): Replace recursive function call with loop. | |
12177 | ||
15c80c09 | 12178 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12179 | ||
12180 | * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>', | |
12181 | `<grub/symbol.h>' and `<grub/multiboot.h>'. | |
12182 | (grub_multiboot2_real_boot): New function prototype. | |
12183 | ||
12184 | * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'. | |
12185 | [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable. | |
12186 | ||
12187 | * kern/i386/ieee1275/init.c (grub_os_area_addr) | |
12188 | (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables. | |
12189 | ||
305338fd | 12190 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12191 | ||
12192 | * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with | |
12193 | #ifdef'ed out grub_printf(). | |
12194 | ||
3ea52685 | 12195 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12196 | ||
12197 | * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out | |
12198 | grub_dprintf calls, since they make "debug=all" mode unusable. | |
12199 | (grub_console_checkkey): Likewise. | |
12200 | ||
5882ae4b | 12201 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12202 | ||
12203 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add | |
12204 | `term/i386/pc/at_keyboard.c'. | |
12205 | (pkglib_MODULES): Add `serial.mod'. | |
12206 | (serial_mod_SOURCES): New variable. | |
12207 | (serial_mod_CFLAGS): Likewise. | |
12208 | (serial_mod_LDFLAGS): Likewise. | |
12209 | ||
12210 | * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove | |
12211 | `<grub/powerpc/ieee1275/console.h>'. | |
12212 | (grub_keyboard_controller_init): New function prototype. | |
12213 | (grub_console_checkkey): Likewise. | |
12214 | (grub_console_getkey): Likewise. | |
12215 | ||
12216 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT | |
12217 | keyboard on i386. | |
12218 | ||
12219 | * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use | |
12220 | grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input. | |
12221 | ||
06ab5303 | 12222 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12223 | ||
12224 | * kern/i386/pc/init.c (make_install_device): When memdisk image is | |
12225 | present, "(memdisk)/boot/grub" becomes the default prefix. | |
12226 | ||
12227 | * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus | |
12228 | a memdisk tarball with all the modules. Add --overlay=DIR option that | |
12229 | allows users to overlay additional files into the image. | |
12230 | ||
dbb475a4 | 12231 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
12232 | ||
12233 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h' | |
12234 | and `machine/memory.h'. | |
12235 | (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'. | |
12236 | (_multiboot_mod_SOURCES): New variable. | |
12237 | (_multiboot_mod_CFLAGS): Likewise. | |
12238 | (_multiboot_mod_LDFLAGS): Likewise. | |
12239 | (multiboot_mod_SOURCES): Likewise. | |
12240 | (multiboot_mod_CFLAGS): Likewise. | |
12241 | (multiboot_mod_LDFLAGS): Likewise. | |
12242 | ||
12243 | * include/grub/i386/ieee1275/loader.h: New file. | |
12244 | ||
12245 | * include/grub/i386/ieee1275/machine.h: Likewise. | |
12246 | ||
12247 | * include/grub/i386/ieee1275/memory.h: Likewise. | |
12248 | ||
12249 | * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant) | |
12250 | variable declaration. | |
12251 | (grub_os_area_size): Likewise. | |
12252 | ||
12253 | * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size) | |
12254 | (grub_lower_mem, grub_upper_mem): New variables. | |
12255 | (grub_stop_floppy): New function (just to make | |
12256 | grub_multiboot2_real_boot() happy). | |
12257 | ||
12258 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>', | |
12259 | `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'. | |
12260 | (grub_stop): New function. | |
12261 | Include `"../realmode.S"' and `"../loader.S"'. | |
12262 | ||
12263 | * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'. | |
12264 | Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'. | |
12265 | ||
12266 | * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386, | |
12267 | rely on grub_multiboot2_real_boot() for final boot. | |
12268 | ||
25638629 | 12269 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
12270 | ||
12271 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When | |
12272 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any | |
12273 | device that doesn't look like an SD card. | |
12274 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
12275 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag. | |
12276 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect | |
12277 | OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when | |
12278 | found. | |
12279 | ||
9dad816d | 12280 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
12281 | ||
12282 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to | |
12283 | avoid claiming over our own code. | |
12284 | ||
34842f2d | 12285 | 2008-01-22 Bean <bean123ch@gmail.com> |
12286 | ||
12287 | * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'. | |
12288 | (jpeg_mod_SOURCES): New variable. | |
12289 | (jpeg_mod_CFLAGS): Likewise. | |
12290 | (jpeg_mod_LDFLAGS): Likewise. | |
12291 | ||
12292 | * video/readers/jpeg.c : New file. | |
12293 | ||
44023a28 | 12294 | 2008-01-22 Bean <bean123ch@gmail.com> |
12295 | ||
12296 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when | |
12297 | there are no more items. | |
12298 | ||
bc2d8ac6 | 12299 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12300 | ||
12301 | * kern/mm.c (grub_mm_init_region): Improve debug message. | |
12302 | ||
261bd4bc | 12303 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12304 | ||
12305 | * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable. | |
12306 | (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link | |
12307 | address. | |
12308 | (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as | |
12309 | a C macro. | |
12310 | * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro. | |
12311 | Indicates start of upper memory. | |
12312 | * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'. | |
12313 | (generate_image): Abort when image size is big enough to corrupt | |
12314 | upper memory. | |
12315 | ||
12316 | * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'. | |
12317 | (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'. | |
12318 | * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
12319 | instead of hardcoding 0xA0000. | |
12320 | * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'. | |
12321 | (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
12322 | instead of hardcoding 0xA0000. | |
12323 | ||
f970b55e | 12324 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12325 | ||
12326 | * disk/memdisk.c (memdisk_size): New variable. | |
12327 | (grub_memdisk_open): Replace grub_arch_memdisk_size() call with | |
12328 | `memdisk_size'. | |
12329 | (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk | |
12330 | image to dynamic memory. | |
12331 | (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with | |
12332 | `memdisk_size'. Free memdisk block. | |
12333 | ||
1a8b0526 | 12334 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12335 | ||
12336 | Fix detection of very small filesystems (like tar). | |
12337 | ||
12338 | * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to | |
12339 | contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than | |
12340 | GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's | |
12341 | a problem with this disk). | |
12342 | ||
6e9b4aab | 12343 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12344 | ||
12345 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message | |
12346 | on grub_biosdisk_rw_standard() error. | |
12347 | ||
0d8837b2 | 12348 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12349 | ||
12350 | * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for | |
12351 | recent changes. | |
12352 | * kern/elf.c: Likewise. | |
12353 | * kern/ieee1275/ieee1275.c: Likewise. | |
12354 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
12355 | * term/ieee1275/ofconsole.c: Likewise. | |
12356 | ||
ffd36e34 | 12357 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12358 | ||
12359 | * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'. | |
12360 | ||
3f0093d0 | 12361 | * include/grub/kernel.h (grub_arch_memdisk_addr) |
12362 | (grub_arch_memdisk_size): Moved from here ... | |
ffd36e34 | 12363 | |
3f0093d0 | 12364 | * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr) |
12365 | (grub_arch_memdisk_size): ... to here. | |
ffd36e34 | 12366 | |
6c391b21 | 12367 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12368 | ||
12369 | Mostly based on bugfix from Bean. | |
12370 | ||
12371 | * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
12372 | attribute with hook() parameter. | |
12373 | (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment() | |
12374 | declaration. | |
12375 | (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
12376 | attribute with hook() parameter. | |
12377 | (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment() | |
12378 | declaration. | |
12379 | ||
55a581dc | 12380 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
12381 | ||
12382 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'. | |
12383 | (pkglib_MODULES): Add `memdisk.mod'. | |
12384 | (memdisk_mod_SOURCES): New variable. | |
12385 | (memdisk_mod_CFLAGS): Likewise. | |
12386 | (memdisk_mod_LDFLAGS): Likewise. | |
12387 | ||
12388 | * disk/memdisk.c: New file. | |
12389 | ||
12390 | * include/grub/disk.h (grub_disk_dev_id): Add | |
12391 | `GRUB_DISK_DEVICE_MEMDISK_ID'. | |
12392 | ||
12393 | * include/grub/i386/pc/kernel.h | |
12394 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro. | |
12395 | (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4. | |
12396 | (grub_kernel_image_size): New variable declaration. | |
12397 | (grub_total_module_size): Likewise. | |
12398 | (grub_memdisk_image_size): Likewise. | |
12399 | ||
12400 | * include/grub/i386/pc/memory.h | |
12401 | (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro. | |
12402 | ||
12403 | * include/grub/kernel.h: Include `<grub/symbol.h>'. | |
12404 | (grub_arch_memdisk_addr): New variable declaration. | |
12405 | (grub_arch_memdisk_size): Likewise. | |
12406 | ||
12407 | * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function. | |
12408 | (grub_arch_memdisk_size): Likewise. | |
12409 | ||
12410 | * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable. | |
12411 | (codestart): Replace hardcoded `0x100000' with | |
12412 | `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro. | |
12413 | ||
12414 | * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'. | |
12415 | (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is | |
12416 | not NULL, append the contents of the file it refers to, at the end of | |
12417 | the compressed kernel image. Initialize `grub_memdisk_image_size' | |
12418 | variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset). | |
12419 | (options): Add "memdisk"|'m' option. | |
12420 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
12421 | parameter to generate_image(). | |
12422 | ||
3d7f54c9 | 12423 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
12424 | ||
12425 | * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug | |
12426 | grub_dprintf() calls from here ... | |
12427 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here. | |
12428 | ||
0bf74728 | 12429 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
12430 | ||
12431 | Fix detection of "real mode" when /options/real-mode? doesn't exist. | |
12432 | ||
12433 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable | |
12434 | declaration. | |
12435 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable. | |
12436 | (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set | |
12437 | `GRUB_IEEE1275_FLAG_REAL_MODE'. | |
fe6b695a | 12438 | (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer |
0bf74728 | 12439 | property). |
12440 | * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized | |
12441 | `grub_ieee1275_mmu' rather than obtaining a handler on every call. | |
12442 | ||
33bf70a7 | 12443 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
12444 | ||
fe6b695a | 12445 | Get rid of confusing function (superseded by |
33bf70a7 | 12446 | `grub_ieee1275_get_integer_property') |
12447 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove | |
12448 | prototype. | |
12449 | * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove | |
12450 | function. | |
12451 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of | |
12452 | grub_ieee1275_decode_int_4(), by obtaining integer properties directly | |
fe987087 | 12453 | in native endianness from grub_ieee1275_get_integer_property(). |
33bf70a7 | 12454 | |
e2da7d26 | 12455 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
12456 | ||
12457 | * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off" | |
12458 | command after "shut-down", since implementations differ on which | |
12459 | the command for halt is. | |
12460 | ||
59f1fd8d | 12461 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
12462 | ||
12463 | * include/grub/i386/linuxbios/console.h: Add header protection. | |
12464 | (grub_keyboard_controller_init): New function prototype. | |
12465 | * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro. | |
12466 | (KEYBOARD_COMMAND_READ): Likewise. | |
12467 | (KEYBOARD_COMMAND_WRITE): Likewise. | |
12468 | (KEYBOARD_SCANCODE_SET1): Likewise. | |
12469 | (grub_keyboard_controller_write): New function. | |
12470 | (grub_keyboard_controller_read): Likewise. | |
12471 | (grub_keyboard_controller_init): Likewise. | |
12472 | ||
12473 | * term/i386/pc/console.c: Include `<grub/machine/machine.h>'. | |
12474 | (grub_console_init): On coreboot/LinuxBIOS, call | |
12475 | grub_keyboard_controller_init(). | |
12476 | ||
5f5a7c15 | 12477 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
12478 | ||
12479 | PowerPC changes provided by Pavel Roskin. | |
12480 | ||
12481 | * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments. | |
12482 | * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn, | |
12483 | don't rely on cmain() doing it. | |
12484 | * kern/i386/ieee1275/startup.S (_start): Store %eax in | |
12485 | grub_ieee1275_entry_fn, don't rely on cmain() doing it. | |
12486 | ||
1210e168 | 12487 | 2008-01-16 Robert Millan <rmh@aybabtu.com> |
12488 | ||
12489 | * include/grub/i386/linuxbios/memory.h | |
12490 | (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro. | |
12491 | * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not | |
12492 | receive `table_header' as argument. Instead, probe for it in the | |
12493 | known memory ranges where it can be present. | |
12494 | (grub_available_iterate): Do not pass a fixed `table_header' address | |
12495 | to grub_linuxbios_table_iterate(). | |
12496 | ||
3d04eab8 | 12497 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
12498 | ||
12499 | * configure.ac: Add `i386-ieee1275' to the list of supported targets. | |
12500 | * conf/i386-ieee1275.rmk: New file. | |
12501 | * include/grub/i386/ieee1275/console.h: Likewise. | |
12502 | * include/grub/i386/ieee1275/ieee1275.h: Likewise. | |
12503 | * include/grub/i386/ieee1275/kernel.h: Likewise. | |
12504 | * include/grub/i386/ieee1275/time.h: Likewise. | |
12505 | * kern/i386/ieee1275/init.c: Likewise. | |
12506 | * kern/i386/ieee1275/startup.S: Likewise. | |
12507 | ||
d1bc1b73 | 12508 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
12509 | ||
12510 | * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero | |
12511 | when pointers are 32-bit (but still do set it to one when they are | |
12512 | 64-bit). | |
12513 | ||
66a65807 | 12514 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
12515 | ||
12516 | * include/grub/ieee1275/ieee1275.h | |
12517 | (grub_ieee1275_get_integer_property): New function prototype. | |
12518 | ||
12519 | * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'. | |
12520 | (grub_ieee1275_get_integer_property): New function. Wraps around | |
fe987087 | 12521 | grub_ieee1275_get_property() to handle endianness. |
66a65807 | 12522 | |
12523 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace | |
12524 | grub_ieee1275_get_property() with grub_ieee1275_get_integer_property() | |
fe6b695a | 12525 | where appropriate. |
66a65807 | 12526 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise. |
12527 | (grub_map): Likewise. | |
12528 | * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise. | |
12529 | ||
a83ccafd | 12530 | 2008-01-15 Bean <bean123ch@gmail.com> |
12531 | ||
12532 | * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable. | |
12533 | (grub_script_execute_cmdline): Reset grub_errno. | |
12534 | ||
12535 | * normal/main.c (read_config_file): Reset grub_errno. | |
12536 | ||
12537 | * normal/parse.y (script_init): New. | |
12538 | (script): Move function and menuentry here. | |
12539 | (delimiter): New. | |
12540 | (command): Add delimiter at the end of command. | |
12541 | (commands): Adjust to match the new command. | |
12542 | (commandblock): Remove grub_script_lexer_record_start. | |
f19dbdb7 | 12543 | (menuentry): Add grub_script_lexer_record_start, use the new commands. |
a83ccafd | 12544 | (if): Use the new commands. |
12545 | ||
12546 | * conf/common.rmk (pkgdata_MODULES): Add echo.mod. | |
12547 | ||
df6ecfc6 | 12548 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
12549 | ||
12550 | * normal/menu.c (run_menu): Move timeout message from here ... | |
12551 | (print_timeout): ... to here. | |
12552 | (run_menu): Use print_timeout() once during initial draw to print | |
12553 | the whole message, and again in every clock tick to update only | |
12554 | the number of seconds. | |
12555 | ||
87ae25eb | 12556 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
12557 | ||
12558 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain | |
12559 | actual size of `available' from grub_ieee1275_get_property(), and | |
12560 | restrict parsing to that bound. | |
12561 | ||
47bf09a4 | 12562 | 2008-01-15 Christian Franke <franke@computer.org> |
12563 | ||
12564 | * util/grub-emu.c: Replace <argp.h> by <getopt.h>. | |
12565 | (argp_program_version): Remove variable. | |
12566 | (argp_program_bug_address): Likewise. | |
12567 | (options): Convert from struct argp_option to struct option. | |
12568 | (struct arguments): Remove. | |
12569 | (parse_opt): Remove. | |
12570 | (usage): New function. | |
12571 | (main): Replace struct args members by simple variables. | |
12572 | Replace argp_parse() by getopt_long(). | |
12573 | Add switch to evaluate options. | |
12574 | Add missing "(...)" around root_dev in prefix string. | |
12575 | ||
c86f1469 | 12576 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
12577 | ||
12578 | * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper | |
12579 | for grub_ieee1275_exit(), in order to improve portability. | |
12580 | ||
e622c559 | 12581 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
12582 | ||
12583 | * util/grub.d/10_linux.in (prefix): Define. | |
12584 | (exec_prefix): Likewise. Both definitions are later used by `libdir'. | |
12585 | ||
44cb1ec8 | 12586 | 2008-01-13 Pavel Roskin <proski@gnu.org> |
12587 | ||
12588 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use | |
12589 | grub_errno if no errors have been detected. | |
12590 | ||
1eb8c802 | 12591 | 2008-01-12 Robert Millan <rmh@aybabtu.com> |
12592 | ||
12593 | * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum. | |
12594 | (grub_util_get_dev_abstraction): New function prototype. | |
12595 | ||
12596 | * util/getroot.c: Include `<grub/util/getroot.h>' | |
12597 | (grub_util_get_grub_dev): Move detection of abstraction type to ... | |
12598 | (grub_util_get_dev_abstraction): ... here (new function). | |
12599 | ||
12600 | * util/grub-probe.c: Convert PRINT_* to an enum. Add | |
12601 | `PRINT_ABSTRACTION'. | |
12602 | (probe): Probe for abstraction type when requested. | |
12603 | (main): Understand `--target=abstraction'. | |
12604 | ||
12605 | * util/i386/efi/grub-install.in: Add abstraction module to core | |
12606 | image when it is found to be necessary. | |
12607 | * util/i386/pc/grub-install.in: Likewise. | |
12608 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
12609 | ||
12610 | * util/update-grub_lib.in (font_path): Return system path without | |
12611 | converting to GRUB path. | |
12612 | * util/update-grub.in: Convert system path returned by font_path() | |
12613 | to a GRUB path. Use `grub-probe -t abstraction' to determine what | |
12614 | abstraction module is needed for loading fonts (if any). Export | |
12615 | that as `GRUB_PRELOAD_MODULES'. | |
12616 | * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print | |
12617 | insmod commands). | |
12618 | ||
52bd3de9 | 12619 | 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org> |
12620 | ||
12621 | Remove some unused code from reiserfs. | |
f19dbdb7 | 12622 | |
52bd3de9 | 12623 | * fs/reiserfs.c (struct grub_reiserfs_key) |
12624 | [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type. | |
12625 | (struct grub_reiserfs_node_body): Removed. | |
12626 | (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12627 | Likewise. | |
12628 | (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12629 | Likewise. | |
12630 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12631 | Likewise. | |
12632 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12633 | Likewise. | |
12634 | (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12635 | Likewise. | |
12636 | (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
12637 | Likewise. | |
12638 | (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
12639 | (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
12640 | (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
12641 | ||
2f80039d | 12642 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
12643 | ||
12644 | * util/update-grub_lib.in (grub_file_is_not_garbage): New function. | |
12645 | Determines if a file is garbage left by packaging systems, etc. | |
12646 | * util/update-grub.in: Use grub_file_is_not_garbage() as a condition | |
12647 | for processing /etc/grub.d scripts. | |
12648 | * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison. | |
12649 | * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage() | |
12650 | as a condition for processing Linux images. | |
12651 | ||
87888032 | 12652 | 2008-01-10 Pavel Roskin <proski@gnu.org> |
12653 | ||
12654 | * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed | |
12655 | to compile reiserfs.c on PowerPC. | |
12656 | ||
7e54fced | 12657 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
de9993e0 | 12658 | |
12659 | * kern/device.c (grub_device_iterate): Do not abort device iteration | |
12660 | when one of the devices cannot be opened. | |
12661 | * kern/disk.c (grub_disk_open): Do not account previous failures of | |
12662 | unrelated functions when grub_errno is checked for. | |
12663 | ||
5aa541e6 | 12664 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
12665 | ||
12666 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For | |
12667 | `! grub_linux_is_bzimage', change order of address comparison to make | |
12668 | it more intuitive, and improve "too big zImage" error message. | |
12669 | ||
7076340d | 12670 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
12671 | ||
12672 | * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and | |
12673 | `$(update-grub_DATA)'. | |
12674 | (distcheck): Fix race condition when invoking `$(MAKE)' on multiple | |
12675 | targets. | |
12676 | ||
9ca70333 | 12677 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
12678 | ||
12679 | * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating | |
12680 | which instruction is modified by grub-setup during installation | |
12681 | (since it wasn't obvious by only looking at this file). | |
12682 | ||
38ccf575 | 12683 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
12684 | ||
12685 | * TODO: Rewrite. Just refer to the wiki and the BTS instead of | |
12686 | listing actual TODO items. | |
12687 | ||
f5db4291 | 12688 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
12689 | ||
868967cf | 12690 | * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness |
12691 | correctly. | |
12692 | (grub_reiserfs_get_key_offset): Likewise. | |
12693 | (grub_reiserfs_set_key_offset): Likewise. | |
12694 | (grub_reiserfs_set_key_type): Likewise. | |
fe6b695a | 12695 | (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0. |
868967cf | 12696 | |
12697 | (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be | |
12698 | better to remove the bitfield version completely. | |
f19dbdb7 | 12699 | |
868967cf | 12700 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
f19dbdb7 | 12701 | |
f5db4291 | 12702 | * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be |
12703 | allocated from the heap, due to the fshelp implementation. | |
12704 | (grub_reiserfs_dir): Free NODE, due to the same reason. | |
12705 | ||
492e6d9d | 12706 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
12707 | ||
12708 | Mostly from Vincent Pelletier: | |
f19dbdb7 | 12709 | |
492e6d9d | 12710 | * fs/reiserfs.c: New file. |
f19dbdb7 | 12711 | |
492e6d9d | 12712 | * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod. |
12713 | (reiserfs_mod_SOURCES): New variable. | |
12714 | (reiserfs_mod_CFLAGS): Likewise. | |
12715 | (reiserfs_mod_LDFLAGS): Likewise. | |
12716 | ||
12717 | * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c, | |
12718 | disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c, | |
12719 | include/grub/ntfs.h, include/grub/i386/pc/machine.h, and | |
12720 | normal/color.c. | |
12721 | ||
9ce3e7c1 | 12722 | 2008-01-06 Robert Millan <rmh@aybabtu.com> |
12723 | ||
12724 | * normal/color.c: Remove `<grub/env.h>'. | |
12725 | ||
f3b58148 | 12726 | 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx> |
12727 | ||
12728 | * include/grub/normal.h: Include <grub/env.h>. | |
12729 | ||
7ac3bcfa | 12730 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12731 | ||
12732 | * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in | |
12733 | usage example with `(hd0,1)'. | |
fb358190 | 12734 | Reported by Samuel Thibault. |
7ac3bcfa | 12735 | |
c8ee99d7 | 12736 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12737 | ||
12738 | * kern/i386/loader.S (grub_linux_is_bzimage): New variable. | |
12739 | (grub_linux_boot_zimage): Rename to ... | |
12740 | (grub_linux_boot): ... this. | |
12741 | (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'. | |
12742 | (grub_linux_boot_zimage): Conditionalize zImage copy. | |
12743 | ||
12744 | * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype. | |
12745 | (grub_linux_boot_bzimage): Remove prototype. | |
12746 | (grub_linux_boot_zimage): Rename to ... | |
12747 | (grub_linux_boot): ... this. | |
12748 | ||
12749 | * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'. | |
12750 | (grub_linux_boot): Remove function. | |
12751 | ||
0ece25b1 | 12752 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12753 | ||
12754 | * include/grub/normal.h (grub_env_write_color_normal): New prototype. | |
12755 | (grub_env_write_color_highlight): Likewise. | |
12756 | (grub_wait_after_message): Likewise. | |
12757 | ||
12758 | * normal/color.c: New file. | |
12759 | ||
12760 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
12761 | (normal_mod_DEPENDENCIES): Likewise. | |
12762 | ||
12763 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
12764 | (normal_mod_DEPENDENCIES): Likewise. | |
12765 | ||
12766 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
12767 | (normal_mod_DEPENDENCIES): Likewise. | |
12768 | ||
12769 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
12770 | (normal_mod_DEPENDENCIES): Likewise. | |
12771 | ||
12772 | * normal/menu_entry.c (run): Rely on grub_wait_after_message() | |
12773 | for waiting after a message is printed. | |
12774 | * normal/main.c (read_config_file): Likewise. | |
12775 | (grub_normal_init): Register grub_env_write_color_normal() and | |
12776 | grub_env_write_color_highlight() hooks. Mark `color_normal' and | |
12777 | `color_highlight' variables as global. | |
12778 | ||
12779 | * normal/menu.c (grub_wait_after_message): New function. | |
12780 | (grub_color_menu_normal): New variable. Replaces ... | |
12781 | (GRUB_COLOR_MENU_NORMAL): ... this macro. | |
12782 | (grub_color_menu_highlight): New variable. Replaces ... | |
12783 | (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro. | |
12784 | (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of | |
12785 | `GRUB_TERM_COLOR_STANDARD'. | |
12786 | (print_message): Use `grub_setcolorstate' to reload colors. Rename | |
12787 | `normal_code' and `highlight_code' to `old_color_normal' and | |
12788 | `old_color_highlight', respectively. | |
12789 | (grub_menu_init_page): Update colors when drawing the menu, based on | |
12790 | `menu_color_normal' and `menu_color_highlight' variables. | |
12791 | (grub_menu_run): Rely on grub_wait_after_message() for waiting after | |
12792 | a message is printed. | |
12793 | ||
182dd4e5 | 12794 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12795 | ||
12796 | * kern/env.c (grub_env_context_open): Propagate hooks for global | |
12797 | variables to new context. | |
12798 | ||
12799 | * kern/main.c (grub_set_root_dev): Export `root' variable. | |
12800 | ||
ddf8f6ad | 12801 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12802 | ||
12803 | * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI | |
fe6b695a | 12804 | discs unconditionally, since udev and others have options to provide |
ddf8f6ad | 12805 | them. |
12806 | ||
d8b43d9b | 12807 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
12808 | ||
12809 | * normal/completion.c (iterate_dir): Skip `.' and `..' directories. | |
12810 | ||
2bff2de3 | 12811 | 2008-01-04 Christian Franke <franke@computer.org> |
12812 | ||
12813 | * kern/i386/pc/init.c (grub_machine_init): Fix evaluation | |
12814 | of eisa_mmap. | |
12815 | ||
97eab917 | 12816 | 2008-01-03 Pavel Roskin <proski@gnu.org> |
12817 | ||
12818 | * kern/i386/linuxbios/init.c: Put "void" to all function | |
12819 | declarations with no arguments. | |
12820 | * kern/powerpc/ieee1275/init.c: Likewise. | |
12821 | * term/i386/pc/at_keyboard.c: Likewise. | |
12822 | * term/i386/pc/vga_text.c: Likewise. | |
12823 | * util/grub-mkdevicemap.c: Likewise. | |
12824 | ||
b9416d00 | 12825 | 2008-01-02 Robert Millan <rmh@aybabtu.com> |
12826 | ||
12827 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error | |
12828 | message when loaded image is out of bounds. | |
12829 | (grub_multiboot_load_elf64): Likewise. | |
12830 | ||
92695df9 | 12831 | 2008-01-02 Pavel Roskin <proski@gnu.org> |
12832 | ||
12833 | * util/grub.d/10_linux.in: Try version without ".old" when | |
12834 | looking for initrd. It's better to use initrd from the newer | |
12835 | kernel of the same version than no initrd at all. | |
12836 | ||
d98d9cad | 12837 | 2008-01-01 Robert Millan <rmh@aybabtu.com> |
12838 | ||
12839 | * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs. | |
12840 | ||
dbfdce36 | 12841 | 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi> |
12842 | ||
f19dbdb7 | 12843 | * include/grub/video.h: Added grub_video_unmap_color and |
dbfdce36 | 12844 | grub_video_get_active_render_target. |
12845 | (grub_video_adapter): Added unmap_color and get_active_render_target. | |
12846 | ||
f19dbdb7 | 12847 | * video/video.c: Added grub_video_unmap_color and |
dbfdce36 | 12848 | grub_video_get_active_render_target. |
12849 | (grub_video_get_info): Changed method to accept NULL pointer as an | |
12850 | argument to allow detection of active video adapter. | |
12851 | ||
12852 | * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as | |
12853 | grub_video_vbe_unmap_color_int. | |
12854 | Added grub_video_vbe_unmap_color and | |
12855 | grub_video_vbe_get_active_render_target. | |
12856 | (grub_video_vbe_adapter): Added unmap_color and | |
12857 | get_active_render_target. | |
12858 | ||
f19dbdb7 | 12859 | * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage |
dbfdce36 | 12860 | with grub_video_vbe_unmap_color_int. |
12861 | ||
12862 | * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added. | |
12863 | (DEFAULT_NORMAL_COLOR): Likewise. | |
12864 | (DEFAULT_HIGHLIGHT_COLOR) Likewise. | |
12865 | (DEFAULT_FG_COLOR): Removed. | |
12866 | (DEFAULT_BG_COLOR): Likewise. | |
12867 | (DEFAULT_CURSOR_COLOR): Changed value. | |
12868 | (grub_virtual_screen): Added standard_color_setting, | |
12869 | normal_color_setting, highlight_color_setting and term_color. | |
12870 | (grub_virtual_screen): Removed fg_color_setting and bg_color_setting. | |
12871 | (bitmap_width): Added. | |
12872 | (bitmap_height): Likewise. | |
12873 | (bitmap): Likewise. | |
12874 | (set_term_color): Likewise. | |
12875 | (grub_virtual_screen_setup): Changed to use new terminal coloring | |
12876 | settings. | |
12877 | (grub_gfxterm_init): Added init for bitmap. | |
12878 | (grub_gfxterm_fini): Added destroy for bitmap. | |
12879 | (redraw_screen_rect): Updated to use background bitmap and new | |
12880 | terminal coloring. | |
12881 | (scroll_up): Added optimization for case when there is no bitmap. | |
12882 | (grub_gfxterm_cls): Fixed to use correct background color. | |
12883 | (grub_virtual_screen_setcolorstate): Changed to use new terminal | |
12884 | coloring. | |
12885 | (grub_virtual_screen_setcolor): Likewise. | |
12886 | (grub_virtual_screen_getcolor): Added. | |
12887 | (grub_gfxterm_background_image_cmd): Likewise. | |
12888 | (grub_video_term): Added setcolor and getcolor. | |
12889 | (MOD_INIT): Added registration of background_image command. | |
12890 | (MOD_TERM): Added unregistration for background_image command. | |
12891 | ||
c3c20931 | 12892 | 2007-12-30 Pavel Roskin <proski@gnu.org> |
12893 | ||
12894 | * loader/multiboot_loader.c: Fix multiboot command | |
12895 | unregistration. Fix all typos in the word "multiboot". | |
12896 | ||
df266716 | 12897 | 2007-12-29 Pavel Roskin <proski@gnu.org> |
94239199 | 12898 | |
12899 | * util/grub.d/10_linux.in: Refactor search for initrd. Add | |
12900 | support for initrd names used in Fedora. | |
12901 | ||
fc6e896c | 12902 | 2007-12-26 Bean <bean123ch@gmail.com> |
12903 | ||
12904 | * conf/common.rmk (pkgdata_MODULES): Add cpio.mod. | |
12905 | (cpio_mod_SOURCES): New variable. | |
12906 | (cpio_mod_CFLAGS): Likewise. | |
12907 | (cpio_mod_LDFLAGS): Likewise. | |
12908 | ||
12909 | * fs/cpio.c: New file. | |
12910 | ||
12911 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c. | |
12912 | ||
12913 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
12914 | ||
12915 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
12916 | ||
12917 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
12918 | ||
533110ad | 12919 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
12920 | ||
12921 | * include/grub/term.h (struct grub_term): Add `getcolor' function. | |
12922 | (grub_getcolor): New function. | |
12923 | ||
12924 | * kern/term.c (grub_getcolor): New function. | |
12925 | * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro. | |
12926 | (GRUB_COLOR_MENU_HIGHLIGHT): New macro. | |
12927 | (print_entry): Set normal and highlight colors to | |
12928 | `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT', | |
12929 | respectively, before printing and restore them to old | |
12930 | values afterwards. | |
12931 | (grub_menu_init_page): Likewise. Fill an additional colored space | |
12932 | that would otherwise be left blank. | |
12933 | ||
12934 | * term/efi/console.c (grub_console_getcolor): New function. | |
12935 | (struct grub_console_term.getcolor): New variable. | |
12936 | * term/i386/pc/console.c (grub_console_getcolor): New function. | |
12937 | (struct grub_console_term.getcolor): New variable. | |
12938 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function. | |
12939 | (struct grub_console_term.getcolor): New variable. | |
12940 | ||
12941 | * term/i386/pc/serial.c (grub_serial_setcolor): Remove function. | |
12942 | (struct grub_console_term.setcolor): Remove variable. | |
12943 | * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function. | |
12944 | (struct grub_console_term.setcolor): Remove variable. | |
12945 | * term/i386/pc/vga.c (grub_vga_setcolor): Remove function. | |
12946 | (struct grub_console_term.setcolor): Remove variable. | |
12947 | * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function. | |
12948 | (struct grub_console_term.setcolor): Remove variable. | |
12949 | ||
4931827f | 12950 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
12951 | ||
12952 | * configure.ac: Search for possible unifont.hex locations, and | |
12953 | define UNIFONT_HEX if found. | |
12954 | ||
12955 | * Makefile.in (UNIFONT_HEX): Define variable. | |
12956 | (DATA): Rename to ... | |
12957 | (PKGLIB): ... this. Update all users. | |
12958 | (PKGDATA): New variable. | |
12959 | (pkgdata_IMAGES): Rename to ... | |
12960 | (pkglib_IMAGES): ... this. Update all users. | |
12961 | (pkgdata_MODULES): Rename to ... | |
12962 | (pkglib_MODULES): ... this. Update all users. | |
12963 | (pkgdata_PROGRAMS): Rename to ... | |
12964 | (pkglib_PROGRAMS): ... this. Update all users. | |
12965 | (pkgdata_DATA): Rename to ... | |
12966 | (pkglib_DATA): ... this. Update all users. | |
12967 | (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'. | |
12968 | (unicode.pff, ascii.pff): New rules. | |
12969 | (all-local): Add `$(PKGDATA)' dependency. | |
12970 | (install-local): Process `$(PKGDATA)'. | |
12971 | ||
12972 | * util/update-grub_lib.in (font_path): Search for *.pff files in | |
12973 | a few more locations, including `${pkgdata}'. | |
12974 | ||
57e57e31 | 12975 | 2007-12-23 Robert Millan <rmh@aybabtu.com> |
12976 | ||
12977 | Patch from Bean <bean123ch@gmail.com>: | |
12978 | * disk/loopback.c (grub_loopback_read): Add missing bit shift to | |
12979 | `size'. | |
12980 | ||
4bc72aa9 | 12981 | 2007-12-21 Bean <bean123ch@gmail.com> |
12982 | ||
12983 | * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod. | |
12984 | (ntfscomp_mod_SOURCES): New variable. | |
12985 | (ntfscomp_mod_CFLAGS): Likewise. | |
12986 | (ntfscomp_mod_LDFLAGS): Likewise. | |
12987 | ||
12988 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c. | |
12989 | (grub_probe_SOURCES): Likewise. | |
12990 | (grub_emu_SOURCES): Likewise. | |
12991 | ||
12992 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
12993 | (grub_emu_SOURCES): Likewise. | |
12994 | ||
12995 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
12996 | (grub_emu_SOURCES): Likewise. | |
12997 | ||
12998 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
12999 | (grub_emu_SOURCES): Likewise. | |
13000 | ||
13001 | * fs/ntfs.c (grub_ntfscomp_func): New variable. | |
13002 | (read_run_list): Renamed to grub_ntfs_read_run_list. | |
13003 | (decomp_nextvcn): Moved to ntfscomp.c. | |
13004 | (decomp_getch): Likewise. | |
13005 | (decomp_get16): Likewise. | |
13006 | (decomp_block): Likewise. | |
13007 | (read_block): Likewise. | |
13008 | (read_data): Partially moved to ntfscomp.c. | |
13009 | (fixup): Change unsigned to grub_uint16_t. | |
13010 | (read_mft): Change unsigned long to grub_uint32_t. | |
13011 | (read_attr): Likewise. | |
13012 | (read_data): Likewise. | |
13013 | (read_run_data): Likewise. | |
13014 | (read_run_list): Likewise. | |
13015 | (read_mft): Likewise. | |
13016 | ||
13017 | * fs/ntfscomp.c: New file. | |
13018 | ||
13019 | * include/grub/ntfs.h: New file. | |
13020 | ||
af680a87 | 13021 | 2007-12-16 Robert Millan <rmh@aybabtu.com> |
13022 | ||
13023 | * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for | |
13024 | IDE disk check, since Linux is known to support 20 IDE disks. | |
13025 | Reported by Colin Watson. | |
13026 | ||
84be7599 | 13027 | 2007-12-15 Bean <bean123ch@gmail.com> |
13028 | ||
13029 | * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img. | |
13030 | (lnxboot_img_SOURCES): New variable. | |
13031 | (lnxboot_img_ASFLAGS): Likewise. | |
13032 | (lnxboot_img_LDFLAGS): Likewise. | |
13033 | ||
13034 | * boot/i386/pc/lnxboot.S: New file. | |
13035 | ||
6af9db01 | 13036 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
13037 | ||
13038 | * configure.ac: Test if '--build-id=none' is supported by the | |
13039 | linker. If yes, add it to TARGET_LDFLAGS. Build ID causes | |
13040 | objcopy to generate incorrect binary files (binutils | |
13041 | 2.17.50.0.18-1 as shipped by Fedora 8). | |
13042 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when | |
13043 | linking, so that build ID doesn't break the test. | |
13044 | ||
7361cfe6 | 13045 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
13046 | ||
13047 | * include/grub/i386/time.h: use "void" in the argument list | |
13048 | of grub_cpu_idle(). | |
13049 | * include/grub/powerpc/time.h: Likewise. | |
13050 | * include/grub/sparc64/time.h: Likewise. | |
13051 | ||
1593e10c | 13052 | 2007-11-18 Christian Franke <franke@computer.org> |
13053 | ||
13054 | * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping, | |
13055 | now return control chars instead of GRUB_CONSOLE_KEY_* constants. | |
13056 | This fixes the problem that function keys did not work in grub-emu. | |
13057 | ||
3b8db1a8 | 13058 | 2007-11-18 Christian Franke <franke@computer.org> |
13059 | ||
13060 | * disk/host.c (grub_host_open): Remove attribute unused from | |
13061 | name parameter. Add check for "host". This fixes the problem | |
13062 | that grub-emu does not find partitions. | |
13063 | ||
2e29408d | 13064 | 2007-11-18 Christian Franke <franke@computer.org> |
13065 | ||
13066 | * util/hostfs.c (is_dir): New function. | |
13067 | (grub_hostfs_dir): Handle missing dirent.d_type case. | |
13068 | (grub_hostfs_read): Add missing fseek(). | |
13069 | (grub_hostfs_label): Clear label pointer. This fixes a crash | |
13070 | of grub-emu on "ls (host)". | |
13071 | ||
398cd047 | 13072 | 2007-11-18 Christian Franke <franke@computer.org> |
13073 | ||
13074 | * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry): | |
13075 | Add attribute packed, gcc 3.4.4 on Cygwin aligns this | |
13076 | to 64 bit boundary by default. | |
13077 | ||
c405c391 | 13078 | 2007-11-18 Bean <bean123ch@gmail.com> |
13079 | ||
13080 | * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod. | |
13081 | (hexdump_mod_SOURCES): New variable. | |
13082 | (hexdump_mod_CFLAGS): Likewise. | |
13083 | (hexdump_mod_LDFLAGS): Likewise. | |
f19dbdb7 | 13084 | |
c405c391 | 13085 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c. |
13086 | ||
13087 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
13088 | ||
13089 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
13090 | ||
13091 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
13092 | ||
13093 | * include/grub/hexdump.h: New file. | |
13094 | ||
13095 | * commands/hexdump.c: New file. | |
13096 | ||
5cced7fd | 13097 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
13098 | ||
13099 | * commands/i386/pc/play.c (beep_off): Switch order of arguments | |
13100 | in grub_outb() calls. | |
13101 | (beep_on): Likewise. | |
13102 | ||
8b714eb0 | 13103 | 2007-11-10 Christian Franke <franke@computer.org> |
13104 | ||
13105 | * normal/menu.c (run_menu): Check for empty menu to avoid crash. | |
13106 | (grub_menu_run): Likewise. | |
13107 | ||
ce0f1839 | 13108 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
13109 | ||
13110 | * include/grub/i386/efi/machine.h: New file. | |
13111 | * include/grub/i386/linuxbios/machine.h: Likewise. | |
13112 | * include/grub/i386/pc/machine.h: Likewise. | |
13113 | * include/grub/powerpc/ieee1275/machine.h: Likewise. | |
13114 | * include/grub/sparc64/ieee1275/machine.h: Likewise. | |
13115 | ||
13116 | * term/i386/pc/serial.c: Include <grub/machine/machine.h>. | |
13117 | (serial_hw_io_addr): New variable. | |
13118 | (serial_hw_get_port): Obtain port address from `serial_hw_io_addr' | |
13119 | instead of `(unsigned short *) 0x400'. | |
13120 | ||
270c237d | 13121 | 2007-11-10 Bean <bean123ch@gmail.com> |
13122 | ||
13123 | * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks. | |
13124 | ||
a87783bf | 13125 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
13126 | ||
13127 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod. | |
13128 | (vga_mod_SOURCES): Added. | |
13129 | (vga_mod_CFLAGS): Likewise. | |
13130 | (vga_mod_LDFLAGS): Likewise. | |
13131 | ||
13132 | * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in | |
13133 | grub_outb() calls. | |
13134 | (set_map_mask): Likewise. | |
13135 | (set_read_map): Likewise. | |
13136 | (set_read_address): Likewise. | |
13137 | (vga_font): Removed variable. | |
13138 | (get_vga_glyph): Removed function. | |
13139 | (invalidate_char): Likewise. | |
13140 | (write_char): Changed to use grub_font_get_glyph() for font | |
13141 | information. | |
13142 | (grub_vga_putchar): Likewise. | |
13143 | (grub_vga_getcharwidth): Likewise. | |
13144 | ||
6433b448 | 13145 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
13146 | ||
13147 | * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target | |
13148 | flags. | |
13149 | (pxeboot_img_LDFLAGS): Likewise. | |
13150 | (diskboot_img_LDFLAGS): Likewise. | |
13151 | (kernel_img_LDFLAGS): Likewise. | |
13152 | ||
49178511 | 13153 | 2007-11-06 Robert Millan <rmh@aybabtu.com> |
13154 | ||
13155 | * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments | |
13156 | in grub_outb() calls. | |
13157 | (serial_hw_init): Likewise. | |
13158 | ||
53b052de | 13159 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
13160 | ||
13161 | * util/update-grub.in: Allow files in ${update_grub_dir} to contain | |
13162 | spaces. Skip non-regular files. | |
13163 | ||
5ab33bba | 13164 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
13165 | ||
13166 | * kern/disk.c (grub_disk_firmware_fini) | |
13167 | (grub_disk_firmware_is_tainted): New variables. | |
13168 | ||
13169 | * include/grub/disk.h (grub_disk_firmware_fini) | |
13170 | (grub_disk_firmware_is_tainted): Likewise. | |
13171 | ||
13172 | * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ... | |
13173 | (grub_disk_biosdisk_fini): ... to here. | |
13174 | (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini(). | |
13175 | (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted' | |
13176 | is set. Register grub_disk_biosdisk_fini() in | |
13177 | `grub_disk_firmware_fini'. | |
13178 | ||
13179 | * disk/ata.c: Remove `<grub/machine/biosdisk.h>'. | |
13180 | (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call. | |
13181 | Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini' | |
13182 | to finish existing firmware disk interface. | |
13183 | ||
13184 | * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'. | |
13185 | (ata_mod_SOURCES): New variable. | |
13186 | (ata_mod_CFLAGS): Likewise. | |
13187 | (ata_mod_LDFLAGS): Likewise. | |
13188 | ||
0149ab7c | 13189 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
13190 | ||
13191 | * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'. | |
13192 | (grub_ata_wait): Reimplement using grub_millisleep(). | |
13193 | ||
13194 | * include/grub/misc.h (grub_div_roundup): Fix parenthesization. | |
13195 | * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction. | |
13196 | ||
be7ac41e | 13197 | 2007-11-03 Marco Gerards <marco@gnu.org> |
13198 | ||
13199 | * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>. | |
13200 | (CRTC_ADDR_PORT): New macro. | |
13201 | (CRTC_DATA_PORT): Likewise. | |
13202 | (CRTC_CURSOR): Likewise. | |
13203 | (CRTC_CURSOR_ADDR_HIGH): Likewise. | |
13204 | (CRTC_CURSOR_ADDR_LOW): Likewise. | |
13205 | (update_cursor): New function. | |
13206 | (grub_console_real_putchar): Call `update_cursor'. | |
13207 | (grub_console_gotoxy): Likewise. | |
13208 | (grub_console_cls): Set the default color when clearing the | |
13209 | screen. | |
13210 | (grub_console_setcursor): Implemented. | |
13211 | ||
bb06ab2e | 13212 | 2007-11-03 Marco Gerards <marco@gnu.org> |
13213 | ||
13214 | * disk/ata.c (grub_ata_pio_read): Don't wait for the command to | |
13215 | become activate. | |
13216 | (grub_ata_pio_write): Likewise. | |
13217 | ||
13218 | (grub_atapi_identify): Wait after issuing an ATA command. | |
13219 | (grub_atapi_packet): Likewise. | |
13220 | (grub_ata_identify): Likewise. | |
13221 | (grub_ata_readwrite): Likewise. | |
13222 | ||
cf8f780b | 13223 | 2007-11-03 Marco Gerards <marco@gnu.org> |
13224 | ||
13225 | * disk/ata.c (grub_ata_pio_read): Detect and return the error code. | |
13226 | (grub_ata_pio_write): Likewise. | |
13227 | (grub_ata_readwrite): Use `grub_error', instead of | |
13228 | returning `grub_errno'. | |
13229 | ||
ed649e54 | 13230 | 2007-11-03 Marco Gerards <marco@gnu.org> |
13231 | ||
13232 | * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and | |
13233 | grub_ata_pio_write once for every single sector, instead of for | |
13234 | multiple sectors. | |
13235 | ||
ca25d8f0 | 13236 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
13237 | ||
13238 | * configure.ac: Add `i386-linuxbios' to the list of supported targets. | |
13239 | ||
13240 | * conf/i386-linuxbios.rmk: New file. | |
13241 | ||
13242 | * kern/i386/pc/hardware.c: Likewise. | |
13243 | * term/i386/pc/at_keyboard.c: Likewise. | |
13244 | * term/i386/pc/vga_text.c: Likewise. | |
13245 | ||
13246 | * include/grub/i386/linuxbios/boot.h: Likewise. | |
13247 | * include/grub/i386/linuxbios/console.h: Likewise. | |
13248 | * include/grub/i386/linuxbios/init.h: Likewise. | |
13249 | * include/grub/i386/linuxbios/kernel.h: Likewise. | |
13250 | * include/grub/i386/linuxbios/loader.h: Likewise. | |
13251 | * include/grub/i386/linuxbios/memory.h: Likewise. | |
13252 | * include/grub/i386/linuxbios/serial.h: Likewise. | |
13253 | * include/grub/i386/linuxbios/time.h: Likewise. | |
13254 | ||
13255 | * kern/i386/linuxbios/init.c: Likewise. | |
13256 | * kern/i386/linuxbios/startup.S: Likewise. | |
13257 | * kern/i386/linuxbios/table.c: Likewise. | |
13258 | ||
e911ecc1 | 13259 | 2007-10-31 Marco Gerards <marco@gnu.org> |
13260 | ||
13261 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'. | |
13262 | (ata_mod_SOURCES): New variable. | |
13263 | (ata_mod_CFLAGS): Likewise. | |
13264 | (ata_mod_LDFLAGS): Likewise. | |
13265 | ||
13266 | * disk/ata.c: New file. | |
13267 | ||
13268 | * include/grub/disk.h (grub_disk_dev_id): Add | |
13269 | `GRUB_DISK_DEV_ATA_ID'. | |
f19dbdb7 | 13270 | |
7f66d0e0 | 13271 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
13272 | ||
13273 | * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ... | |
13274 | * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here. | |
13275 | ||
13276 | * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ... | |
13277 | * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here. | |
13278 | ||
13279 | * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and | |
13280 | `<grub/types.h>'. | |
13281 | ||
13282 | * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'. | |
13283 | ||
5cd7dd46 | 13284 | 2007-10-27 Robert Millan <rmh@aybabtu.com> |
13285 | ||
3236ca65 | 13286 | * include/grub/types.h (ULONG_MAX): Define macro. |
5cd7dd46 | 13287 | |
2ebfc90f | 13288 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
13289 | ||
13290 | * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include | |
13291 | `"../realmode.S"'. | |
13292 | Remove `"kern/i386/loader.S"'. Include `"../loader.S"'. | |
13293 | ||
73fcb0f3 | 13294 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
13295 | ||
13296 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'. | |
13297 | (pkgdata_MODULES): Add `biosdisk.mod'. | |
13298 | (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New | |
13299 | variables. | |
13300 | ||
13301 | * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'. | |
13302 | (grub_biosdisk_init): Replace with ... | |
13303 | (GRUB_MOD_INIT(biosdisk)): ... this. | |
13304 | (grub_biosdisk_fini): Replace with ... | |
13305 | (GRUB_MOD_FINI(biosdisk)): ... this. | |
13306 | ||
13307 | * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'. | |
13308 | (grub_machine_init): Remove call to grub_biosdisk_init(). | |
13309 | (grub_machine_fini): Remove call to grub_machine_fini(). | |
13310 | ||
13311 | * util/i386/pc/grub-install.in (modules): Add `biosdisk'. | |
13312 | ||
3381d274 | 13313 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
13314 | ||
13315 | * include/grub/time.h: New file. | |
13316 | * include/grub/i386/time.h: Likewise. | |
13317 | * include/grub/powerpc/time.h: Likewise. | |
13318 | * include/grub/sparc64/time.h: Likewise. | |
13319 | ||
13320 | * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all | |
13321 | instances to ... | |
13322 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
13323 | * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
13324 | instances to ... | |
13325 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
13326 | * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
13327 | instances to ... | |
13328 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
13329 | ||
13330 | * kern/i386/efi/init.c: Include `<grub/time.h>'. | |
13331 | (grub_millisleep): New function. | |
13332 | * kern/i386/pc/init.c: Include `<grub/time.h>'. | |
13333 | (grub_millisleep): New function. | |
13334 | * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'. | |
13335 | Remove `grub/machine/time.h' include. | |
13336 | (grub_millisleep): New function. | |
13337 | * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'. | |
13338 | Remove `grub/machine/time.h' include. | |
13339 | (grub_millisleep): New function. | |
13340 | ||
13341 | * include/grub/misc.h (grub_div_roundup): New function. | |
13342 | ||
13343 | * kern/misc.c: Include `<grub/time.h>'. | |
13344 | (grub_millisleep_generic): New function. | |
13345 | ||
13346 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'. | |
13347 | Add `time.h'. | |
13348 | * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'. | |
13349 | Add `time.h'. | |
13350 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove | |
13351 | `machine/time.h'. Add `time.h'. | |
13352 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
13353 | ||
a39a0312 | 13354 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
13355 | ||
13356 | * include/grub/misc.h (grub_max): New function. | |
13357 | ||
2aad70e2 | 13358 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
13359 | ||
13360 | * util/misc.c (grub_util_info): Call fflush() before returning. | |
13361 | ||
54b71c4b | 13362 | 2007-10-20 Robert Millan <rmh@aybabtu.com> |
13363 | ||
13364 | * genmk.rb (Image): Copy `extra_flags' from here ... | |
13365 | (PModule): ... to here. Use it in `#{obj}: #{src}' rule. | |
13366 | ||
13367 | * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused)) | |
13368 | to `argc' and `args' arguments. | |
13369 | ||
a979f513 | 13370 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
13371 | ||
13372 | * kern/i386/loader.S: New file. | |
13373 | ||
13374 | * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ... | |
13375 | * kern/i386/loader.S (grub_linux_prot_size)... to here. | |
13376 | * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ... | |
13377 | * kern/i386/loader.S (grub_linux_tmp_addr)... to here. | |
13378 | * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ... | |
13379 | * kern/i386/loader.S (grub_linux_real_addr)... to here. | |
13380 | * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ... | |
13381 | * kern/i386/loader.S (grub_linux_boot_zimage)... to here. | |
13382 | * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ... | |
13383 | * kern/i386/loader.S (grub_linux_boot_bzimage)... to here. | |
13384 | * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ... | |
13385 | * kern/i386/loader.S (grub_multiboot_real_boot)... to here. | |
13386 | * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ... | |
13387 | * kern/i386/loader.S (grub_multiboot2_real_boot)... to here. | |
13388 | ||
13389 | * kern/i386/realmode.S: New file. | |
13390 | ||
13391 | * kern/i386/pc/startup.S (protstack): Moved from here ... | |
13392 | * kern/i386/realmode.S (protstack)... to here. | |
13393 | * kern/i386/pc/startup.S (gdt): Moved from here ... | |
13394 | * kern/i386/realmode.S (gdt)... to here. | |
13395 | * kern/i386/pc/startup.S (prot_to_real): Moved from here ... | |
13396 | * kern/i386/realmode.S (prot_to_real)... to here. | |
13397 | ||
13398 | * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and | |
13399 | `kern/i386/realmode.S'. | |
13400 | ||
825fc8fd | 13401 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
13402 | ||
13403 | * include/grub/i386/loader.h: New file. | |
13404 | ||
13405 | * include/grub/i386/pc/loader.h (grub_linux_prot_size) | |
13406 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
13407 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
13408 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
13409 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ... | |
13410 | * include/grub/i386/loader.h (grub_linux_prot_size) | |
13411 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
13412 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
13413 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
13414 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here. | |
13415 | ||
13416 | * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'. | |
13417 | ||
e179b2f4 | 13418 | 2007-10-15 Robert Millan <rmh@aybabtu.com> |
13419 | ||
13420 | * normal/misc.c (grub_normal_print_device_info): Do not probe for | |
13421 | filesystem when dev->disk is unset. | |
13422 | Do probe for filesystem even when dev->disk->has_partitions is set. | |
13423 | In case a filesystem is found, always report it. | |
13424 | In case it isn't, if dev->disk->has_partitions is set, report that | |
13425 | a partition table was found instead of reporting that no filesystem | |
13426 | could be identified. | |
13427 | ||
5db82af6 | 13428 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
13429 | ||
13430 | * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference | |
13431 | to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c. | |
13432 | ||
68f6ac74 | 13433 | * include/grub/types.h (grub_host_to_target16): New macro. |
13434 | (grub_host_to_target32): Likewise. | |
13435 | (grub_host_to_target64): Likewise. | |
13436 | (grub_target_to_host16): Likewise. | |
13437 | (grub_target_to_host32): Likewise. | |
13438 | (grub_target_to_host64): Likewise. | |
5db82af6 | 13439 | |
13440 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
13441 | Renamed from to ... | |
13442 | (GRUB_MOD_ALIGN): ...this. Update all users. | |
13443 | ||
68f6ac74 | 13444 | * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with |
13445 | grub_host_to_target32. | |
13446 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
13447 | (load_modules): Likewise. | |
13448 | (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16. | |
13449 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
13450 | Replace grub_cpu_to_be16 with grub_host_to_target16. | |
13451 | Replace grub_cpu_to_be32 grub_host_to_target32. | |
5db82af6 | 13452 | |
3cf497cc | 13453 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
13454 | ||
13455 | * util/powerpc/ieee1275/grub-mkimage.c: Moved to ... | |
13456 | * util/elf/grub-mkimage.c: ... here. | |
13457 | ||
13458 | * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove | |
13459 | `util/powerpc/ieee1275/grub-mkimage.c'. | |
13460 | ||
c8cc3692 | 13461 | 2007-10-07 Robert Millan <rmh@aybabtu.com> |
adbc4c9d | 13462 | |
c8cc3692 | 13463 | * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR, |
13464 | and make it easier to figure out. | |
13465 | Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions. | |
13466 | (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter. | |
13467 | Do not avoid claiming a region above HEAP_MAX_ADDR if that would | |
13468 | leave us with less than HEAP_MIN_SIZE total heap. | |
13469 | Avoid our total amount of heap to surpass HEAP_MAX_SIZE. | |
adbc4c9d | 13470 | |
5c58b791 | 13471 | 2007-10-03 Robert Millan <rmh@aybabtu.com> |
13472 | ||
13473 | * include/grub/i386/io.h: New file. | |
13474 | * commands/i386/pc/play.c (inb): Removed. | |
13475 | (outb): Removed. | |
13476 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
13477 | with grub_outb(). | |
afcd2ef8 | 13478 | * term/i386/pc/serial.c (inb): Removed. |
13479 | (outb): Removed. | |
13480 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
13481 | with grub_outb(). | |
13482 | * term/i386/pc/vga.c (inb): Removed. | |
13483 | (outb): Removed. | |
13484 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
13485 | with grub_outb(). | |
5c58b791 | 13486 | |
1a477ed6 | 13487 | 2007-10-02 Robert Millan <rmh@aybabtu.com> |
13488 | ||
13489 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c. | |
13490 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
13491 | Reported by Marcin Kurek. | |
13492 | ||
6b5d80fa | 13493 | 2007-09-07 Robert Millan <rmh@aybabtu.com> |
13494 | ||
13495 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect | |
13496 | SmartFirmware version updates (as released by Sven Luther), and avoid | |
13497 | setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or | |
13498 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is | |
13499 | known broken. | |
13500 | ||
5618afbf | 13501 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
13502 | ||
13503 | From Hitoshi Ozeki: | |
13504 | * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS | |
13505 | when merging two regions. | |
13506 | ||
6139dcd9 | 13507 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
13508 | ||
508e39ee | 13509 | * kern/rescue.c (grub_enter_rescue_mode): Free ARGS. |
13510 | * normal/completion.c (grub_normal_do_completion): Likewise. | |
13511 | Reported by Hitoshi Ozeki. | |
13512 | ||
13513 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 13514 | |
6139dcd9 | 13515 | Do not use devices at boot in chainloading. |
f19dbdb7 | 13516 | |
6139dcd9 | 13517 | * loader/i386/pc/chainloader.c (boot_drive): New variable. |
13518 | (boot_part_addr): Likewise. | |
13519 | (grub_chainloader_boot): Simply call grub_chainloader_real_boot | |
13520 | with BOOT_DRIVE and BOOT_PART_ADDR. | |
13521 | (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR. | |
13522 | Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>. | |
13523 | ||
38da6516 | 13524 | 2007-08-29 Robert Millan <rmh@aybabtu.com> |
13525 | ||
13526 | Patch from Simon Peter <dn.tlp@gmx.net>: | |
13527 | * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets. | |
13528 | * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with | |
13529 | util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with | |
13530 | util/i386/pc/grub-setup.c_DEPENDENCIES. | |
13531 | * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with | |
13532 | util/grub-probe.c_DEPENDENCIES. | |
13533 | * conf/powerpc-ieee1275.rmk: Likewise. | |
13534 | ||
29d0928c | 13535 | 2007-08-28 Robert Millan <rmh@aybabtu.com> |
13536 | ||
13537 | * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name() | |
13538 | to tell grub-mkdevicemap how to name devices. | |
13539 | * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a" | |
13540 | feature). | |
13541 | ||
13542 | * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add | |
13543 | util/i386/get_disk_name.c. | |
13544 | * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise. | |
13545 | * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add | |
13546 | util/ieee1275/get_disk_name.c. | |
13547 | ||
13548 | * include/grub/util/misc.h: grub_util_get_disk_name() declaration. | |
13549 | ||
13550 | * DISTLIST: Add util/i386/get_disk_name.c and | |
13551 | util/ieee1275/get_disk_name.c. | |
13552 | ||
13553 | * util/grub-mkdevicemap.c: Replace device naming logic with | |
13554 | grub_util_get_disk_name() calls. | |
13555 | ||
5a0d3cca | 13556 | 2007-08-20 Robert Millan <rmh@aybabtu.com> |
13557 | ||
13558 | * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds" | |
13559 | (so that it works for both plural and singular quantities). | |
13560 | ||
8b72db2f | 13561 | 2007-08-05 Robert Millan <rmh@aybabtu.com> |
13562 | ||
13563 | * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix | |
13564 | so that [xz] isn't taken into account when determining order. | |
13565 | ||
352466bf | 13566 | 2007-08-02 Marco Gerards <marco@gnu.org> |
13567 | ||
13568 | * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h', | |
13569 | `include/multiboot2.h', `include/grub/elfload.h', | |
13570 | `include/multiboot.h', `include/grub/multiboot.h', | |
13571 | `include/grub/multiboot_loader.h', `include/grub/multiboot2.h', | |
13572 | `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h', | |
13573 | `kern/elf.c', `loader/multiboot_loader.c', | |
13574 | `loader/multiboot_loader_normal.c', `loader/multiboot2.c', | |
13575 | `loader/i386/pc/multiboot2.c', | |
13576 | `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and | |
13577 | `util/i386/pc/grub-mkrescue.in'. Remove | |
13578 | `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h', | |
13579 | `include/grub/i386/pc/util/biosdisk.h' and | |
13580 | `include/grub/powerpc/ieee1275/multiboot.h'. | |
13581 | ||
8f096014 | 13582 | 2007-08-02 Bean <bean123ch@gmail.com> |
13583 | ||
13584 | * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod. | |
13585 | (ntfs_mod_SOURCES): New variable. | |
13586 | (ntfs_mod_CFLAGS): Likewise. | |
13587 | (ntfs_mod_LDFLAGS): Likewise. | |
13588 | ||
13589 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c. | |
13590 | (grub_probe_SOURCES): Likewise. | |
13591 | (grub_emu_SOURCES): Likewise. | |
13592 | ||
13593 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
13594 | (grub_emu_SOURCES): Likewise. | |
13595 | ||
13596 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
13597 | (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 13598 | |
8f096014 | 13599 | * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug. |
13600 | ||
13601 | * fs/ntfs.c: New file. | |
13602 | ||
9959f7db | 13603 | 2007-08-02 Bean <bean123ch@gmail.com> |
13604 | ||
13605 | * disk.h (grub_disk): Use NESTED_FUNC_ATTR. | |
13606 | ||
13607 | * file.h (grub_file): Likewise. | |
13608 | ||
13609 | * fshelp.h (grub_fshelp_read_file): Likewise. | |
13610 | ||
13611 | * util/i386/pc/grub-setup.c (setup): Likewise. | |
13612 | (save_first_sector): Likewise. | |
13613 | (save_blocklists): Likewise. | |
f19dbdb7 | 13614 | |
9959f7db | 13615 | * fs/affs.c (grub_affs_read_file): Likewise. |
13616 | ||
13617 | * fs/ext2.c (grub_ext2_read_file): Likewise. | |
13618 | ||
13619 | * fs/fat.c (grub_fat_read_data): Likewise. | |
13620 | ||
13621 | * fs/fshelp.c (grub_fshelp_read_file): Likewise. | |
13622 | ||
13623 | * fs/hfs.c (grub_hfs_read_file): Likewise. | |
13624 | ||
13625 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
13626 | ||
13627 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
13628 | ||
13629 | * fs/minix.c (grub_minix_read_file): Likewise. | |
13630 | ||
13631 | * fs/sfs.c (grub_sfs_read_file): Likewise. | |
13632 | ||
13633 | * fs/ufs.c (grub_ufs_read_file): Likewise. | |
f19dbdb7 | 13634 | |
9959f7db | 13635 | * fs/xfs.c (grub_xfs_read_file): Likewise. |
13636 | ||
13637 | * command/blocklist.c (read_blocklist): Likewise. | |
13638 | (print_blocklist): Likewise. | |
13639 | ||
0a203f83 | 13640 | 2007-08-02 Marco Gerards <marco@gnu.org> |
13641 | ||
13642 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and | |
13643 | `util/hostfs.c'. | |
13644 | ||
13645 | * disk/host.c: New file. | |
13646 | ||
13647 | * util/hostfs.c: Likewise. | |
13648 | ||
13649 | * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk, | |
13650 | return `GRUB_ERR_BAD_FS'. | |
13651 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
13652 | * fs/xfs.c (grub_xfs_mount): Likewise. | |
13653 | ||
13654 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
13655 | `GRUB_DISK_DEVICE_HOST_ID'. | |
13656 | ||
13657 | * util/grub-emu.c (main): Initialize and de-initialize hostfs. | |
13658 | ||
e5dfe777 | 13659 | 2007-07-24 Jerone Young <jerone@gmail.com> |
13660 | ||
f19dbdb7 | 13661 | * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot |
e5dfe777 | 13662 | modules for compilation. |
13663 | * conf/powerpc-ieee1275.rmk: Likewise. | |
13664 | ||
13665 | * include/multiboot.h: Move multiboot definitions to one file. Rename | |
13666 | many definitions to not get grub specific. | |
13667 | * include/multiboot2.h: Create header with multiboot 2 definitions. | |
13668 | * include/grub/multiboot.h: Header for grub specific function | |
13669 | prototypes and definitions. | |
13670 | * include/grub/multiboot2.h: Likewise. | |
13671 | * include/grub/multiboot_loader.h: Likewise. | |
13672 | * include/grub/i386/pc/multiboot.h: Removed. | |
13673 | * include/grub/powerpc/ieee1275/multiboot.h: Removed. | |
13674 | ||
13675 | * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1 | |
13676 | and 2 to allow for one multiboot and module commands. | |
13677 | * loader/multiboot2.c: Add multiboot2 functionality. | |
13678 | * loader/i386/pc/multiboot.c: Modify for new multiboot header location | |
13679 | and definition names. | |
13680 | * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot | |
13681 | 2 functions. | |
13682 | * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc | |
13683 | ieee1275 specific multiboot2 code. | |
13684 | ||
13685 | * kern/i386/pc/startup.S: Change headers and definition names for | |
13686 | multiboot. Add function grub_multiboot2_real_boot for multiboot 2. | |
13687 | ||
daf0f0ba | 13688 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
13689 | ||
13690 | * geninitheader.sh: Process file specified in first parameter rather | |
13691 | than hardcoding grub_modules_init.lst. | |
fe6b695a | 13692 | * geninit.sh: Likewise. Also, construct header name dynamically rather |
daf0f0ba | 13693 | than hardcoding grub_modules_init.h. |
13694 | ||
13695 | * conf/common.rmk: Rename grub_modules_init.[ch] files associated with | |
13696 | grub-emu to grub_emu_init.[ch]. Add rules to build analogous | |
13697 | grub_probe_init.[ch] and grub_setup_init.[ch]. | |
13698 | ||
13699 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace | |
13700 | grub_modules_init.h with grub_emu_init.h. | |
13701 | (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new | |
13702 | grub_probe_init.[ch] files. | |
13703 | * conf/i386-efi.rmk: Likewise. | |
13704 | * conf/i386-pc.rmk: Likewise. | |
13705 | (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new | |
13706 | grub_setup_init.[ch] files. | |
13707 | ||
13708 | * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h. | |
13709 | * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all() | |
13710 | to initialize modules rather than a list of hardcoded functions. | |
13711 | * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use | |
13712 | grub_init_all() to initialize modules rather than a list of hardcoded | |
13713 | functions. | |
13714 | ||
54cdc1cc | 13715 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
13716 | ||
13717 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
13718 | GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware. | |
13719 | ||
ad0686cc | 13720 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
13721 | ||
13722 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
13723 | GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag. | |
13724 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this | |
13725 | flag when running on SmartFirmware. | |
13726 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running | |
13727 | "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT | |
13728 | was set. | |
13729 | ||
13730 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
13731 | Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set, | |
13732 | rather than decreasing it. | |
13733 | ||
13734 | * util/i386/pc/grub-setup.c (setup): When embedding is required, but | |
13735 | there's not enough space to do it, fail in the same way as when it | |
13736 | can't be done because there are no partitions. | |
13737 | ||
13738 | * util/powerpc/ieee1275/grub-install.in: Improve error message shown | |
13739 | when nvsetenv failed. | |
13740 | ||
969c02ec | 13741 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
13742 | ||
13743 | * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue, | |
13744 | because this rule is automatically generated. | |
13745 | (grub-mkrescue): Removed for the same reason as above. | |
13746 | ||
5a79f472 | 13747 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
13748 | ||
13749 | Migrate to GNU General Public License Version 3. | |
f19dbdb7 | 13750 | |
5a79f472 | 13751 | * COPYING: Replaced with the plain text version of GPLv3. |
13752 | ||
13753 | * config.guess: Updated from gnulib. | |
13754 | * config.sub: Likewise. | |
13755 | ||
13756 | * geninit.sh: Output a GPLv3 copyright notice. | |
13757 | * geninitheader.sh: Likewise. | |
13758 | * genmodsrc.sh: Likewise. | |
13759 | * gensymlist.sh.in: Likewise. | |
13760 | ||
13761 | * boot/i386/pc/boot.S: Upgraded to GPLv3. | |
13762 | * boot/i386/pc/diskboot.S: Likewise. | |
13763 | * boot/i386/pc/pxeboot.S: Likewise. | |
13764 | * commands/blocklist.c: Likewise. | |
13765 | * commands/boot.c: Likewise. | |
13766 | * commands/cat.c: Likewise. | |
13767 | * commands/cmp.c: Likewise. | |
13768 | * commands/configfile.c: Likewise. | |
13769 | * commands/echo.c: Likewise. | |
13770 | * commands/help.c: Likewise. | |
13771 | * commands/ls.c: Likewise. | |
13772 | * commands/search.c: Likewise. | |
13773 | * commands/terminal.c: Likewise. | |
13774 | * commands/test.c: Likewise. | |
13775 | * commands/videotest.c: Likewise. | |
13776 | * commands/i386/cpuid.c: Likewise. | |
13777 | * commands/i386/pc/halt.c: Likewise. | |
13778 | * commands/i386/pc/play.c: Likewise. | |
13779 | * commands/i386/pc/reboot.c: Likewise. | |
13780 | * commands/i386/pc/vbeinfo.c: Likewise. | |
13781 | * commands/i386/pc/vbetest.c: Likewise. | |
13782 | * commands/ieee1275/halt.c: Likewise. | |
13783 | * commands/ieee1275/reboot.c: Likewise. | |
13784 | * commands/ieee1275/suspend.c: Likewise. | |
13785 | * disk/loopback.c: Likewise. | |
13786 | * disk/lvm.c: Likewise. | |
13787 | * disk/raid.c: Likewise. | |
13788 | * disk/efi/efidisk.c: Likewise. | |
13789 | * disk/i386/pc/biosdisk.c: Likewise. | |
13790 | * disk/ieee1275/ofdisk.c: Likewise. | |
13791 | * font/manager.c: Likewise. | |
13792 | * fs/affs.c: Likewise. | |
13793 | * fs/ext2.c: Likewise. | |
13794 | * fs/fat.c: Likewise. | |
13795 | * fs/fshelp.c: Likewise. | |
13796 | * fs/hfs.c: Likewise. | |
13797 | * fs/hfsplus.c: Likewise. | |
13798 | * fs/iso9660.c: Likewise. | |
13799 | * fs/jfs.c: Likewise. | |
13800 | * fs/minix.c: Likewise. | |
13801 | * fs/sfs.c: Likewise. | |
13802 | * fs/ufs.c: Likewise. | |
13803 | * fs/xfs.c: Likewise. | |
13804 | * hello/hello.c: Likewise. | |
13805 | * include/grub/acorn_filecore.h: Likewise. | |
13806 | * include/grub/arg.h: Likewise. | |
13807 | * include/grub/bitmap.h: Likewise. | |
13808 | * include/grub/boot.h: Likewise. | |
13809 | * include/grub/cache.h: Likewise. | |
13810 | * include/grub/device.h: Likewise. | |
13811 | * include/grub/disk.h: Likewise. | |
13812 | * include/grub/dl.h: Likewise. | |
13813 | * include/grub/elfload.h: Likewise. | |
13814 | * include/grub/env.h: Likewise. | |
13815 | * include/grub/err.h: Likewise. | |
13816 | * include/grub/file.h: Likewise. | |
13817 | * include/grub/font.h: Likewise. | |
13818 | * include/grub/fs.h: Likewise. | |
13819 | * include/grub/fshelp.h: Likewise. | |
13820 | * include/grub/gzio.h: Likewise. | |
13821 | * include/grub/hfs.h: Likewise. | |
13822 | * include/grub/kernel.h: Likewise. | |
13823 | * include/grub/loader.h: Likewise. | |
13824 | * include/grub/lvm.h: Likewise. | |
13825 | * include/grub/misc.h: Likewise. | |
13826 | * include/grub/mm.h: Likewise. | |
13827 | * include/grub/net.h: Likewise. | |
13828 | * include/grub/normal.h: Likewise. | |
13829 | * include/grub/parser.h: Likewise. | |
13830 | * include/grub/partition.h: Likewise. | |
13831 | * include/grub/pc_partition.h: Likewise. | |
13832 | * include/grub/raid.h: Likewise. | |
13833 | * include/grub/rescue.h: Likewise. | |
13834 | * include/grub/script.h: Likewise. | |
13835 | * include/grub/setjmp.h: Likewise. | |
13836 | * include/grub/symbol.h: Likewise. | |
13837 | * include/grub/term.h: Likewise. | |
13838 | * include/grub/terminfo.h: Likewise. | |
13839 | * include/grub/tparm.h: Likewise. | |
13840 | * include/grub/types.h: Likewise. | |
13841 | * include/grub/video.h: Likewise. | |
13842 | * include/grub/efi/api.h: Likewise. | |
13843 | * include/grub/efi/chainloader.h: Likewise. | |
13844 | * include/grub/efi/console.h: Likewise. | |
13845 | * include/grub/efi/console_control.h: Likewise. | |
13846 | * include/grub/efi/disk.h: Likewise. | |
13847 | * include/grub/efi/efi.h: Likewise. | |
13848 | * include/grub/efi/pe32.h: Likewise. | |
13849 | * include/grub/efi/time.h: Likewise. | |
13850 | * include/grub/i386/linux.h: Likewise. | |
13851 | * include/grub/i386/setjmp.h: Likewise. | |
13852 | * include/grub/i386/types.h: Likewise. | |
13853 | * include/grub/i386/efi/kernel.h: Likewise. | |
13854 | * include/grub/i386/efi/loader.h: Likewise. | |
13855 | * include/grub/i386/efi/time.h: Likewise. | |
13856 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
13857 | * include/grub/i386/pc/boot.h: Likewise. | |
13858 | * include/grub/i386/pc/chainloader.h: Likewise. | |
13859 | * include/grub/i386/pc/console.h: Likewise. | |
13860 | * include/grub/i386/pc/init.h: Likewise. | |
13861 | * include/grub/i386/pc/kernel.h: Likewise. | |
13862 | * include/grub/i386/pc/loader.h: Likewise. | |
13863 | * include/grub/i386/pc/memory.h: Likewise. | |
13864 | * include/grub/i386/pc/multiboot.h: Likewise. | |
13865 | * include/grub/i386/pc/serial.h: Likewise. | |
13866 | * include/grub/i386/pc/time.h: Likewise. | |
13867 | * include/grub/i386/pc/vbe.h: Likewise. | |
13868 | * include/grub/i386/pc/vbeblit.h: Likewise. | |
13869 | * include/grub/i386/pc/vbefill.h: Likewise. | |
13870 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
13871 | * include/grub/i386/pc/vga.h: Likewise. | |
13872 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
13873 | * include/grub/ieee1275/ofdisk.h: Likewise. | |
13874 | * include/grub/powerpc/libgcc.h: Likewise. | |
13875 | * include/grub/powerpc/setjmp.h: Likewise. | |
13876 | * include/grub/powerpc/types.h: Likewise. | |
13877 | * include/grub/powerpc/ieee1275/biosdisk.h: Likewise. | |
13878 | * include/grub/powerpc/ieee1275/console.h: Likewise. | |
13879 | * include/grub/powerpc/ieee1275/ieee1275.h: Likewise. | |
13880 | * include/grub/powerpc/ieee1275/kernel.h: Likewise. | |
13881 | * include/grub/powerpc/ieee1275/loader.h: Likewise. | |
13882 | * include/grub/powerpc/ieee1275/multiboot.h: Likewise. | |
13883 | * include/grub/powerpc/ieee1275/time.h: Likewise. | |
13884 | * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
13885 | * include/grub/sparc64/libgcc.h: Likewise. | |
13886 | * include/grub/sparc64/setjmp.h: Likewise. | |
13887 | * include/grub/sparc64/types.h: Likewise. | |
13888 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
13889 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
13890 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
13891 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
13892 | * include/grub/util/biosdisk.h: Likewise. | |
13893 | * include/grub/util/getroot.h: Likewise. | |
13894 | * include/grub/util/lvm.h: Likewise. | |
13895 | * include/grub/util/misc.h: Likewise. | |
13896 | * include/grub/util/raid.h: Likewise. | |
13897 | * include/grub/util/resolve.h: Likewise. | |
13898 | * io/gzio.c: Likewise. | |
13899 | * kern/device.c: Likewise. | |
13900 | * kern/disk.c: Likewise. | |
13901 | * kern/dl.c: Likewise. | |
13902 | * kern/elf.c: Likewise. | |
13903 | * kern/env.c: Likewise. | |
13904 | * kern/err.c: Likewise. | |
13905 | * kern/file.c: Likewise. | |
13906 | * kern/fs.c: Likewise. | |
13907 | * kern/loader.c: Likewise. | |
13908 | * kern/main.c: Likewise. | |
13909 | * kern/misc.c: Likewise. | |
13910 | * kern/mm.c: Likewise. | |
13911 | * kern/parser.c: Likewise. | |
13912 | * kern/partition.c: Likewise. | |
13913 | * kern/rescue.c: Likewise. | |
13914 | * kern/term.c: Likewise. | |
13915 | * kern/efi/efi.c: Likewise. | |
13916 | * kern/efi/init.c: Likewise. | |
13917 | * kern/efi/mm.c: Likewise. | |
13918 | * kern/i386/dl.c: Likewise. | |
13919 | * kern/i386/efi/init.c: Likewise. | |
13920 | * kern/i386/efi/startup.S: Likewise. | |
13921 | * kern/i386/pc/init.c: Likewise. | |
13922 | * kern/i386/pc/lzo1x.S: Likewise. | |
13923 | * kern/i386/pc/startup.S: Likewise. | |
13924 | * kern/ieee1275/ieee1275.c: Likewise. | |
13925 | * kern/powerpc/cache.S: Likewise. | |
13926 | * kern/powerpc/dl.c: Likewise. | |
13927 | * kern/powerpc/ieee1275/cmain.c: Likewise. | |
13928 | * kern/powerpc/ieee1275/crt0.S: Likewise. | |
13929 | * kern/powerpc/ieee1275/init.c: Likewise. | |
13930 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
13931 | * kern/sparc64/cache.S: Likewise. | |
13932 | * kern/sparc64/dl.c: Likewise. | |
13933 | * kern/sparc64/ieee1275/init.c: Likewise. | |
13934 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
13935 | * loader/efi/chainloader.c: Likewise. | |
13936 | * loader/efi/chainloader_normal.c: Likewise. | |
13937 | * loader/i386/efi/linux.c: Likewise. | |
13938 | * loader/i386/efi/linux_normal.c: Likewise. | |
13939 | * loader/i386/pc/chainloader.c: Likewise. | |
13940 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
13941 | * loader/i386/pc/linux.c: Likewise. | |
13942 | * loader/i386/pc/linux_normal.c: Likewise. | |
13943 | * loader/i386/pc/multiboot.c: Likewise. | |
13944 | * loader/i386/pc/multiboot_normal.c: Likewise. | |
13945 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
13946 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
13947 | * normal/arg.c: Likewise. | |
13948 | * normal/cmdline.c: Likewise. | |
13949 | * normal/command.c: Likewise. | |
13950 | * normal/completion.c: Likewise. | |
13951 | * normal/execute.c: Likewise. | |
13952 | * normal/function.c: Likewise. | |
13953 | * normal/lexer.c: Likewise. | |
13954 | * normal/main.c: Likewise. | |
13955 | * normal/menu.c: Likewise. | |
13956 | * normal/menu_entry.c: Likewise. | |
13957 | * normal/misc.c: Likewise. | |
13958 | * normal/parser.y: Likewise. | |
13959 | * normal/script.c: Likewise. | |
13960 | * normal/i386/setjmp.S: Likewise. | |
13961 | * normal/powerpc/setjmp.S: Likewise. | |
13962 | * normal/sparc64/setjmp.S: Likewise. | |
13963 | * partmap/acorn.c: Likewise. | |
13964 | * partmap/amiga.c: Likewise. | |
13965 | * partmap/apple.c: Likewise. | |
13966 | * partmap/gpt.c: Likewise. | |
13967 | * partmap/pc.c: Likewise. | |
13968 | * partmap/sun.c: Likewise. | |
13969 | * term/gfxterm.c: Likewise. | |
13970 | * term/terminfo.c: Likewise. | |
13971 | * term/efi/console.c: Likewise. | |
13972 | * term/i386/pc/console.c: Likewise. | |
13973 | * term/i386/pc/serial.c: Likewise. | |
13974 | * term/i386/pc/vesafb.c: Likewise. | |
13975 | * term/i386/pc/vga.c: Likewise. | |
13976 | * term/ieee1275/ofconsole.c: Likewise. | |
13977 | * util/biosdisk.c: Likewise. | |
13978 | * util/console.c: Likewise. | |
13979 | * util/genmoddep.c: Likewise. | |
13980 | * util/getroot.c: Likewise. | |
13981 | * util/grub-emu.c: Likewise. | |
13982 | * util/grub-mkdevicemap.c: Likewise. | |
13983 | * util/grub-probe.c: Likewise. | |
13984 | * util/lvm.c: Likewise. | |
13985 | * util/misc.c: Likewise. | |
13986 | * util/raid.c: Likewise. | |
13987 | * util/resolve.c: Likewise. | |
13988 | * util/update-grub.in: Likewise. | |
13989 | * util/update-grub_lib.in: Likewise. | |
13990 | * util/grub.d/00_header.in: Likewise. | |
13991 | * util/grub.d/10_hurd.in: Likewise. | |
13992 | * util/grub.d/10_linux.in: Likewise. | |
13993 | * util/i386/efi/grub-install.in: Likewise. | |
13994 | * util/i386/efi/grub-mkimage.c: Likewise. | |
13995 | * util/i386/pc/grub-install.in: Likewise. | |
13996 | * util/i386/pc/grub-mkimage.c: Likewise. | |
13997 | * util/i386/pc/grub-mkrescue.in: Likewise. | |
13998 | * util/i386/pc/grub-setup.c: Likewise. | |
13999 | * util/i386/pc/misc.c: Likewise. | |
14000 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
14001 | * util/powerpc/ieee1275/grub-mkimage.c: Likewise. | |
14002 | * util/powerpc/ieee1275/misc.c: Likewise. | |
14003 | * video/bitmap.c: Likewise. | |
14004 | * video/video.c: Likewise. | |
14005 | * video/i386/pc/vbe.c: Likewise. | |
14006 | * video/i386/pc/vbeblit.c: Likewise. | |
14007 | * video/i386/pc/vbefill.c: Likewise. | |
14008 | * video/i386/pc/vbeutil.c: Likewise. | |
14009 | * video/readers/tga.c: Likewise. | |
14010 | ||
3572d015 | 14011 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
14012 | ||
14013 | * conf/i386-efi.rmk: Replace obsolete reference to | |
14014 | util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c | |
14015 | with util/getroot.c. | |
14016 | * conf/powerpc-ieee1275.rmk: Likewise. | |
14017 | * conf/sparc64-ieee1275.rmk: Likewise. | |
14018 | ||
14019 | * util/grub-emu.c (main): Fix unchecked pointer handling. | |
14020 | ||
2c2a681b | 14021 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
14022 | ||
14023 | * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap' | |
14024 | invocation to fail, in order to support partition-less media. | |
14025 | ||
14026 | * util/i386/pc/grub-install.in: Likewise. | |
14027 | ||
14028 | * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine | |
14029 | which fs or partmap modules are needed (akin to its sister scripts). | |
14030 | ||
14031 | Also use grub-probe to get rid of unportable /proc/mounts check. | |
14032 | ||
14033 | Print the same informational message that the other scripts do, before | |
fe6b695a | 14034 | exiting. |
2c2a681b | 14035 | |
6193defe | 14036 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
14037 | ||
fe6b695a | 14038 | * util/update-grub_lib.in (font_path): New function. Determine whether |
6193defe | 14039 | a font file can be found and, if so, echo the GRUB path to it. |
14040 | ||
14041 | * util/update-grub.in: Handle multiple terminals depending on user | |
14042 | input, platform availability and font file presence. Propagate | |
14043 | variables of our findings to /etc/grub.d/ children. | |
14044 | ||
14045 | * util/grub.d/00_header.in: Handle multiple terminals, based on | |
14046 | environment setup by update-grub. | |
14047 | ||
eface1dc | 14048 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
14049 | ||
ba50d28f | 14050 | * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod. |
eface1dc | 14051 | |
bf697e28 | 14052 | 2007-06-21 Robert Millan <rmh@aybabtu.com> |
14053 | ||
14054 | * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to | |
14055 | indicate end of data section in kernel image. | |
14056 | * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and | |
14057 | GRUB_KERNEL_MACHINE_DATA_END. | |
14058 | ||
14059 | * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve | |
14060 | space for it. | |
14061 | * kern/i386/efi/startup.S: Likewise. | |
14062 | ||
14063 | * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub | |
14064 | during image generation. Implement --prefix option to override this | |
14065 | patch. | |
14066 | * util/i386/efi/grub-mkimage.c: Likewise. | |
14067 | ||
14068 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Split | |
14069 | code to make path relative to its root into a separate function. | |
14070 | ||
14071 | * util/i386/pc/grub-install.in: Use newly provided | |
14072 | make_system_path_relative_to_its_root() to convert ${grubdir}, then | |
14073 | pass the result to grub-install --prefix. | |
14074 | ||
baa574b4 | 14075 | 2007-06-13 Robert Millan <rmh@aybabtu.com> |
14076 | ||
14077 | * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and | |
14078 | DEFAULT_DEVICE_MAP. | |
14079 | * util/grub-emu.c: Use above definitions from misc.h instead of | |
14080 | defining them. | |
14081 | * util/grub-mkdevicemap.c: Likewise. | |
14082 | * util/i386/pc/grub-setup.c: Likewise. | |
14083 | * util/grub-probe.c: Likewise. | |
14084 | (probe): Abort with grub_util_error() when either | |
14085 | grub_guess_root_device or grub_util_get_grub_dev fails. | |
14086 | ||
0215dcbf | 14087 | 2007-06-12 Robert Millan <rmh@aybabtu.com> |
14088 | ||
14089 | * normal/command.c (grub_command_execute): Use NULL rather than 0 for | |
14090 | "pager" assignment. | |
14091 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for | |
14092 | "pcdata". | |
14093 | * util/grub-probe.c (probe): Likewise for "drive_name". | |
14094 | ||
8af2ab7b | 14095 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
14096 | ||
14097 | * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes, | |
14098 | not just the cdrom one. | |
14099 | ||
59d31694 | 14100 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
14101 | ||
14102 | * util/i386/pc/grub-mkrescue.in: Add "set -e". | |
14103 | Add --pkglibdir=DIR option to override pkglibdir. | |
14104 | Mention --image-type=TYPE in help output. | |
14105 | Fix --grub-mkimage (it was a no-op). | |
fe6b695a | 14106 | Abort gracefully when no parameter is given. |
59d31694 | 14107 | |
7ee367e4 | 14108 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
14109 | ||
14110 | * util/i386/pc/grub-mkrescue.in: New file. | |
14111 | * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS. | |
14112 | * Makefile.in: Handle bin_SCRIPTS. | |
14113 | ||
29b0ed46 | 14114 | 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi> |
14115 | ||
14116 | * term/gfxterm.c (grub_gfxterm_init): Added support for specifying | |
14117 | list of video modes. | |
14118 | ||
c0f90770 | 14119 | 2007-06-06 Robert Millan <rmh@aybabtu.com> |
14120 | ||
14121 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if | |
14122 | file doesn't exist, or if it is in a filesystem grub can't read. | |
14123 | ||
14124 | * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do | |
14125 | not abort if GRUB_DRIVE could not be defined. Rearrange generated | |
14126 | header comment to fit in 80 columns when the variables are resolved. | |
14127 | ||
14128 | * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE | |
14129 | could be identified by update-grub. Remove redundant check for | |
fe6b695a | 14130 | unifont.pff existence (since convert_system_path_to_grub_path now |
c0f90770 | 14131 | handles that). |
14132 | ||
fb36dc26 | 14133 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
14134 | ||
14135 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c. | |
14136 | ||
14137 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. | |
14138 | ||
14139 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c. | |
14140 | ||
0c68c93e | 14141 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
14142 | ||
14143 | * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe. | |
14144 | ||
14145 | * include/grub/partition.h: Declare grub_apple_partition_map_init and | |
14146 | grub_apple_partition_map_fini. | |
14147 | ||
14148 | * util/biosdisk.c | |
14149 | (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed | |
14150 | to access >2 TiB disks). | |
14151 | ||
14152 | Print disk->total_sectors with %llu instead of %lu, since this | |
14153 | variable is always 64-bit (prevents wrong disk size from being displayed | |
14154 | on either >2 TiB disk or big-endian CPU). | |
14155 | ||
14156 | (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling | |
14157 | into a generic case that supports all (sane) partition maps. | |
14158 | ||
14159 | Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually | |
14160 | breaks big-endian. | |
14161 | ||
14162 | * util/grub-probe.c: Call grub_apple_partition_map_init() before probe() | |
14163 | and grub_apple_partition_map_fini() after that. | |
14164 | ||
0f23eb74 | 14165 | 2007-06-01 Robert Millan <rmh@aybabtu.com> |
14166 | ||
14167 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX. | |
14168 | ||
14169 | * util/grub.d/00_header.in: Only enable gfxterm when | |
14170 | convert_system_path_to_grub_path() succeeds. | |
14171 | ||
42c71976 | 14172 | 2007-05-20 Robert Millan <rmh@aybabtu.com> |
14173 | ||
14174 | * util/update-grub_lib.in: New file. | |
14175 | * DISTLIST: Add update-grub_lib.in. | |
14176 | * conf/common.rmk: Generate update-grub_lib and install it in | |
14177 | $(lib_DATA). | |
14178 | * Makefile.in: Add install routine for $(lib_DATA). | |
14179 | ||
14180 | * util/grub.d/00_header.in: Use convert_system_path_to_grub_path() | |
14181 | function provided by update-grub_lib to support arbitrary paths of | |
14182 | unifont.pff. | |
14183 | * util/update-grub.in: Use convert_system_path_to_grub_path() to | |
14184 | initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables. | |
14185 | ||
5beb2291 | 14186 | 2007-05-19 Robert Millan <rmh@aybabtu.com> |
14187 | ||
14188 | * commands/i386/cpuid.c: New module. | |
14189 | * DISTLIST: Add it. | |
14190 | * conf/i386-efi.rmk: Enable cpuid.mod. | |
14191 | * conf/i386-pc.rmk: Likewise. | |
14192 | ||
7262eca1 | 14193 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
14194 | ||
14195 | * kern/disk.c (grub_disk_read): Check return value of | |
14196 | grub_realloc(). | |
14197 | ||
260ba823 | 14198 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
14199 | ||
14200 | * util/getroot.c (grub_util_get_grub_dev): Support partitionable | |
14201 | arrays. | |
14202 | * disk/raid.c (grub_raid_open): Likewise. | |
14203 | ||
1ecb6cf2 | 14204 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
14205 | ||
14206 | * util/biosdisk.c (linux_find_partition): Allocate real_dev on the | |
14207 | stack instead of on the heap. | |
14208 | ||
14209 | * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough | |
14210 | before doing a read on it. | |
14211 | ||
14212 | * configure.ac: Only use -fno-stack-protector for the target | |
14213 | environment. | |
f19dbdb7 | 14214 | |
21c8cbb1 | 14215 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
14216 | ||
14217 | * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add | |
14218 | __attribute_ ((unused)) to mode_type argument. | |
14219 | ||
14220 | * util/getroot.c (grub_guess_root_device): Fix #endif. | |
f19dbdb7 | 14221 | |
21c8cbb1 | 14222 | * kern/misc.c (memcmp): Fix prototype. |
14223 | ||
14224 | * include/grub/partition.h [GRUB_UTIL] | |
14225 | (grub_gpt_partition_map_init): Add prototype. | |
14226 | (grub_gpt_partition_map_fini): Likewise. | |
14227 | ||
14228 | * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed) | |
14229 | at the right place. | |
14230 | ||
14231 | * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U. | |
14232 | (grub_fat_read_data): Likewise. | |
14233 | (grub_fat_find_dir): Likewise. | |
14234 | ||
14235 | * font/manager.c (find_glyph): Make table a const. | |
14236 | (grub_font_get_glyph): Remove bitmap from if statement. | |
f19dbdb7 | 14237 | |
849d55d3 | 14238 | 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx> |
14239 | ||
14240 | * util/getroot.c (grub_guess_root_device): Remove RAID and LVM | |
14241 | code, first search for device in /dev/mapper, then in /dev. | |
14242 | (grub_util_get_grub_dev): New function. | |
14243 | * include/grub/util/getroot.h (grub_util_get_grub_dev): Add | |
14244 | prototype. | |
14245 | * util/grub-probe.c (probe): Remove check for RAID, call | |
14246 | grub_util_get_grub_dev() instead of | |
14247 | grub_util_biosdisk_get_grub_dev(). | |
14248 | * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of | |
14249 | grub_util_biosdisk_get_grub_dev(). | |
14250 | * util/i386/pc/grub-setup.c (main): Likewise. | |
14251 | ||
8fff7c2f | 14252 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
14253 | ||
14254 | * DISTLIST: Update for the latest changes. | |
14255 | * conf/i386-pc.rmk: Use the new paths for util/getroot.c, | |
14256 | util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c. | |
14257 | * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with | |
14258 | grub/util/biosdisk.h. | |
14259 | * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with | |
14260 | grub/util/biosdisk.h. | |
14261 | ||
48e12b52 | 14262 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
14263 | ||
14264 | * util/grub.d/00_header.in: Set default gfxmode to `640x480'. | |
14265 | ||
46b9d128 | 14266 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
14267 | ||
14268 | * util/i386/efi/grub-install.in: New. | |
14269 | * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the | |
14270 | newly added grub-install. | |
14271 | * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h | |
14272 | include. | |
14273 | * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with | |
14274 | grub/util/biosdisk.h. | |
14275 | * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with | |
14276 | grub/util/biosdisk.h. | |
14277 | ||
2d1a40a9 | 14278 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
14279 | ||
14280 | * include/grub/i386/pc/util/biosdisk.h: Moved to ... | |
14281 | * include/grub/util/biosdisk.h: ... here. | |
14282 | * util/i386/pc/biosdisk.c: Moved to ... | |
14283 | * util/biosdisk.c: ... here. | |
14284 | * util/i386/pc/getroot.c: Moved to ... | |
14285 | * util/getroot.c: ... here. | |
14286 | * util/i386/pc/grub-mkdevicemap.c: Moved to ... | |
14287 | * util/grub-mkdevicemap.c: ... here. | |
14288 | * util/i386/pc/grub-probe.c: Moved to ... | |
14289 | * util/grub-probe.c: ... here. | |
14290 | ||
9e26e3bc | 14291 | 2007-05-15 Robert Millan <rmh@aybabtu.com> |
14292 | ||
14293 | * util/update-grub.in: Remove duplicated line in grub.cfg header | |
14294 | message. | |
14295 | ||
57f96397 | 14296 | 2007-05-13 Robert Millan <rmh@aybabtu.com> |
14297 | ||
14298 | * util/update-grub.in: Fix a few assumptions about the devices holding | |
14299 | /, /boot and /boot/grub being the same. | |
14300 | * util/grub.d/00_header.in: Likewise. | |
14301 | * util/grub.d/10_hurd.in: Likewise. | |
14302 | * util/grub.d/10_linux.in: Likewise. | |
14303 | ||
14304 | * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary | |
14305 | patterns. Use that to define the `.old' suffix as older than `'. | |
14306 | ||
14307 | * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'. | |
14308 | ||
14309 | * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in | |
14310 | the grub.cfg header message. | |
14311 | ||
2e610d62 | 14312 | 2007-05-11 Robert Millan <rmh@aybabtu.com> |
14313 | ||
14314 | * util/update-grub.in: Create device.map if it doesn't already exist, | |
14315 | before attempting to run grub-probe. | |
14316 | Check for grub-probe and grub-mkdevicemap with the same code | |
14317 | grub-install is using. | |
14318 | Remove test mode. | |
14319 | ||
3f6a10ef | 14320 | 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx> |
14321 | ||
14322 | * Makefile.in: Add the datarootdir autoconf variable. | |
14323 | ||
02e7b75e | 14324 | 2007-05-09 Robert Millan <rmh@aybabtu.com> |
14325 | ||
14326 | * util/i386/pc/grub-probe.c (probe): When detecting partition map, | |
f19dbdb7 | 14327 | fail gracefully if dev->disk->partition == NULL. |
02e7b75e | 14328 | |
75f396cc | 14329 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
14330 | ||
14331 | * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to | |
14332 | determine partition map module. | |
14333 | * util/i386/pc/grub-install.in: Use this feature to decide which | |
14334 | partition module to load, instead of hardcoding pc and gpt. | |
14335 | ||
da65cb36 | 14336 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
14337 | ||
14338 | * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when | |
14339 | source directory differs from build directory. | |
14340 | ||
b57d6a91 | 14341 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
14342 | ||
14343 | * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir | |
14344 | initialisation. | |
14345 | ||
509d00f1 | 14346 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
14347 | ||
14348 | * util/update-grub.in: Create ${grub_prefix} if it doesn't exist. | |
14349 | ||
c48f23ef | 14350 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
14351 | ||
14352 | * util/grub.d/10_linux.in: Allow the administrator to insert Linux | |
14353 | command-line arguments via ${GRUB_CMDLINE_LINUX}. | |
14354 | ||
20b97658 | 14355 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
14356 | ||
14357 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c. | |
14358 | (grub_probe_SOURCES): Likewise. | |
14359 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect | |
14360 | GPT and initialize dos_part and bsd_part accordingly. | |
14361 | * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and | |
14362 | install_bsd_part. | |
14363 | (main): Activate gpt module for use during partition identification, | |
14364 | and deactivate it afterwards. | |
14365 | * util/i386/pc/grub-install.in: Add gpt module to core.img. | |
14366 | * util/i386/pc/grub-probe.c (main): Activate gpt module for use during | |
14367 | partition identification, and deactivate it afterwards. | |
14368 | ||
99123174 | 14369 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
14370 | ||
14371 | * term/i386/pc/console.c (grub_console_fini): Call | |
14372 | grub_term_set_current() before grub_term_unregister(). | |
14373 | ||
ebd97f6e | 14374 | 2007-05-04 Robert Millan <rmh@aybabtu.com> |
14375 | ||
14376 | * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in, | |
14377 | util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README. | |
14378 | * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS | |
14379 | and update-grub_DATA. | |
14380 | * conf/common.rmk: Build and install update-grub components. | |
14381 | * conf/common.mk: Regenerate. | |
14382 | * util/update-grub.in: New. Core of update-grub. | |
14383 | * util/grub.d/00_header.in: New. Generates grub.cfg header. | |
14384 | * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd. | |
14385 | * util/grub.d/10_linux.in: New. Generates boot entries for Linux. | |
14386 | * util/grub.d/README: New. Document grub.d directory layout. | |
14387 | ||
b06a264d | 14388 | 2007-05-01 Robert Millan <rmh@aybabtu.com> |
14389 | ||
14390 | * util/grub-emu.c: Move initialization functions | |
14391 | grub_util_biosdisk_init() and grub_init_all() before | |
14392 | grub_util_biosdisk_get_grub_dev(), which relies on them. | |
14393 | ||
41f0050e | 14394 | 2007-04-19 Robert Millan <rmh@aybabtu.com> |
14395 | ||
14396 | * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since | |
14397 | it is used later. | |
14398 | ||
04582bb3 | 14399 | 2007-04-18 Jerone Young <jerone@gmail.com> |
14400 | ||
f19dbdb7 | 14401 | * kernel/elf.c: Add missing parenthesis for conditional statement |
04582bb3 | 14402 | stanza. |
14403 | ||
08db4632 | 14404 | 2007-04-10 Jerone Young <jerone@gmail.com> |
49892fdf | 14405 | |
08db4632 | 14406 | * util/i386/pc/getroot.c: Update so that if root device is /dev/root , |
14407 | continue on and look for device node with real device name. | |
14408 | ||
801b76be | 14409 | 2007-04-10 Jerone Young <jerone@gmail.com> |
f19dbdb7 | 14410 | |
fe6b695a | 14411 | * configure.ac: Add argument for autoconf to use transformation |
1d543c3e | 14412 | ability. |
14413 | * Makefile.in: Add autoconf package transformation code. | |
14414 | * util/i386/pc/grub-install.in: Likewise. | |
14415 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
14416 | ||
6795c4e1 | 14417 | 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
14418 | ||
14419 | * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro. | |
14420 | (EXT2_GOOD_OLD_INODE_SIZE): Likewise. | |
14421 | (EXT2_REVISION): Likewise. | |
14422 | (EXT2_INODE_SIZE): Likewise. | |
14423 | (struct grub_ext2_block_group): Added a missing member | |
14424 | "used_dirs". | |
14425 | (grub_ext2_read_inode): Divide by the inode size in a superblock | |
14426 | instead of 128 to obtain INODES_PER_BLOCK. | |
14427 | Use the macro EXT2_INODE_SIZE instead of directly using | |
14428 | SBLOCK->INODE_SIZE. | |
14429 | ||
d70af616 | 14430 | 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
14431 | ||
14432 | * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a | |
14433 | superblock instead of the structure size to compute an | |
14434 | offset. This fixes the problem that GRUB could not read a | |
14435 | filesystem when inode size is different from 128-byte. | |
14436 | ||
3b801603 | 14437 | 2007-03-05 Marco Gerards <marco@gnu.org> |
14438 | ||
14439 | * normal/main.c (read_config_file): When "menu" is not set, create | |
14440 | an initial context. | |
14441 | ||
4785bfe4 | 14442 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
14443 | ||
14444 | * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed. | |
14445 | (HEAP_LIMIT): New macro. | |
14446 | (grub_claim_heap): Claim memory up to `heaplimit'. | |
14447 | ||
a0cbb023 | 14448 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
14449 | ||
14450 | * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB. | |
14451 | * kern/powerpc/ieee1275/init.c (_end): Add declaration. | |
14452 | (_start): Likewise. | |
14453 | (grub_arch_modules_addr): Return address after `_end'. | |
14454 | * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h. | |
14455 | (load_modules): Use new parameter as `p_paddr' and `p_vaddr'. | |
14456 | (add_segments): Calculate `_end' from phdr size and location. | |
14457 | (ALIGN_UP): Moved to ... | |
14458 | * include/grub/misc.h: here. | |
14459 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
14460 | New macro. | |
14461 | (GRUB_IEEE1275_MODULE_BASE): Removed. | |
14462 | ||
fd7d8eba | 14463 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
14464 | ||
14465 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct | |
14466 | loop boundary. | |
14467 | ||
9b09e6fc | 14468 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
14469 | ||
14470 | * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t. | |
14471 | All users updated. | |
14472 | (grub_elf64_load_hook_t): Likewise. | |
14473 | * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve | |
14474 | debug output. | |
14475 | ||
3ce27299 | 14476 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
14477 | ||
14478 | * kern/mm.c: Update copyright. | |
14479 | (grub_mm_debug): Correct syntax error. | |
14480 | (grub_mm_dump_free): New function. | |
14481 | (grub_debug_free): Call `grub_free'. | |
14482 | * include/grub/mm.h: Update copyright. | |
14483 | (grub_mm_dump_free): Add declaration. | |
14484 | ||
077d5fee | 14485 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
14486 | ||
14487 | * include/grub/ieee1275/ieee1275.h: Update copyright. | |
14488 | * kern/powerpc/ieee1275/init.c: Likewise. | |
14489 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
14490 | ||
14491 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
14492 | * include/grub/elfload.h: Likewise. | |
14493 | * kern/elf.c: Likewise. | |
14494 | (grub_elf32_load): Pass `base' and `size' parameters. Update all | |
14495 | callers. | |
14496 | (grub_elf64_load): Likewise. | |
14497 | (grub_elf32_load_segment): Move to a nested function. | |
14498 | (grub_elf64_load_segment): Likewise. | |
14499 | ||
dc946850 | 14500 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
14501 | ||
14502 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New | |
14503 | prototype. | |
14504 | * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed. | |
14505 | (grub_heap_len): Likewise. | |
14506 | (HEAP_SIZE): New macro. | |
14507 | (grub_claim_heap): New function. | |
14508 | (grub_machine_init): Don't claim heap directly. Call | |
14509 | `grub_claim_heap'. | |
14510 | * kern/powerpc/ieee1275/openfw.c: Include alloca.h. | |
14511 | (grub_available_iterate): New function. | |
14512 | ||
baa2a121 | 14513 | 2007-02-03 Thomas Schwinge <tschwinge@gnu.org> |
14514 | ||
14515 | * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition. | |
14516 | * configure.ac: Use it for testing the HOST and TARGET compilers. | |
14517 | ||
4fe9862e | 14518 | 2006-12-13 Thomas Schwinge <tschwinge@gnu.org> |
14519 | ||
14520 | * Makefile.in (enable_grub_emu): New variable. | |
14521 | * configure.ac (--enable-grub-emu): New option. | |
14522 | Do the checks for (n)curses only if `--enable-grub-emu' is requested. | |
14523 | * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested. | |
14524 | * conf/i386-pc.rmk: Likewise. | |
14525 | * conf/powerpc-ieee1275.rmk: Likewise. | |
14526 | * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise. | |
14527 | ||
a8aa5762 | 14528 | 2006-12-12 Marco Gerards <marco@gnu.org> |
14529 | ||
14530 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'. | |
14531 | ||
14532 | * kern/env.c (grub_env_unset): Don't free the member `value' when | |
14533 | the type is GRUB_ENV_VAR_DATA, in this case it's a user defined | |
14534 | pointer. | |
14535 | ||
14536 | * normal/main.c (current_menu): Removed. | |
14537 | (free_menu): Unset the `menu' environment variable. | |
14538 | (grub_normal_menu_addentry): Make use of the environment variable | |
14539 | `menu', instead of using the global `current_menu'. Allocate | |
14540 | memory for the sourcecode of this entry. | |
14541 | (read_config_file): New argument `nested', changed all callers. | |
14542 | Only in the case of a new context, initialize a new menu. Set the | |
14543 | `menu' environment variable. | |
14544 | (grub_normal_execute): Don't set and unset the environment | |
14545 | variable `menu' here anymore. Only free the menu when leaving the | |
14546 | context. | |
14547 | ||
14548 | * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory | |
14549 | leak. | |
14550 | ||
957b3a3e | 14551 | 2006-12-11 Marco Gerards <marco@gnu.org> |
14552 | ||
14553 | * normal/menu_entry.c (run): Fix off by one bug so the last line | |
14554 | is executed. Move the loader check to outside the loop. | |
14555 | ||
ef875714 | 14556 | 2006-12-08 Hollis Blanchard <hollis@penguinppc.org> |
14557 | ||
14558 | * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'. | |
14559 | ||
4e739985 | 14560 | 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org> |
14561 | ||
14562 | * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of | |
14563 | the number of sectors. Reported by Andrey Shuvikov | |
14564 | <mr_hyro@yahoo.com>. | |
f19dbdb7 | 14565 | |
790707f2 | 14566 | 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx> |
14567 | ||
14568 | * kern/disk.c (grub_disk_read): When there is a read error, always | |
14569 | try to read only the necessary data. | |
f19dbdb7 | 14570 | |
790707f2 | 14571 | * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and |
14572 | disk/raid.c. | |
14573 | * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New | |
14574 | prototype. | |
14575 | [GRUB_UTIL] (grub_raid_fini): Likewise. | |
14576 | [GRUB_UTIL] (grub_lvm_init): Likewise. | |
f19dbdb7 | 14577 | [GRUB_UTIL] (grub_lvm_fini): Likewise. |
790707f2 | 14578 | * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is |
14579 | RAID device and copy DEVICE_NAME to DRIVE_NAME in that case. | |
14580 | (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini() | |
14581 | and grub_raid_fini(). | |
f19dbdb7 | 14582 | |
03e58196 | 14583 | 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
14584 | ||
14585 | * include/grub/types.h (__unused): Rename to UNUSED. | |
14586 | * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused. | |
14587 | (grub_elf64_size): Likewise. | |
f19dbdb7 | 14588 | |
ae4f23bf | 14589 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
14590 | ||
14591 | * kern/elf.c (grub_elf_file): Call grub_file_seek. Call | |
14592 | grub_error_push and grub_error_pop in the error-handling path. | |
14593 | (grub_elf32_load_segment): Only call grub_file_read with non-zero | |
14594 | length. | |
14595 | ||
2166cc83 | 14596 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
14597 | ||
14598 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c. | |
14599 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
14600 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
14601 | (kernel_elf_SOURCES): Likewise. | |
14602 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h. | |
14603 | * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise. | |
14604 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
14605 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
14606 | * conf/common.rmk (pkgdata_MODULES): Add elf.mod. | |
14607 | (elf_mod_SOURCES): New variable. | |
14608 | (elf_mod_CFLAGS): Likewise. | |
14609 | (elf_mod_LDFLAGS): Likewise. | |
14610 | * include/grub/types.h (__unused): New macro. | |
14611 | * include/grub/elfload.h: New file. | |
14612 | * kern/elf.c: Likewise. | |
14613 | * loader/powerpc/ieee1275/linux.c: Include elfload.h. | |
14614 | (ELF32_LOADMASK): New macro. | |
14615 | (ELF64_LOADMASK): Likewise. | |
14616 | (vmlinux): Removed. | |
14617 | (grub_linux_load32): New function. | |
14618 | (grub_linux_load64): Likewise. | |
14619 | (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64. | |
14620 | Use grub_elf_t instead of grub_file_t. | |
14621 | ||
a09d5aa5 | 14622 | 2006-11-02 Hollis Blanchard <hollis@penguinppc.org> |
14623 | ||
14624 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add | |
14625 | `catch_result' to struct set_color_args. | |
14626 | ||
d976fc51 | 14627 | 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
14628 | ||
14629 | * normal/menu.c: Include grub/script.h. | |
14630 | * normal/menu_entry.c: Likewise. | |
14631 | * include/grub/normal.h: Do not include grub/script.h. | |
14632 | ||
67507549 | 14633 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
14634 | ||
14635 | * kern/disk.c (grub_disk_read): Correct debug printf formatting. | |
14636 | ||
69203a99 | 14637 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
14638 | ||
14639 | * kern/disk.c (grub_disk_open): Print debug messages when opening a | |
14640 | disk. | |
14641 | (grub_disk_close): Print debug messages when closing a disk. | |
14642 | (grub_disk_read): Print debug messages when disk read fails. | |
14643 | * kern/fs.c (grub_fs_probe): Print debug messages when detecting | |
14644 | filesystem type. | |
14645 | * kern/partition.c: Include misc.h. | |
14646 | (grub_partition_iterate): Print debug messages when detecting | |
14647 | partition type. | |
14648 | ||
e2b8278c | 14649 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
14650 | ||
14651 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status' | |
14652 | is negative. | |
14653 | * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0. | |
14654 | ||
97b2f2ff | 14655 | 2006-10-26 Hollis Blanchard <hollis@penguinppc.org> |
14656 | ||
14657 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
14658 | Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test. | |
14659 | ||
6555d655 | 14660 | 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx> |
14661 | ||
14662 | * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes | |
14663 | instead of sizeof(lv). Patch by Michael Guntsche. | |
14664 | ||
4d42b77f | 14665 | 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx> |
14666 | ||
14667 | * disk/lvm.c: Rename VGS to VG_LIST. | |
14668 | (grub_lvm_iterate): Change VGS->LV to VG-LV. | |
14669 | (grub_lvm_open): Likewise. | |
14670 | Thanks to Michael Guntsche for finding this bug. | |
14671 | ||
5d74d927 | 14672 | 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
14673 | ||
14674 | * configure.ac (AC_INIT): Bumped to 1.95. | |
14675 | ||
a1bb27e4 | 14676 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
14677 | ||
14678 | * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev | |
14679 | with "/dev/.static/dev/md". | |
14680 | ||
e0994b8b | 14681 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
14682 | ||
14683 | * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of | |
14684 | DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open | |
14685 | DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and | |
14686 | DRIVE_NAME are always freed. | |
14687 | ||
14688 | * util/i386/pc/biosdisk.c (make_device_name): Add one into | |
14689 | DOS_PART, as a DOS partition is counted from one instead of zero | |
14690 | now. Reported by Robert Millan. | |
14691 | ||
ddd5cee9 | 14692 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
14693 | ||
14694 | * util/i386/pc/getroot.c (grub_guess_root_device): Stop using | |
14695 | grub_util_biosdisk_get_grub_dev to convert system device to GRUB device. | |
14696 | * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the | |
14697 | string returned by grub_guess_root_device. | |
14698 | * util/i386/pc/grub-setup.c: Likewise. | |
14699 | * util/i386/pc/grub-probefs.c: Likewise. | |
14700 | ||
14701 | * util/i386/pc/grub-probefs.c: Rename to ... | |
14702 | * util/i386/pc/grub-probe.c: ... this. | |
14703 | * DISTLIST: Remove grub-probefs, add grub-probe. | |
14704 | * conf/i386-efi.rmk: Likewise. | |
14705 | * conf/i386-pc.rmk: Likewise. | |
14706 | * util/i386/pc/grub-install.in: Likewise. | |
14707 | ||
14708 | * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to | |
14709 | choose which information we want to print. | |
14710 | ||
2b002173 | 14711 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
14712 | ||
14713 | * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c, | |
14714 | include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h, | |
14715 | include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h, | |
14716 | include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c, | |
14717 | video/readers/tga.c and video/i386/pc/vbeutil.c. | |
14718 | ||
14719 | 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx> | |
14720 | ||
14721 | Added support for RAID and LVM. | |
f19dbdb7 | 14722 | |
2b002173 | 14723 | * disk/lvm.c: New file. |
14724 | * disk/raid.c: Likewise. | |
14725 | * include/grub/lvm.h: Likewise. | |
f19dbdb7 | 14726 | * include/grub/raid.h: Likewise. |
2b002173 | 14727 | * include/grub/util/lvm.h: Likewise. |
14728 | * include/grub/util/raid.h: Likewise. | |
14729 | * util/lvm.c: Likewise. | |
14730 | * util/raid.c: Likewise. | |
14731 | ||
14732 | * include/grub/disk.h (grub_disk_dev_id): Add | |
14733 | GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID. | |
14734 | (grub_disk_get_size): New prototype. | |
14735 | * kern/disk.c (grub_disk_open): Check whether grub_partition_probe() | |
14736 | returns a partition. | |
14737 | (grub_disk_get_size): New function. | |
f19dbdb7 | 14738 | |
2b002173 | 14739 | * kern/i386/pc/init.c (make_install_device): Copy the prefix |
14740 | verbatim if grub_install_dos_part is -2. | |
14741 | ||
14742 | * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID | |
14743 | and LVM devices. | |
14744 | ||
14745 | * util/i386/pc/grub-setup.c (setup): New argument | |
14746 | MUST_EMBED. Force embedding of GRUB when the argument is | |
14747 | true. Close FILE before returning. | |
14748 | (main): Add support for RAID and LVM. | |
f19dbdb7 | 14749 | |
2b002173 | 14750 | * conf/common.rmk: Add RAID and LVM modules. |
14751 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and | |
14752 | util/lvm.c. | |
14753 | (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c. | |
14754 | ||
14755 | * kern/misc.c (grub_strstr): New function. | |
14756 | * include/grub/misc.h (grub_strstr): New prototype. | |
14757 | ||
050548d0 | 14758 | 2006-10-10 Tristan Gingold <tristan.gingold@bull.net> |
14759 | ||
14760 | * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant. | |
14761 | ||
da849d2d | 14762 | 2006-10-05 Tristan Gingold <tristan.gingold@bull.net> |
14763 | ||
14764 | * kern/misc.c (grub_strtoull): Guess the base only if not | |
14765 | specified. | |
14766 | ||
97b2f2ff | 14767 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
4f0acd39 | 14768 | |
14769 | * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World | |
14770 | PowerMac support. | |
14771 | ||
97b2f2ff | 14772 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
fba51f48 | 14773 | |
14774 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long. | |
14775 | ||
14776 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property): | |
14777 | Remove `flags' argument. All callers changed. | |
14778 | * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed. | |
14779 | (IEEE1275_IHANDLE_INVALID): New variable. | |
14780 | (IEEE1275_CELL_INVALID): New variable. | |
14781 | (grub_ieee1275_finddevice, grub_ieee1275_get_property, | |
14782 | grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package, | |
14783 | grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path, | |
14784 | grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open, | |
14785 | grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return | |
14786 | codes from Open Firmware. All callers updated. | |
14787 | (grub_ieee1275_next_property): Directly return Open Firmware return | |
14788 | code. | |
14789 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): | |
14790 | Standardize error checking from `grub_ieee1275_get_property'. | |
14791 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename | |
14792 | `devalias' to `aliases'. Correct comments. Consolidate error paths. | |
14793 | ||
97b2f2ff | 14794 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
cc6d3df3 | 14795 | |
14796 | * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename | |
14797 | `instance_to_package_args' to `instance_to_path_args'. | |
14798 | ||
14799 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Use | |
14800 | `grub_ieee1275_chosen'. | |
14801 | ||
14802 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call | |
14803 | `grub_ieee1275_interpret'. | |
14804 | ||
97b2f2ff | 14805 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
02bb8acc | 14806 | |
14807 | * util/powerpc/ieee1275/grub-mkimage.c: Include config.h. | |
14808 | ||
97b2f2ff | 14809 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
663b72f0 | 14810 | |
14811 | * include/grub/powerpc/libgcc.h (__floatdisf): New prototype. | |
14812 | (__cmpdi): Likewise. | |
14813 | ||
14814 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as | |
14815 | `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type | |
14816 | `grub_ssize_t'. | |
14817 | ||
02bb8acc | 14818 | * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h. |
663b72f0 | 14819 | |
14820 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual' | |
14821 | to type `grub_ssize_t'. | |
14822 | (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'. | |
14823 | ||
7f9a8531 | 14824 | 2006-09-22 Marco Gerards <marco@gnu.org> |
14825 | ||
14826 | * normal/script.c (grub_script_create_cmdmenu): Skip leading | |
14827 | newlines. | |
14828 | ||
b5ef1102 | 14829 | 2006-09-22 Marco Gerards <marco@gnu.org> |
14830 | ||
14831 | * commands/echo.c: New file. | |
14832 | ||
14833 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'. | |
14834 | ||
14835 | * conf/common.rmk (echo_mod_SOURCES): New variable. | |
14836 | (echo_mod_CFLAGS): Likewise. | |
14837 | (echo_mod_LDFLAGS): Likewise. | |
14838 | ||
2cff3677 | 14839 | 2006-09-22 Marco Gerards <marco@gnu.org> |
14840 | ||
14841 | * normal/main.c (get_line): Malloc memory instead of using | |
14842 | preallocated memory. Removed the arguments `cmdline' and | |
14843 | `max_len'. Updated all callers. | |
14844 | ||
6ba4688b | 14845 | 2006-09-22 Marco Gerards <marco@gnu.org> |
14846 | ||
14847 | * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable. | |
14848 | (normal_mod_DEPENDENCIES): Likewise. | |
14849 | ||
14850 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise. | |
14851 | (normal_mod_DEPENDENCIES): Likewise. | |
14852 | ||
14853 | * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise. | |
14854 | ||
e02ac02c | 14855 | 2006-09-22 Johan Rydberg <jrydberg@gnu.org> |
14856 | ||
14857 | * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and | |
14858 | programs. | |
14859 | * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare. | |
14860 | (normal_mod_DEPENDENCIES): Likewise. | |
14861 | * conf/i386-pc.mk: Regenerate. | |
14862 | * conf/i386-efi.mk: Likewise | |
14863 | * conf/common.mk: Likewise. | |
14864 | * conf/powerpc-ieee1275.mk: Likewise. | |
14865 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 14866 | |
8d252e44 | 14867 | 2006-09-22 Robert Millan <rmh@aybabtu.com> |
14868 | ||
14869 | Sync with i386 version. | |
14870 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage. | |
14871 | * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu. | |
14872 | ||
209bf7ac | 14873 | 2006-09-21 Robert Millan <rmh@aybabtu.com> |
14874 | ||
14875 | Import from GRUB Legacy (lib/device.c): | |
14876 | * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function. | |
14877 | (init_device_map) [__linux__]: Add support for I2O devices. | |
14878 | ||
6b146090 | 14879 | 2006-09-14 Marco Gerards <marco@gnu.org> |
14880 | ||
14881 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of | |
14882 | `-melf_i386'. | |
14883 | ||
e38600a8 | 14884 | 2006-09-14 Robert Millan <rmh@aybabtu.com> |
2952da5d | 14885 | |
14886 | * util/i386/pc/grub-install.in: Skip menu.lst when removing | |
14887 | /boot/grub/*.lst. | |
78fa1790 | 14888 | |
2952da5d | 14889 | * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static"). |
6b146090 | 14890 | |
2952da5d | 14891 | * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists |
14892 | before adding it to device.map. | |
14893 | ||
01b82a64 | 14894 | 2006-08-15 Johan Rydberg <jrydberg@gnu.org> |
14895 | ||
fe6b695a | 14896 | * genmk.rb: Let GCC generate dependencies the first time it |
01b82a64 | 14897 | compiles a file; using the -MD option. |
14898 | * conf/common.mk: Regenerate. | |
14899 | * conf/i386-pc.mk: Likewise. | |
14900 | * conf/i386-efi.mk: Likewise. | |
14901 | * conf/powerpc-ieee1275.mk: Likewise. | |
14902 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 14903 | |
1064790d | 14904 | 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org> |
14905 | ||
14906 | Move the prototypes of grub_setjmp and grub_longjmp to | |
14907 | cpu/setjmp.h, so that each architecture may specify different | |
14908 | attributes. | |
f19dbdb7 | 14909 | |
1064790d | 14910 | * include/grub/i386/setjmp.h (grub_setjmp): New prototype. |
14911 | (grub_longjmp): Likewise. | |
14912 | * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.. | |
14913 | (grub_longjmp): Likewise. | |
14914 | * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise.. | |
14915 | (grub_longjmp): Likewise. | |
14916 | ||
14917 | * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed. | |
14918 | [!GRUB_UTIL] (grub_longjmp): Removed. | |
14919 | ||
29dda3ed | 14920 | 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr> |
14921 | ||
14922 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275 | |
14923 | "color!" method does not return any value. | |
14924 | ||
ad2a06ed | 14925 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
14926 | ||
14927 | * include/grub/bitmap.h: New file. | |
14928 | ||
14929 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
14930 | ||
14931 | * video/bitmap.c: Likewise. | |
14932 | ||
14933 | * video/readers/tga.c: Likewise. | |
14934 | ||
14935 | * video/i386/pc/vbeutil.c: Likewise. | |
14936 | ||
14937 | * commands/videotest.c: Code cleanup and updated to reflect to new | |
14938 | video API. | |
14939 | ||
14940 | * term/gfxterm.c: Likewise. | |
14941 | ||
14942 | * video/video.c: Likewise. | |
14943 | ||
14944 | * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod. | |
14945 | (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c. | |
14946 | (bitmap_mod_SOURCES): New entry. | |
14947 | (bitmap_mod_CFLAGS): Likewise. | |
14948 | (bitmap_mod_LDFLAGS): Likewise. | |
14949 | (tga_mod_SOURCES): Likewise. | |
14950 | (tga_mod_CFLAGS): Likewise. | |
14951 | (tga_mod_LDFLAGS): Likewise. | |
14952 | ||
14953 | * include/grub/video.h (grub_video_blit_operators): New enum type. | |
14954 | (grub_video_render_target): Changed as forward declaration and moved | |
14955 | actual definition to be video driver specific. | |
14956 | (grub_video_adapter.blit_bitmap): Added blitting operator. | |
14957 | (grub_video_adapter.blit_render_target): Likewise. | |
14958 | (grub_video_blit_bitmap): Likewise. | |
14959 | (grub_video_blit_render_target): Likewise. | |
14960 | ||
14961 | * include/grub/i386/pc/vbe.h (grub_video_render_target): Added | |
14962 | driver specific render target definition. | |
14963 | (grub_video_vbe_map_rgba): Added driver internal helper. | |
14964 | (grub_video_vbe_unmap_color): Updated to use | |
14965 | grub_video_i386_vbeblit_info. | |
14966 | (grub_video_vbe_get_video_ptr): Likewise. | |
14967 | ||
14968 | * include/grub/i386/pc/vbeblit.h | |
14969 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use | |
14970 | grub_video_i386_vbeblit_info. | |
14971 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
14972 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
14973 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
14974 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
14975 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
14976 | (grub_video_i386_vbeblit_index_index): Likewise. | |
14977 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function. | |
14978 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
14979 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
14980 | (grub_video_i386_vbeblit_blend): Added generic blitter for blend | |
14981 | operator. | |
14982 | (grub_video_i386_vbeblit_replace): Added generic blitter for replace | |
14983 | operator. | |
14984 | ||
14985 | * video/i386/pc/vbeblit.c: Updated to reflect changes on | |
14986 | include/grub/i386/pc/vbeblit.h. | |
14987 | ||
14988 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8): | |
14989 | Updated to use grub_video_i386_vbeblit_info. | |
14990 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
14991 | (grub_video_i386_vbefill_index): Likewise. | |
14992 | (grub_video_i386_vbefill): Added generic filler. | |
14993 | ||
14994 | * video/i386/pc/vbefill.c: Updated to reflect changes on | |
14995 | include/grub/i386/pc/vbefill.h. | |
14996 | ||
14997 | * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use | |
14998 | grub_video_i386_vbeblit_info. | |
14999 | (grub_video_vbe_unmap_color): Likewise. | |
15000 | (grub_video_vbe_blit_glyph): Likewise. | |
15001 | (grub_video_vbe_scroll): Likewise. | |
15002 | (grub_video_vbe_draw_pixel): Removed function. | |
15003 | (grub_video_vbe_get_pixel): Likewise. | |
15004 | (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and | |
15005 | updated code to use it. | |
15006 | (common_blitter): Added common blitter for render target and bitmap. | |
15007 | (grub_video_vbe_blit_bitmap): Updated to use common_blitter. | |
15008 | (grub_video_vbe_blit_render_target): Likewise. | |
15009 | ||
bc8c036d | 15010 | 2006-07-30 Johan Rydberg <jrydberg@gnu.org> |
15011 | ||
15012 | * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already | |
15013 | is in text mode if there is no console control protocol instance | |
15014 | available. | |
15015 | ||
684a8eff | 15016 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
15017 | ||
15018 | * include/grub/video.h: Code cleanup. | |
15019 | ||
15020 | * include/grub/i386/pc/vbe.h: Likewise. | |
15021 | ||
15022 | * video/i386/pc/vbe.c: Likewise. | |
15023 | ||
15024 | * video/i386/pc/vbeblit.c: Likewise. | |
15025 | ||
15026 | * video/i386/pc/vbefill.c: Likewise. | |
15027 | ||
15028 | * video/video.c: Likewise. Also added more comments. | |
15029 | ||
5915059b | 15030 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
15031 | ||
15032 | * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ... | |
15033 | (struct grub_biosdisk_dap): Likewise. | |
15034 | ||
15035 | * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected | |
15036 | linkage settings for all functions. | |
15037 | ||
90ce5d56 | 15038 | 2006-07-12 Marco Gerards <marco@gnu.org> |
15039 | ||
15040 | * configure.ac (--enable-mm-debug): Fix typo. | |
15041 | ||
15042 | * genkernsyms.sh.in: Use proper quoting for `CC'. | |
15043 | ||
43e7f879 | 15044 | 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx> |
15045 | ||
15046 | * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32". | |
15047 | (normal_mod_ASFLAGS): Remove "-m32". | |
15048 | ||
4889bdec | 15049 | 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org> |
15050 | ||
15051 | * util/misc.c: Include config.h. | |
15052 | [!HAVE_MEMALIGN]: Do not include malloc.h. | |
15053 | (grub_memalign): Use posix_memalign, if present. Then, use | |
15054 | memalign, if present. Otherwise, emit an error. | |
15055 | ||
15056 | * util/grub-emu.c: Do not include malloc.h. | |
15057 | ||
15058 | * include/grub/util/misc.h: Include unistd.h. This is required for | |
15059 | FreeBSD, because off_t is defined in unistd.h. Reported by Harley | |
15060 | D. Eades III <hde@foobar-qux.org>. | |
15061 | ||
15062 | * configure.ac (AC_GNU_SOURCE): Added. | |
15063 | (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host | |
15064 | type. | |
15065 | ||
fd39d4da | 15066 | 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org> |
15067 | ||
15068 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that | |
15069 | ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS. | |
15070 | ||
b786f3b5 | 15071 | 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx> |
15072 | ||
15073 | * include/grub/types.h (grub_host_addr_t): Rename to | |
15074 | grub_target_addr_t. | |
15075 | (grub_host_off_t): Rename to grub_target_off_t. | |
15076 | (grub_host_size_t): Rename to grub_target_size_t. | |
15077 | (grub_host_ssize_t): Rename to grub_target_ssize_t. | |
15078 | Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables. | |
15079 | ||
15080 | * include/grub/kernel.h (struct grub_module_header): Change type | |
15081 | of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t. | |
15082 | (grub_module_info): Likewise. | |
f19dbdb7 | 15083 | |
051988bb | 15084 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
15085 | ||
15086 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional | |
15087 | of checking LINUX_MEM_SIZE was reverse. Reported by Jesus | |
15088 | Velazquez <jesus.velazquez@gmail.com>. | |
15089 | ||
deae281b | 15090 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
15091 | ||
15092 | Count partitions from 1 instead of 0 in the string representation | |
15093 | of partitions. Still use 0-based internally. | |
f19dbdb7 | 15094 | |
deae281b | 15095 | * partmap/sun.c (grub_sun_is_valid): A cosmetic change. |
15096 | (sun_partition_map_iterate): Use grub_partition_t instead of | |
15097 | struct grub_partition *. Cast DESC->START_CYLINDER to | |
15098 | grub_uint64_t after converting the endian. | |
15099 | (sun_partition_map_probe): Subtract 1 for PARTNUM. | |
15100 | (sun_partition_map_get_name): Add 1 to P->INDEX. | |
15101 | ||
15102 | * partmap/pc.c (grub_partition_parse): Subtract 1 for | |
15103 | PCDATA->DOS_PART. | |
15104 | (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART. | |
15105 | ||
15106 | * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to | |
15107 | zero instead of one. | |
15108 | (gpt_partition_map_probe): Subtract 1 for PARTNUM. | |
15109 | (gpt_partition_map_get_name): Add 1 into P->INDEX. | |
15110 | ||
15111 | * partmap/apple.c (apple_partition_map_iterate): Change the type | |
15112 | of POS to unsigned. | |
15113 | (apple_partition_map_probe): Subtract 1 for PARTNUM. | |
15114 | (apple_partition_map_get_name): Add 1 into P->INDEX. | |
15115 | ||
15116 | * partmap/amiga.c (amiga_partition_map_iterate): Change the type | |
15117 | of POS to unsigned. | |
15118 | (amiga_partition_map_iterate): Cast NEXT to grub_off_t to | |
15119 | calculate the offset of a partition. | |
15120 | (amiga_partition_map_probe): Subtract 1 for PARTNUM. | |
15121 | (amiga_partition_map_get_name): Add 1 into P->INDEX. | |
15122 | ||
15123 | * partmap/acorn.c (acorn_partition_map_find): Change the type of | |
15124 | SECTOR to grub_disk_addr_t. | |
15125 | (acorn_partition_map_iterate): Likewise. | |
15126 | (acorn_partition_map_probe): Subtract 1 for PARTNUM. | |
15127 | Change the type of SECTOR to grub_disk_addr_t. Declare P on the | |
15128 | top. | |
15129 | (acorn_partition_map_get_name): Add 1 into P->INDEX. | |
15130 | ||
15131 | * kern/i386/pc/init.c (make_install_device): Add 1 into | |
15132 | GRUB_INSTALL_DOS_PART. | |
15133 | ||
15134 | * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed | |
15135 | conditional. | |
15136 | ||
524a1e6a | 15137 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
15138 | ||
15139 | Clean up the code to support 64-bit addressing in disks and | |
15140 | files. This change is not enough for filesystems yet. | |
f19dbdb7 | 15141 | |
524a1e6a | 15142 | * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the |
15143 | type of "start" to grub_uint64_t. | |
15144 | (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to | |
15145 | grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in | |
15146 | save_first_sector and save_blocklists. Use grub_le_to_cpu64 to | |
15147 | convert addresses. | |
15148 | ||
15149 | * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR | |
15150 | to grub_disk_addr_t. | |
15151 | ||
15152 | * partmap/gpt.c (gpt_partition_map_iterate): Fix the format | |
15153 | string. | |
15154 | ||
15155 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
15156 | ||
15157 | * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC | |
15158 | to char *. | |
15159 | ||
15160 | * normal/script.c (grub_script_parse): Remove unused MEMFREE. | |
15161 | ||
15162 | * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro. | |
15163 | ||
15164 | * normal/lexer.c (grub_script_yyerror): Specify unused to LEX. | |
15165 | ||
15166 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1 | |
15167 | to grub_off_t, to detect an error from grub_file_seek. | |
15168 | (grub_multiboot_load_elf32): Likewise. | |
15169 | ||
15170 | * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the | |
15171 | maximum unsigned long value when an overflow is detected. | |
15172 | (grub_strtoull): New function. | |
15173 | (grub_divmod64): Likewise. | |
15174 | (grub_lltoa): use grub_divmod64. | |
15175 | ||
15176 | * kern/fs.c (struct grub_fs_block): Change the type of "offset" to | |
15177 | grub_disk_addr_t. | |
15178 | (grub_fs_blocklist_open): Increase P if P is not NULL to advance | |
15179 | the pointer to next character. Use grub_strtoull instead of | |
15180 | grub_strtoul. | |
15181 | (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and | |
15182 | SIZE to grub_disk_addr_t, grub_off_t and grub_size_t, | |
15183 | respectively. | |
15184 | ||
fe6b695a | 15185 | * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the |
524a1e6a | 15186 | return value is signed. |
15187 | (grub_file_seek): Change the type of OLD to grub_off_t. Do not | |
15188 | test if OFFSET is less than zero, as OFFSET is unsigned now. | |
15189 | ||
15190 | * kern/disk.c (struct grub_disk_cache): Change the type of | |
15191 | "sector" to grub_disk_addr_t. | |
15192 | (grub_disk_cache_get_index): Change the type of SECTOR to | |
15193 | grub_disk_addr_t. Calculate the hash with SECTOR casted to | |
15194 | unsigned after shifting. | |
15195 | (grub_disk_cache_invalidate): Change the type of SECTOR to | |
15196 | grub_disk_addr_t. | |
15197 | (grub_disk_cache_unlock): Likewise. | |
15198 | (grub_disk_cache_store): Likewise. | |
15199 | (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE, | |
15200 | START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t, | |
15201 | grub_disk_addr_t and grub_uint64_t, respectively. | |
15202 | (grub_disk_read): Use an unsigned variable REAL_OFFSET for the | |
15203 | body, as the value of OFFSET is tweaked by | |
15204 | grub_disk_check_range. Change the types of START_SECTOR, LEN and | |
15205 | POS to grub_disk_addr_t, grub_size_t and grub_size_t, | |
15206 | respectively. | |
15207 | (grub_disk_write): Use an unsigned variable REAL_OFFSET for the | |
15208 | body, as the value of OFFSET is tweaked by | |
15209 | grub_disk_check_range. Change the types of LEN and N to | |
15210 | grub_size_t. | |
15211 | ||
15212 | * io/gzio.c (struct grub_gzio): Change the types of "data_offset" | |
15213 | and "saved_offset" to grub_off_t. | |
15214 | (test_header): Cast BUF to char *. | |
15215 | (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF | |
15216 | to char *. | |
15217 | (grub_gzio_read): Change the types of OFFSET and SIZE to | |
15218 | grub_off_t and grub_size_t, respectively. | |
15219 | ||
15220 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA): | |
15221 | Removed. | |
15222 | (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c. | |
15223 | (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40. | |
15224 | (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42. | |
15225 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e. | |
15226 | (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12. | |
15227 | ||
15228 | * include/grub/types.h (grub_off_t): Unconditionally set to | |
15229 | grub_uint64_t. | |
15230 | (grub_disk_addr_t): Changed to grub_uint64_t. | |
15231 | ||
15232 | * include/grub/partition.h (struct grub_partition): Change the | |
15233 | types of "start", "len" and "offset" to grub_disk_addr_t, | |
15234 | grub_uint64_t and grub_disk_addr_t, respectively. | |
15235 | (grub_partition_get_start): Return grub_disk_addr_t. | |
15236 | (grub_partition_get_len): Return grub_uint64_t. | |
15237 | ||
15238 | * include/grub/misc.h (grub_strtoull): New prototype. | |
15239 | (grub_divmod64): Likewise. | |
15240 | ||
15241 | * include/grub/fshelp.h (grub_fshelp_read_file): Change the types | |
15242 | of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and | |
15243 | grub_off_t, respectively. | |
15244 | All callers and references changed. | |
15245 | ||
15246 | * include/grub/fs.h (struct grub_fs): Change the type of LEN to | |
15247 | grub_size_t in "read". | |
15248 | All callers and references changed. | |
15249 | ||
15250 | * include/grub/file.h (struct grub_file): Change the types of | |
15251 | "offset" and "size" to grub_off_t and grub_off_t, | |
15252 | respectively. Change the type of SECTOR to grub_disk_addr_t in | |
15253 | "read_hook". | |
15254 | (grub_file_read): Change the type of LEN to grub_size_t. | |
15255 | (grub_file_seek): Return grub_off_t. Change the type of OFFSET to | |
15256 | grub_off_t. | |
15257 | (grub_file_size): Return grub_off_t. | |
15258 | (grub_file_tell): Likewise. | |
15259 | All callers and references changed. | |
15260 | ||
15261 | * include/grub/disk.h (struct grub_disk_dev): Change the types of | |
15262 | SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and | |
15263 | "write". | |
15264 | (struct grub_disk): Change the type of "total_sectors" to | |
15265 | grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in | |
f19dbdb7 | 15266 | "read_hook". |
524a1e6a | 15267 | (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to |
15268 | grub_disk_addr_t, grub_off_t and grub_size_t, respectively. | |
15269 | (grub_disk_write): Likewise. | |
15270 | All callers and references changed. | |
15271 | ||
15272 | * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to | |
15273 | char * for grub_strncmp to silence gcc. | |
15274 | (grub_iso9660_mount): Likewise. | |
15275 | (grub_iso9660_mount): Likewise. | |
15276 | (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense | |
15277 | return statement. | |
15278 | (grub_iso9660_iterate_dir): Likewise. | |
15279 | (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *. | |
15280 | ||
15281 | * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and | |
15282 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
15283 | ||
15284 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
15285 | ||
15286 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
15287 | ||
15288 | * fs/minix.c (grub_jfs_read_file): Likewise. | |
15289 | ||
15290 | * fs/sfs.c (grub_jfs_read_file): Likewise. | |
15291 | ||
15292 | * fs/ufs.c (grub_jfs_read_file): Likewise. | |
15293 | ||
15294 | * fs/xfs.c (grub_jfs_read_file): Likewise. | |
15295 | ||
15296 | * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN | |
15297 | and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t, | |
15298 | respectively. | |
15299 | ||
15300 | * fs/ext2.c (grub_ext2_read_block): When an error happens, set | |
15301 | BLKNR to -1 instead of returning GRUB_ERRNO. | |
15302 | (grub_ext2_read_file): Change the types of SECTOR and | |
15303 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
15304 | ||
15305 | * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and | |
15306 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
15307 | ||
15308 | * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for | |
15309 | grub_file_read. | |
15310 | ||
15311 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format | |
15312 | string. Do not cast SECTOR explicitly. | |
15313 | ||
15314 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of | |
15315 | TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS. | |
15316 | (grub_biosdisk_rw): Change the types of SECTOR and SIZE to | |
15317 | grub_disk_addr_t and grub_size_t, respectively. If the sector is | |
15318 | over 2TB and LBA mode is not supported, raise an error. | |
15319 | (get_safe_sectors): New function. | |
15320 | (grub_biosdisk_read): Use get_safe_sectors. | |
15321 | (grub_biosdisk_write): Likewise. | |
15322 | ||
15323 | * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string. | |
15324 | (grub_efidisk_write): Likewise. | |
15325 | ||
15326 | * disk/loopback.c (delete_loopback): Cosmetic changes. | |
15327 | (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME | |
15328 | correctly. | |
15329 | (grub_loopback_open): Likewise. | |
15330 | (grub_loopback_read): Likewise. Also, change the type of POS to | |
15331 | grub_off_t, and fix the usage of grub_memset. | |
15332 | ||
15333 | * commands/i386/pc/play.c: Include grub/machine/time.h. | |
15334 | ||
15335 | * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to | |
15336 | print FILE->SIZE. | |
15337 | ||
15338 | * commands/configfile.c: Include grub/env.h. | |
15339 | ||
15340 | * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use | |
15341 | GRUB_ERRNO directly instead. Change the type of POS to | |
15342 | grub_off_t. Follow the coding standard. | |
15343 | ||
15344 | * commands/blocklist.c: Include grub/partition.h. | |
15345 | (grub_cmd_blocklist): Return an error if the underlying device is | |
15346 | not a disk. Take the starting sector of a partition into account, | |
15347 | if a partition is used. | |
15348 | ||
15349 | * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of | |
15350 | a length field. | |
15351 | (lba_mode): Support 64-bit addresses. | |
15352 | (chs_mode): Likewise. | |
15353 | (copy_buffer): Adapted to the new offsets of a length field and a | |
15354 | segment field. | |
15355 | (blocklist_default_start): Allocate 64-bit space. | |
15356 | ||
15357 | * boot/i386/pc/boot.S (force_lba): Removed. | |
15358 | (boot_drive): Moved to under KERNEL_SECTOR. | |
fe987087 | 15359 | (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit |
524a1e6a | 15360 | space. |
15361 | (real_start): Set %si earlier. Remove code for FORCE_LBA, since it | |
15362 | is useless. | |
15363 | (lba_mode): Refactored to support a 64-bit address. More size | |
15364 | optimization. | |
15365 | (setup_sectors): Likewise. | |
15366 | ||
53af98ad | 15367 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
15368 | ||
15369 | * DISTLIST: Added include/grub/i386/linux.h. Removed | |
15370 | include/grub/i386/pc/linux.h | |
15371 | ||
15372 | * configure.ac (AC_INIT): Bumped to 1.94. | |
15373 | ||
15374 | * config.guess: Updated from gnulib. | |
15375 | * config.sub: Likewise. | |
15376 | * install-sh: Likewise. | |
15377 | * mkinstalldirs: Likewise. | |
15378 | ||
b4c1940a | 15379 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
15380 | ||
15381 | * conf/common.rmk (grub_modules_init.lst): Depended on | |
15382 | grub_emu_SOURCES, excluding grub_emu_init.c, instead of | |
15383 | MODSRCFILES. | |
15384 | ||
15385 | * genmk.rb (PModule::rule): Reverted the previous change. | |
15386 | ||
cfca1cfd | 15387 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
15388 | ||
15389 | * conf/common.rmk (grub_modules_init.lst): Depends on | |
15390 | $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure | |
15391 | that the target does not exist before producing. | |
15392 | (grub_modules_init.h): Remove the target before generating. | |
15393 | (grub_emu_init.c): Likewise. | |
15394 | ||
15395 | * genmk.rb (PModule::rule): Add source files into MODSRCFILES. | |
15396 | ||
aa6d7826 | 15397 | 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx> |
15398 | ||
15399 | * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS | |
15400 | for the target-specific tests. Make sure that we also have the | |
15401 | up-to-date target variables for those tests. | |
15402 | ||
26c607b9 | 15403 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
15404 | ||
15405 | * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_. | |
15406 | (PModule::rule): Likewise. | |
15407 | ||
0162321a | 15408 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
15409 | ||
15410 | * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of | |
15411 | TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why | |
15412 | target-specific flags should be prefixed. | |
15413 | (PModule::rule): Likewise. | |
15414 | ||
6c826348 | 15415 | 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org> |
15416 | ||
15417 | * configure.ac (CMP): Check if cmp is available explicitly. | |
15418 | ||
b977bf01 | 15419 | 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org> |
15420 | ||
15421 | * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed. | |
15422 | (target_cpu): New variable. | |
15423 | (pkglibdir): Use target_cpu instead of host_cpu. | |
f19dbdb7 | 15424 | |
b977bf01 | 15425 | * util/i386/pc/grub-install.in (host_cpu): Removed. |
15426 | (target_cpu): New variable. | |
15427 | (pkglibdir): Use target_cpu instead of host_cpu. | |
15428 | ||
15429 | * util/genmoddep.c: Removed. | |
f19dbdb7 | 15430 | |
b977bf01 | 15431 | * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P |
15432 | instead of GRUB_HOST_SIZEOF_VOID_P. | |
15433 | * kern/dl.c: Likewise. | |
15434 | ||
15435 | * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to | |
15436 | ... | |
15437 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
15438 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
15439 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
15440 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
15441 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
15442 | * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
15443 | to ... | |
15444 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
15445 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
15446 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
15447 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
15448 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
15449 | * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
15450 | to ... | |
15451 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
15452 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
15453 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
15454 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
15455 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
15456 | ||
15457 | * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use | |
15458 | GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P. | |
15459 | [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG | |
15460 | instead of GRUB_HOST_SIZEOF_LONG. | |
15461 | [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of | |
15462 | GRUB_HOST_WORDS_BIGENDIAN to define or undefine | |
15463 | GRUB_CPU_WORDS_BIGENDIAN. | |
15464 | Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to | |
15465 | define grub_host_addr_t, grub_host_off_t, grub_host_size_t and | |
15466 | grub_host_ssize_t. | |
15467 | ||
15468 | * conf/i386-efi.rmk (noinst_UTILITIES): Removed. | |
15469 | (genmoddep_SOURCES): Likewise. | |
15470 | * conf/i386-pc.rmk (noinst_UTILITIES): Likewise. | |
15471 | (genmoddep_SOURCES): Likewise. | |
15472 | * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise. | |
15473 | (genmoddep_SOURCES): Likewise. | |
15474 | * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES): | |
15475 | Likewise. | |
15476 | (genmoddep_SOURCES): Likewise. | |
15477 | ||
15478 | * genmoddep.awk: New file. | |
15479 | ||
15480 | * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS, | |
15481 | TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC, | |
15482 | CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively. | |
15483 | (PModule::rule): Likewise. | |
15484 | (Program::rule): Likewise. | |
15485 | (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of | |
15486 | BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS, | |
15487 | respectively. | |
15488 | ||
15489 | * configure.ac: Rewritten intensively to use host and target | |
15490 | instead of build and host, respectively. | |
15491 | ||
15492 | * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu. | |
15493 | (host_cpu): Removed. | |
15494 | (target_cpu): New variable. | |
15495 | (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\". | |
15496 | (BUILD_CC): Removed. | |
15497 | (BUILD_CFLAGS): Likewise. | |
15498 | (BUILD_CPPFLAGS): Likewise. | |
15499 | (TARGET_CC): New variable. | |
15500 | (TARGET_CFLAGS): Likewise. | |
15501 | (TARGET_CPPFLAGS): Likewise. | |
15502 | (TARGET_LDFLAGS): Likewise. | |
15503 | (AWK): Likewise. | |
15504 | (include): Use target_cpu instead of host_cpu. | |
15505 | (moddep.lst:): Use genmoddep.awk instead of genmoddep. | |
f19dbdb7 | 15506 | |
b977bf01 | 15507 | * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c. |
15508 | ||
f09771a1 | 15509 | 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi> |
15510 | ||
15511 | * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to | |
15512 | 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed | |
15513 | field 'false' to 'exec_on_false'. | |
15514 | (grub_script_create_cmdif): Renamed argument names to reflect above | |
15515 | changes. | |
15516 | ||
15517 | * normal/execute.c (grub_script_execute_cmdif): Likewise. | |
15518 | ||
15519 | * normal/script.c (grub_script_create_cmdif): Likewise. | |
15520 | ||
118f4fb3 | 15521 | 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org> |
15522 | ||
15523 | * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the | |
15524 | top. | |
15525 | (grub_hfsplus_btree_recptr): Likewise. | |
15526 | (grub_hfsplus_find_block): Do not take RETRY any longer. Use | |
15527 | FILEBLOCK both to pass a block number and store next block | |
15528 | number. | |
15529 | (grub_hfsplus_read_block): Rewritten heavily to support an extent | |
15530 | overflow file correctly. Specify errors appropriately, because | |
15531 | fshelp expects that GRUB_ERRNO is set when fails. Reuse | |
15532 | grub_hfsplus_btree_recptr to get the pointer to a found key. | |
15533 | (grub_hfsplus_btree_search): Return 1 instead of 0 when no match | |
15534 | is found. | |
15535 | ||
15536 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and | |
15537 | linux.mod. | |
15538 | (_linux_mod_SOURCES): New variable. | |
15539 | (_linux_mod_CFLAGS): Likewise. | |
15540 | (_linux_mod_LDFLAGS): Likewise. | |
15541 | (linux_mod_SOURCES): Likewise. | |
15542 | (linux_mod_CFLAGS): Likewise. | |
15543 | (linux_mod_LDFLAGS): Likewise. | |
15544 | ||
15545 | * DISTLIST: Added loader/i386/efi/linux.c, | |
15546 | loader/i386/efi/linux_normal.c and | |
15547 | include/grub/i386/efi/loader.h. | |
15548 | ||
15549 | * loader/i386/efi/linux.c: New file. | |
15550 | * loader/i386/efi/linux_normal.c: Likewise. | |
15551 | * include/grub/i386/efi/loader.h: Likewise. | |
15552 | ||
89a7d726 | 15553 | 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org> |
15554 | ||
15555 | * commands/blocklist.c: New file. | |
15556 | ||
15557 | * DISTLIST: Added commands/blocklist.c. | |
15558 | ||
15559 | * term/efi/console.c (grub_console_highlight_color): Use a lighter | |
43b553ad | 15560 | color for the background, and a darker color for the foreground. |
89a7d726 | 15561 | (grub_console_checkkey): Return READ_KEY. |
15562 | (grub_console_cls): Set the background to | |
15563 | GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen. | |
15564 | ||
15565 | * kern/efi/efi.c (grub_efi_exit_boot_services): New function. | |
15566 | ||
15567 | * include/grub/i386/linux.h (struct linux_kernel_params): Fixed | |
15568 | the size of "padding5", "hd0_drive_info" and "hd1_drive_info". | |
15569 | ||
15570 | * include/grub/efi/efi.h (grub_efi_exit_boot_services): New | |
15571 | prototype. | |
15572 | ||
15573 | * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift | |
15574 | BG. The spec is wrong again. | |
15575 | ||
15576 | * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New | |
15577 | prototype. | |
15578 | [GRUB_UTIL] (grub_blocklist_fini): Likewise. | |
15579 | ||
15580 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
15581 | commands/blocklist.c. | |
15582 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 15583 | |
89a7d726 | 15584 | * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod. |
15585 | (blocklist_mod_SOURCES): New variable. | |
15586 | (blocklist_mod_CFLAGS): Likewise. | |
15587 | (blocklist_mod_LDFLAGS): Likewise. | |
15588 | ||
75c8f258 | 15589 | 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org> |
15590 | ||
15591 | * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate | |
15592 | duplication. | |
15593 | (lba_mode): Use %eax more intensively to reduce the code size. | |
15594 | ||
da2eb181 | 15595 | 2006-05-20 Marco Gerards <marco@gnu.org> |
15596 | ||
15597 | * normal/lexer.c (grub_script_yylex): Don't filter out newlines. | |
15598 | ||
15599 | * normal/parser.y (commandblock): Defined as <cmd>. A subroutine | |
15600 | for `menuentry'. | |
15601 | (script): Accept leading newlines. | |
15602 | (newlines): New rule to describe 0 or more newlines. | |
15603 | (commands): Accept `command' with trailing newline. Fixed the | |
15604 | order in which arguments were passed to `grub_script_add_cmd'. | |
15605 | Accept commands separated by newlines. | |
15606 | (function): Changed to accept newlines. | |
15607 | (menuentry) Rewritten. | |
15608 | ||
15609 | * normal/script.c (grub_script_create_cmdmenu): Add new entries in | |
15610 | front of the list, instead of to the end. | |
15611 | ||
577b4050 | 15612 | 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org> |
15613 | ||
15614 | * util/i386/pc/grub-install.in (bindir): New variable. | |
15615 | (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee | |
15616 | Shaver <lbgwjl@gmail.com>. | |
15617 | ||
0d6e1189 | 15618 | 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org> |
15619 | ||
15620 | * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of | |
15621 | grub/machine/linux.h | |
15622 | * loader/i386/pc/linux.c: Likewise. | |
15623 | ||
15624 | * include/grub/i386/pc/linux.h: Moved to ... | |
15625 | * include/grub/i386/linux.h: ... here. | |
15626 | ||
15627 | * include/grub/i386/linux.h (struct linux_kernel_params): New | |
15628 | struct. | |
f19dbdb7 | 15629 | |
31b86e9f | 15630 | 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi> |
15631 | ||
15632 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds | |
15633 | checking. | |
15634 | (grub_video_vbe_blit_glyph): Likewise. | |
15635 | (grub_video_vbe_blit_bitmap): Likewise. | |
15636 | (grub_video_vbe_blit_render_target): Likewise. | |
15637 | ||
83b984de | 15638 | 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org> |
15639 | ||
15640 | * configure.ac (--with-platform): Properly quote the square | |
15641 | brackets. | |
15642 | ||
5f0413bd | 15643 | 2006-05-08 Marco Gerards <marco@gnu.org> |
15644 | ||
15645 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from | |
15646 | this... | |
15647 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
15648 | (grubof_symlist.c): Renamed from this... | |
15649 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
15650 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
15651 | (grubof_SOURCES): Renamed from this... | |
15652 | (kernel_elf_SOURCES): ...to this. | |
15653 | (grubof_HEADERS): Renamed from this... | |
15654 | (kernel_elf_HEADERS): ...to this. | |
15655 | (grubof_CFLAGS): Renamed from this... | |
15656 | (kernel_elf_CFLAGS): ...to this. | |
15657 | (grubof_ASFLAGS): Renamed from this... | |
15658 | (kernel_elf_ASFLAGS): ...to this. | |
15659 | (grubof_LDFLAGS): Renamed from this... | |
15660 | (kernel_elf_LDFLAGS): ...to this. | |
15661 | ||
15662 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from | |
15663 | this... | |
15664 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
15665 | (grubof_symlist.c): Renamed from this... | |
15666 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
15667 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
15668 | (grubof_SOURCES): Renamed from this... | |
15669 | (kernel_elf_SOURCES): ...to this. | |
15670 | (grubof_HEADERS): Renamed from this... | |
15671 | (kernel_elf_HEADERS): ...to this. | |
15672 | (grubof_CFLAGS): Renamed from this... | |
15673 | (kernel_elf_CFLAGS): ...to this. | |
15674 | (grubof_ASFLAGS): Renamed from this... | |
15675 | (kernel_elf_ASFLAGS): ...to this. | |
15676 | (grubof_LDFLAGS): Renamed from this... | |
15677 | (kernel_elf_LDFLAGS): ...to this. | |
15678 | ||
15679 | * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use | |
15680 | `kernel.elf' instead of `grubof'. | |
15681 | ||
05568c2e | 15682 | 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org> |
15683 | ||
15684 | Add --with-platform to configure. Use pkglibdir instead of | |
15685 | pkgdatadir. This is reported by Roger Leigh. | |
15686 | ||
15687 | * util/powerpc/ieee1275/grub-install.in (datadir): Removed. | |
15688 | (host_vendor): Likewise. | |
15689 | (host_os): Likewise. | |
15690 | (pkgdatadir): Likewise. | |
15691 | (platform): New variable. | |
15692 | (pkglibdir): Likewise. | |
15693 | Use PKGLIBDIR instead of PKGDATADIR. | |
f19dbdb7 | 15694 | |
05568c2e | 15695 | * util/i386/pc/grub-install.in (datadir): Removed. |
15696 | (host_vendor): Likewise. | |
15697 | (host_os): Likewise. | |
15698 | (pkgdatadir): Likewise. | |
15699 | (platform): New variable. | |
15700 | (pkglibdir): Likewise. | |
15701 | Use PKGLIBDIR instead of PKGDATADIR. | |
15702 | ||
15703 | * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR | |
15704 | instead of GRUB_DATADIR. | |
15705 | (main): Likewise. | |
15706 | * util/i386/pc/grub-mkimage.c (usage): Likewise. | |
15707 | (main): Likewise. | |
15708 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
15709 | (main): Likewise. | |
15710 | ||
15711 | * configure.ac (--with-platform): New option. | |
15712 | Use PLATFORM instead of HOST_VENDOR to specify a platform. | |
15713 | ||
15714 | * Makefile.in: Include a makefile based on PLATFORM instead of | |
15715 | HOST_VENDOR. | |
15716 | (pkgdatadir): Not appended by the machine type. | |
15717 | (pkglibdir): Appended by the machine type. | |
15718 | (host_vendor): Removed. | |
15719 | (platform): New variable. | |
15720 | (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR. | |
15721 | (install-local): Use PKGLIBDIR instead of PKGDATADIR. | |
15722 | (uninstall): Likewise. | |
15723 | ||
4e93851c | 15724 | 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org> |
15725 | ||
15726 | Use the environment context in the menu. Remove the commands | |
15727 | "default" and "timeout", and use variables instead. | |
f19dbdb7 | 15728 | |
4e93851c | 15729 | * normal/menu.c: Include grub/env.h. |
15730 | (print_entry): Cast TITLE to silence gcc. | |
15731 | (get_timeout): New function. | |
15732 | (set_timeout): Likewise. | |
15733 | (get_entry_number): Likewise. | |
15734 | (run_menu): Use a default entry, a fallback entry and a timeout | |
15735 | in the environment variables "default", "fallback" and | |
15736 | "timeout". Also, tweak the default entry if it is not within the | |
15737 | current menu entries. | |
15738 | (grub_menu_run): Use a fallback entry in the environment variable | |
15739 | "fallback". | |
15740 | ||
15741 | * normal/main.c (read_config_file): Do not initialize | |
15742 | NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or | |
15743 | NEWMENU->TIMEOUT. | |
15744 | (grub_normal_execute): Use a data slot to store the menu. | |
15745 | ||
15746 | * include/grub/normal.h (struct grub_menu): Removed default_entry, | |
15747 | fallback_entry and timeout. | |
15748 | (struct grub_menu_list): Removed. | |
15749 | (grub_menu_list_t): Likewise. | |
15750 | (struct grub_context): Likewise. | |
15751 | (grub_context_t): Likewise. | |
15752 | (grub_context_get): Likewise. | |
15753 | (grub_context_get_current_menu): Likewise. | |
15754 | (grub_context_push_menu): Likewise. | |
15755 | (grub_context_pop_menu): Likewise. | |
15756 | (grub_default_init): Likewise. | |
15757 | (grub_default_fini): Likewise. | |
15758 | (grub_timeout_init): Likewise. | |
15759 | (grub_timeout_fini): Likewise. | |
15760 | ||
15761 | * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod | |
15762 | and timeout.mod. | |
15763 | (normal_mod_SOURCES): Removed normal/context.c. | |
15764 | ||
15765 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed | |
15766 | commands/default.c, commands/timeout.c and normal/context.c. | |
15767 | (normal_mod_SOURCES): Removed normal/context.c. | |
15768 | ||
15769 | * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c, | |
15770 | commands/timeout.c and normal/context.c. | |
15771 | (normal_mod_SOURCES): Removed normal/context.c. | |
15772 | ||
15773 | * conf/i386-efi.rmk (grub_emu_SOURCES): Removed | |
15774 | commands/default.c, commands/timeout.c and normal/context.c. | |
15775 | (normal_mod_SOURCES): Removed normal/context.c. | |
15776 | ||
15777 | * conf/common.rmk (pkgdata_MODULES): Removed default.mod and | |
15778 | timeout.mod. | |
15779 | (default_mod_SOURCES): Removed. | |
15780 | (default_mod_CFLAGS): Likewise. | |
15781 | (default_mod_LDFLAGS): Likewise. | |
15782 | (timeout_mod_SOURCES): Removed. | |
15783 | (timeout_mod_CFLAGS): Likewise. | |
15784 | (timeout_mod_LDFLAGS): Likewise. | |
15785 | ||
15786 | * DISTLIST: Removed commands/default.c, commands/timeout.c and | |
15787 | normal/context.c. | |
15788 | ||
15789 | * commands/default.c: Removed. | |
15790 | * commands/timeout.c: Likewise. | |
15791 | * normal/context.c: Likewise. | |
15792 | ||
1eb9cc1d | 15793 | 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi> |
15794 | ||
15795 | * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag. | |
15796 | ||
385bd9c1 | 15797 | 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org> |
15798 | ||
15799 | * kern/env.c (struct grub_env_context): Removed "sorted". Renamed | |
15800 | "next" to "prev" for readability. | |
15801 | (struct grub_env_sorted_var): New struct. | |
15802 | (grub_env_context): Renamed to ... | |
15803 | (initial_context): ... this. | |
15804 | (grub_env_var_context): Renamed to ... | |
15805 | (current_context): ... this. | |
15806 | (grub_env_find): Look only at CURRENT_CONTEXT. | |
15807 | (grub_env_context_open): Rewritten to copy exported variables from | |
15808 | previous context. | |
15809 | (grub_env_context_close): Rewritten according to the new | |
15810 | scheme. Also, add an assertion to prevent the initial context from | |
15811 | removed. | |
15812 | (grub_env_insert): Removed the code for the sorted list. | |
15813 | (grub_env_remove): Likewise. | |
15814 | (grub_env_export): Simply mark the variable with | |
15815 | GRUB_ENV_VAR_GLOBAL. | |
15816 | (grub_env_set): A cosmetic change for naming consistency. | |
15817 | (grub_env_get): Likewise. | |
15818 | (grub_env_unset): Likewise. | |
15819 | (grub_env_iterate): Rewritten to sort variables within this | |
15820 | function. | |
15821 | (grub_register_variable_hook): Fixed for naming consistency. Call | |
15822 | grub_env_find again, only if NAME is not found at the first time. | |
15823 | (mangle_data_slot_name): New function. | |
15824 | (grub_env_set_data_slot): Likewise. | |
15825 | (grub_env_get_data_slot): Likewise. | |
15826 | (grub_env_unset_data_slot): Likewise. | |
15827 | ||
15828 | * include/grub/env.h (grub_env_var_type): New enum. | |
15829 | (GRUB_ENV_VAR_LOCAL): New constant. | |
15830 | (GRUB_ENV_VAR_GLOBAL): Likewise. | |
15831 | (GRUB_ENV_VAR_DATA): Likewise. | |
15832 | (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added | |
15833 | "type". | |
15834 | (grub_env_set): Replace VAR with NAME for consistency. | |
15835 | (grub_register_variable_hook): Likewise. | |
15836 | (grub_env_export): Specify the name of the argument. | |
15837 | (grub_env_set_data_slot): New prototype. | |
15838 | (grub_env_get_data_slot): Likewise. | |
15839 | (grub_env_unset_data_slot): Likewise. | |
15840 | ||
7f362539 | 15841 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
15842 | ||
15843 | Extend the loader so that GRUB can accept a loader which comes | |
15844 | back to GRUB when a loaded image exits. Also, this change adds | |
15845 | support for a chainloader on EFI. | |
f19dbdb7 | 15846 | |
7f362539 | 15847 | * term/efi/console.c: Include grub/misc.h. |
15848 | (grub_console_checkkey): Display a scan code on the top for | |
15849 | debugging. This will be removed once the EFI port gets stable. | |
15850 | Correct the scan code mapping. | |
15851 | ||
15852 | * kern/efi/mm.c (sort_memory_map): Sort in a descending order to | |
15853 | allocate memory from larger regions, in order to reduce the number | |
15854 | of allocated regions. Otherwise, the MacOSX loader panics. | |
15855 | (filter_memory_map): Avoid less than 1MB for compatibility with | |
15856 | other loaders. | |
15857 | (add_memory_regions): Allocate from the tail of a region, if | |
15858 | possible, to avoid allocating a region near to 1MB, for the MacOSX | |
15859 | loader. | |
15860 | ||
15861 | * kern/efi/init.c (grub_efi_set_prefix): Specify | |
15862 | GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image. | |
15863 | ||
15864 | * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new | |
15865 | argument IMAGE_HANDLE and specify it to get a loaded image. | |
15866 | (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to | |
15867 | grub_efi_get_loaded_image. | |
fe6b695a | 15868 | (grub_efi_get_filename): Divide the length by the size of |
7f362539 | 15869 | grub_efi_char16_t. |
15870 | (grub_efi_get_device_path): New function. | |
15871 | (grub_efi_print_device_path): Print End Device Path nodes. Divide | |
15872 | the length by the size of grub_efi_char16_t for a file path device | |
15873 | path node. | |
15874 | ||
15875 | * kern/loader.c (grub_loader_noreturn): New variable. | |
15876 | (grub_loader_set): Accept a new argument NORETURN. Set | |
15877 | GRUB_LOADER_NORETURN to NORETURN. | |
15878 | All callers changed. | |
15879 | (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call | |
15880 | grub_machine_fini. | |
15881 | ||
15882 | * include/grub/efi/efi.h (grub_efi_get_device_path): New | |
15883 | prototype. | |
15884 | (grub_efi_get_loaded_image): Take an argument to specify an image | |
15885 | handle. | |
15886 | ||
15887 | * include/grub/loader.h (grub_loader_set): Added one more argument | |
15888 | NORETURN. | |
15889 | ||
15890 | * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path | |
15891 | instead of grub_efi_open_protocol. | |
15892 | (grub_efidisk_get_device_name): Likewise. | |
15893 | (grub_efidisk_close): Print a newline. | |
15894 | (grub_efidisk_get_device_handle): Fixed to use | |
15895 | GRUB_EFI_DEVICE_PATH_SUBTYPE instead of | |
15896 | GRUB_EFI_DEVICE_PATH_TYPE. | |
15897 | ||
15898 | * disk/efi/efidisk.c (device_path_guid): Moved to ... | |
15899 | * kern/efi/efi.c (device_path_guid): ... here. | |
15900 | ||
15901 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and | |
15902 | chain.mod. | |
15903 | (kernel_mod_HEADERS): Added efi/disk.h. | |
15904 | (_chain_mod_SOURCES): New variable. | |
15905 | (_chain_mod_CFLAGS): Likewise. | |
15906 | (_chain_mod_LDFLAGS): Likewise. | |
15907 | (chain_mod_SOURCES): Likewise. | |
15908 | (chain_mod_CFLAGS): Likewise. | |
15909 | (chain_mod_LDFLAGS): Likewise. | |
15910 | ||
15911 | * DISTLIST: Added include/grub/efi/chainloader.h, | |
15912 | loader/efi/chainloader.c and loader/efi/chainloader_normal.c. | |
15913 | ||
15914 | * include/grub/efi/chainloader.h: New file. | |
15915 | * loader/efi/chainloader.c: Likewise. | |
15916 | * loader/efi/chainloader_normal.c: Likewise. | |
15917 | ||
c0111d6e | 15918 | 2006-04-30 Marco Gerards <marco@gnu.org> |
15919 | ||
15920 | * commands/configfile.c (grub_cmd_source): New function. | |
15921 | (GRUB_MOD_INIT): Register the commands `source' and `.'. | |
15922 | (GRUB_MOD_FINI): De-register the commands `source' and `.'. | |
15923 | ||
df5341da | 15924 | 2006-04-30 Marco Gerards <marco@gnu.org> |
15925 | ||
15926 | * normal/execute.c (grub_script_execute_cmd): Change the return | |
15927 | type to `grub_err_t'. Correctly return the error. | |
15928 | (grub_script_execute_cmdline): In case a command line is not a | |
15929 | command or a function, try to interpret it as an assignment. | |
15930 | ||
f85934bd | 15931 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
15932 | ||
15933 | * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak. | |
15934 | (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also, | |
15935 | skip a node whose name is obviously invalid as UTF-16, | |
15936 | i.e. contains a NUL character. Stop the iteration when the last | |
15937 | directory entry is found. Instead of using the return value of | |
15938 | grub_hfsplus_btree_iterate_node, store the value in RET and use | |
15939 | it, because the iterator can be stopped by the last directory | |
15940 | entry. | |
15941 | ||
8f8a2cf8 | 15942 | 2006-04-30 Marco Gerards <marco@gnu.org> |
15943 | ||
15944 | * include/grub/env.h (grub_env_export): New prototype. Reported | |
15945 | by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>. | |
15946 | ||
a27e84ce | 15947 | 2006-04-30 Marco Gerards <marco@gnu.org> |
15948 | ||
15949 | * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the | |
15950 | size of the extents in a catalog file record. | |
15951 | ||
eaef0553 | 15952 | 2006-04-29 Marco Gerards <marco@gnu.org> |
15953 | ||
15954 | * commands/configfile.c (grub_cmd_configfile): Execute the | |
15955 | configfile within its own context. | |
15956 | ||
15957 | * include/grub/env.h (grub_env_context_open): New prototype. | |
15958 | (grub_env_context_close): Likewise. | |
15959 | ||
15960 | * kern/env.c (grub_env): Removed. | |
15961 | (grub_env_sorted): Likewise. | |
15962 | (grub_env_context): New variable. | |
15963 | (grub_env_var_context): Likewise. | |
15964 | (grub_env_find): Search both the active context and the global | |
15965 | context. | |
15966 | (grub_env_context_open): New function. | |
15967 | (grub_env_context_close): Likewise. | |
15968 | (grub_env_insert): Likewise. | |
15969 | (grub_env_remove): Likewise. | |
15970 | (grub_env_export): Likewise. | |
15971 | (grub_env_set): Changed to use helper functions to avoid code | |
15972 | duplication. | |
15973 | (grub_env_iterate): Rewritten so both the current context and the | |
15974 | global context are being used. | |
15975 | ||
15976 | * normal/command.c (export_command): New function. | |
15977 | (grub_command_init): Register the `export' function. | |
15978 | ||
7b455f4d | 15979 | 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org> |
15980 | ||
15981 | * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments | |
15982 | explicitly to suppress gcc's warnings. | |
15983 | * fs/fat.c (grub_fat_find_dir): Likewise. | |
15984 | (grub_fat_label): Likewise. | |
15985 | * fs/xfs.c (grub_xfs_read_inode): Likewise. | |
15986 | (grub_xfs_mount): Likewise. | |
15987 | (grub_xfs_label): Likewise. | |
15988 | * fs/affs.c (grub_affs_mount): Likewise. | |
15989 | (grub_affs_label): Likewise. | |
15990 | (grub_affs_iterate_dir): Likewise. | |
15991 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
15992 | (grub_sfs_iterate_dir): Likewise. | |
15993 | * fs/ufs.c (grub_ufs_lookup_symlink): Likewise. | |
15994 | * fs/hfs.c (grub_hfs_mount): Likewise. | |
15995 | (grub_hfs_cmp_catkeys): Likewise. | |
15996 | (grub_hfs_find_dir): Likewise. | |
15997 | (grub_hfs_dir): Likewise. | |
15998 | (grub_hfs_label): Likewise. | |
15999 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
16000 | (grub_jfs_opendir): Likewise. | |
16001 | (grub_jfs_getent): Likewise. | |
16002 | (grub_jfs_lookup_symlink): Likewise. | |
16003 | (grub_jfs_label): Likewise. | |
16004 | * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise. | |
16005 | (grub_hfsplus_iterate_dir): Likewise. | |
16006 | (grub_hfsplus_btree_iterate_node): Made static. | |
16007 | ||
16008 | * util/grub-emu.c (prefix): New variable. | |
16009 | (grub_machine_set_prefix): New function. | |
16010 | (main): Do not set the environment variable "prefix" here. Only | |
16011 | set PREFIX, which is used later by grub_machine_set_prefix. | |
16012 | ||
16013 | * include/grub/video.h: Do not include grub/symbol.h. | |
16014 | (grub_video_register): Not exported. This symbol is not defined in | |
16015 | the kernel. | |
16016 | (grub_video_unregister): Likewise. | |
16017 | (grub_video_iterate): Likewise. | |
16018 | (grub_video_setup): Likewise. | |
16019 | (grub_video_restore): Likewise. | |
16020 | (grub_video_get_info): Likewise. | |
16021 | (grub_video_get_blit_format): Likewise. | |
16022 | (grub_video_set_palette): Likewise. | |
16023 | (grub_video_get_palette): Likewise. | |
16024 | (grub_video_set_viewport): Likewise. | |
16025 | (grub_video_get_viewport): Likewise. | |
16026 | (grub_video_map_color): Likewise. | |
16027 | (grub_video_map_rgb): Likewise. | |
16028 | (grub_video_map_rgba): Likewise. | |
16029 | (grub_video_fill_rect): Likewise. | |
16030 | (grub_video_blit_glyph): Likewise. | |
16031 | (grub_video_blit_bitmap): Likewise. | |
16032 | (grub_video_blit_render_target): Likewise. | |
16033 | (grub_video_scroll): Likewise. | |
16034 | (grub_video_swap_buffers): Likewise. | |
16035 | (grub_video_create_render_target): Likewise. | |
16036 | (grub_video_delete_render_target): Likewise. | |
16037 | (grub_video_set_active_render_target): Likewise. | |
16038 | ||
16039 | * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC): | |
16040 | Undefined. | |
16041 | [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise. | |
16042 | ||
16043 | * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on | |
16044 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
16045 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
16046 | instead of $(srcdir)/genkernsyms.sh. | |
16047 | ||
16048 | * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on | |
16049 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
16050 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
16051 | instead of $(srcdir)/genkernsyms.sh. | |
16052 | ||
16053 | * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use | |
16054 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
16055 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
16056 | instead of $(srcdir)/genkernsyms.sh. | |
16057 | ||
16058 | * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use | |
16059 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
16060 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
16061 | instead of $(srcdir)/genkernsyms.sh. | |
16062 | ||
16063 | * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and | |
16064 | genkernsyms.sh. | |
16065 | ||
16066 | * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and | |
16067 | genkernsyms.sh. | |
16068 | (gensymlist.sh): New target. | |
16069 | (genkernsyms.sh): Likewise. | |
16070 | ||
16071 | * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added | |
16072 | genkernsyms.sh.in and gensymlist.sh.in. | |
16073 | ||
16074 | * genkernsyms.sh: Removed. | |
16075 | * gensymlist.sh: Likewise. | |
f19dbdb7 | 16076 | |
7b455f4d | 16077 | * genkernsyms.sh.in: New file. |
16078 | * gensymlist.sh.in: Likewise. | |
16079 | ||
1885bb27 | 16080 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
16081 | ||
16082 | * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not | |
16083 | clobber "prefix", since we may have already set it manually. | |
16084 | ||
71538dff | 16085 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
16086 | ||
16087 | * kern/misc.c (abort): New alias for grub_abort. | |
16088 | ||
2965c7cc | 16089 | 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org> |
16090 | ||
16091 | A new machine-specific function "grub_machine_set_prefix" is | |
16092 | defined. This is called after loading modules, so that a prefix | |
16093 | initialization can use modules. Also, this change adds an | |
16094 | intensive debugging feature for the memory manager via the | |
16095 | configure option "--enable-mm-debug". | |
f19dbdb7 | 16096 | |
2965c7cc | 16097 | * partmap/gpt.c (gpt_partition_map_iterate): Add one more into |
16098 | PART.LEN. | |
16099 | ||
16100 | * kern/sparc64/ieee1275/init.c (abort): Removed. | |
16101 | (grub_stop): Likewise. | |
16102 | (grub_exit): New function. | |
16103 | (grub_set_prefix): Renamed to ... | |
16104 | (grub_machine_set_prefix): ... this. | |
16105 | (grub_machine_init): Do not call grub_set_prefix. | |
16106 | ||
16107 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ... | |
16108 | (grub_machine_set_prefix): ... this. | |
16109 | (grub_machine_init): Do not call grub_set_prefix. | |
16110 | ||
16111 | * kern/i386/pc/init.c (grub_machine_set_prefix): New function. | |
16112 | (grub_machine_init): Do not set the prefix here. | |
16113 | ||
16114 | * kern/i386/efi/init.c (grub_machine_set_prefix): New function. | |
16115 | ||
16116 | * kern/efi/init.c: Include grub/mm.h. | |
16117 | (grub_efi_set_prefix): New function. | |
16118 | ||
16119 | * kern/efi/efi.c (grub_exit): Call grub_efi_fini. | |
16120 | (grub_efi_get_filename): New function. | |
16121 | (grub_print_device_path): Renamed to ... | |
16122 | (grub_efi_print_device_path): ... this. | |
16123 | ||
16124 | * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined. | |
16125 | [MM_DEBUG] (grub_realloc): Likewise. | |
16126 | [MM_DEBUG] (grub_free): Likewise. | |
16127 | [MM_DEBUG] (grub_memalign): Likewise. | |
16128 | [MM_DEBUG] (grub_mm_debug): New variable. | |
16129 | [MM_DEBUG] (grub_debug_malloc): New function. | |
16130 | [MM_DEBUG] (grub_debug_free): New function. | |
16131 | [MM_DEBUG] (grub_debug_realloc): New function. | |
16132 | [MM_DEBUG] (grub_debug_memalign): New function. | |
16133 | ||
16134 | * kern/misc.c (grub_abort): Print a newline to distinguish | |
16135 | the message. | |
16136 | ||
16137 | * kern/main.c (grub_main): Call grub_machine_set_prefix and | |
16138 | grub_set_root_dev after loading modules. This is necessary when | |
16139 | setting a prefix depends on modules. | |
16140 | ||
16141 | * include/grub/efi/efi.h (grub_print_device_path): Renamed to ... | |
16142 | (grub_efi_print_device_path): ... this. | |
16143 | (grub_efi_get_filename): New prototype. | |
16144 | (grub_efi_set_prefix): Likewise. | |
16145 | ||
16146 | * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h | |
16147 | and grub/disk.h. | |
16148 | (grub_efidisk_get_device_handle): New prototype. | |
16149 | (grub_efidisk_get_device_name): Likewise. | |
16150 | ||
16151 | * include/grub/mm.h: Include config.h. | |
16152 | (MM_DEBUG): Removed. | |
16153 | [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype. | |
16154 | [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro. | |
16155 | [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise. | |
16156 | [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise. | |
16157 | [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise. | |
16158 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype. | |
16159 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype. | |
16160 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype. | |
16161 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype. | |
16162 | ||
16163 | * include/grub/kernel.h (grub_machine_set_prefix): New prototype. | |
16164 | ||
16165 | * disk/efi/efidisk.c: Include grub/partition.h. | |
16166 | (iterate_child_devices): New function. | |
16167 | (add_device): First, compare only last device path nodes, so that | |
16168 | devices are sorted by the types. | |
16169 | (grub_efidisk_get_device_handle): New function. | |
16170 | (grub_efidisk_get_device_name): Likewise. | |
16171 | ||
16172 | * configure.ac (--enable-mm-debug): New option to enable the | |
16173 | memory manager debugging feature. This makes the binary much | |
16174 | bigger, so is disabled by default. | |
16175 | ||
9cacaa17 | 16176 | 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org> |
16177 | ||
16178 | Use grub_abort instead of grub_stop, and grub_exit must be | |
16179 | define in each architecture now. Also, this change adds support | |
16180 | for EFI disks. | |
f19dbdb7 | 16181 | |
9cacaa17 | 16182 | * util/i386/pc/grub-probefs.c: Include grub/term.h. |
16183 | (grub_getkey): New function. | |
16184 | (grub_term_get_current): Likewise. | |
16185 | ||
16186 | * util/i386/pc/grub-setup.c: Include grub/term.h. | |
16187 | (grub_getkey): New function. | |
16188 | (grub_term_get_current): Likewise. | |
16189 | ||
16190 | * util/misc.c (grub_stop): Renamed to ... | |
16191 | (grub_exit): ... this. | |
16192 | ||
16193 | * kern/powerpc/ieee1275/init.c (abort): Renamed to ... | |
16194 | (grub_exit): ... this. | |
16195 | (grub_machine_init): Use grub_abort instead of abort. | |
16196 | (grub_stop): Removed. | |
16197 | ||
16198 | * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of | |
16199 | abort. | |
16200 | ||
16201 | * kern/i386/pc/startup.S (grub_exit): New function. | |
16202 | (cold_reboot): New label. | |
16203 | ||
16204 | * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h. | |
16205 | (grub_efi_init): Call grub_efidisk_init. | |
16206 | (grub_efi_fini): Call grub_efidisk_fini. | |
16207 | ||
16208 | * kern/efi/efi.c: Include grub/mm.h. | |
16209 | (grub_efi_console_control_guid): Renamed to ... | |
16210 | (console_control_guid): ... this. | |
16211 | (grub_efi_loaded_image_guid): Renamed to ... | |
16212 | (loaded_image_guid): ... this. | |
16213 | (grub_efi_locate_handle): New function. | |
16214 | (grub_efi_open_protocol): Likewise. | |
16215 | (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of | |
16216 | GRUB_EFI_CONSOLE_CONTROL_GUID. | |
16217 | (grub_efi_exit): Removed. | |
16218 | (grub_stop): Likewise. | |
16219 | (grub_efi_get_loaded_image): Use grub_efi_open_protocol. | |
16220 | (grub_exit): New function. | |
16221 | (grub_print_device_path): Likewise. | |
16222 | ||
16223 | * kern/rescue.c (grub_rescue_cmd_exit): New function. | |
16224 | (grub_enter_rescue_mode): Register "exit". | |
16225 | ||
16226 | * kern/misc.c (grub_real_dprintf): A cosmetic change. | |
16227 | (grub_abort): New function. | |
16228 | ||
16229 | * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop. | |
16230 | ||
16231 | * include/grub/sparc64/ieee1275/kernel.h (abort): Removed. | |
16232 | ||
16233 | * include/grub/powerpc/ieee1275/kernel.h (abort): Removed. | |
16234 | ||
16235 | * include/grub/efi/efi.h (grub_efi_exit): Removed. | |
16236 | (grub_print_device_path): New prototype. | |
16237 | (grub_efi_locate_handle): Likewise. | |
16238 | (grub_efi_open_protocol): Likewise. | |
16239 | ||
16240 | * include/grub/efi/disk.h (grub_efidisk_fini): New file. | |
16241 | * disk/efi/efidisk.c: Likewise. | |
16242 | ||
16243 | * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h. | |
16244 | ||
16245 | * include/grub/efi/console_control.h | |
16246 | (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes. | |
16247 | ||
16248 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the | |
16249 | last 8 bytes as an array. | |
16250 | (GRUB_EFI_DISK_IO_GUID): New macro. | |
16251 | (GRUB_EFI_BLOCK_IO_GUID): Likewise. | |
16252 | (GRUB_EFI_DEVICE_PATH_GUID): Likewise. | |
16253 | (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from | |
16254 | grub_uint8_t. | |
16255 | (struct grub_efi_guid): Use an array to specify the last 8 bytes. | |
16256 | (struct grub_efi_device_path): Rename the member "sub_type" to | |
16257 | "subtype". | |
16258 | (GRUB_EFI_DEVICE_PATH_TYPE): New macro. | |
16259 | (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise. | |
16260 | (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise. | |
16261 | (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise. | |
16262 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise. | |
16263 | (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise. | |
16264 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise. | |
16265 | (GRUB_EFI_NEXT_DEVICE_PATH): Likewise. | |
16266 | (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise. | |
16267 | (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise. | |
16268 | (struct grub_efi_pci_device_path): New structure. | |
16269 | (grub_efi_pci_device_path_t): New type. | |
16270 | (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro. | |
16271 | (struct grub_efi_pccard_device_path): New structure. | |
16272 | (grub_efi_pccard_device_path_t): New type. | |
16273 | (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro. | |
16274 | (struct grub_efi_memory_mapped_device_path): New structure. | |
16275 | (grub_efi_memory_mapped_device_path_t): New type. | |
16276 | (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro. | |
16277 | (struct grub_efi_vendor_device_path): New structure. | |
16278 | (grub_efi_vendor_device_path_t): New type. | |
16279 | (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro. | |
16280 | (struct grub_efi_controller_device_path): New structure. | |
16281 | (grub_efi_controller_device_path_t): New type. | |
16282 | (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro. | |
16283 | (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise. | |
16284 | (struct grub_efi_acpi_device_path): New structure. | |
16285 | (grub_efi_acpi_device_path_t): New type. | |
16286 | (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro. | |
16287 | (struct grub_efi_expanded_acpi_device_path): New structure. | |
16288 | (grub_efi_expanded_acpi_device_path_t): New type. | |
16289 | (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro. | |
16290 | (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise. | |
16291 | (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise. | |
16292 | (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise. | |
16293 | (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise. | |
16294 | (struct grub_efi_atapi_device_path): New structure. | |
16295 | (grub_efi_atapi_device_path_t): New type. | |
16296 | (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro. | |
16297 | (struct grub_efi_fibre_channel_device_path): New structure. | |
16298 | (grub_efi_fibre_channel_device_path_t): New type. | |
16299 | (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro. | |
16300 | (struct grub_efi_1394_device_path): New structure. | |
16301 | (grub_efi_1394_device_path_t): New type. | |
16302 | (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro. | |
16303 | (struct grub_efi_usb_device_path): New structure. | |
16304 | (grub_efi_usb_device_path_t): New type. | |
16305 | (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro. | |
16306 | (struct grub_efi_usb_class_device_path): New structure. | |
16307 | (grub_efi_usb_class_device_path_t): New type. | |
16308 | (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro. | |
16309 | (struct grub_efi_i2o_device_path): New structure. | |
16310 | (grub_efi_i2o_device_path_t): New type. | |
16311 | (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro. | |
16312 | (struct grub_efi_mac_address_device_path): New structure. | |
16313 | (grub_efi_mac_address_device_path_t): New type. | |
16314 | (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro. | |
16315 | (struct grub_efi_ipv4_device_path): New structure. | |
16316 | (grub_efi_ipv4_device_path_t): New type. | |
16317 | (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro. | |
16318 | (struct grub_efi_ipv6_device_path): New structure. | |
16319 | (grub_efi_ipv6_device_path_t): New type. | |
16320 | (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro. | |
16321 | (struct grub_efi_infiniband_device_path): New structure. | |
16322 | (grub_efi_infiniband_device_path_t): New type. | |
16323 | (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro. | |
16324 | (struct grub_efi_uart_device_path): New structure. | |
16325 | (grub_efi_uart_device_path_t): New type. | |
16326 | (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro. | |
16327 | (struct grub_efi_vendor_messaging_device_path): New structure. | |
16328 | (grub_efi_vendor_messaging_device_path_t): New type. | |
16329 | (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro. | |
16330 | (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise. | |
16331 | (struct grub_efi_hard_drive_device_path): New structure. | |
16332 | (grub_efi_hard_drive_device_path_t): New type. | |
16333 | (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro. | |
16334 | (struct grub_efi_cdrom_device_path): New structure. | |
16335 | (grub_efi_cdrom_device_path_t): New type. | |
16336 | (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro. | |
16337 | (struct grub_efi_vendor_media_device_path): New structure. | |
16338 | (grub_efi_vendor_media_device_path_t): New type. | |
16339 | (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro. | |
16340 | (struct grub_efi_file_path_device_path): New structure. | |
16341 | (grub_efi_file_path_device_path_t): New type. | |
16342 | (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro. | |
16343 | (struct grub_efi_protocol_device_path): New structure. | |
16344 | (grub_efi_protocol_device_path_t): New type. | |
16345 | (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro. | |
16346 | (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise. | |
16347 | (struct grub_efi_bios_device_path): New structure. | |
16348 | (grub_efi_bios_device_path_t): New type. | |
16349 | (struct grub_efi_disk_io): New structure. | |
16350 | (grub_efi_disk_io_t): New type. | |
16351 | (struct grub_efi_block_io_media): New structure. | |
16352 | (grub_efi_block_io_media_t): New type. | |
16353 | (struct grub_efi_block_io): New structure. | |
16354 | (grub_efi_block_io_t): New type. | |
16355 | ||
16356 | * include/grub/misc.h (grub_stop): Removed. | |
16357 | (grub_exit): New prototype. | |
16358 | (grub_abort): Likewise. | |
16359 | ||
16360 | * include/grub/disk.h (enum grub_disk_dev_id): Added | |
16361 | GRUB_DISK_DEVICE_EFIDISK_ID. | |
16362 | ||
16363 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added | |
16364 | disk/efi/efidisk.c. | |
16365 | (kernel_syms.lst): Remove the target if an error occurs. | |
16366 | ||
49986a9f | 16367 | 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org> |
16368 | ||
16369 | * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part, | |
16370 | as it was simply too buggy. | |
16371 | ||
970d3b8a | 16372 | 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org> |
16373 | ||
16374 | * kern/misc.c (grub_lltoa): New function. | |
16375 | (grub_vsprintf): Added support for the long long suffix, | |
16376 | i.e. "ll". | |
16377 | ||
ff04ec24 | 16378 | 2006-04-20 Hollis Blanchard <hollis@penguinppc.org> |
16379 | ||
16380 | * Makefile.in (LDFLAGS): Add variable. | |
16381 | (LD): Remove variable. | |
16382 | * configure.ac: Add -m32 to LDFLAGS. | |
16383 | * genmk.rb (PModule#rule): Use $(CC) instead of $(LD). | |
16384 | * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable. | |
16385 | (grubof_LDFLAGS): Use $(COMMON_LDFLAGS). | |
16386 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS, | |
16387 | suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New | |
16388 | variables. | |
16389 | * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
16390 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
16391 | * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
16392 | ||
37e5e1a4 | 16393 | 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi> |
16394 | ||
16395 | * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character | |
16396 | length for unknown glyph. | |
16397 | ||
c352d8dd | 16398 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> |
16399 | ||
2eab1c0d | 16400 | Add support for pre-loaded modules into the EFI port. |
f19dbdb7 | 16401 | |
2eab1c0d | 16402 | * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten |
16403 | completely. Accept one more argument DIR. The caller has changed. | |
16404 | ||
16405 | * kern/i386/efi/init.c (grub_arch_modules_addr): Removed. | |
16406 | ||
16407 | * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h. | |
16408 | (grub_efi_loaded_image_guid): New variable. | |
16409 | (grub_efi_get_loaded_image): New function. | |
16410 | (grub_arch_modules_addr): Likewise. | |
16411 | ||
16412 | * include/grub/efi/efi.h (grub_efi_get_loaded_image): New | |
16413 | prototype. | |
16414 | ||
16415 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro. | |
16416 | (struct grub_efi_loaded_image): New structure. | |
16417 | (grub_efi_loaded_image_t): New type. | |
16418 | ||
16419 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 16420 | |
c352d8dd | 16421 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file |
16422 | size with GRUB_OS_AREA_SIZE as grub_size_t instead of | |
16423 | grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>. | |
16424 | ||
6d01d6b4 | 16425 | 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org> |
16426 | ||
16427 | * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'. | |
16428 | ||
976a4ea0 | 16429 | 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org> |
16430 | ||
16431 | * DISTLIST: Added include/grub/efi/console.h, | |
16432 | include/grub/efi/time.h, include/grub/i386/efi/kernel.h, | |
16433 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
16434 | ||
16435 | * include/grub/efi/console.h: New file. | |
16436 | * include/grub/efi/time.h: Likewise. | |
16437 | * include/grub/i386/efi/kernel.h: Likewise. | |
16438 | * kern/efi/init.c: Likewise. | |
16439 | * kern/efi/mm.c: Likewise. | |
16440 | * term/efi/console.c: Likewise. | |
f19dbdb7 | 16441 | |
976a4ea0 | 16442 | * kern/i386/efi/init.c: Do not include grub/machine/time.h. |
16443 | (grub_stop): Removed. | |
16444 | (grub_get_rtc): Likewise. | |
16445 | (grub_machine_init): Simply call grub_efi_init. | |
16446 | (grub_machine_fini): Call grub_efi_fini. | |
16447 | ||
16448 | * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h. | |
16449 | (grub_efi_output_string): Removed. | |
16450 | (grub_efi_stall): New function. | |
16451 | (grub_stop): Likewise. | |
16452 | (grub_get_rtc): Likewise. | |
16453 | ||
16454 | * include/grub/efi/efi.h (grub_efi_output_string): Removed. | |
16455 | (grub_efi_stall): New prototype. | |
16456 | (grub_efi_allocate_pages): Likewise. | |
16457 | (grub_efi_free_pages): Likewise. | |
16458 | (grub_efi_get_memory_map): Likewise. | |
16459 | (grub_efi_mm_init): Likewise. | |
16460 | (grub_efi_mm_fini): Likewise. | |
16461 | (grub_efi_init): Likewise. | |
16462 | (grub_efi_fini): Likewise. | |
16463 | ||
16464 | * include/grub/i386/efi/time.h: Do not include | |
16465 | grub/symbol.h. Include grub/efi/time.h. | |
16466 | (GRUB_TICKS_PER_SECOND): Removed. | |
16467 | (grub_get_rtc): Likewise. | |
16468 | ||
16469 | * include/grub/efi/api.h (struct grub_efi_memory_descriptor): | |
16470 | Added padding. The EFI spec is buggy. | |
16471 | (GRUB_EFI_BLACK): New macro. | |
16472 | (GRUB_EFI_BLUE): Likewise. | |
16473 | (GRUB_EFI_GREEN): Likewise. | |
16474 | (GRUB_EFI_CYAN): Likewise. | |
16475 | (GRUB_EFI_RED): Likewise. | |
16476 | (GRUB_EFI_MAGENTA): Likewise. | |
16477 | (GRUB_EFI_BROWN): Likewise. | |
16478 | (GRUB_EFI_LIGHTGRAY): Likewise. | |
16479 | (GRUB_EFI_BRIGHT): Likewise. | |
16480 | (GRUB_EFI_DARKGRAY): Likewise. | |
16481 | (GRUB_EFI_LIGHTBLUE): Likewise. | |
16482 | (GRUB_EFI_LIGHTGREEN): Likewise. | |
16483 | (GRUB_EFI_LIGHTCYAN): Likewise. | |
16484 | (GRUB_EFI_LIGHTRED): Likewise. | |
16485 | (GRUB_EFI_LIGHTMAGENTA): Likewise. | |
16486 | (GRUB_EFI_YELLOW): Likewise. | |
16487 | (GRUB_EFI_WHITE): Likewise. | |
16488 | (GRUB_EFI_BACKGROUND_BLACK): Likewise. | |
16489 | (GRUB_EFI_BACKGROUND_BLUE): Likewise. | |
16490 | (GRUB_EFI_BACKGROUND_GREEN): Likewise. | |
16491 | (GRUB_EFI_BACKGROUND_CYAN): Likewise. | |
16492 | (GRUB_EFI_BACKGROUND_RED): Likewise. | |
16493 | (GRUB_EFI_BACKGROUND_MAGENTA): Likewise. | |
16494 | (GRUB_EFI_BACKGROUND_BROWN): Likewise. | |
16495 | (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise. | |
16496 | (GRUB_EFI_TEXT_ATTR): Likewise. | |
16497 | ||
16498 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c, | |
16499 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
16500 | (kernel_mod_HEADERS): Added efi/time.h. | |
16501 | ||
83709125 | 16502 | 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org> |
16503 | ||
16504 | * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk, | |
16505 | include/grub/efi/api.h, include/grub/efi/console_control.h, | |
16506 | include/grub/efi/efi.h, include/grub/efi/pe32.h, | |
16507 | include/grub/i386/efi/time.h, kern/efi/efi.c, | |
16508 | kern/i386/efi/init.c, kern/i386/efi/startup.S, | |
16509 | and util/i386/efi/grub-mkimage.c. | |
16510 | ||
16511 | * Makefile.in (RMKFILES): Added i386-efi.rmk. | |
16512 | ||
16513 | * genmk.rb (PModule#rule): Do not export symbols if | |
16514 | #{prefix}_EXPORTS is set to "no". | |
16515 | ||
16516 | * conf/i386-efi.mk: New file. | |
16517 | * conf/i386-efi.rmk: Likewise. | |
16518 | * include/grub/efi/api.h: Likewise. | |
16519 | * include/grub/efi/console_control.h: Likewise. | |
16520 | * include/grub/efi/efi.h: Likewise. | |
16521 | * include/grub/efi/pe32.h: Likewise. | |
16522 | * include/grub/i386/efi/time.h: Likewise. | |
16523 | * kern/efi/efi.c: Likewise. | |
16524 | * kern/i386/efi/init.c: Likewise. | |
16525 | * kern/i386/efi/startup.S: Likewise. | |
16526 | * util/i386/efi/grub-mkimage.c: Likewise. | |
16527 | ||
16528 | 2006-04-17 Marco Gerards <marco@gnu.org> | |
bfa2bd9e | 16529 | |
16530 | * include/grub/script.h: Include <grub/parser.h> and | |
16531 | "grub_script.tab.h". | |
16532 | (struct grub_lexer_param): New struct. | |
16533 | (struct grub_parser_param): Likewise. | |
16534 | (grub_script_create_arglist): Pass the state in an argument. | |
16535 | (grub_script_add_arglist): Likewise. | |
16536 | (grub_script_create_cmdline): Likewise. | |
16537 | (grub_script_create_cmdblock): Likewise. | |
16538 | (grub_script_create_cmdif): Likewise. | |
16539 | (grub_script_create_cmdmenu): Likewise. | |
16540 | (grub_script_add_cmd): Likewise. | |
16541 | (grub_script_arg_add): Likewise. | |
16542 | (grub_script_lexer_ref): Likewise. | |
16543 | (grub_script_lexer_deref): Likewise. | |
16544 | (grub_script_lexer_record_start): Likewise. | |
16545 | (grub_script_lexer_record_stop): Likewise. | |
16546 | (grub_script_mem_record): Likewise. | |
16547 | (grub_script_mem_record_stop): Likewise. | |
16548 | (grub_script_malloc): Likewise. | |
16549 | (grub_script_yylex): Likewise. | |
16550 | (grub_script_yyparse): Likewise. | |
16551 | (grub_script_yyerror): Likewise. | |
16552 | (grub_script_yylex): Likewise. | |
16553 | (grub_script_lexer_init): Return the state. | |
16554 | ||
16555 | * normal/lexer.c (grub_script_lexer_state): Removed variable. | |
16556 | (grub_script_lexer_done): Likewise. | |
16557 | (grub_script_lexer_getline): Likewise. | |
16558 | (grub_script_lexer_refs): Likewise. | |
16559 | (script): Likewise. | |
16560 | (newscript): Likewise. | |
16561 | (record): Likewise. | |
16562 | (recording): Likewise. | |
16563 | (recordpos): Likewise. | |
16564 | (recordlen): Likewise. | |
16565 | (grub_script_lexer_init): Return the state instead of setting | |
16566 | global variables. | |
16567 | (grub_script_lexer_ref): Use the newly added argument for state | |
16568 | instead of globals. | |
16569 | (grub_script_lexer_deref): Likewise. | |
16570 | (grub_script_lexer_record_start): Likewise. | |
16571 | (grub_script_lexer_record_stop): Likewise. | |
16572 | (recordchar): Likewise. | |
16573 | (nextchar): Likewise. | |
16574 | (grub_script_yylex2): Likewise. | |
16575 | (grub_script_yylex): Likewise. | |
16576 | (grub_script_yyerror): Likewise. | |
16577 | ||
16578 | * normal/parser.y (func_mem): Removed variable. | |
16579 | (menu_entry): Likewise. | |
16580 | (err): Likewise. | |
16581 | (%lex-param): New parser option. | |
16582 | (%parse-param): Likewise. | |
16583 | (script): Always return the AST. | |
16584 | (argument): Pass the state around. | |
16585 | (arguments): Likewise. | |
16586 | (grubcmd): Likewise. | |
16587 | (commands): Likewise. | |
16588 | (function): Likewise. | |
16589 | (menuentry): Likewise. | |
16590 | (if_statement): Likewise. | |
16591 | (if): Likewise. | |
16592 | ||
16593 | * normal/script.c (grub_script_memused): Removed variable. | |
16594 | (grub_script_parsed): Likewise. | |
16595 | (grub_script_malloc): Added a state argument. Use that instead of | |
16596 | global variables. | |
16597 | (grub_script_mem_record): Likewise. | |
16598 | (grub_script_mem_record_stop): Likewise. | |
16599 | (grub_script_arg_add): Likewise. | |
16600 | (grub_script_add_arglist): Likewise. | |
16601 | (grub_script_create_cmdline): Likewise. | |
16602 | (grub_script_create_cmdif): Likewise. | |
16603 | (grub_script_create_cmdmenu): Likewise. | |
16604 | (grub_script_add_cmd): Likewise. | |
16605 | (grub_script_parse): Setup the state before calling the parser. | |
f19dbdb7 | 16606 | |
e2a8c904 | 16607 | 2006-04-16 Marco Gerards <marco@gnu.org> |
6de2ee99 | 16608 | |
16609 | * normal/command.c (grub_command_init): Remove the title command. | |
16610 | ||
16611 | * normal/lexer.c (grub_script_yylex): Renamed from this... | |
16612 | (grub_script_yylex2): ... to this. | |
16613 | (grub_script_yylex): New function. Temporary | |
16614 | introduced to filter some tokens. | |
16615 | (grub_script_yyerror): Print a newline. | |
16616 | ||
16617 | * normal/main.c (read_config_file): Output information about the | |
16618 | lines that contain errors. Wait for a key after all lines have | |
16619 | been processed. Don't return an empty menu. | |
16620 | ||
16621 | * normal/parser.y (func_mem): Don't initialize. | |
16622 | (menu_entry): Likewise. | |
16623 | (err): New variable. | |
16624 | (script): Don't return anything when an error was encountered. | |
16625 | (ws, returns): Removed rules. | |
16626 | (argument): Disabled concatenated variable support. | |
16627 | (arguments): Remove explicit separators. | |
16628 | (grubcmd): Likewise. | |
16629 | (function): Likewise. | |
16630 | (menuentry): Likewise. | |
16631 | (if): Likewise. | |
16632 | (commands): Likewise. Add error handling. | |
16633 | ||
16634 | * normal/script.c (grub_script_create_cmdline): If | |
16635 | `grub_script_parsed' is 0, assume the parser encountered an error. | |
16636 | ||
c9a86192 | 16637 | 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org> |
16638 | ||
16639 | * configure.ac: Add support for EFI. Fix the typo | |
16640 | BUILD_LDDFLAGS. Restore the LDFLAGS after testing. | |
16641 | ||
70f3b243 | 16642 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
16643 | ||
16644 | * util/unifont2pff.rb: Removed unnecessary byte ordering. Now | |
16645 | foreign multibyte characters should be shown correctly. | |
16646 | ||
65f201ad | 16647 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
16648 | ||
16649 | * normal/main.c (grub_normal_menu_addentry): Fixed menu size | |
16650 | calculation. | |
16651 | (read_config_file): Made it to close file before returning. | |
16652 | ||
b4b93674 | 16653 | 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi> |
16654 | ||
16655 | * DISTLIST: Added include/grub/i386/pc/vbeblit.h, | |
16656 | include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c, | |
16657 | video/i386/pc/vbefill.c. | |
16658 | ||
16659 | * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c, | |
16660 | video/i386/pc/vbefill.c. | |
16661 | ||
16662 | * include/grub/video.h (grub_video_blit_format): New enum. | |
16663 | (grub_video_mode_info): Added new member blit_format. | |
16664 | (grub_video_get_blit_format): New function prototype. | |
16665 | ||
16666 | * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New | |
16667 | function prototype. | |
16668 | (grub_video_vbe_map_rgb): Likewise. | |
16669 | (grub_video_vbe_unmap_color): Likewise. | |
16670 | ||
16671 | * include/grub/i386/pc/vbeblit.h: New file. | |
16672 | ||
16673 | * include/grub/i386/pc/vbefill.h: New file. | |
16674 | ||
16675 | * video/video.c (grub_video_get_blit_format): New function. | |
16676 | (grub_video_vbe_get_video_ptr): Re-declared as non-static. | |
16677 | (grub_video_vbe_map_rgb): Likewise. | |
16678 | (grub_video_vbe_unmap_color): Likewise. | |
16679 | ||
16680 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more | |
16681 | optimized fills. | |
16682 | (grub_video_vbe_blit_render_target): Changed to use more optimized | |
16683 | blits. | |
16684 | (grub_video_vbe_setup): Added detection for optimized settings. | |
16685 | (grub_video_vbe_create_render_target): Likewise. | |
16686 | ||
16687 | * video/i386/pc/vbeblit.c: New file. | |
16688 | ||
16689 | * video/i386/pc/vbefill.c: New file. | |
16690 | ||
c2379b9c | 16691 | 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi> |
16692 | ||
16693 | * font/manager.c (grub_font_get_glyph): Removed font fixup from | |
16694 | here... | |
16695 | ||
16696 | * util/unifont2pff.rb: ... and moved it to here. Improved argument | |
16697 | parsing to support both hex and dec ranges. If filename was missing | |
16698 | show usage information. | |
16699 | ||
bd0d7896 | 16700 | 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi> |
16701 | ||
16702 | * DISTLIST: Added include/grub/video.h, term/gfxterm.c, | |
16703 | video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c. | |
16704 | ||
16705 | * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod, | |
16706 | gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod. | |
16707 | (video_mod_SOURCES): Added. | |
16708 | (video_mod_CFLAGS): Likewise. | |
16709 | (video_mod_LDFLAGS): Likewise. | |
16710 | (gfxterm_mod_SOURCES): Likewise. | |
16711 | (gfxterm_mod_CFLAGS): Likewise. | |
16712 | (gfxterm_mod_LDFLAGS): Likewise. | |
16713 | (videotest_mod_SOURCES): Likewise. | |
16714 | (videotest_mod_CFLAGS): Likewise. | |
16715 | (videotest_mod_LDFLAGS): Likewise. | |
16716 | (vesafb_mod_SOURCES): Removed. | |
16717 | (vesafb_mod_CFLAGS): Likewise. | |
16718 | (vesafb_mod_LDFLAGS): Likewise. | |
16719 | (vga_mod_SOURCES): Likewise. | |
16720 | (vga_mod_CFLAGS): Likewise. | |
16721 | (vga_mod_LDFLAGS): Likewise. | |
16722 | ||
16723 | * commands/videotest.c: New file. | |
16724 | ||
16725 | * font/manager.c (fill_with_default_glyph): Modified to use | |
16726 | grub_font_glyph. | |
16727 | (grub_font_get_glyph): Likewise. | |
16728 | (fontmanager): Renamed from this... | |
16729 | (font_manager): ... to this. | |
16730 | ||
16731 | * include/grub/font.h (grub_font_glyph): Added new structure. | |
16732 | (grub_font_get_glyph): Modified to use grub_font_glyph. | |
16733 | ||
16734 | * include/grub/misc.h (grub_abs): Added as inline function. | |
16735 | ||
16736 | * include/grub/video.h: New file. | |
16737 | ||
16738 | * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro. | |
16739 | (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise. | |
16740 | (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise. | |
16741 | (grub_vbe_get_controller_info): Renamed from this... | |
16742 | (grub_vbe_bios_get_controller_info): ... to this. | |
16743 | (grub_vbe_get_mode_info): Renamed from this... | |
16744 | (grub_vbe_bios_get_mode_info): ... to this. | |
16745 | (grub_vbe_set_mode): Renamed from this... | |
16746 | (grub_vbe_bios_set_mode): ... to this. | |
16747 | (grub_vbe_get_mode): Renamed from this... | |
16748 | (grub_vbe_bios_get_mode): ... to this. | |
16749 | (grub_vbe_set_memory_window): Renamed from this... | |
16750 | (grub_vbe_bios_set_memory_window): ... to this. | |
16751 | (grub_vbe_get_memory_window): Renamed from this... | |
16752 | (grub_vbe_bios_get_memory_window): ... to this. | |
16753 | (grub_vbe_set_scanline_length): Renamed from this... | |
16754 | (grub_vbe_set_scanline_length): ... to this. | |
16755 | (grub_vbe_get_scanline_length): Renamed from this... | |
16756 | (grub_vbe_bios_get_scanline_length): ... to this. | |
16757 | (grub_vbe_set_display_start): Renamed from this... | |
16758 | (grub_vbe_bios_set_display_start): ... to this. | |
16759 | (grub_vbe_get_display_start): Renamed from this... | |
16760 | (grub_vbe_bios_get_display_start): ... to this. | |
16761 | (grub_vbe_set_palette_data): Renamed from this... | |
16762 | (grub_vbe_bios_set_palette_data): ... to this. | |
16763 | (grub_vbe_set_pixel_rgb): Removed. | |
16764 | (grub_vbe_set_pixel_index): Likewise. | |
16765 | ||
16766 | * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed | |
16767 | from this... | |
16768 | (grub_vbe_bios_get_controller_info): ... to this. | |
16769 | (grub_vbe_get_mode_info): Renamed from this... | |
16770 | (grub_vbe_bios_get_mode_info): ... to this. | |
16771 | (grub_vbe_set_mode): Renamed from this... | |
16772 | (grub_vbe_bios_set_mode): ... to this. | |
16773 | (grub_vbe_get_mode): Renamed from this... | |
16774 | (grub_vbe_bios_get_mode): ... to this. | |
16775 | (grub_vbe_set_memory_window): Renamed from this... | |
16776 | (grub_vbe_bios_set_memory_window): ... to this. | |
16777 | (grub_vbe_get_memory_window): Renamed from this... | |
16778 | (grub_vbe_bios_get_memory_window): ... to this. | |
16779 | (grub_vbe_set_scanline_length): Renamed from this... | |
16780 | (grub_vbe_set_scanline_length): ... to this. | |
16781 | (grub_vbe_get_scanline_length): Renamed from this... | |
16782 | (grub_vbe_bios_get_scanline_length): ... to this. | |
16783 | (grub_vbe_set_display_start): Renamed from this... | |
16784 | (grub_vbe_bios_set_display_start): ... to this. | |
16785 | (grub_vbe_get_display_start): Renamed from this... | |
16786 | (grub_vbe_bios_get_display_start): ... to this. | |
16787 | (grub_vbe_set_palette_data): Renamed from this... | |
16788 | (grub_vbe_bios_set_palette_data): ... to this. | |
16789 | (grub_vbe_bios_get_controller_info): Fixed problem with registers | |
16790 | getting corrupted after calling it. Added more pushes and pops. | |
16791 | (grub_vbe_bios_set_mode): Likewise. | |
16792 | (grub_vbe_bios_get_mode): Likewise. | |
16793 | (grub_vbe_bios_get_memory_window): Likewise. | |
16794 | (grub_vbe_bios_set_scanline_length): Likewise. | |
16795 | (grub_vbe_bios_get_scanline_length): Likewise. | |
16796 | (grub_vbe_bios_get_display_start): Likewise. | |
16797 | (grub_vbe_bios_set_palette_data): Likewise. | |
16798 | ||
16799 | * normal/cmdline.c (cl_set_pos): Refresh the screen. | |
16800 | (cl_insert): Likewise. | |
16801 | (cl_delete): Likewise. | |
16802 | ||
16803 | * term/gfxterm.c: New file. | |
16804 | ||
16805 | * term/i386/pc/vesafb.c: Removed file. | |
16806 | ||
16807 | * video/video.c: New file. | |
16808 | ||
16809 | * video/i386/pc/vbe.c (real2pm): Added new function. | |
16810 | (grub_video_vbe_draw_pixel): Likewise. | |
16811 | (grub_video_vbe_get_video_ptr): Likewise. | |
16812 | (grub_video_vbe_get_pixel): Likewise | |
16813 | (grub_video_vbe_init): Likewise. | |
16814 | (grub_video_vbe_fini): Likewise. | |
16815 | (grub_video_vbe_setup): Likewise. | |
16816 | (grub_video_vbe_get_info): Likewise. | |
16817 | (grub_video_vbe_set_palette): Likewise. | |
16818 | (grub_video_vbe_get_palette): Likewise. | |
16819 | (grub_video_vbe_set_viewport): Likewise. | |
16820 | (grub_video_vbe_get_viewport): Likewise. | |
16821 | (grub_video_vbe_map_color): Likewise. | |
16822 | (grub_video_vbe_map_rgb): Likewise. | |
16823 | (grub_video_vbe_map_rgba): Likewise. | |
16824 | (grub_video_vbe_unmap_color): Likewise. | |
16825 | (grub_video_vbe_fill_rect): Likewise. | |
16826 | (grub_video_vbe_blit_glyph): Likewise. | |
16827 | (grub_video_vbe_blit_bitmap): Likewise. | |
16828 | (grub_video_vbe_blit_render_target): Likewise. | |
16829 | (grub_video_vbe_scroll): Likewise. | |
16830 | (grub_video_vbe_swap_buffers): Likewise. | |
16831 | (grub_video_vbe_create_render_target): Likewise. | |
16832 | (grub_video_vbe_delete_render_target): Likewise. | |
16833 | (grub_video_vbe_set_active_render_target): Likewise. | |
16834 | (grub_vbe_set_pixel_rgb): Remove function. | |
16835 | (grub_vbe_set_pixel_index): Likewise. | |
16836 | (index_color_mode): Remove static variable. | |
16837 | (active_mode): Likewise. | |
16838 | (framebuffer): Likewise. | |
16839 | (bytes_per_scan_line): Likewise. | |
16840 | (grub_video_vbe_adapter): Added new static variable. | |
16841 | (framebuffer): Likewise. | |
16842 | (render_target): Likewise. | |
16843 | (initial_mode): Likewise. | |
16844 | (mode_in_use): Likewise. | |
16845 | (mode_list): Likewise. | |
16846 | ||
5f97350b | 16847 | 2006-03-10 Marco Gerards <marco@gnu.org> |
16848 | ||
16849 | * configure.ac (AC_INIT): Bumped to 1.93. | |
16850 | ||
16851 | * DISTLIST: Added `include/grub/hfs.h'. | |
16852 | ||
a3c5c6f8 | 16853 | 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org> |
16854 | ||
16855 | * boot/i386/pc/boot.S (general_error): Before looping, try INT | |
16856 | 18H, which might help the BIOS falling back to next boot media. | |
16857 | ||
6de53d26 | 16858 | 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org> |
16859 | ||
16860 | * util/i386/pc/grub-install.in: Escape a backslash. Reported by | |
16861 | Poe Chen <poe.poechen@gmail.com>. | |
16862 | ||
77c4a393 | 16863 | 2006-01-17 Marco Gerards <marco@gnu.org> |
16864 | ||
16865 | * include/grub/normal.h: Include <grub/script.h>. | |
16866 | (grub_command_list): Removed struct. | |
16867 | (grub_command_list_t): Removed type. | |
16868 | (grub_menu_entry): Remove members `num' and `command_list'. Add | |
16869 | members `commands' and `sourcecode'. | |
16870 | * include/grub/script.h: Add inclusion guards. | |
16871 | (grub_script_cmd_menuentry): New struct. | |
16872 | (grub_script_execute_menuentry): New prototype. | |
16873 | (grub_script_lexer_record_start): Likewise. | |
16874 | (grub_script_lexer_record_stop): Likewise. | |
16875 | * normal/execute.c (grub_script_execute_menuentry): New function. | |
16876 | * normal/lexer.c (record, recording, recordpos, recordlen): New | |
16877 | variables. | |
16878 | (grub_script_lexer_record_start): New function. | |
16879 | (grub_script_lexer_record_stop): Likewise. | |
16880 | (recordchar): Likewise. | |
16881 | (nextchar): Likewise. | |
16882 | (grub_script_yylex): Use `nextchar' to fetch new characters. Use | |
16883 | 2048 as the buffer size. Add the tokens `menuentry' and `@'. | |
16884 | * normal/main.c: Include <grub/parser.h> and <grub/script.h> | |
16885 | (current_menu): New variable. | |
16886 | (free_menu): Mainly rewritten. | |
16887 | (grub_normal_menu_addentry): New function. | |
16888 | (read_config_file): Rewritten. | |
16889 | * normal/menu.c (run_menu_entry): Mainly rewritten. | |
fe987087 | 16890 | * normal/menu_entry.c (make_screen): Rewritten the code to insert |
77c4a393 | 16891 | the menu entry. |
16892 | (run): Mainly rewritten. | |
16893 | * normal/parser.y (menu_entry): New variable. | |
16894 | (GRUB_PARSER_TOKEN_MENUENTRY): New token. | |
16895 | (menuentry): New rule. | |
16896 | (command): Add `menuentry'. | |
16897 | (if_statement): Allow additional returns before `fi'. | |
16898 | * normal/script.c (grub_script_create_cmdmenu): New function. | |
16899 | ||
144f1f98 | 16900 | 2006-01-03 Marco Gerards <marco@gnu.org> |
16901 | ||
16902 | * INSTALL: GNU Bison is required. | |
16903 | * configure.ac: Rewritten the test to detect Bison. | |
16904 | * Makefile.in (YACC): New variable. Reported by Xun Sun | |
16905 | <xun.sun.cn@gmail.com>. | |
16906 | ||
af4b2d89 | 16907 | 2006-01-03 Marco Gerards <marco@gnu.org> |
16908 | ||
16909 | * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of | |
16910 | the HFS+ filesystem to filesystem blocks. | |
16911 | (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a | |
16912 | GCC warning is silenced. | |
16913 | ||
15643b71 | 16914 | 2006-01-03 Marco Gerards <marco@gnu.org> |
16915 | ||
16916 | * partmap/apple.c (apple_partition_map_iterate): Convert the data | |
16917 | read from disk from big endian to host byte order. | |
16918 | ||
00905879 | 16919 | 2006-01-03 Hollis Blanchard <hollis@penguinppc.org> |
16920 | ||
16921 | * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official | |
16922 | documentation. | |
16923 | (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro. | |
16924 | (grub_hfs_mount): Grammar fix in error. Make sure this is not an | |
16925 | embedded HFS+ filesystem. | |
16926 | (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t) | |
16927 | (grub_hfs_sblock): Move from here... | |
16928 | * include/grub/hfs.h: To here... New file. | |
16929 | * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official | |
16930 | documentation. | |
16931 | (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK): | |
16932 | New macros. | |
16933 | (grub_hfsplus_volheader): Change type of member `magic' to | |
16934 | `grub_uint16_t'. | |
16935 | (grub_hfsplus_data): Add new member `embedded_offset'. | |
16936 | (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the | |
16937 | returned block. | |
16938 | (grub_hfsplus_mount): Read the HFS+ wrapper if it exists. | |
16939 | Calculate the offset. | |
16940 | ||
8899bc3e | 16941 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
16942 | ||
16943 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR): | |
16944 | Removed. | |
16945 | (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise. | |
16946 | ||
ae8c0277 | 16947 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
16948 | ||
16949 | * kern/env.c (grub_env_set): Check if ENV->VALUE instead of | |
16950 | ENV->NAME is NULL after allocating ENV->VALUE. | |
16951 | ||
07084456 | 16952 | 2005-12-25 Marco Gerards <marco@gnu.org> |
16953 | ||
16954 | * kern/env.c (grub_env_set): Rewritten the error handling code. | |
16955 | ||
4750f5f1 | 16956 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
16957 | ||
16958 | * geninit.sh: Made more robust, and more portable. | |
16959 | ||
50214199 | 16960 | 2005-12-25 Marco Gerards <marco@gnu.org> |
16961 | ||
16962 | Add support for Apple HFS+ filesystems. | |
f19dbdb7 | 16963 | |
50214199 | 16964 | * fs/hfsplus.c: New file. |
16965 | ||
16966 | * DISTLIST: Added `fs/hfsplus.c'. | |
16967 | ||
16968 | * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'. | |
16969 | (hfsplus_mod_SOURCES): New variable. | |
16970 | (hfsplus_mod_CFLAGS): Likewise. | |
16971 | (hfsplus_mod_LDFLAGS): Likewise. | |
16972 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'. | |
16973 | (grub_setup_SOURCES): Likewise. | |
16974 | (grub_mkdevicemap_SOURCES): Likewise. | |
16975 | (grub_emu_SOURCES): Likewise. | |
16976 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
16977 | ||
16978 | * fs/fshelp.c (grub_fshelp_log2blksize): New function. | |
16979 | ||
16980 | * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype. | |
16981 | ||
befaed6c | 16982 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
16983 | ||
16984 | * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c, | |
16985 | commands/i386/pc/play.c, conf/common.mk, conf/common.rmk, | |
16986 | include/grub/parser.h, include/grub/script.h, kern/parser.c, | |
16987 | kern/sparc64/cache.S, normal/execute.c, normal/function.c, | |
16988 | normal/lexer.c, normal/parser.y, normal/script.c, and | |
16989 | partmap/gpt.c. | |
16990 | Removed kern/sparc64/cache.c. | |
16991 | ||
16992 | * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c, | |
16993 | grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h, | |
16994 | grub_emu_init.c. | |
16995 | ||
16996 | * configure.ac (AC_INIT): Bumped to 1.92. | |
16997 | ||
6a124103 | 16998 | 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi> |
16999 | ||
17000 | * kern/err.c (grub_error_push): Added new function to support error | |
17001 | stacks. | |
17002 | (grub_error_pop): Likewise. | |
17003 | (grub_error_stack_items): New local variable to support error stacks. | |
17004 | (grub_error_stack_pos): Likewise. | |
17005 | (grub_error_stack_assert): Likewise. | |
17006 | (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error | |
17007 | stack depth. | |
17008 | (grub_print_error): Added support to print errors from error stack. | |
17009 | ||
17010 | * include/grub/err.h (grub_error_push): Added function prototype. | |
17011 | (grub_error_pop): Likewise. | |
17012 | ||
be973c1b | 17013 | 2005-12-09 Hollis Blanchard <hollis@penguinppc.org> |
17014 | ||
17015 | * configure.ac: Accept `powerpc64' as host_cpu. | |
17016 | (amd64): Rename to `biarch32'. | |
17017 | ||
17018 | * kern/powerpc/cache.S (grub_arch_sync_caches): Handle | |
17019 | non-cacheline-aligned addresses. | |
17020 | ||
17021 | * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages. | |
17022 | (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches' | |
17023 | if `size' is non-zero. | |
17024 | ||
b04216ab | 17025 | 2005-12-03 Marco Gerards <mgerards@xs4all.nl> |
17026 | ||
17027 | * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"' | |
17028 | and `cd' to make sure the filename is not prefixed with a | |
17029 | directory name. | |
17030 | (pkgdata_MODULES): Add `gpt.mod'. | |
17031 | (gpt_mod_SOURCES): New variable. | |
17032 | (gpt_mod_CFLAGS): Likewise. | |
17033 | (gpt_mod_LDFLAGS): Likewise. | |
17034 | ||
17035 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'. | |
17036 | ||
17037 | * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK): | |
17038 | New macro. | |
17039 | ||
17040 | * partmap/gpt.c: New file. | |
17041 | ||
17042 | * partmap/pc.c (pc_partition_map_iterate): Don't continue when a | |
17043 | GPT partition map is detected. | |
17044 | ||
41730ed9 | 17045 | 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr> |
17046 | ||
17047 | * commands/i386/pc/play.c: New file. | |
17048 | * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod. | |
17049 | (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New | |
17050 | macros. | |
f19dbdb7 | 17051 | |
95dc3643 | 17052 | 2005-11-27 Marco Gerards <mgerards@xs4all.nl> |
17053 | ||
17054 | * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ | |
17055 | ((unused))' to silence gcc warning. | |
17056 | ||
1569ec51 | 17057 | 2005-11-26 Hollis Blanchard <hollis@penguinppc.org> |
17058 | ||
17059 | * configure.ac: Correct `AC_PROG_YACC' test. | |
17060 | ||
9abde152 | 17061 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
17062 | ||
17063 | * util/powerpc/ieee1275/grub-install.in: Run the mount point | |
17064 | check before installing files. | |
17065 | ||
44b83271 | 17066 | 2005-11-22 Mike Small <smallm@panix.com> |
17067 | ||
17068 | * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition | |
17069 | number regex so multidigit numbers are recognized correctly. | |
17070 | ||
17071 | 2005-11-22 Mike Small <smallm@panix.com> | |
17072 | ||
17073 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a | |
17074 | debugging message before attempting to claim memory. | |
17075 | (grub_rescue_cmd_initrd): Add a claim debugging message and try | |
17076 | multiple addresses in case of failure. | |
17077 | ||
9c12956b | 17078 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
17079 | ||
17080 | * term/tparm.c (get_space): Remove empty `if' statement. | |
17081 | ||
17082 | * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'. | |
17083 | ||
17084 | * kern/parser.c (check_varstate): Rename `state' to 's'. | |
17085 | ||
aeaf81d9 | 17086 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
17087 | ||
17088 | * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all | |
17089 | variable definitions to the beginning of each function. Sort stack | |
17090 | variables by size. | |
17091 | (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read' | |
17092 | `buf' argument to `char *'. | |
17093 | ||
79bbb63f | 17094 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
17095 | ||
17096 | * conf/powerpc-ieee1275.rmk: Include conf/common.mk. | |
17097 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 17098 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
79bbb63f | 17099 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
17100 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
17101 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
17102 | configfile.mod, search.mod, gzio.mod and test.mod. | |
17103 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
17104 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
17105 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
17106 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
17107 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
17108 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
17109 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
17110 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
17111 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
17112 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
17113 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
17114 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
17115 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
17116 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
17117 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
17118 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
17119 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
17120 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
17121 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
17122 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
17123 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
17124 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
17125 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed. | |
17126 | ||
17127 | * conf/common.mk (grub_modules_init.lst): Use `find' instead of | |
17128 | `grep --include'. | |
17129 | (pkgdata_MODULES): Add test.mod. | |
17130 | ||
233b1628 | 17131 | 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
17132 | ||
17133 | * genmk.rb: Fixed list rules moved to Makefile.in. Recognise | |
17134 | appending to variables with "+=". | |
17135 | (PModule): Use full pathname to generate *.lst filenames. | |
17136 | ||
17137 | * Makefile.in: Fixed list rules moved from genmk.rb. | |
17138 | (.DELETE_ON_ERROR): New special target. | |
17139 | (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk. | |
17140 | ||
17141 | * conf/i386-pc.rmk: Include conf/common.mk. | |
17142 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 17143 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
233b1628 | 17144 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
17145 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
17146 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
17147 | configfile.mod, search.mod, gzio.mod and test.mod. | |
17148 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
17149 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
17150 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
17151 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
17152 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
17153 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
17154 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
17155 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
17156 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
17157 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
17158 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
17159 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
17160 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
17161 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
17162 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
17163 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
17164 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
17165 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
17166 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
17167 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
17168 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
17169 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
17170 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from | |
17171 | here... | |
17172 | * conf/common.rmk: ... to here. New file. | |
17173 | ||
17174 | * conf/common.mk: New file. | |
17175 | ||
16f820c8 | 17176 | 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org> |
17177 | ||
17178 | * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
17179 | (grub_script.tab.c): ... here. | |
17180 | ||
17181 | * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
17182 | (grub_script.tab.c): ... here. | |
17183 | ||
17184 | * conf/i386-pc.rmk (grub_script.tab.h): Unified to ... | |
17185 | (grub_script.tab.c): ... here. | |
17186 | ||
17187 | * normal/command.c (grub_command_find): Fixed a memory leak of | |
17188 | MODULE_NAME. Reported by Mike Small <smallm@panix.com>. | |
17189 | ||
63ba1554 | 17190 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
17191 | ||
17192 | * include/grub/symbol.h: (FUNCTION): Use double quotes instead of | |
17193 | "@" which marks the start of a comment on ARM. | |
17194 | (VARIABLE): Likewise. | |
17195 | ||
7f67dc13 | 17196 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
17197 | ||
79bbb63f | 17198 | Add support for Linux/ADFS partition tables. |
7f67dc13 | 17199 | |
17200 | * partmap/acorn.c: New file. | |
17201 | ||
17202 | * include/grub/acorn_filecore.h: Likewise. | |
17203 | ||
17204 | * DISTLIST: Added `partmap/acorn.c' and | |
17205 | `include/grub/acorn_filecore.h'. | |
f19dbdb7 | 17206 | |
7f67dc13 | 17207 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add |
17208 | `partmap/acorn.c'. | |
17209 | (pkgdata_MODULES): Add `acorn.mod'. | |
17210 | (acorn_mod_SOURCES): New variable. | |
17211 | (acorn_mod_CFLAGS): Likewise. | |
17212 | ||
17213 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
17214 | `partmap/acorn.c'. | |
17215 | (pkgdata_MODULES): Add `acorn.mod'. | |
17216 | (acorn_mod_SOURCES): New variable. | |
17217 | (acorn_mod_CFLAGS): Likewise. | |
17218 | ||
17219 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. | |
17220 | (pkgdata_MODULES): Add `acorn.mod'. | |
17221 | (acorn_mod_SOURCES): New variable. | |
17222 | (acorn_mod_CFLAGS): Likewise. | |
17223 | (acorn_mod_LDFLAGS): Likewise. | |
17224 | ||
17225 | * include/types.h (grub_disk_addr_t): New typedef. | |
17226 | ||
6d099807 | 17227 | 2005-11-13 Marco Gerards <mgerards@xs4all.nl> |
17228 | ||
17229 | * geninit.sh: New file. | |
17230 | ||
17231 | * geninitheader.sh: Likewise. | |
17232 | ||
17233 | * commands/boot.c (grub_boot_init, grub_boot_fini): Removed. | |
17234 | * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise. | |
17235 | * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise. | |
17236 | * commands/configfile.c (grub_configfile_init) | |
17237 | (grub_configfile_fini): Likewise. | |
17238 | * commands/default.c (grub_default_init, grub_default_fini): | |
17239 | Likewise. | |
17240 | * commands/help.c (grub_help_init, grub_help_fini): Likewise. | |
17241 | * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise. | |
17242 | * commands/search.c (grub_search_init, grub_search_fini): Likewise. | |
17243 | * commands/terminal.c (grub_terminal_init, grub_terminal_fini): | |
17244 | Likewise. | |
17245 | * commands/test.c (grub_test_init, grub_test_fini): Likewise. | |
17246 | * commands/timeout.c (grub_timeout_init, grub_timeout_fini): | |
17247 | Likewise. | |
17248 | * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise. | |
fe6b695a | 17249 | * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini): |
6d099807 | 17250 | Likewise. |
17251 | * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini): | |
17252 | Likewise. | |
fe6b695a | 17253 | * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini): |
6d099807 | 17254 | Likewise. |
17255 | * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise. | |
17256 | * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise. | |
17257 | * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise. | |
17258 | * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise. | |
17259 | * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise. | |
17260 | * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise. | |
17261 | * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise. | |
17262 | * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise. | |
17263 | * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise. | |
17264 | * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise. | |
17265 | * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise. | |
17266 | * normal/main.c (grub_normal_init, grub_normal_fini): Likewise. | |
17267 | * partmap/amiga.c (grub_amiga_partition_map_init) | |
17268 | (grub_amiga_partition_map_fini): Likewise. | |
17269 | * partmap/apple.c (grub_apple_partition_map_init) | |
17270 | (grub_apple_partition_map_fini): Likewise. | |
17271 | * partmap/pc.c (grub_pc_partition_map_init) | |
17272 | (grub_pc_partition_map_fini): Likewise. | |
17273 | * partmap/sun.c (grub_sun_partition_map_init, | |
17274 | grub_sun_partition_map_fini): Likewise. | |
17275 | * term/terminfo.c (grub_terminal_init, grub_terminal_fini): | |
17276 | Likewise. | |
17277 | ||
17278 | * util/grub-emu.c: Include <grub_modules_init.h>. | |
17279 | (main): Don't initialize and de-initialize any modules directly, | |
17280 | use `grub_init_all' and `grub_fini_all' instead. | |
17281 | ||
17282 | * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to | |
17283 | `grub_vesafb_mod_init'. | |
17284 | (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated | |
17285 | all users. | |
17286 | * term/i386/pc/vga.c (grub_vga_init): Renamed to | |
17287 | `grub_vga_mod_init'. Updated all users. | |
17288 | (grub_vga_fini): Renamed to `grub_vga_mod_fini'. | |
f19dbdb7 | 17289 | |
6d099807 | 17290 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'. |
17291 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New | |
17292 | rules. | |
17293 | ||
17294 | * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'. | |
17295 | Generate a function to initialize the module in utilities. | |
17296 | Updated all callers. | |
17297 | (GRUB_MOD_FINI): Add argument `name'. Generate a function to | |
17298 | initialize the module in utilities. Updated all callers. | |
17299 | ||
9046bcf0 | 17300 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
17301 | ||
17302 | * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI | |
17303 | escape sequence and a literal ^L to clear the screen. | |
17304 | ||
17305 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen | |
17306 | when returning from Open Firmware. | |
17307 | ||
d13ea639 | 17308 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
17309 | ||
17310 | * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable. | |
17311 | (grub_ofconsole_height): Likewise. | |
17312 | (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width, | |
17313 | manually insert a '\n'. | |
17314 | (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and | |
17315 | `grub_ofconsole_height'. Return early if these are already set. | |
17316 | ||
a8fcf206 | 17317 | 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr> |
17318 | ||
17319 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
17320 | `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c', | |
17321 | `normal/execute.c', `normal/lexer.c', `io/gzio.c', | |
17322 | `kern/parser.c', `grub_script.tab.c', `normal/function.c' | |
17323 | and `normal/script.c'. | |
17324 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
17325 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
17326 | (test_mod_SOURCES): New variable. | |
17327 | (test_mod_CFLAGS): Likewise. | |
17328 | (test_mod_LDFLAGS): Likewise. | |
17329 | (pkgdata_MODULES): Add `test.mod'. | |
17330 | (grub_script.tab.c): New rule. | |
17331 | (grub_script.tab.h): Likewise. | |
17332 | ||
b6b32745 | 17333 | 2005-11-07 Marco Gerards <mgerards@xs4all.nl> |
17334 | ||
17335 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
17336 | `commands/test.c', `normal/execute.c', `normal/lexer.c', | |
17337 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
17338 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
17339 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
17340 | (test_mod_SOURCES): New variable. | |
17341 | (test_mod_CFLAGS): Likewise. | |
17342 | (pkgdata_MODULES): Add `test.mod'. | |
17343 | (grub_script.tab.c): New rule. | |
17344 | (grub_script.tab.h): Likewise. | |
17345 | ||
daac212a | 17346 | 2005-11-06 Marco Gerards <mgerards@xs4all.nl> |
17347 | ||
17348 | Add initial scripting support. | |
17349 | ||
17350 | * commands/test.c: New file. | |
17351 | * include/grub/script.h: Likewise. | |
17352 | * normal/execute.c: Likewise. | |
17353 | * normal/function.c: Likewise. | |
17354 | * normal/lexer.c: Likewise. | |
17355 | * normal/parser.y: Likewise. | |
17356 | * normal/script.c: Likewise. | |
17357 | ||
17358 | * configure.ac: Add `AC_PROG_YACC' test. | |
f19dbdb7 | 17359 | |
daac212a | 17360 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c', |
17361 | `normal/execute.c', `normal/lexer.c', `grub_script.tab.c', | |
17362 | `normal/function.c' and `normal/script.c'. | |
17363 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
17364 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
b6b32745 | 17365 | (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New |
17366 | variables. | |
daac212a | 17367 | (pkgdata_MODULES): Add `test.mod'. |
17368 | (grub_script.tab.c): New rule. | |
17369 | (grub_script.tab.h): Likewise. | |
17370 | ||
17371 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'. | |
17372 | ||
17373 | * include/grub/normal.h (grub_test_init): New prototype. | |
17374 | (grub_test_fini): Likewise. | |
f19dbdb7 | 17375 | |
daac212a | 17376 | * normal/command.c: Include <grub/script.h>. |
17377 | (grub_command_execute): Rewritten. | |
f19dbdb7 | 17378 | |
daac212a | 17379 | * util/grub-emu.c (main): Call `grub_test_init' and |
17380 | `grub_test_fini'. | |
17381 | ||
77500b2b | 17382 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
17383 | ||
17384 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs' | |
17385 | to 0. | |
17386 | * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if | |
17387 | there are no pending characters. | |
17388 | ||
e45deb9e | 17389 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
17390 | ||
17391 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use | |
17392 | `grub_strndup' to drop device arguments. Replace unnecessary | |
17393 | `grub_strndup' with `grub_strdup'. | |
17394 | ||
4ce32619 | 17395 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
17396 | ||
17397 | * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the | |
17398 | `debug' environment variable has been set. | |
17399 | ||
17400 | 2005-11-02 Hollis Blanchard <hollis@penguinppc.org> | |
f19dbdb7 | 17401 | |
4ce32619 | 17402 | * Makefile.in (install-local): Use $(DATA). |
17403 | (uninstall): Likewise. | |
17404 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage... | |
17405 | (sbin_UTILITIES): ... to here. | |
17406 | (sbin_SCRIPTS): New variable. | |
17407 | (grub_install_SOURCES): New variable. | |
17408 | * util/powerpc/ieee1275/grub-install.in: New file. | |
17409 | * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove | |
17410 | variable. | |
17411 | (add_segments): Call `grub_util_get_path'. | |
17412 | ||
25fe6f03 | 17413 | 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
17414 | ||
17415 | From Timothy Baldwin: | |
17416 | * commands/ls.c (grub_ls_list_files): Close FILE with | |
17417 | grub_file_close. | |
17418 | * kern/misc.c (grub_vsprintf): Terminate the string S with NUL. | |
17419 | ||
04ccf3ec | 17420 | 2005-10-24 Marco Gerards <mgerards@xs4all.nl> |
17421 | ||
17422 | * include/grub/parser.h: New file. | |
17423 | ||
17424 | * kern/parser.c: Likewise. | |
17425 | ||
17426 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'. | |
17427 | (grub_setup_SOURCES): Likewise. | |
17428 | (grub_probefs_SOURCES): Likewise. | |
17429 | (grub_emu_SOURCES): Likewise. | |
17430 | (kernel_img_HEADERS): Add `parser.h'. | |
17431 | ||
17432 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
17433 | (grub_emu_SOURCES): Add `kern/parser.c'. | |
17434 | (grubof_SOURCES): Likewise. | |
17435 | ||
17436 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
17437 | (grubof_SOURCES): Add `kern/parser.c'. | |
17438 | ||
17439 | * include/grub/misc.h (grub_split_cmdline): Removed prototype. | |
17440 | ||
17441 | * kern/misc.c (grub_split_cmdline): Removed function. | |
17442 | ||
17443 | * kern/rescue.c: Include <grub/parser.h>. | |
17444 | (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead | |
17445 | of `grub_split_cmdline'. | |
17446 | ||
17447 | * normal/command.c: Include <grub/parser.h>. | |
17448 | (grub_command_execute): Use `grub_parser_split_cmdline' instead | |
17449 | of `grub_split_cmdline'. | |
17450 | ||
17451 | * normal/completion.c: Include <grub/parser.h>. | |
17452 | (cmdline_state): New variable. | |
17453 | (iterate_dir): End the filename with a quote depending on the | |
17454 | command line state. | |
17455 | (get_state): new function. | |
17456 | (grub_normal_do_completion): Use `grub_parser_split_cmdline' to | |
17457 | split the arguments and determine the current argument. When the | |
17458 | argument string is not quoted, escape all spaces. | |
17459 | ||
6d8f4b0e | 17460 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
17461 | ||
17462 | * normal/sparc64/setjmp.S: New file. | |
17463 | ||
15cf03ed | 17464 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
17465 | ||
17466 | * include/grub/sparc64/libgcc.h: New file. | |
17467 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9. | |
17468 | (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of | |
17469 | normal/sparc64/setjmp.c. | |
17470 | ||
03e8661a | 17471 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
17472 | ||
17473 | * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF. | |
17474 | * kern/sparc64/cache.S: New file. | |
17475 | * kern/sparc64/cache.c: Removed. | |
17476 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9. | |
17477 | (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and | |
17478 | -mtune=ultrasparc. | |
17479 | (COMMON_LDFLAGS): Add -melf64_sparc. | |
17480 | (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h. | |
17481 | (grubof_SOURCES): Use cache.S instead of cache.c. | |
17482 | (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker | |
17483 | --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc". | |
17484 | (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod | |
17485 | commented though. | |
17486 | (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c. | |
17487 | (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES) | |
17488 | (linux_mod_CFLAGS): Commented out. | |
17489 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented | |
17490 | out because module isn't built. | |
17491 | (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS) | |
17492 | (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS) | |
17493 | (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS) | |
17494 | (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS) | |
17495 | (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS) | |
17496 | (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
17497 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
17498 | (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS) | |
17499 | (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS) | |
17500 | (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES) | |
17501 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
17502 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
17503 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES) | |
17504 | (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro. | |
17505 | ||
34eeec8a | 17506 | 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org> |
17507 | ||
17508 | * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and | |
17509 | grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any | |
17510 | longer, because HFS should not be used on PC. | |
17511 | ||
708367a3 | 17512 | 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
17513 | ||
17514 | * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET | |
17515 | consistently within the loop. | |
17516 | ||
6fa1251a | 17517 | 2005-10-15 Marco Gerards <mgerards@xs4all.nl> |
17518 | ||
17519 | * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a | |
17520 | directory can not be read. | |
17521 | ||
4801580b | 17522 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
17523 | ||
17524 | * configure.ac (AC_INIT): Increase the version number to 1.91. | |
17525 | ||
17526 | * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h, | |
17527 | include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and | |
17528 | term/i386/pc/serial.c. | |
17529 | ||
219ad426 | 17530 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
17531 | ||
17532 | * kern/file.c (grub_file_seek): Seeking to an offset equal to a | |
17533 | file size must be permitted. | |
17534 | ||
17535 | * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake | |
17536 | between %ah and %al. | |
17537 | ||
688e5699 | 17538 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
17539 | ||
17540 | * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to | |
17541 | grub_uint64_t. | |
17542 | Call the hook with a NUL-terminated filename. | |
17543 | (grub_xfs_mount): Use grub_be_to_cpu32 instead of | |
17544 | grub_cpu_to_be32. | |
17545 | ||
17546 | * kern/term.c (cursor_state): New variable. | |
17547 | (grub_term_set_current): Reset the cursor state on a new | |
17548 | terminal. | |
17549 | (grub_setcursor): Rewritten to use CURSOR_STATE. | |
17550 | (grub_getcursor): New function. | |
17551 | ||
17552 | * include/grub/term.h (grub_getcursor): New prototype. | |
17553 | ||
17554 | * io/gzio.c (test_header): Align BUF for accessing it as 32-bit | |
17555 | integers on ARM. Reported by Timothy Baldwin | |
17556 | <T.E.Baldwin99@members.leeds.ac.uk>. | |
17557 | ||
bb34586c | 17558 | 2005-10-11 Marco Gerards <mgerards@xs4all.nl> |
17559 | ||
17560 | * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not | |
17561 | allocated. | |
17562 | (grub_sfs_dir): Likewise. | |
17563 | ||
9a909877 | 17564 | 2005-10-09 Marco Gerards <mgerards@xs4all.nl> |
17565 | ||
17566 | Add support for the SFS filesystem. | |
17567 | ||
17568 | * fs/sfs.c: New file. | |
17569 | ||
17570 | * DISTLIST: Added `fs/sfs.c'. | |
17571 | ||
17572 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'. | |
17573 | (grub_probefs_SOURCES): Likewise. | |
17574 | (grub_emu_SOURCES): Likewise. | |
17575 | (pkgdata_MODULES): Add `sfs.mod'. | |
17576 | (sfs_mod_SOURCES): New variable. | |
17577 | (sfs_mod_CFLAGS): Likewise. | |
17578 | (sfs_mod_LDFLAGS): Likewise. | |
17579 | ||
17580 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'. | |
17581 | (pkgdata_MODULES): Add `sfs.mod'. | |
17582 | (sfs_mod_SOURCES): New variable. | |
17583 | (sfs_mod_CFLAGS): Likewise. | |
17584 | ||
17585 | * util/grub-emu.c (main): Call `grub_sfs_init' and | |
17586 | `grub_sfs_fini'. | |
17587 | ||
17588 | * include/grub/fs.h (grub_sfs_init): New prototype. | |
17589 | (grub_sfs_fini): Likewise. | |
17590 | ||
57bdbde3 | 17591 | 2005-10-07 Marco Gerards <mgerards@xs4all.nl> |
17592 | ||
17593 | Add support for the AFFS filesystem. | |
17594 | ||
17595 | * fs/affs.c: New file. | |
17596 | ||
17597 | * DISTLIST: Added `fs/affs.c'. | |
17598 | ||
17599 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'. | |
17600 | (grub_probefs_SOURCES): Likewise. | |
17601 | (grub_emu_SOURCES): Likewise. | |
17602 | (pkgdata_MODULES): Add `affs.mod'. | |
17603 | (affs_mod_SOURCES): New variable. | |
17604 | (affs_mod_CFLAGS): Likewise. | |
17605 | (affs_mod_LDFLAGS): Likewise. | |
17606 | ||
17607 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'. | |
17608 | (pkgdata_MODULES): Add `affs.mod'. | |
17609 | (affs_mod_SOURCES): New variable. | |
17610 | (affs_mod_CFLAGS): Likewise. | |
17611 | ||
17612 | * util/grub-emu.c (main): Call `grub_affs_init' and | |
17613 | `grub_affs_fini'. | |
17614 | ||
17615 | * include/grub/fs.h (grub_affs_init): New prototype. | |
17616 | (grub_affs_fini): Likewise. | |
17617 | ||
047b67e0 | 17618 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
17619 | ||
17620 | * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses. | |
17621 | ||
59b8208a | 17622 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
17623 | ||
17624 | * configure.ac: Accept `x86_64' as host_cpu. In that case add | |
17625 | `-m32' to CFLAGS. | |
17626 | ||
17627 | * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when | |
17628 | linking. | |
f19dbdb7 | 17629 | |
59b8208a | 17630 | * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'. |
17631 | (COMMON_LDFLAGS): New variable. | |
17632 | (kernel_img_LDFLAGS): Include `COMMON_FLAGS'. | |
17633 | (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS) | |
17634 | (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS) | |
17635 | (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS) | |
17636 | (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS) | |
17637 | (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS) | |
17638 | (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS) | |
17639 | (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS) | |
17640 | (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS) | |
17641 | (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS) | |
17642 | (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
17643 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
17644 | (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS) | |
17645 | (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS) | |
17646 | (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New | |
17647 | variables. | |
17648 | (normal_mod_ASFLAGS): Add `-m32'. | |
17649 | ||
17650 | * include/grub/types.h (grub_host_addr_t, grub_host_off_t) | |
17651 | (grub_host_size_t, grub_host_ssize_t): New types. | |
17652 | (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type | |
fe6b695a | 17653 | dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on |
59b8208a | 17654 | `GRUB_HOST_SIZEOF_VOID_P'. |
17655 | ||
17656 | * include/grub/kernel.h (struct grub_module_header): Type of | |
17657 | member offset changed to `grub_host_off_t'. Type of member size | |
17658 | changed to `grub_host_size_t'. | |
17659 | (struct grub_module_info): Type of member offset changed to | |
17660 | `grub_host_off_t'. Type of member size changed to | |
17661 | `grub_host_size_t'. | |
17662 | ||
b4093103 | 17663 | 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org> |
17664 | ||
17665 | Make GRUB's kernel compliant to Multiboot Specification. | |
f19dbdb7 | 17666 | |
b4093103 | 17667 | * kern/i386/pc/startup.S (multiboot_header): New label. |
17668 | (multiboot_entry): Likewise. | |
17669 | (multiboot_trampoline): Likewise. | |
17670 | ||
17671 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
17672 | Increased to 0x4A0. | |
17673 | ||
17674 | * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not | |
17675 | put parentheses after a question mark. | |
17676 | [!GRUB_UTIL] (my_mod): New variable. | |
17677 | ||
17678 | * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini. | |
17679 | ||
b2499b29 | 17680 | 2005-09-28 Marco Gerards <mgerards@xs4all.nl> |
17681 | ||
17682 | Adds support for the XFS filesystem. Btrees are not supported | |
17683 | yet. | |
17684 | ||
17685 | * fs/xfs.c: New file. | |
17686 | ||
17687 | * DISTLIST: Added `fs/xfs.c'. | |
17688 | ||
17689 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'. | |
17690 | (grub_probefs_SOURCES): Likewise. | |
17691 | (grub_emu_SOURCES): Likewise. | |
17692 | (pkgdata_MODULES): Add `xfs.mod'. | |
17693 | (xfs_mod_SOURCES): New variable. | |
17694 | (xfs_mod_CFLAGS): Likewise. | |
17695 | ||
17696 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'. | |
17697 | (pkgdata_MODULES): Add `xfs.mod'. | |
17698 | (xfs_mod_SOURCES): New variable. | |
17699 | (xfs_mod_CFLAGS): Likewise. | |
17700 | ||
17701 | * util/grub-emu.c (main): Call `grub_xfs_init' and | |
17702 | `grub_xfs_fini'. | |
17703 | ||
17704 | * include/grub/fs.h (grub_xfs_init): New prototype. | |
17705 | (grub_xfs_fini): Likewise. | |
17706 | ||
f19dbdb7 | 17707 | |
83d37a62 | 17708 | 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi> |
17709 | ||
17710 | * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed | |
17711 | color modes, allow greater than 16 colors to be configured as | |
17712 | a default palette. | |
17713 | ||
47d2d65e | 17714 | 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
17715 | ||
17716 | * normal/completion.c (complete_arguments): Add the qualifier | |
17717 | const into OPTIONS. | |
17718 | ||
17719 | From Omniflux <omniflux+lists@omniflux.com>: | |
17720 | * include/grub/terminfo.h: New file. | |
17721 | * include/grub/tparm.h: Likewise. | |
17722 | * include/grub/i386/pc/serial.h: Likewise. | |
17723 | * term/terminfo.c: Likewise. | |
17724 | * term/tparm.c: Likewise. | |
17725 | * term/i386/pc/serial.c: Likewise. | |
17726 | * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and | |
17727 | serial.mod. | |
17728 | (terminfo_mod_SOURCES): New variable. | |
17729 | (terminfo_mod_CFLAGS): Likewise. | |
17730 | (serial_mod_SOURCES): Likewise. | |
17731 | (serial_mod_CFLAGS): Likewise. | |
17732 | ||
48b671ff | 17733 | 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org> |
17734 | ||
17735 | * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and | |
17736 | boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S | |
17737 | and kern/powerpc/ieee1275/cmain.c, respectively. | |
17738 | ||
17739 | * boot/powerpc/ieee1275/crt0.S: Moved to ... | |
17740 | * kern/powerpc/ieee1275/crt0.S: ... here. | |
17741 | ||
17742 | * boot/powerpc/ieee1275/cmain.c: Moved to ... | |
17743 | * kern/powerpc/ieee1275/cmain.c: ... here. | |
f19dbdb7 | 17744 | |
48b671ff | 17745 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use |
17746 | kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c | |
17747 | instead of boot/powerpc/ieee1275/crt0.S and | |
17748 | boot/powerpc/ieee1275/cmain.c, respectively. | |
17749 | ||
17750 | * boot/i386/pc/boot.S (lba_mode): Do not store the total number of | |
17751 | sectors. It was not used anyway. | |
17752 | ||
09fc77a7 | 17753 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
17754 | ||
17755 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix | |
17756 | `unused parameter' warning. | |
17757 | ||
003789c7 | 17758 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
17759 | ||
17760 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New | |
17761 | function. | |
17762 | (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as | |
17763 | getcharwidth. | |
17764 | ||
67f44c86 | 17765 | 2005-08-28 Marco Gerards <metgerards@student.han.nl> |
17766 | ||
17767 | * include/grub/normal.h (enum grub_completion_type): Added | |
17768 | `GRUB_COMPLETION_TYPE_ARGUMENT'. | |
17769 | ||
17770 | * normal/cmdline.c (print_completion): Handle | |
17771 | the `GRUB_COMPLETION_TYPE_ARGUMENT' type. | |
17772 | * normal/menu_entry.c (store_completion): Likewise. | |
17773 | ||
17774 | * normal/completion.c (complete_arguments): New function. | |
17775 | (grub_normal_do_completion): Call `complete_arguments' when the | |
17776 | current words start with a dash. | |
17777 | ||
0b5abe02 | 17778 | 2005-08-27 Marco Gerards <metgerards@student.han.nl> |
17779 | ||
17780 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use | |
17781 | `gzio.mod' instead of `io.mod'). | |
17782 | ||
d9864ee1 | 17783 | 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org> |
17784 | ||
17785 | * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh. | |
17786 | (DISTDIRS): Added io and video. | |
17787 | Rewrite the search routine to make an output consistently. | |
17788 | ||
17789 | * DISTLIST: Added conf/sparc64-ieee1275.mk, | |
17790 | conf/sparc64-ieee1275.rmk, include/grub/gzio.h, | |
17791 | include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h, | |
17792 | io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c, | |
17793 | kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and | |
17794 | util/powerpc/ieee1275/misc.c. | |
f19dbdb7 | 17795 | |
d9864ee1 | 17796 | * include/grub/gzio.h: New file. |
17797 | * io/gzio.c: Likewise. | |
f19dbdb7 | 17798 | |
d9864ee1 | 17799 | * kern/file.c (grub_file_close): Call grub_device_close only if |
17800 | FILE->DEVICE is not NULL. | |
17801 | ||
17802 | * include/grub/mm.h [!NULL] (NULL): New macro. | |
17803 | ||
17804 | * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant. | |
17805 | ||
17806 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
17807 | (pkgdata_MODULES): Added gzio.mod. | |
17808 | (gzio_mod_SOURCES): New variable. | |
17809 | (gzio_mod_CFLAGS): Likewise. | |
17810 | ||
17811 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
17812 | (pkgdata_MODULES): Added gzio.mod. | |
17813 | (gzio_mod_SOURCES): New variable. | |
17814 | (gzio_mod_CFLAGS): Likewise. | |
17815 | ||
17816 | * commands/cat.c: Include grub/gzio.h. | |
17817 | (grub_cmd_cat): Use grub_gzfile_open instead of | |
17818 | grub_file_open. | |
f19dbdb7 | 17819 | |
d9864ee1 | 17820 | * commands/cmp.c: Include grub/gzio.h. |
17821 | (grub_cmd_cmp): Use grub_gzfile_open instead of | |
17822 | grub_file_open. | |
17823 | ||
17824 | * loader/i386/pc/multiboot.c: Include grub/gzio.h. | |
17825 | (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of | |
17826 | grub_file_open. | |
17827 | (grub_rescue_cmd_module): Likewise. | |
17828 | ||
fa46f4b5 | 17829 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
17830 | ||
17831 | * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be | |
17832 | kern/sparc64/ieee1275/init.c because it contains _start. | |
17833 | * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk. | |
17834 | ||
e9211b5d | 17835 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
17836 | ||
17837 | * configure.ac: Add support for sparc64 host with ieee1275 | |
17838 | firmware. | |
17839 | * configure: Generated from configure.ac. | |
17840 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t | |
17841 | instead of int. | |
17842 | (grub_ofdisk_read): Likewise. | |
17843 | (grub_ofdisk_open): Use %p to print pointer values, and cast the | |
17844 | pointers as (void *) to remove a warning. | |
17845 | (grub_ofdisk_close): Likewise. | |
17846 | (grub_ofdisk_read): Likewise. | |
17847 | * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never | |
17848 | returns, so make it return void to remove a warning. | |
17849 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit): | |
17850 | Corresponding prototype change. | |
17851 | * kern/mm.c (grub_mm_init_region): Use %p to print pointer | |
17852 | values, and cast the pointers as (void *) to remove a warning. | |
17853 | (grub_mm_dump): Likewise. | |
17854 | * conf/sparc64-ieee1275.mk: New file. | |
17855 | * conf/sparc64-ieee1275.rmk: Likewise. | |
17856 | * include/grub/sparc64/setjmp.h: Likewise. | |
17857 | * include/grub/sparc64/types.h: Likewise. | |
17858 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
17859 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
17860 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
17861 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
17862 | * kern/sparc64/cache.c: Likewise. | |
17863 | * kern/sparc64/dl.c: Likewise. | |
17864 | * kern/sparc64/ieee1275/init.c: Likewise. | |
17865 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
17866 | ||
385c6a92 | 17867 | 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
17868 | ||
17869 | * util/console.c (grub_ncurses_putchar): If C is greater than | |
17870 | 0x7f, set C to a question mark. | |
17871 | (grub_ncurses_getcharwidth): New function. | |
17872 | (grub_ncurses_term): Specify grub_ncurses_getcharwidth as | |
17873 | getcharwidth. | |
17874 | ||
17875 | * normal/menu.c (print_entry): Made aware of Unicode. First, | |
17876 | convert TITLE to UCS-4, and predict the cursor position by | |
17877 | grub_getcharwidth. | |
17878 | ||
17879 | * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier | |
17880 | const to SRC. | |
17881 | * kern/misc.c (grub_utf16_to_utf8): Likewise. | |
17882 | ||
16ccb8b1 | 17883 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
17884 | ||
17885 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify | |
17886 | the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
17887 | grub_strcat. | |
17888 | ||
17889 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot | |
17890 | file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
17891 | grub_strcpy and grub_strlen. Take it into account that a space | |
17892 | character is inserted as a delimiter. | |
17893 | ||
6a85ce79 | 17894 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
17895 | ||
17896 | * partmap/pc.c (pc_partition_map_iterate): Include the value of an | |
fe6b695a | 17897 | invalid magic in the error. |
6a85ce79 | 17898 | |
17899 | * commands/search.c: New file. | |
f19dbdb7 | 17900 | |
6a85ce79 | 17901 | * util/grub-emu.c (main): Call grub_search_init and |
17902 | grub_search_fini. | |
17903 | ||
17904 | * kern/rescue.c (grub_rescue_print_disks): Removed. | |
17905 | (grub_rescue_print_devices): New function. | |
17906 | (grub_rescue_cmd_ls): Use grub_device_iterate with | |
17907 | grub_rescue_print_devices instead of grub_disk_dev_iterate with | |
17908 | grub_rescue_print_disks. | |
17909 | ||
17910 | * kern/partition.c (grub_partition_iterate): Return the result of | |
17911 | PARTMAP->ITERATE instead of GRUB_ERRNO. | |
17912 | ||
17913 | * kern/device.c: Include grub/partition.h. | |
17914 | (grub_device_iterate): New function. | |
17915 | ||
17916 | * include/grub/partition.h (grub_partition_iterate): Return int | |
17917 | instead of grub_err_t. | |
17918 | ||
17919 | * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New | |
17920 | prototype. | |
17921 | [GRUB_UTIL] (grub_search_fini): Likewise. | |
17922 | ||
17923 | * include/grub/device.h (grub_device_iterate): New prototype. | |
17924 | ||
17925 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
17926 | commands/search.c. | |
17927 | (pkgdata_MODULES): Added search.mod. | |
17928 | (search_mod_SOURCES): New variable. | |
17929 | (search_mod_CFLAGS): Likewise. | |
17930 | ||
17931 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c. | |
17932 | (pkgdata_MODULES): Added search.mod. | |
17933 | (search_mod_SOURCES): New variable. | |
17934 | (search_mod_CFLAGS): Likewise. | |
17935 | ||
17936 | * commands/ls.c (grub_ls_list_disks): Renamed to ... | |
17937 | (grub_ls_list_devices): ... this, and use grub_device_iterate. | |
17938 | All callers changed. | |
17939 | ||
17940 | * DISTLIST: Added commands/search.c. | |
17941 | ||
ef095434 | 17942 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
17943 | ||
17944 | * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the | |
17945 | conversion. | |
17946 | (grub_getcharwidth): New function. | |
17947 | ||
17948 | * kern/misc.c (grub_utf8_to_ucs4): New function. | |
17949 | ||
17950 | * include/grub/term.h (struct grub_term): Added a new member | |
17951 | "getcharwidth". | |
17952 | (grub_getcharwidth): New prototype. | |
17953 | ||
17954 | * include/grub/misc.h (grub_utf8_to_ucs4): New prototype. | |
17955 | ||
17956 | * term/i386/pc/console.c (map_char): New function. Segregated from | |
17957 | grub_console_putchar. | |
17958 | (grub_console_putchar): Use map_char. | |
17959 | (grub_console_getcharwidth): New function. | |
17960 | (grub_console_term): Specified grub_console_getcharwidth as | |
17961 | getcharwidth. | |
17962 | ||
17963 | * term/i386/pc/vga.c (grub_vga_getcharwidth): New function. | |
17964 | (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth. | |
17965 | ||
17966 | * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return | |
17967 | GRUB_ERRNO. | |
17968 | (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely | |
17969 | on grub_strtoul completely. | |
17970 | (write_char): Declare local variables in the beginning of the | |
17971 | function. | |
17972 | (grub_vesafb_getcharwidth): New function. | |
17973 | (grub_vesafb_term): Specified grub_vesafb_getcharwidth as | |
17974 | getcharwidth. | |
17975 | ||
1f0a95e4 | 17976 | 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org> |
17977 | ||
17978 | * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and | |
17979 | commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and | |
17980 | commands/i386/pc/vbetest.c. | |
17981 | ||
17982 | * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL, | |
17983 | call grub_vbe_get_controller_info again, because the returned | |
17984 | information is volatile. | |
17985 | (grub_vbe_set_video_mode): Mostly rewritten. | |
17986 | (grub_vbe_get_video_mode): Use grub_vbe_probe and use | |
17987 | grub_vbe_status_t correctly. | |
17988 | (grub_vbe_get_video_mode_info): Likewise. | |
17989 | (grub_vbe_set_pixel_rgb): Use a switch statement rather than | |
17990 | several if statements. | |
17991 | ||
17992 | * commands/i386/pc/vbe_list_modes.c: Renamed to ... | |
17993 | * commands/i386/pc/vbeinfo.c: ... this. | |
17994 | ||
17995 | * commands/i386/pc/vbe_test.c: Renamed to ... | |
17996 | * commands/i386/pc/vbetest.c: ... this. | |
17997 | ||
17998 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to | |
17999 | ... | |
18000 | (grub_cmd_vbeinfo): ... this. Save video modes before | |
18001 | iterating. Skip a video mode, if it is not available, not enough | |
18002 | information is given or it is monochrome. Show the memory | |
18003 | model. Leave the interpretation of MODEVAR to grub_strtoul | |
18004 | completely. | |
18005 | (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo. | |
18006 | (GRUB_MOD_FINI): Likewise. | |
18007 | ||
18008 | * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ... | |
18009 | (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use | |
18010 | grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a | |
18011 | duplicated grub_env_get. Leave the interpretation of MODEVAR to | |
18012 | grub_strtoul completely. | |
18013 | (real2pm): Removed. | |
18014 | (GRUB_MOD_INIT): Rename vbe_test to vbetest. | |
18015 | (GRUB_MOD_FINI): Likewise. | |
18016 | ||
18017 | * normal/misc.c: Include grub/mm.h. | |
18018 | ||
18019 | * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and | |
18020 | vbe_list_modes with vbetest.mod and vbeinfo.mod. | |
18021 | (vbe_list_modes_mod_SOURCES): Removed. | |
18022 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
18023 | (vbe_test_mod_SOURCES): Likewise. | |
18024 | (vbe_test_mod_CFLAGS): Likewise. | |
18025 | (vbeinfo_mod_SOURCES): New variable. | |
18026 | (vbeinfo_mod_CFLAGS): Likewise. | |
18027 | (vbetest_mod_SOURCES): Likewise. | |
18028 | (vbetest_mod_CFLAGS): Likewise. | |
18029 | ||
992ffbbe | 18030 | 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org> |
18031 | ||
18032 | * normal/misc.c: New file. | |
18033 | ||
18034 | * DISTLIST: Added normal/misc.c. | |
f19dbdb7 | 18035 | |
992ffbbe | 18036 | * partmap/amiga.c (amiga_partition_map_iterate): Add an argument |
18037 | DISK to HOOK. Call HOOK with DISK. | |
18038 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
18039 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
18040 | * partmap/sun.c (sun_partition_map_iterate): Likewise. | |
18041 | ||
18042 | * normal/menu_entry.c (struct screen): Added a new member | |
18043 | "completion_shown". | |
18044 | (completion_buffer): New global variable. | |
18045 | (make_screen): Set SCREEN->COMPLETION_SHOWN to zero. | |
18046 | (store_completion): New function. | |
18047 | (complete): Likewise. | |
18048 | (clear_completions): Likewise. | |
18049 | (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero, | |
18050 | call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is | |
18051 | a tab, call complete. | |
18052 | ||
18053 | * normal/completion.c (disk_dev): Removed. | |
18054 | (print_simple_completion): Likewise. | |
18055 | (print_partition_completion): Likewise. | |
18056 | (print_func): New global variable. | |
18057 | (add_completion): Do not take the arguments WHAT or PRINT any | |
18058 | longer. Added a new argument TYPE. Instead of printing directly, | |
18059 | call PRINT_FUNC if not NULL. | |
18060 | All callers changed. | |
18061 | (complete_device): Use a local variable DEV instead of | |
18062 | DISK_DEV. Do not move CURRENT_WORD to the end of a device name. | |
18063 | (grub_normal_do_completion): Take a new argument HOOK. Do not | |
18064 | initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an | |
18065 | empty string, return NULL instead. | |
18066 | All callers changed. | |
18067 | ||
18068 | * normal/cmdline.c (print_completion): New function. | |
18069 | ||
18070 | * kern/partition.c (grub_partition_iterate): Add an argument DISK | |
18071 | to HOOK. | |
18072 | All callers changed. | |
18073 | ||
18074 | * kern/disk.c (grub_print_partinfo): Removed. | |
18075 | ||
18076 | * include/grub/partition.h (struct grub_partition_map): Add a new | |
18077 | argument DISK into HOOK of ITERATE. | |
18078 | (grub_partition_iterate): Add a new argument DISK to HOOK. | |
18079 | ||
18080 | * include/grub/normal.h (enum grub_completion_type): New enum. | |
18081 | (grub_completion_type_t): New type. | |
18082 | (GRUB_COMPLETION_TYPE_COMMAND): New constant. | |
18083 | (GRUB_COMPLETION_TYPE_DEVICE): Likewise. | |
18084 | (GRUB_COMPLETION_TYPE_PARTITION): Likewise. | |
18085 | (GRUB_COMPLETION_TYPE_FILE): Likewise. | |
18086 | (grub_normal_do_completion): Added a new argument HOOK. | |
18087 | (grub_normal_print_device_info): New prototype. | |
18088 | ||
18089 | * include/grub/disk.h (grub_print_partinfo): Removed. | |
18090 | ||
18091 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c. | |
18092 | (normal_mod_SOURCES): Likewise. | |
18093 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
18094 | (normal_mod_SOURCES): Likewise. | |
18095 | ||
18096 | * commands/ls.c (grub_ls_list_disks): Use | |
18097 | grub_normal_print_device_info instead of grub_print_partinfo. Free | |
18098 | PNAME. | |
18099 | (grub_ls_list_files): Use grub_normal_print_device_info instead of | |
18100 | duplicating the code. | |
18101 | ||
0bd41162 | 18102 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
18103 | ||
18104 | * commands/i386/pc/vbe_list_modes.c: Update source formatting to | |
f19dbdb7 | 18105 | follow GCS more precisely. |
18106 | * commands/i386/pc/vbe_test.c: Likewise. | |
18107 | * include/grub/i386/pc/vbe.h: Likewise. | |
18108 | * term/i386/pc/vesafb.c: Likewise. | |
18109 | * video/i386/pc/vbe.c: Likewise. | |
0bd41162 | 18110 | |
6323696a | 18111 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
18112 | ||
18113 | * DISTLIST: Added term/i386/pc/vesafb.c | |
18114 | DISTLIST: Added video/i386/pc/vbe.c | |
18115 | DISTLIST: Added commands/i386/pc/vbe_list_modes.c. | |
18116 | DISTLIST: Added commands/i386/pc/vbe_test.c. | |
18117 | * commands/i386/pc/vbe_list_modes.c: New file. | |
18118 | * commands/i386/pc/vbe_test.c: Likewise. | |
18119 | * term/i386/pc/vesafb.c: Likewise. | |
18120 | * video/i386/pc/vbe.c: Likewise. | |
18121 | * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define. | |
18122 | (grub_vbe_probe) Added prototype. | |
18123 | (grub_vbe_set_video_mode) Likewise. | |
18124 | (grub_vbe_get_video_mode) Likewise. | |
18125 | (grub_vbe_get_video_mode_info) Likewise. | |
18126 | (grub_vbe_set_pixel_rgb) Likewise. | |
18127 | (grub_vbe_set_pixel_index) Likewise. | |
18128 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod. | |
18129 | (pkgdata_MODULES): Added vesafb.mod. | |
18130 | (pkgdata_MODULES): Added vbe_list_modes.mod. | |
18131 | (pkgdata_MODULES): Added vbe_test.mod. | |
18132 | (vbe_mod_SOURCES): Added. | |
18133 | (vbe_mod_CFLAGS): Likewise. | |
18134 | (vesafb_mod_SOURCES): Likewise. | |
18135 | (vesafb_mod_CFLAGS): Likewise. | |
18136 | (vbe_list_modes_mod_SOURCES): Likewise. | |
18137 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
18138 | (vbe_test_mod_SOURCES): Likewise. | |
18139 | (vbe_test_mod_CFLAGS): Likewise. | |
18140 | ||
0a74e62f | 18141 | 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org> |
18142 | ||
0a74e62f | 18143 | * normal/command.c (grub_command_execute): If INTERACTIVE is |
18144 | false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print | |
18145 | CMDLINE. Disable the pager if INTERACTIVE is true. | |
18146 | All callers are changed. | |
18147 | ||
18148 | * normal/main.c (grub_normal_execute): Read command.lst and fs.lst | |
18149 | before reading a config file. | |
18150 | * normal/main.c (read_config_file): Even if a command is not | |
18151 | found, register it if it is within an entry. | |
18152 | ||
18153 | * util/grub-emu.c: Include sys/types.h and unistd.h. | |
18154 | (options): Added --hold. | |
18155 | (struct arguments): Added a new member "hold". | |
18156 | (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is | |
18157 | missing. | |
18158 | (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is | |
18159 | cleared by a debugger, if it is not zero. | |
18160 | ||
18161 | * include/grub/normal.h (grub_command_execute): Add an argument | |
18162 | INTERACTIVE. | |
18163 | ||
e51f85ae | 18164 | 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi> |
18165 | ||
18166 | * DISTLIST: Added include/grub/i386/pc/vbe.h. | |
18167 | ||
e9c6f39b | 18168 | 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org> |
18169 | ||
18170 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test | |
18171 | program with another one, because the old one didn't detect a bug | |
18172 | in gcc-3.4. Always use regparm 2, because the new test is still | |
18173 | not enough for gcc-4.0. Someone must investigate a simple test | |
18174 | case which detects a bug in gcc-4.0. | |
18175 | ||
8de3495c | 18176 | 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org> |
18177 | ||
18178 | * DISTLIST: Added normal/completion.c. | |
18179 | ||
18180 | * normal/completion.c: New file. | |
f19dbdb7 | 18181 | |
8de3495c | 18182 | * term/i386/pc/console.c (grub_console_getwh): New function. |
18183 | (grub_console_term): Assign grub_console_getwh to getwh. | |
18184 | ||
18185 | * normal/cmdline.c (grub_tab_complete): Removed. Now the same | |
18186 | function is defined in normal/completion.c as | |
18187 | grub_normal_do_completion. | |
18188 | (grub_cmdline_get): Use grub_normal_do_completion instead of | |
18189 | grub_tab_complete. | |
18190 | ||
18191 | * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK | |
18192 | returns non-zero, otherwise return 0. | |
18193 | (grub_partition_iterate): First, probe the partition map. Then, | |
18194 | call ITERATE only for this partition map. | |
18195 | ||
18196 | * kern/misc.c (grub_strncmp): Rewritten. | |
18197 | ||
18198 | * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE | |
18199 | returns non-zero. Otherwise return 0. | |
18200 | ||
18201 | * include/grub/partition.h (grub_partition_map_iterate): Return | |
18202 | int instead of void. | |
18203 | ||
18204 | * include/grub/normal.h (grub_normal_do_completion): New prototype. | |
18205 | ||
18206 | * include/grub/misc.h (grub_strncmp): Change the type of N to | |
18207 | grub_size_t. | |
18208 | ||
18209 | * include/grub/disk.h (grub_disk_dev_iterate): Return int instead | |
18210 | of void. | |
18211 | ||
18212 | * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to | |
fe6b695a | 18213 | unsigned explicitly before comparing it with I. |
8de3495c | 18214 | |
18215 | * kern/main.c (grub_env_write_root): Add the attribute unused into | |
18216 | VAR. | |
18217 | ||
18218 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
18219 | normal/completion.c. | |
18220 | (normal_mod_SOURCES): Likewise. | |
18221 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
18222 | (normal_mod_SOURCES): Likewise. | |
18223 | ||
18224 | * normal/command.c (grub_iterate_commands): If ITERATE returns | |
18225 | non-zero, return one immediately. | |
18226 | ||
e85e144b | 18227 | 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi> |
18228 | ||
18229 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h. | |
18230 | * kern/i386/pc/startup.S: Updated Global Descriptor table's | |
18231 | descriptions. | |
18232 | (grub_vbe_get_controller_info): New function. | |
18233 | (grub_vbe_get_mode_info): Likewise. | |
18234 | (grub_vbe_set_mode): Likewise. | |
18235 | (grub_vbe_get_mode): Likewise. | |
18236 | (grub_vbe_set_memory_window): Likewise. | |
18237 | (grub_vbe_get_memory_window): Likewise. | |
18238 | (grub_vbe_set_scanline_length): Likewise. | |
18239 | (grub_vbe_get_scanline_length): Likewise. | |
18240 | (grub_vbe_set_display_start): Likewise. | |
18241 | (grub_vbe_get_display_start): Likewise. | |
18242 | (grub_vbe_set_palette_data): Likewise. | |
18243 | * include/grub/i386/pc/vbe.h: New file. | |
18244 | ||
c46153d2 | 18245 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
18246 | ||
18247 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
18248 | kern/ieee1275/of.c with kern/ieee1275/ieee1275.c. | |
18249 | * DISTLIST: Likewise. | |
18250 | * kern/ieee1275/of.c: Moved to ... | |
18251 | * kern/ieee1275/ieee1275.c: ... here. | |
18252 | ||
0cb90c45 | 18253 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
18254 | ||
18255 | * term/ieee1275/ofconsole.c: Include <grub/mm.h>. | |
18256 | (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t. | |
18257 | Pass 0 as `end' parameter to grub_strtoul(). | |
18258 | ||
a19fb360 | 18259 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
18260 | ||
18261 | * include/grub/powerpc/ieee1275/console.h: Do not include | |
18262 | <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE | |
18263 | ifdef. | |
18264 | (grub_console_cur_color): Remove i386-specific prototype. | |
18265 | (grub_console_real_putchar): Likewise. | |
18266 | (grub_console_checkkey): Likewise. | |
18267 | (grub_console_getkey): Likewise. | |
18268 | (grub_console_getxy): Likewise. | |
18269 | (grub_console_gotoxy): Likewise. | |
18270 | (grub_console_cls): Likewise. | |
18271 | (grub_console_setcursor): Likewise. | |
18272 | * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>. | |
18273 | Include <grub/machine/console.h>. | |
18274 | * term/ieee1275/ofconsole.c: Likewise. | |
18275 | ||
4ac9bd04 | 18276 | 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org> |
18277 | ||
18278 | * Makefile.in (LIBLZO): New variable. | |
18279 | ||
18280 | * configure.ac: Check for LZO version 2. | |
18281 | ||
18282 | * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include | |
18283 | lzo/lzo1x.h instead of lzo1x.h. | |
18284 | ||
18285 | * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead | |
18286 | of -llzo. | |
18287 | ||
18288 | * util/i386/pc/grub-setup.c (main): Do not free PREFIX | |
18289 | twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>. | |
18290 | ||
18291 | * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after | |
18292 | copying the data from PARTITION to P. | |
18293 | ||
f4917dfd | 18294 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
18295 | ||
18296 | * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is | |
18297 | negative, unload the module. | |
18298 | ||
18299 | * util/i386/pc/grub-setup.c (setup): The name of the PC partition | |
18300 | map is "pc_partition_map" but not "pc". | |
18301 | (usage): Fix the description. The options are --boot-image and | |
18302 | --core-image but not --boot-file or --core-file. | |
18303 | (main): If not specified explicitly, make BOOT_FILE and CORE_FILE | |
18304 | based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or | |
18305 | DEFAULT_DIRECTORY. | |
18306 | ||
18307 | * util/i386/pc/grub-install.in: Do not specify --boot-file or | |
18308 | --core-file. Specify INSTALL_DEVICE as an argument. | |
18309 | ||
18310 | * util/console.c: Include config.h. | |
18311 | [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h. | |
18312 | [HAVE_NCURSES_H]: Include ncurses.h. | |
18313 | [HAVE_CURSES_H]: Include curses.h. | |
18314 | [!A_NORMAL] (A_NORMAL): Defined as zero. | |
18315 | [!A_STANDOUT] (A_STANDOUT): Likewise. | |
18316 | ||
18317 | * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of | |
18318 | -lncurses. | |
18319 | * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise. | |
18320 | ||
18321 | * configure.ac: Check for curses libraries and headers. | |
18322 | ||
18323 | * Makefile.in (LIBCURSES): New variable. | |
18324 | ||
18325 | * genmk.rb (Script::rule): Set the executable bits. | |
18326 | ||
18327 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The | |
18328 | name of the PC partition map is "pc_partition_map" but not "pc". | |
18329 | ||
0e143073 | 18330 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
18331 | ||
18332 | * util/i386/pc/grub-install.in (grub_probefs): New variable. | |
18333 | (modules): Likewise. | |
18334 | (usage): Added descriptions for --modules and --grub-probefs. | |
18335 | Handle --modules and --grub-probefs. Save the arguments in MODULES | |
18336 | and GRUB_PROBEFS, respectively. | |
18337 | Auto-detect a filesystem module against GRUBDIR. If the result is | |
18338 | empty and modules are not specified explicitly, abort the | |
18339 | installation. Add the result to MODULES. | |
18340 | ||
18341 | * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c, | |
18342 | disk/powerpc/ieee1275/ofdisk.c, | |
18343 | include/grub/powerpc/ieee1275/init.h and | |
18344 | term/powerpc/ieee1275/ofconsole.c. | |
18345 | Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and | |
18346 | term/ieee1275/ofconsole.c. | |
18347 | ||
18348 | * include/grub/powerpc/ieee1275/console.h: Resurrected. | |
18349 | ||
18350 | * COPYING: Upgraded to the latest version. Only the address of the | |
18351 | FSF office has changed. | |
f19dbdb7 | 18352 | |
efd6e6d5 | 18353 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
18354 | ||
18355 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
18356 | kern/ieee1275.c with kern/ieee1275/of.c. | |
18357 | ||
18358 | * kern/ieee1275.c: Moved to ... | |
18359 | * kern/ieee1275/of.c: ... here. | |
18360 | ||
8ceafda2 | 18361 | 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org> |
18362 | ||
18363 | * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for | |
fe6b695a | 18364 | readability. |
8ceafda2 | 18365 | |
18366 | * config.guess: Updated to the latest version from gnulib. | |
18367 | * config.sub: Likewise. | |
18368 | * install.sh: Likewise. | |
18369 | * mkinstalldirs: Likewise. | |
18370 | ||
18371 | * include/grub/console.h: Removed. This file is arch-specific. Do | |
18372 | not put this in include/grub. | |
18373 | ||
18374 | * include/grub/i386/pc/console.h: Resurrected. | |
18375 | ||
18376 | * util/console.c: Include grub/machine/console.h instead of | |
18377 | grub/console.h. | |
18378 | * util/grub-emu.c: Likewise. | |
18379 | ||
267f6cd9 | 18380 | 2005-08-04 Marco Gerards <metgerards@student.han.nl> |
18381 | ||
18382 | * kern/term.c (grub_putcode): Use `grub_getwh' instead of | |
18383 | hardcoded value. | |
f19dbdb7 | 18384 | |
267f6cd9 | 18385 | From Vincent Pelletier <subdino2004@yahoo.fr> |
18386 | * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT): | |
18387 | Redefined to use grub_getwh. | |
18388 | (grub_term): New member named getwh. | |
18389 | (grub_getwh): New prototype. | |
18390 | * kern/term.c (grub_getwh): New function. | |
18391 | * term/i386/pc/console.c (grub_console_getwh): New function. | |
18392 | (grub_console_term): New member `getwh'. | |
18393 | * term/i386/pc/vga.c (grub_vga_getwh): New function. | |
18394 | (grub_vga_term): New member `getwh'. | |
0b5abe02 | 18395 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use |
267f6cd9 | 18396 | grub_ssize_t. |
18397 | (grub_ofconsole_getw): New function. | |
18398 | (grub_ofconsole_init): Use grub_ssize_t and unsigned char. | |
18399 | (grub_ofconsole_term): New field named getwh and new initial | |
18400 | value. | |
18401 | ||
3be7266d | 18402 | 2005-08-03 Hollis Blanchard <hollis@penguinppc.org> |
18403 | ||
18404 | * include/grub/powerpc/ieee1275/ieee1275.h: Move ... | |
18405 | * include/grub/ieee1275/ieee1275.h: ... to here. All users updated. | |
18406 | Move `abort', `grub_reboot', and `grub_halt' prototypes ... | |
18407 | * include/grub/powerpc/ieee1275/kernel.h: ... to here. | |
18408 | * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead | |
18409 | of <grub/machine/ieee1275.h>. | |
18410 | * commands/ieee1275/reboot.c: Likewise. | |
18411 | * boot/powerpc/ieee1275/ieee1275.c: Move ... | |
18412 | * kern/ieee1275.c: ... to here. All users updated. Change all | |
18413 | parameter structs to use new type `grub_ieee1275_cell_t'. | |
18414 | * term/powerpc/ieee1275/ofconsole.c: Move ... | |
18415 | * term/ieee1275/ofconsole.c: ... to here. All users updated. | |
18416 | * disk/powerpc/ieee1275/ofdisk.c: Move ... | |
18417 | * disk/ieee1275/ofdisk.c: ... to here. All users updated. | |
18418 | * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type | |
18419 | to return int. | |
18420 | * include/grub/i386/pc/console.h: Move to include/grub/console.h. | |
18421 | Remove unused prototypes. All users updated. | |
18422 | * include/grub/powerpc/ieee1275/console.h: Removed. | |
18423 | * include/grub/powerpc/ieee1275/ieee1275.h: Define | |
18424 | `grub_ieee1275_cell_t'. | |
18425 | * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>. | |
18426 | Cast comparisons with -1 to the correct type. | |
18427 | * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter | |
18428 | type to match `grub_ieee1275_entry_fn'. | |
18429 | ||
8b5f3938 | 18430 | 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org> |
18431 | ||
18432 | * DISTLIST: Added util/i386/pc/grub-probefs.c. | |
18433 | ||
18434 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs. | |
18435 | (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and | |
18436 | partmap/sun.c. | |
18437 | (grub_probefs_SOURCES): New variable. | |
18438 | ||
18439 | * util/i386/pc/grub-probefs.c: New file. | |
18440 | ||
18441 | * util/i386/pc/grub-setup.c (main): Call | |
18442 | grub_pc_partition_map_init, grub_ufs_init, grub_minix_init, | |
18443 | grub_hfs_init and grub_jfs_init to initialize the system. Call | |
18444 | grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and | |
18445 | grub_pc_partition_map_fini to finish the system. | |
18446 | ||
ea409713 | 18447 | 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org> |
18448 | ||
18449 | * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New | |
18450 | function. | |
18451 | (grub_multiboot_load_elf32): Likewise. | |
18452 | (grub_multiboot_is_elf64): Likewise. | |
18453 | (grub_multiboot_load_elf64): Likewise. | |
18454 | (grub_multiboot_load_elf): Likewise. | |
18455 | (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load | |
18456 | an ELF32 or ELF64 file. | |
18457 | This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>. | |
18458 | ||
18459 | From Serbinenko Vladimir <serbinenko.vova@list.ru>: | |
18460 | * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not | |
18461 | NULL before calling FS->LABEL. | |
18462 | * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL. | |
18463 | * commands/ls.c (grub_ls_list_files): Show labels, if possible. | |
18464 | (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL | |
18465 | before calling FS->LABEL. | |
18466 | ||
141a288b | 18467 | 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org> |
18468 | ||
18469 | * util/i386/pc/grub-install.in (datadir): New variable. | |
18470 | (libdir): Removed. | |
18471 | (pkgdatadir): New variable. | |
18472 | (pkglibdir): Removed. | |
18473 | ||
0d5f8a54 | 18474 | 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org> |
18475 | ||
18476 | * DISTLIST: Added util/i386/pc/grub-install.in. | |
18477 | ||
18478 | * util/i386/pc/grub-install.in: New file. | |
18479 | ||
18480 | * conf/i386-pc.rmk (sbin_SCRIPTS): New variable. | |
18481 | (grub_install_SOURCES): Likewise. | |
18482 | ||
18483 | * genmk.rb: Added support for scripts. | |
18484 | (Script): New class. | |
18485 | (scripts): New variable. | |
18486 | ||
18487 | * Makefile.in (install-local): Install sbin_SCRIPTS by | |
18488 | INSTALL_SCRIPT. | |
18489 | (uninstall): Remove sbin_SCRIPTS. | |
18490 | ||
18491 | * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB | |
18492 | device, try to get a GRUB device by | |
18493 | grub_util_biosdisk_get_grub_dev. | |
18494 | Free DEST_DEV. | |
18495 | ||
18496 | * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated | |
18497 | description for --device-map. | |
18498 | ||
5f968e1e | 18499 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
18500 | ||
18501 | Change the semantics of variable hooks. They now return strings | |
18502 | instead of error values. | |
f19dbdb7 | 18503 | |
5f968e1e | 18504 | * util/i386/pc/grub-setup.c: Include grub/env.h. |
18505 | (setup): Use grub_device_set_root instead of grub_env_set. | |
18506 | ||
18507 | * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and | |
18508 | grub_env_get instead of grub_device_set_root and | |
18509 | grub_device_get_root, respectively. | |
18510 | ||
18511 | * kern/main.c (grub_env_write_root): New function. | |
18512 | (grub_set_root_dev): Register grub_env_write_hook for "root". Use | |
18513 | grub_env_set instead of grub_device_set_root. | |
18514 | ||
18515 | * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need | |
18516 | many variables. | |
18517 | (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK | |
18518 | rather than calling ENV->WRITE_HOOK afterwards. | |
18519 | (grub_env_get): Return the result of ENV->READ_HOOK rather than | |
18520 | passing a pointer of a pointer. | |
18521 | (grub_register_variable_hook): Change the types of "read_hook" and | |
18522 | "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t, | |
18523 | respectively. | |
18524 | Allocate the default empty string on the heap, because this string | |
18525 | may be freed later. | |
18526 | ||
18527 | * kern/device.c: Include grub/env.h. | |
18528 | (grub_device_set_root): Removed. | |
18529 | (grub_device_get_root): Likewise. | |
18530 | (grub_device_open): Use grub_env_get instead of | |
18531 | grub_device_get_root. | |
18532 | ||
18533 | * include/grub/env.h (grub_env_read_hook_t): New type. | |
18534 | (grub_env_write_hook_t): Likewise. | |
18535 | (grub_env_var): Change the types of "read_hook" and "write_hook" | |
18536 | to grub_env_read_hook_t and grub_env_write_hook_t, respectively. | |
18537 | (grub_register_variable_hook): Likewise. | |
18538 | ||
18539 | * include/grub/device.h (grub_device_set_root): Removed. | |
18540 | (grub_device_set_root): Likewise. | |
18541 | ||
18542 | * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and | |
18543 | make sure that DIRNAME terminates with '/', so that | |
18544 | grub_fat_find_dir will fail if PATH is not a directory. | |
18545 | ||
18546 | * commands/ls.c (grub_ls_list_files): Remove the qualifier const | |
18547 | from DIRNAME. | |
18548 | Use the qualifier auto for print_files and print_files_long. | |
18549 | If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME | |
18550 | as a regular file. | |
18551 | Put a newline only if there is no error. | |
18552 | (grub_cmd_ls): Remove grub_ls_print_files, because this is not | |
18553 | used. | |
18554 | ||
896f0afd | 18555 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
18556 | ||
18557 | * kern/partition.c (grub_partition_probe): Initialize PART to | |
18558 | NULL. Otherwise, when no partition map is registered, this returns | |
18559 | a garbage. | |
18560 | ||
b28b81b2 | 18561 | 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> |
18562 | ||
18563 | * partmap/apple.c (apple_partition_map_iterate): Check if POS | |
18564 | equals GRUB_DISK_SECTOR_SIZE to see if the partition table is | |
18565 | valid. | |
18566 | ||
5f3607e0 | 18567 | 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org> |
18568 | ||
18569 | * commands/ls.c (grub_ls_list_disks): Print the filesystem | |
18570 | information on each device, if it does not have partitions. Print | |
18571 | "Device" instead of "Disk", because this function is not specific | |
18572 | to disk devices. | |
18573 | ||
18574 | * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG | |
18575 | static to ensure that it is put on the memory rather than a | |
18576 | register. | |
18577 | ||
502c87e8 | 18578 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
18579 | ||
18580 | * commands/cat.c (GRUB_MOD_INIT): Use better documentation. | |
18581 | (grub_cat_init): Likewise. | |
18582 | * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise. | |
18583 | (options): Likewise. | |
18584 | * commands/configfile.c (GRUB_MOD_INIT): Likewise. | |
18585 | (grub_configfile_init): Likewise. | |
18586 | * font/manager.c (GRUB_MOD_INIT): Likewise. | |
18587 | * commands/help.c (GRUB_MOD_INIT): Likewise. | |
18588 | (grub_help_init): Likewise. | |
18589 | * normal/command.c (grub_command_init): Likewise. | |
18590 | * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise. | |
18591 | * disk/loopback.c (grub_loop_init): Likewise. | |
18592 | (GRUB_MOD_INIT): Likewise. | |
18593 | * commands/ls.c (grub_ls_init): Likewise. | |
18594 | (GRUB_MOD_INIT): Likewise. | |
18595 | (options): Likewise. | |
18596 | * commands/boot.c (grub_boot_init): Likewise. | |
18597 | (GRUB_MOD_INIT): Likewise. | |
18598 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise. | |
18599 | * commands/i386/pc/reboot.c (grub_reboot_init): Likewise. | |
18600 | (GRUB_MOD_INIT): Likewise. | |
18601 | * commands/cmp.c (grub_cmp_init): Likewise. | |
18602 | (GRUB_MOD_INIT): Likewise. | |
18603 | ||
18604 | * normal/arg.c: Use <> instead of "" to include header files. | |
18605 | (SHORT_ARG_HELP): New macro. | |
18606 | (SHORT_ARG_USAGE): Likewise. | |
18607 | (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead | |
18608 | of 'h' and 'u' for help and usage, respectively. Use more GNU-like | |
18609 | descriptions. | |
18610 | (find_short): Check if C is 'h' or 'u' explicitly. | |
18611 | (grub_arg_show_help): Use space characters instead of tabs. Treat | |
18612 | SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u | |
18613 | are shown with --help and --usage only if they are not used for | |
18614 | the command itself. | |
18615 | (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of | |
18616 | 'h' and 'u'. | |
18617 | ||
18618 | * include/grub/arg.h (struct grub_arg_option): Add the qualifier | |
18619 | const into "longarg". Change the type of "shortarg" to int. | |
18620 | ||
f806d18e | 18621 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
18622 | ||
18623 | * boot/i386/pc/boot.S (boot_drive_check): New label. | |
18624 | ||
18625 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New | |
18626 | macro. | |
18627 | ||
18628 | * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes | |
18629 | which do not pass a boot drive correctly. Copied from GRUB Legacy. | |
18630 | ||
e293232b | 18631 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
18632 | ||
18633 | * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a): | |
18634 | When turning off Gate A20, skip the check and return immediately, | |
18635 | because this is not fatal usually. | |
18636 | ||
ebedfd00 | 18637 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
18638 | ||
18639 | * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should | |
18640 | be 0x7C00 instead of 0x8000. | |
18641 | ||
18642 | * boot/i386/pc/pxeboot.S: Rewritten. | |
18643 | ||
18644 | * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify | |
18645 | EXT_C. | |
18646 | (gate_a20_check_state): Read a byte from 0x108000. Invert the | |
18647 | result. | |
18648 | ||
654fc59f | 18649 | 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org> |
18650 | ||
18651 | * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for | |
18652 | robustness. This routine now supports a BIOS call and System | |
18653 | Control Port A to modify the gate A20. | |
18654 | ||
18655 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
18656 | Increased to 0x440. | |
18657 | ||
09f9923f | 18658 | 2005-07-12 Hollis Blanchard <hollis@penguinppc.org> |
18659 | ||
18660 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the | |
18661 | device path and resulting ihandle. | |
18662 | (grub_ofdisk_close): dprintf the ihandle being closed. | |
18663 | (grub_ofdisk_read): dprintf function parameters. | |
18664 | * kern/mm.c (grub_mm_init_region): Likewise. | |
18665 | * loader/powerpc/ieee1275/linux.c: Remove extra whitespace. | |
18666 | (grub_linux_boot): dprintf the Linux entry point, initrd address and | |
18667 | size, and boot arguments. | |
18668 | (grub_rescue_cmd_linux): dprintf each ELF segment's address and size | |
18669 | before loading into memory. | |
18670 | (grub_rescue_cmd_initrd): dprintf the initrd's address and size | |
18671 | before loading into memory. | |
18672 | ||
7ef504d8 | 18673 | 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org> |
18674 | ||
18675 | * kern/mm.c: Added much documentation. | |
18676 | (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is | |
18677 | 8, set to 5 instead of 8. | |
18678 | ||
e0f050c2 | 18679 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
18680 | ||
18681 | * DISTLIST: Added util/i386/pc/grub-mkimage.c. | |
18682 | ||
18683 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap. | |
18684 | (grub_mkdevicemap_SOURCES): New variable. | |
18685 | ||
18686 | * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from | |
18687 | lib/device.c of GRUB Legacy. | |
18688 | ||
7224189a | 18689 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
18690 | ||
18691 | * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL | |
18692 | instead of PATH is NULL. | |
18693 | ||
68c864eb | 18694 | 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr> |
18695 | ||
18696 | * commands/cmp.c (BUFFER_SIZE): New macro. | |
18697 | (grub_cmd_cmp): Close the right file at the right time. Compare | |
18698 | only data just read. Don't report files of different size as | |
18699 | identical. Dynamically allocate buffers. Move variable | |
18700 | declarations at the beginning of function. | |
18701 | ||
e6f3e614 | 18702 | 2005-07-09 Yoshinori Okuji <okuji@enbug.org> |
18703 | ||
18704 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was | |
18705 | reverse. | |
18706 | ||
f8f1559a | 18707 | 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr> |
18708 | ||
18709 | * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d | |
18710 | when backspace is pressed at beginning of line. | |
18711 | ||
39c9d41d | 18712 | 2005-07-03 Yoshinori Okuji <okuji@enbug.org> |
18713 | ||
18714 | * DISTLIST: Added genfslist.sh. | |
18715 | ||
18716 | * normal/main.c (fs_module_list): New variable. | |
18717 | (autoload_fs_module): New function. | |
18718 | (read_fs_list): Likewise. | |
18719 | (grub_normal_execute): Call read_fs_list. | |
18720 | ||
18721 | * kern/fs.c (grub_fs_autoload_hook): New variable. | |
18722 | (grub_fs_probe): Added support for auto-loading. | |
18723 | ||
18724 | * include/grub/normal.h (struct grub_fs_module_list): New struct. | |
18725 | (grub_fs_module_list_t): New type. | |
18726 | ||
18727 | * include/grub/fs.h (grub_fs_autoload_hook_t): New type. | |
18728 | (grub_fs_autoload_hook): New prototype. | |
18729 | ||
18730 | * genfslist.sh: New file. | |
f19dbdb7 | 18731 | |
39c9d41d | 18732 | * genmk.rb: Added a rule to generate a filesystem list. |
18733 | ||
121c1d83 | 18734 | 2005-06-30 Marco Gerards <metgerards@student.han.nl> |
18735 | ||
18736 | * configure.ac: Fix the test for cross-compiling. | |
18737 | ||
18738 | * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't | |
18739 | define GRUB_UTIL anymore. | |
18740 | ||
18741 | * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes | |
18742 | so this function works on other systems than just big endian. | |
18743 | (load_modules): Likewise. | |
18744 | (add_segments): Likewise. | |
18745 | ||
e75d76e1 | 18746 | 2005-06-23 Hollis Blanchard <hollis@penguinppc.org> |
18747 | ||
18748 | * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string | |
18749 | contains `l' modifier, get a long from va_arg(). | |
18750 | ||
50b5a0a7 | 18751 | 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org> |
18752 | ||
18753 | * kern/mm.c (grub_free): If the next free block which is being | |
18754 | merged is the first free block, set the first block to the block | |
18755 | being freed. | |
18756 | Reported by Vincent Guffens <guffens@inma.ucl.ac.be>. | |
18757 | ||
89371b20 | 18758 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
18759 | ||
18760 | * boot/powerpc/ieee1275/cmain.c (cmain): Initialize | |
18761 | `grub_ieee1275_chosen'. | |
18762 | ||
168d6e58 | 18763 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
18764 | ||
18765 | * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition. | |
18766 | (grub_ieee1275_chosen): New variable. | |
18767 | (cmain): Initialize and use `grub_ieee1275_chosen' instead of | |
18768 | `chosen'. | |
18769 | * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space. | |
18770 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
18771 | Rename first argument to `phandle' for consistency. | |
18772 | (grub_ieee1275_get_property_length): Likewise. | |
18773 | (grub_ieee1275_next_property): Likewise. Change type of first argument | |
18774 | to grub_ieee1275_phandle_t. | |
18775 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn): | |
18776 | Move export next to declaration. | |
18777 | (grub_ieee1275_chosen): New variable. | |
18778 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE): | |
18779 | Correct cosmetic typo. | |
18780 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use | |
18781 | `grub_ieee1275_chosen'. | |
18782 | * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise. | |
18783 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise. | |
18784 | (grub_rescue_cmd_linux): Set `initrd_addr' to 0. | |
18785 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use | |
18786 | `grub_ieee1275_chosen'. | |
18787 | ||
ca5baa3f | 18788 | 2005-05-10 Hollis Blanchard <hollis@penguinppc.org> |
18789 | ||
18790 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse | |
18791 | /chosen/bootargs. | |
18792 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse | |
18793 | /chosen/bootargs as "variable=value" pairs. | |
18794 | ||
708b345f | 18795 | 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr> |
18796 | ||
18797 | * include/grub/misc.h (grub_dprintf): New macro. | |
18798 | (grub_real_dprintf): New prototype. | |
18799 | (grub_strword): Likewise. | |
18800 | (grub_iswordseparator): Likewise. | |
18801 | * kern/misc.c (grub_real_dprintf): New function. | |
18802 | (grub_strword): Likewise. | |
18803 | (grub_iswordseparator): Likewise. | |
18804 | ||
f4c5e67c | 18805 | 2005-04-30 Hollis Blanchard <hollis@penguinppc.org> |
18806 | ||
18807 | * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h. | |
18808 | (roundup): Remove macro. | |
18809 | (grub_ieee1275_flags): Make static. | |
18810 | (grub_ieee1275_realmode): Remove. | |
18811 | (grub_ieee1275_test_flag): New function. | |
18812 | (grub_ieee1275_set_flag): Likewise. | |
18813 | (find_options): Rename to `grub_ieee1275_find_options'; update | |
18814 | callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and | |
18815 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS. | |
18816 | (cmain): New prototype. | |
18817 | (cmain): Use `grub_ieee1275_set_flag' instead of accessing | |
18818 | `grub_ieee1275_flags' directly. | |
18819 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove | |
18820 | machine/biosdisk.h. | |
18821 | * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h. | |
18822 | Don't include grub/machine/init.h. | |
18823 | (grub_ofdisk_open): Call `grub_ieee1275_test_flag'. | |
18824 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
18825 | Remove prototype. | |
18826 | (grub_ieee1275_realmode): Likewise. | |
18827 | (grub_ieee1275_flag): New enum. | |
18828 | (grub_ieee1275_test_flag): New prototype. | |
18829 | (grub_ieee1275_set_flag): New prototype. | |
18830 | * include/grub/powerpc/ieee1275/init.h: Remove file. | |
18831 | * include/grub/powerpc/ieee1275/ofdisk.h: New file. | |
18832 | * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h. | |
18833 | Include grub/machine/console.h. Include grub/machine/ofdisk.h. | |
18834 | (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove | |
18835 | comment. | |
18836 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call | |
18837 | `grub_ieee1275_test_flag'. | |
18838 | (grub_ieee1275_encode_devname): Likewise. | |
18839 | ||
ed16607e | 18840 | 2005-04-21 Hollis Blanchard <hollis@penguinppc.org> |
18841 | ||
18842 | * include/grub/powerpc/ieee1275/ieee1275.h | |
18843 | (grub_ieee1275_encode_devname): New prototype. | |
18844 | (grub_ieee1275_get_filename): Likewise. | |
18845 | * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New | |
18846 | function. | |
18847 | (grub_set_prefix): Likewise. | |
18848 | (grub_machine_init): Call grub_set_prefix. | |
18849 | * kern/powerpc/ieee1275/openfw.c: Fix typos. | |
18850 | (grub_parse_type): New enum. | |
18851 | (grub_ieee1275_get_devargs): New function. | |
18852 | (grub_ieee1275_get_devname): Likewise. | |
18853 | (grub_ieee1275_parse_args): Likewise. | |
18854 | (grub_ieee1275_get_filename): Likewise. | |
18855 | (grub_ieee1275_encode_devname): Likewise. | |
18856 | ||
be369920 | 18857 | 2005-03-30 Marco Gerards <metgerards@student.han.nl> |
18858 | ||
18859 | * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call | |
18860 | `grub_loader_unset'. | |
18861 | ||
a5ce3a4a | 18862 | 2005-03-26 Hollis Blanchard <hollis@penguinppc.org> |
18863 | ||
18864 | * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt | |
18865 | instead of grub_ieee1275_interpret. | |
18866 | (grub_halt_init): New function. | |
18867 | (grub_halt_fini): Likewise. | |
18868 | (GRUB_MOD_INIT): Correct message grammar. | |
18869 | * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot | |
18870 | instead of grub_ieee1275_interpret. | |
18871 | (grub_reboot_init): New function. | |
18872 | (grub_reboot_fini): Likewise. | |
18873 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace | |
18874 | commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and | |
18875 | util/i386/pc/misc.c with commands/ieee1275/halt.c, | |
18876 | commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c. | |
18877 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New | |
18878 | function. | |
18879 | * include/grub/powerpc/ieee1275/console.h (grub_console_fini): | |
18880 | Add prototype. | |
18881 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add | |
18882 | prototype. | |
18883 | (grub_halt): Likewise. | |
18884 | * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment. | |
18885 | (cmain): Remove __attribute__((unused)). | |
18886 | * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable. | |
18887 | (grub_heap_len): Likewise. | |
18888 | (grub_machine_fini): New function. | |
18889 | * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function. | |
18890 | (grub_halt): Likewise. | |
18891 | * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New | |
18892 | function. | |
18893 | * util/powerpc/ieee1275/misc.c: New file. | |
18894 | ||
0058f771 | 18895 | 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
18896 | ||
18897 | * DISTLIST: New file. | |
18898 | * gendistlist.sh: Likewise. | |
f19dbdb7 | 18899 | |
0058f771 | 18900 | * Makefile.in (COMMON_DISTFILES): Removed. |
18901 | (BOOT_DISTFILES): Likewise. | |
18902 | (CONF_DISTFILES): Likewise. | |
18903 | (DISK_DISTFILES): Likewise. | |
18904 | (FS_DISTFILES): Likewise. | |
18905 | (INCLUDE_DISTFILES): Likewise. | |
18906 | (KERN_DISTFILES): Likewise. | |
18907 | (LOADER_DISTFILES): Likewise. | |
18908 | (TERM_DISTFILES): Likewise. | |
18909 | (UTIL_DISTFILES): Likewise. | |
18910 | (DISTFILES): Likewise. | |
18911 | (uninstall): Uninstall files in $(pkgdata_DATA). | |
18912 | (DISTLIST): New target. | |
18913 | (distdir): Use the contents of the file DISTLIST to get a list of | |
18914 | distributed files. | |
18915 | ||
46b3b8a5 | 18916 | 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
18917 | ||
18918 | * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media | |
18919 | descriptor. This is ported from GRUB Legacy. | |
18920 | ||
18921 | * gencmdlist.sh: Added an extra semicolon to make it work with | |
18922 | old sed versions. Reported by Robert Bihlmeyer | |
18923 | <robbe@orcus.priv.at>. | |
18924 | ||
5822ff87 | 18925 | 2005-03-08 Yoshinori Okuji <okuji@enbug.org> |
18926 | ||
18927 | Automatic loading of commands is supported. | |
f19dbdb7 | 18928 | |
5822ff87 | 18929 | * normal/main.c (read_command_list): New function. |
18930 | (grub_normal_execute): Call read_command_list. | |
18931 | ||
18932 | * normal/command.c (grub_register_command): Return zero or CMD. | |
18933 | Allocate CMD->NAME from the heap. | |
18934 | Initialize CMD->MODULE_NAME to zero. | |
18935 | Find the same name as well. If the same command is found and it is | |
18936 | a dummy command, overwrite members. If it is not a dummy command, | |
18937 | return zero. | |
18938 | (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME. | |
18939 | (grub_command_find): If a dummy command is found, load a module | |
18940 | and retry to find a command only once. | |
18941 | ||
18942 | * normal/cmdline.c (grub_tab_complete): Call grub_command_find to | |
18943 | make sure that each command is loaded. | |
18944 | ||
18945 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New | |
18946 | macro. | |
18947 | (struct grub_command): Remove const from the member `name'. | |
18948 | Add a new member `module_name'. | |
18949 | (grub_register_command): Return grub_command_t. | |
18950 | ||
18951 | * commands/help.c (grub_cmd_help): Call grub_command_find to make | |
18952 | sure that each command is loaded. | |
18953 | ||
18954 | * genmk.rb (PModule::rule): Specify a module name without the | |
18955 | suffix ".mod" to gencmdlist.sh. | |
18956 | ||
7b1f4b57 | 18957 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
18958 | ||
18959 | * gencmdlist.sh: New file. | |
f19dbdb7 | 18960 | |
7b1f4b57 | 18961 | * genmk.rb (PModule::rule): Generate a rule for a command list. |
18962 | Clean command.lst. | |
18963 | Generate command.lst from $(COMMANDFILES). | |
18964 | ||
18965 | * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh. | |
18966 | (DATA): Added $(pkgdata_DATA). | |
18967 | (install-local): Install files in $(pkgdata_DATA). | |
18968 | ||
062aaf39 | 18969 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
18970 | ||
18971 | * term/i386/pc/vga.c (debug_command): Removed. | |
18972 | (GRUB_MOD_INIT): Do not register the command "debug". | |
18973 | ||
18974 | From Hollis Blanchard: | |
18975 | * commands/configfile.c: New file. | |
18976 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
18977 | commands/configfile.c. | |
18978 | (pkgdata_MODULES): Added configfile.mod. | |
18979 | (configfile_mod_SOURCES): New variable. | |
18980 | (configfile_mod_CFLAGS): Likewise. | |
18981 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
18982 | commands/configfile.c. | |
18983 | (pkgdata_MODULES): Added configfile.mod. | |
18984 | (configfile_mod_SOURCES): New variable. | |
18985 | (configfile_mod_CFLAGS): Likewise. | |
18986 | * util/grub-emu.c (main): Call grub_configfile_init and | |
18987 | grub_configfile_fini. | |
18988 | * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New | |
18989 | prototype. | |
18990 | [GRUB_UTIL] (grub_configfile_fini): Likewise. | |
f19dbdb7 | 18991 | |
cee01aa6 | 18992 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
18993 | ||
18994 | * normal/arg.c (grub_arg_show_help): Do not show the bug report | |
18995 | address. | |
18996 | ||
18997 | * commands/help.c (grub_cmd_help): Do not print newlines after | |
18998 | the last command in print_command_help. | |
18999 | ||
93f3a1d8 | 19000 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
19001 | ||
19002 | * commands/default.h: New file. | |
19003 | * commands/timeout.h: Likewise. | |
19004 | * normal/context.c: Likewise. | |
f19dbdb7 | 19005 | |
93f3a1d8 | 19006 | * util/misc.c: Do not include sys/times.h. |
19007 | Include sys/time.h and grub/machine/time.h. | |
19008 | (grub_get_rtc): Rewritten with gettimeofday. | |
19009 | ||
19010 | * util/grub-emu.c (main): Call grub_default_init and | |
19011 | grub_timeout_init before grub_normal_init, and call | |
19012 | grub_timeout_fini and grub_default_fini after grub_main. | |
19013 | ||
19014 | * util/console.c (grub_ncurses_checkkey): Return the read | |
19015 | character or -1. | |
19016 | ||
19017 | * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it | |
19018 | timeouts. | |
19019 | ||
19020 | * normal/main.c (read_config_file): Push MENU. If this fails, | |
19021 | print an error and wait for a user input. | |
19022 | Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE. | |
19023 | If a menu is empty or an error occurs, pop MENU. | |
19024 | (grub_normal_execute): Pop and free MENU after grub_menu_run | |
19025 | returns. | |
19026 | ||
19027 | * kern/loader.c (grub_loader_boot): Call grub_machine_fini. | |
19028 | ||
19029 | * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not | |
19030 | include time.h. | |
19031 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
19032 | without GRUB_UTIL. | |
19033 | * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include | |
19034 | time.h. | |
19035 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
19036 | without GRUB_UTIL. | |
19037 | ||
19038 | * include/grub/normal.h (struct grub_menu_list): New struct. | |
19039 | (grub_menu_list_t): New type. | |
19040 | (struct grub_context): New struct. | |
19041 | (grub_context_t): New type. | |
19042 | (grub_register_command): Got rid of EXPORT_FUNC. | |
19043 | (grub_unregister_command): Likewise. | |
19044 | (grub_context_get): New prototype. | |
19045 | (grub_context_get_current_menu): Likewise. | |
19046 | (grub_context_push_menu): Likewise. | |
19047 | (grub_context_pop_menu): Likewise. | |
19048 | [GRUB_UTIL] (grub_default_init): Likewise. | |
19049 | [GRUB_UTIL] (grub_default_fini): Likewise. | |
19050 | [GRUB_UTIL] (grub_timeout_init): Likewise. | |
19051 | [GRUB_UTIL] (grub_timeout_fini): Likewise. | |
19052 | ||
19053 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c, | |
19054 | commands/timeout.c and normal/context.c. | |
19055 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
19056 | (normal_mod_SOURCES): Added normal/context.c. | |
19057 | (default_mod_SOURCES): New variable. | |
19058 | (default_mod_CFLAGS): Likewise. | |
19059 | (timeout_mod_SOURCES): Likewise. | |
19060 | (timeout_mod_CFLAGS): Likewise. | |
19061 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from | |
19062 | conf/i386-pc.rmk. | |
19063 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
19064 | (normal_mod_SOURCES): Added normal/context.c. | |
19065 | (default_mod_SOURCES): New variable. | |
19066 | (default_mod_CFLAGS): Likewise. | |
19067 | (timeout_mod_SOURCES): Likewise. | |
19068 | (timeout_mod_CFLAGS): Likewise. | |
19069 | ||
19070 | * Makefile.in (all-local): Added $(MKFILES). | |
19071 | ||
4ed2e1dd | 19072 | 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr> |
19073 | ||
19074 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'. | |
19075 | (grub_emu_SOURCES): Likewise. | |
19076 | (pkgdata_MODULES): Add `sun.mod'. | |
19077 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
19078 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
19079 | `partmap/sun.c'. | |
19080 | (pkgdata_MODULES): Add `sun.mod'. | |
19081 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
19082 | * include/grub/partition.h (grub_sun_partition_map_init): New | |
19083 | prototype. | |
19084 | (grub_sun_partition_map_fini): Likewise. | |
19085 | * partmap/sun.c: New file. | |
19086 | * util/grub-emu.c (main): Initialize and de-initialize the sun | |
19087 | partitionmap support. | |
19088 | ||
4d4e372e | 19089 | 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org> |
19090 | ||
19091 | This implements an Emacs-like menu entry editor. | |
f19dbdb7 | 19092 | |
4d4e372e | 19093 | * normal/menu_entry.c: New file. |
f19dbdb7 | 19094 | |
4d4e372e | 19095 | * util/console.c (grub_ncurses_putchar): Translate some Unicode |
19096 | characters to ASCII. | |
19097 | (saved_char): New variable. | |
19098 | (grub_ncurses_checkkey): Rewritten completely. | |
19099 | (grub_ncurses_getkey): Likewise. | |
19100 | (grub_ncurses_init): Call raw instead of cbreak. | |
19101 | ||
19102 | * normal/menu.c (print_entry): Do not put a space. | |
19103 | (init_page): Renamed to ... | |
19104 | (grub_menu_init_page): ... this. All callers changed. | |
19105 | (edit_menu_entry): Removed. | |
19106 | (run_menu): Call grub_menu_entry_run instead of edit_menu_entry. | |
19107 | ||
19108 | * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor. | |
19109 | ||
19110 | * kern/misc.c (grub_vprintf): Call grub_refresh. | |
19111 | ||
19112 | * normal/menu.c (DISP_LEFT): Renamed to ... | |
19113 | * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this. | |
19114 | * normal/menu.c (DISP_UP): Renamed to ... | |
19115 | * include/grub/term.h (GRUB_TERM_DISP_UP): ... this. | |
19116 | * normal/menu.c (DISP_RIGHT): Renamed to ... | |
19117 | * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this. | |
19118 | * normal/menu.c (DISP_DOWN): Renamed to ... | |
19119 | * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this. | |
19120 | * normal/menu.c (DISP_HLINE): Renamed to ... | |
19121 | * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this. | |
19122 | * normal/menu.c (DISP_VLINE): Renamed to ... | |
19123 | * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this. | |
19124 | * normal/menu.c (DISP_UL): Renamed to ... | |
19125 | * include/grub/term.h (GRUB_TERM_DISP_UL): ... this. | |
19126 | * normal/menu.c (DISP_UR): Renamed to ... | |
19127 | * include/grub/term.h (GRUB_TERM_DISP_UR): ... this. | |
19128 | * normal/menu.c (DISP_LL): Renamed to ... | |
19129 | * include/grub/term.h (GRUB_TERM_DISP_LL): ... this. | |
19130 | * normal/menu.c (DISP_LR): Renamed to ... | |
19131 | * include/grub/term.h (GRUB_TERM_DISP_LR): ... this. | |
19132 | * normal/menu.c (TERM_WIDTH): Renamed to ... | |
19133 | * include/grub/term.h (GRUB_TERM_WIDTH): ... this. | |
19134 | * normal/menu.c (TERM_HEIGHT): Renamed to ... | |
19135 | * include/grub/term.h (GRUB_TERM_HEIGHT): ... this. | |
19136 | * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ... | |
19137 | * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this. | |
19138 | * normal/menu.c (TERM_MARGIN): Renamed to ... | |
19139 | * include/grub/term.h (GRUB_TERM_MARGIN): ... this. | |
19140 | * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ... | |
19141 | * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this. | |
19142 | * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ... | |
19143 | * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this. | |
19144 | * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ... | |
19145 | * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this. | |
19146 | * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ... | |
19147 | * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this. | |
19148 | * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ... | |
19149 | * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this. | |
19150 | * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ... | |
19151 | * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this. | |
19152 | * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ... | |
19153 | * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this. | |
19154 | * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ... | |
19155 | * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this. | |
19156 | * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ... | |
19157 | * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this. | |
19158 | * normal/menu.c (TERM_CURSOR_X): Renamed to ... | |
19159 | * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this. | |
19160 | All callers changed. | |
19161 | ||
19162 | * include/grub/normal.h: New prototype. | |
19163 | ||
19164 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
19165 | normal/menu_entry.c. | |
19166 | (normal_mod_SOURCES): Likewise. | |
19167 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
19168 | (normal_mod_SOURCES): Likewise. | |
19169 | ||
e6b92c8a | 19170 | 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> |
19171 | ||
19172 | * include/grub/normal.h (grub_halt_init): New prototype. | |
19173 | (grub_halt_fini): Likewise. | |
19174 | (grub_reboot_init): Likewise. | |
19175 | (grub_reboot_fini): Likewise. | |
19176 | ||
19177 | * util/grub-emu.c: Include signal.h. | |
19178 | (main_env): New global variable. | |
19179 | (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot | |
19180 | catch C-c. | |
19181 | (grub_machine_fini): New function. | |
19182 | (main): Call grub_halt_init and grub_reboot_init before | |
19183 | grub_main, and grub_reboot_fini and grub_halt_fini after it. | |
19184 | Call setjmp with MAIN_ENV to go back afterwards. | |
19185 | Call grub_machine_fini right before return. | |
19186 | ||
19187 | * include/grub/util/misc.h: Include setjmp.h. | |
19188 | (main_env): New prototype. | |
19189 | ||
19190 | * include/grub/kernel.h (grub_machine_fini): New prototype. | |
19191 | * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise. | |
19192 | * include/grub/i386/pc/console.h (grub_console_fini): Likewise. | |
19193 | ||
19194 | * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function. | |
19195 | * kern/i386/pc/init.c (grub_machine_fini): Likewise. | |
19196 | * term/i386/pc/console.c (grub_console_fini): Likewise. | |
f19dbdb7 | 19197 | |
e6b92c8a | 19198 | * util/i386/pc/misc.c: New file. |
f19dbdb7 | 19199 | |
e6b92c8a | 19200 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added |
19201 | util/i386/pc/misc.c, commands/i386/pc/halt.c and | |
19202 | commands/i386/pc/reboot.c. | |
19203 | ||
c642636f | 19204 | 2005-02-14 Guillem Jover <guillem@hadrons.org> |
19205 | ||
19206 | * include/grub/dl.h (grub_dl_check_header): New prototype. | |
19207 | (grub_arch_dl_check_header): Change return type to grub_err_t, | |
19208 | remove size parameter and export function. Update all callers. | |
19209 | * kern/dl.c (grub_dl_check_header): New function. | |
19210 | (grub_dl_load_core): Use `grub_dl_check_header' instead of | |
19211 | `grub_arch_dl_check_header'. Check ELF type. Check if sections | |
19212 | are inside the core. | |
19213 | * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch | |
19214 | independent ELF header checks. | |
19215 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
19216 | * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use | |
19217 | `grub_dl_check_header' instead of explicit checks. Check for the | |
19218 | ELF type. | |
19219 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use | |
19220 | `grub_dl_check_header' instead of explicit checks. Remove arch | |
19221 | specific ELF header checks. | |
19222 | ||
e6b92c8a | 19223 | * util/grub-emu.c (grub_arch_dl_check_header): Remove the |
19224 | argument SIZE. | |
19225 | ||
5eabe94b | 19226 | 2005-02-13 Hollis Blanchard <hollis@penguinppc.org> |
19227 | ||
19228 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod. | |
19229 | * include/grub/powerpc/libgcc.h (__mulsf3): New prototype. | |
19230 | ||
1b14a681 | 19231 | 2005-02-12 Hollis Blanchard <hollis@penguinppc.org> |
19232 | ||
19233 | * kern/partition.c (grub_partition_probe): Clear `grub_errno' and | |
f19dbdb7 | 19234 | return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 19235 | (part_map_iterate): Clear `grub_errno' and return 0 if |
f19dbdb7 | 19236 | `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 19237 | * partmap/amiga.c (amiga_partition_map_iterate): Return |
19238 | GRUB_ERR_BAD_PART_TABLE if no partition map magic is found. | |
19239 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
19240 | ||
aca108aa | 19241 | 2005-02-01 Guillem Jover <guillem@hadrons.org> |
19242 | ||
19243 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module | |
19244 | help info. | |
19245 | ||
c9f9c556 | 19246 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
19247 | ||
19248 | * include/grub/powerpc/ieee1275/loader.h (grub_load_linux): | |
19249 | Removed prototype. | |
19250 | (grub_rescue_cmd_linux): New prototype. | |
19251 | (grub_rescue_cmd_initrd): Likewise. | |
19252 | * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct | |
19253 | `bi_rec'. | |
19254 | (grub_linux_release_mem): Release the memory for the initrd. | |
19255 | (grub_load_linux): Renamed from this... | |
19256 | (grub_rescue_cmd_linux): ...To this. Changed all callers. | |
19257 | Changed `entry' not to be static. Loop over memory regions to | |
19258 | find another one when the default fails. | |
19259 | (grub_rescue_cmd_initrd): New function. | |
19260 | (grub_linux_init): Remove function. | |
19261 | (grub_linux_fini): Likewise. | |
19262 | (GRUB_MOD_INIT): Register `initrd'. | |
19263 | (GRUB_MOD_FINI): Unregister `initrd'. | |
19264 | * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init): | |
19265 | Function removed. | |
19266 | (grub_linux_normal_fini): Likewise. | |
19267 | (GRUB_MOD_INIT): Register `initrd'. | |
19268 | (GRUB_MOD_FINI): Unregister `initrd'. | |
19269 | ||
990cf3aa | 19270 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
19271 | ||
19272 | * commands/help.c: New file. | |
19273 | * normal/arg.c (show_help): Renamed to... | |
19274 | (grub_arg_show_help): ... this. | |
19275 | * commands/i386/pc/halt.c: New file. | |
19276 | * commands/i386/pc/reboot.c: Likewise. | |
19277 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'. | |
19278 | (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'. | |
19279 | (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES) | |
19280 | (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New | |
19281 | variables. | |
19282 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
19283 | `commands/help.c'. | |
19284 | (pkgdata_MODULES): Add `help.mod'. | |
19285 | (help_mod_SOURCES, help_mod_CFLAGS): New variables. | |
19286 | * grub/i386/pc/init.h (grub_reboot): New prototype. | |
19287 | (grub_halt): Likewise. | |
19288 | * include/grub/normal.h (grub_arg_show_help): New prototype. | |
19289 | (grub_help_init): Likewise. | |
19290 | (grub_help_fini): Likewise. | |
19291 | * util/grub-emu.c (main): Initialize and deinitialize the help | |
19292 | command. | |
19293 | ||
19294 | * normal/cmdline.c (grub_cmdline_get): Doc fix. | |
19295 | ||
19296 | * normal/command.c (grub_command_init): Fixed the description of | |
19297 | the `set' and `unset' commands. | |
19298 | ||
19299 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> | |
0f79cdc1 | 19300 | |
19301 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New | |
19302 | function. | |
19303 | * commands/ieee1275/halt.c: New file. | |
19304 | * commands/ieee1275/reboot.c: Likewise. | |
19305 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Use | |
19306 | `__attribute__ ((unused))'. Some GCS related fixed. | |
19307 | (grub_suspend_init) [GRUB_UTIL]: Function removed. | |
19308 | (grub_suspend_fini): Likewise. | |
19309 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod' | |
19310 | and `halt.mod'. | |
19311 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES) | |
19312 | (halt_mod_CFLAGS): New variables. | |
19313 | * include/grub/powerpc/ieee1275/ieee1275.h | |
19314 | (grub_ieee1275_interpret): New prototype. | |
19315 | ||
1ab09cc7 | 19316 | 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org> |
19317 | ||
19318 | * include/grub/misc.h (memmove): New prototype. | |
19319 | (memcpy): Likewise. | |
19320 | ||
8b8cbdb2 | 19321 | 2005-01-22 Hollis Blanchard <hollis@penguinppc.org> |
19322 | ||
19323 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize | |
19324 | `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'. | |
19325 | ||
e3741a27 | 19326 | 2005-01-22 Marco Gerards <metgerards@student.han.nl> |
19327 | ||
19328 | * kern/misc.c (grub_strndup): Function rewritten. | |
19329 | ||
776bd780 | 19330 | 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr> |
19331 | ||
19332 | * normal/menu.c (TERM_WIDTH): Macro redefined. | |
19333 | (TERM_TOP_BORDER_Y): Likewise. | |
19334 | (draw_border): Replaced while-loop by a for-loop. Make the number | |
19335 | of lines consistent with the number of lines displayed in | |
19336 | print_entries. Added a margin below the rectangle. | |
19337 | (print_entry): Make the entry fit in the rectangle. | |
19338 | (print_entries): Display the scroll arrows next to the right | |
19339 | border. | |
19340 | ||
78026bce | 19341 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
19342 | ||
19343 | * fs/minix.c (grub_minix_find_file): Reserve more space for | |
19344 | `fpath' so the \0 can be stored. Use `grub_strcpy' instead of | |
19345 | `grub_strncpy' to copy `path' into it. | |
19346 | ||
67bbaf0f | 19347 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
19348 | ||
19349 | Add the loopback device, a device via which files can be accessed | |
19350 | as devices. | |
f19dbdb7 | 19351 | |
67bbaf0f | 19352 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'. |
19353 | (pkgdata_MODULES): Add loopback.mod. | |
19354 | (loopback_mod_SOURCES): New variable. | |
19355 | (loopback_mod_CFLAGS): Likewise. | |
19356 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
19357 | `disk/loopback.c'. | |
19358 | (pkgdata_MODULES): Add loopback.mod. | |
19359 | (loopback_mod_SOURCES): New variable. | |
19360 | (loopback_mod_CFLAGS): Likewise. | |
19361 | * disk/loopback.c: new file. | |
19362 | * include/grub/normal.h (grub_loop_init): New prototype. | |
19363 | (grub_loop_fini): New prototype. | |
19364 | * util/grub-emu.c (main): Initialize and de-initialize loopback | |
19365 | support. | |
19366 | * include/grub/disk.h (grub_disk_dev_id): Add | |
19367 | `GRUB_DISK_DEVICE_LOOPBACK_ID'. | |
19368 | ||
6f1c18bd | 19369 | 2005-01-20 Hollis Blanchard <hollis@penguinppc.org> |
19370 | ||
19371 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New | |
19372 | function. | |
19373 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod. | |
19374 | (suspend_mod_SOURCES): New variable. | |
19375 | (suspend_mod_CFLAGS): Likewise. | |
19376 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter): | |
19377 | New prototype. | |
19378 | * commands/ieee1275/suspend.c: New file. | |
19379 | ||
b38551da | 19380 | 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
19381 | ||
19382 | * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__ | |
f19dbdb7 | 19383 | ((unused))' to `__attribute__ ((used))'. |
b38551da | 19384 | (GRUB_MOD_FINI): Likewise. |
19385 | * kern/dl.c (grub_dl_load_file): Fix null pointer dereference. | |
19386 | * genmk.rb (PModule): Assign space to common symbols when linking | |
19387 | modules. | |
19388 | ||
777aff39 | 19389 | 2005-01-20 Marco Gerards <metgerards@student.han.nl> |
19390 | ||
19391 | * include/grub/mm.h (grub_mm_init_region): Change the type of the | |
19392 | `unsigned' arguments to `grub_size_t'. | |
19393 | (grub_malloc): Likewise. | |
19394 | (grub_realloc): Likewise. | |
19395 | (grub_memalign): Likewise. | |
19396 | * kern/i386/dl.c (grub_arch_dl_check_header): Likewise. | |
19397 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
19398 | * util/misc.c (grub_malloc): Likewise. | |
19399 | (grub_realloc): Likewise. | |
19400 | * kern/mm.c (get_header_from_pointer): Change the casts to | |
19401 | `unsigned' into a cast to `grub_size_t'. | |
19402 | ||
19403 | * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always | |
19404 | point to `currnode' when `currnode' is changed. | |
19405 | ||
19406 | * util/grub-emu.c (main): Initialize `progname'. Reported by Nico | |
19407 | Schottelius <nico-linux@schottelius.org>. | |
19408 | ||
d0ff18e1 | 19409 | 2005-01-09 Hollis Blanchard <hollis@penguinppc.org> |
19410 | ||
19411 | * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>. | |
19412 | (note_path): Remove variable. | |
19413 | (GRUB_IEEE1275_NOTE_NAME): New macro. | |
19414 | (GRUB_IEEE1275_NOTE_TYPE): Likewise. | |
19415 | (grub_ieee1275_note_hdr): New structure. | |
19416 | (grub_ieee1275_note_desc): Likewise. | |
19417 | (grub_ieee1275_note): Likewise. | |
19418 | (load_note): Remove `dir' argument. All callers updated. Remove | |
19419 | `note_img' and `path'. Do not load a file from `note_path'. | |
19420 | Initialize a struct grub_ieee1275_note and write that to `out'. | |
19421 | Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE. | |
19422 | ||
4ca7004c | 19423 | 2005-01-05 Marco Gerards <metgerards@student.han.nl> |
19424 | ||
19425 | * util/misc.c (grub_util_read_image): Revert last change. It | |
19426 | called `grub_util_read_at', which seeks from the beginning of the | |
19427 | file. | |
19428 | ||
0b412211 | 19429 | 2005-01-04 Hollis Blanchard <hollis@penguinppc.org> |
19430 | ||
19431 | * TODO: Add note about endianness in grub-mkimage. | |
19432 | * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note | |
19433 | section. | |
19434 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage. | |
19435 | (grub_mkimage_SOURCES): New target. | |
19436 | * include/grub/kernel.h (grub_start_addr): Remove variable. | |
19437 | (grub_end_addr): Likewise. | |
19438 | (grub_total_module_size): Likewise. | |
19439 | (grub_kernel_image_size): Likewise. | |
19440 | (GRUB_MODULE_MAGIC): New constant. | |
19441 | (grub_module_info): New structure. | |
19442 | (grub_arch_modules_addr): New prototype. | |
19443 | (grub_get_end_addr): Remove prototype. | |
19444 | * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype. | |
19445 | * include/grub/powerpc/ieee1275/kernel.h: New file. | |
19446 | * include/grub/util/misc.h (grub_util_get_fp_size): New | |
19447 | prototype. | |
19448 | (grub_util_read_at): Likewise. | |
19449 | (grub_util_write_image_at): Likewise. | |
19450 | * kern/main.c (grub_get_end_addr): Remove function. | |
19451 | (grub_load_modules): Call grub_arch_modules_addr instead of using | |
19452 | grub_end_addr. Look for a grub_module_info struct in memory. Use | |
19453 | the grub_module_info fields instead of calling grub_get_end_addr | |
19454 | as loop conditions. Move grub_add_unused_region code here. | |
19455 | (grub_add_unused_region): Remove function. | |
19456 | * kern/i386/pc/init.c: Include grub/cache.h. | |
19457 | (grub_machine_init): Remove call to grub_get_end_addr. Remove | |
19458 | one call to add_mem_region. | |
19459 | (grub_arch_modules_addr): New function. | |
19460 | * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable. | |
19461 | (grub_total_module_size): Likewise. | |
19462 | Include grub/machine/kernel.h. | |
19463 | (grub_arch_modules_addr): New function. | |
19464 | * util/grub-emu.c (grub_end_addr): Remove variable. | |
19465 | (grub_total_module_size): Likewise. | |
19466 | (grub_arch_modules_addr): New function. | |
19467 | * util/misc.c: Include unistd.h. | |
19468 | (grub_util_get_fp_size): New function. | |
19469 | (grub_util_read_at): Likewise. | |
19470 | (grub_util_write_image_at): Likewise. | |
19471 | (grub_util_read_image): Call grub_util_read_at. | |
19472 | (grub_util_write_image): Call grub_util_write_image_at. | |
19473 | * util/i386/pc/grub-mkimage.c (generate_image): Allocate | |
19474 | additional memory in kernel_img for a struct grub_module_info. | |
19475 | Fill in that grub_module_info. | |
19476 | * util/powerpc/ieee1275/grub-mkimage.c: New file. | |
19477 | ||
458786f8 | 19478 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
19479 | ||
19480 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds): | |
19481 | New function. | |
19482 | * include/grub/powerpc/ieee1275/ieee1275.h | |
19483 | (grub_ieee1275_milliseconds): New prototype. | |
19484 | * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND): | |
19485 | Change to 1000. | |
19486 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call | |
19487 | grub_ieee1275_milliseconds. | |
19488 | ||
ac507d1b | 19489 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
19490 | ||
19491 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New | |
19492 | variable. | |
19493 | (find_options): New function. | |
19494 | (cmain): Call find_options. | |
19495 | * include/grub/powerpc/ieee1275/ieee1275.h | |
19496 | (grub_ieee1275_realmode): New extern variable. | |
19497 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call | |
19498 | grub_map if grub_ieee1275_realmode is false. | |
19499 | ||
6b8fd1c4 | 19500 | 2004-12-29 Marco Gerards <metgerards@student.han.nl> |
19501 | ||
19502 | * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty | |
19503 | lines are inserted and make it work like readline. Reported by | |
19504 | Vincent Pelletier <subdino2004@yahoo.fr>. | |
19505 | ||
8514a1e0 | 19506 | 2004-12-28 Marco Gerards <metgerards@student.han.nl> |
19507 | ||
19508 | * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack. | |
19509 | ||
19510 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove | |
19511 | `kern/powerpc/cache.S'. | |
19512 | ||
924b6140 | 19513 | 2004-12-27 Marco Gerards <metgerards@student.han.nl> |
19514 | ||
19515 | * genmk.rb: Handle the `Program' class in the main loop. Written | |
19516 | by Johan Rydberg <jrydberg@gnu.org>. | |
19517 | (Program): New class. | |
19518 | (programs): New variable. | |
19519 | * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h> | |
19520 | instead of "grub/machine/ieee1275.h". Include <grub/kernel.h> | |
19521 | instead of "grub/kernel.h". Include <grub/machine/init.h>. | |
19522 | (help_arch): Function removed. | |
19523 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add | |
19524 | `powerpc/libgcc.h' and `loader.h'. | |
19525 | (pkgdata_PROGRAMS): New variable. | |
19526 | (sbin_UTILITIES): Variable removed. | |
19527 | (grub_emu_SOURCES): Added kern/powerpc/cache.S. | |
19528 | (grubof_SOURCES): Variable re-defined so it only includes the | |
19529 | core functionality. | |
19530 | (grubof_CFLAGS): Remove `-DGRUBOF'. | |
19531 | (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS, | |
19532 | (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES) | |
19533 | (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS) | |
19534 | (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES) | |
19535 | (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS) | |
19536 | (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES) | |
19537 | (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS) | |
19538 | (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS) | |
19539 | (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES) | |
19540 | (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS) | |
19541 | (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
19542 | (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES) | |
19543 | (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS) | |
19544 | (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES) | |
19545 | (pc_mod_CFLAGS): New variables. | |
19546 | * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>. | |
19547 | (grub_ofdisk_iterate): Add a prototype for `dev_iterate'. | |
19548 | * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype. | |
19549 | * include/grub/loader.h (grub_os_area_addr, grub_os_area_size): | |
19550 | Moved from here... | |
19551 | * include/grub/i386/pc/init.h (grub_os_area_addr) | |
19552 | (rub_os_area_size): ... to here. | |
19553 | * include/grub/powerpc/ieee1275/ieee1275.h | |
19554 | (grub_ieee1275_entry_fn): Export symbol. | |
19555 | * include/grub/powerpc/ieee1275/init.h: New file. | |
19556 | * include/grub/powerpc/libgcc.h: Likewise. | |
19557 | * include/grub/cache.h: Likewise. | |
19558 | * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard | |
19559 | <hollis@penguinppc.org>. | |
19560 | * kern/dl.c: Include <grub/cache.h>. | |
19561 | (grub_dl_flush_cache): New function. | |
19562 | (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache | |
19563 | for this module. | |
19564 | * kern/powerpc/ieee1275/init.c (grub_ofdisk_init) | |
19565 | (grub_console_init): Removed prototypes. | |
19566 | (grub_machine_init): Don't initialize the modules anymore. | |
19567 | * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function | |
19568 | static. | |
19569 | * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN): | |
19570 | Macro undef removed. | |
19571 | (GRUB_HOST_WORDS_BIGENDIAN): New macro. | |
19572 | * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add | |
19573 | relocation `R_PPC_REL32'. Return an error when the relocation is | |
19574 | unknown. | |
19575 | * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'. | |
19576 | * kern/i386/pc/init.c (grub_arch_sync_caches): New function. | |
19577 | * util/misc.c (grub_arch_sync_caches): Likewise. | |
19578 | ||
e4b47e0c | 19579 | 2004-12-19 Marco Gerards <metgerards@student.han.nl> |
19580 | ||
19581 | * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove | |
19582 | `symlist.c', add `grubof_symlist.c'. | |
19583 | (symlist.c): Variable removed. | |
19584 | (grubof_HEADERS): Variable added. | |
19585 | (grubof_symlist.c): New target. | |
19586 | (kernel_syms.lst): Use `grubof_HEADERS' instead of | |
19587 | `kernel_img_HEADERS'. | |
19588 | (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'. | |
19589 | * kern/powerpc/dl.c: New file. | |
19590 | * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header): | |
19591 | Function removed. | |
19592 | (grub_arch_dl_relocate_symbols): Likewise. | |
19593 | (grub_register_exported_symbols): Likewise. | |
19594 | ||
4ceb3636 | 19595 | 2004-12-13 Marco Gerards <metgerards@student.han.nl> |
19596 | ||
19597 | * fs/ext2.c (grub_ext2_open): Don't use data after freeing it. | |
19598 | (grub_ext2_dir): Likewise. Don't return in case of an error, jump | |
19599 | to fail instead. Reported by Vincent Pelletier | |
19600 | <subdino2004@yahoo.fr>. | |
19601 | ||
19602 | * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when | |
19603 | it is not allocated. Reported by Vincent Pelletier | |
19604 | <subdino2004@yahoo.fr>. | |
19605 | ||
19606 | * normal/cmdline.c (grub_tab_complete): Add a blank line to the | |
19607 | output so the output looks better. | |
f19dbdb7 | 19608 | |
3f1578fe | 19609 | 2004-12-04 Marco Gerards <metgerards@student.han.nl> |
19610 | ||
19611 | Modulize the partition map support and add support for the amiga | |
19612 | partition map. | |
f19dbdb7 | 19613 | |
3f1578fe | 19614 | * commands/ls.c: Include <grub/partition.h> instead of |
19615 | <grub/machine/partition.h>. | |
19616 | * kern/disk.c: Likewise. | |
19617 | * kern/rescue.c: Likewise. | |
19618 | * loader/i386/pc/chainloader.c: Likewise. | |
19619 | * normal/cmdline.c: Likewise. | |
19620 | * kern/powerpc/ieee1275/init.c: Likewise. | |
19621 | (grub_machine_init): Call `grub_pc_partition_map_init', | |
19622 | `grub_amiga_partition_map_init' and | |
19623 | `grub_apple_partition_map_init'. | |
19624 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove | |
19625 | `disk/i386/pc/partition.c'. Add `kern/partition.c'. | |
19626 | (kernel_img_HEADERS): Remove `machine/partition.h'. Add | |
19627 | `partition.h' and `pc_partition.h'. | |
19628 | (grub_setup_SOURCES): Remove | |
19629 | `disk/i386/pc/partition.c'. Add `kern/partition.c', | |
19630 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
19631 | (grub_emu_SOURCES): Likewise. | |
19632 | (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'. | |
19633 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES) | |
19634 | (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables. | |
19635 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
19636 | `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c', | |
19637 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
19638 | (grubof_SOURCES): Likewise. | |
19639 | * disk/i386/pc/partition.c: File removed. | |
19640 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
19641 | * include/grub/powerpc/ieee1275/partition.h: Likewise. | |
19642 | * include/grub/i386/pc/partition.h: Likewise. | |
19643 | * kern/partition.c: New file. | |
19644 | * partmap/amiga.c: Likewise. | |
19645 | * partmap/apple.c: Likewise. | |
19646 | * partmap/pc.c: Likewise. | |
19647 | * include/grub/partition.h: Likewise.. | |
19648 | * include/grub/pc_partition.h: Likewise. | |
19649 | * util/grub-emu.c: Include <grub/partition.h> instead of | |
19650 | <grub/machine/partition.h>. | |
19651 | (main): Call `grub_pc_partition_map_init', | |
19652 | `grub_amiga_partition_map_init' and | |
19653 | `grub_apple_partition_map_init' and deinitialize afterwards. | |
19654 | * util/i386/pc/biosdisk.c: Include `#include | |
19655 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
19656 | `<grub/machine/partition.h>'. | |
19657 | * util/i386/pc/grub-setup.c: Likewise. | |
19658 | * util/i386/pc/biosdisk.c: Likewise. | |
19659 | (grub_util_biosdisk_get_grub_dev): Only access the PC specific | |
19660 | partition information in case of a PC partition. | |
19661 | * util/i386/pc/grub-setup.c: Include `#include | |
19662 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
19663 | `<grub/machine/partition.h>'. | |
19664 | (setup): Only access the PC specific partition information in case | |
19665 | of a PC partition. | |
19666 | ||
0ef4ced9 | 19667 | 2004-11-17 Hollis Blanchard <hollis@penguinppc.org> |
f19dbdb7 | 19668 | |
0ef4ced9 | 19669 | * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function. |
19670 | (grub_longjmp): Likewise. | |
19671 | * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to | |
19672 | 20. | |
19673 | * normal/powerpc/setjmp.S: New file. | |
19674 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
19675 | `normal/powerpc/setjmp.S'. | |
19676 | (grubof_CFLAGS): Add `-DGRUBOF'. | |
19677 | * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to | |
19678 | [GRUB_UTIL && !GRUBOF]. | |
f19dbdb7 | 19679 | |
19950e29 | 19680 | 2004-11-16 Marco Gerards <metgerards@student.han.nl> |
19681 | ||
19682 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any | |
19683 | property named `name'. Correctly handle the error returned by | |
19684 | `grub_ieee1275_finddevice' if a device can not be opened. | |
19685 | ||
a2fea427 | 19686 | 2004-11-02 Hollis Blanchard <hollis@penguinppc.org> |
19687 | ||
19688 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test | |
19689 | `actual' for negativity. | |
19690 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
19691 | kern/fshelp.c. | |
19692 | ||
41ea0ea3 | 19693 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
19694 | ||
19695 | * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350. | |
19696 | (PAGE_OFFSET): New macro. | |
19697 | (CRTC_ADDR_PORT): Likewise. | |
19698 | (CRTC_DATA_PORT): Likewise. | |
19699 | (START_ADDR_HIGH_REGISTER): Likewise. | |
19700 | (START_ADDR_LOW_REGISTER): Likewise. | |
19701 | (GRAPHICS_ADDR_PORT): Likewise. | |
19702 | (GRAPHICS_DATA_PORT): Likewise. | |
19703 | (READ_MAP_REGISTER): Likewise. | |
19704 | (INPUT_STATUS1_REGISTER): Likewise. | |
19705 | (INPUT_STATUS1_VERTR_BIT): Likewise. | |
19706 | (page): New variable. | |
19707 | (wait_vretrace): New function. | |
19708 | (set_read_map): Likewise. | |
19709 | (set_start_address): Likewise. | |
19710 | (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to | |
19711 | the right page. | |
19712 | (check_vga_mem): Take the page into account. | |
19713 | (write_char): Likewise. | |
19714 | (write_cursor): Likewise. | |
19715 | (scroll_up): Likewise. Copy the page to the page that is not | |
19716 | shown and switch between both pages. | |
19717 | (grub_vga_putchar): Fix off by one error. | |
19718 | (grub_vga_cls): Wait for the vertical retrace. Take the page into | |
19719 | account. | |
19720 | ||
ad0bd20b | 19721 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
19722 | ||
19723 | Add support for iso9660 (including rockridge). | |
f19dbdb7 | 19724 | |
ad0bd20b | 19725 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c. |
19726 | (iso9660_mod_SOURCES): New variable. | |
19727 | (iso9660_mod_CFLAGS): Likewise. | |
19728 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c. | |
19729 | * include/grub/fs.h (grub_iso9660_init): New prototype. | |
19730 | * util/grub-emu.c (main): Call `grub_iso9660_init'. | |
19731 | * fs/iso9660.c: New file. | |
19732 | ||
19733 | * include/grub/misc.h (grub_strncat): New prototype. | |
19734 | * kern/misc.c (grub_strncat): New function. | |
f19dbdb7 | 19735 | |
ad0bd20b | 19736 | * fs/hfs.c (grub_hfs_mount): Translate the error |
19737 | `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'. | |
19738 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
19739 | * fs/ufs.c (grub_ufs_mount): Likewise. | |
19740 | ||
a5477a59 | 19741 | 2004-10-28 Hollis Blanchard <hollis@penguinppc.org> |
19742 | ||
19743 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements | |
19744 | which initialized BAT registers. | |
19745 | * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN, | |
19746 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
19747 | Move from here... | |
19748 | * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN, | |
19749 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
19750 | ... to here. | |
19751 | * kern/powerpc/ieee1275/openfw.c (grub_map): New function. | |
19752 | (grub_mapclaim): Likewise. | |
19753 | * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use | |
19754 | grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by | |
19755 | hand. | |
19756 | ||
9304c1f8 | 19757 | 2004-10-19 Hollis Blanchard <hollis@penguinppc.org> |
19758 | ||
19759 | * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin. | |
19760 | (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add | |
19761 | -ffreestanding and -msoft-float. | |
19762 | ||
86f4ae25 | 19763 | 2004-10-15 Hollis Blanchard <hollis@penguinppc.org> |
19764 | ||
19765 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not | |
19766 | append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is | |
19767 | set in grub_ieee1275_flags. | |
19768 | ||
38912228 | 19769 | 2004-10-14 Hollis Blanchard <hollis@penguinppc.org> |
19770 | ||
19771 | * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function | |
19772 | prototype. | |
19773 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Call | |
19774 | grub_console_init first. | |
19775 | Change the memory range used for grub_ieee1275_claim and | |
19776 | grub_mm_init_region. | |
19777 | Print an error message if the claim fails. | |
19778 | Include <grub/misc.h>. | |
19779 | ||
d1923dc8 | 19780 | 2004-10-13 Hollis Blanchard <hollis@penguinppc.org> |
19781 | ||
19782 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate): | |
19783 | Call grub_children_iterate for device nodes of type `scsi', | |
19784 | `ide', or `ata'. | |
19785 | (grub_ofdisk_open): Remove manual device alias resolution. | |
19786 | Fix memory leak when device cannot be opened. | |
f19dbdb7 | 19787 | * include/grub/powerpc/ieee1275/ieee1275.h |
d1923dc8 | 19788 | (grub_children_iterate): New prototype. |
19789 | * kern/powerpc/ieee1275/openfw.c (grub_children_iterate): | |
19790 | New function. | |
19791 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
19792 | Return -1 if args.size was -1. | |
19793 | ||
4512e4f3 | 19794 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
19795 | ||
19796 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global. | |
19797 | (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old | |
19798 | World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim | |
19799 | Open Firmware's memory for it; claim memory from _start to _end. | |
19800 | * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern. | |
19801 | (_end): New extern. | |
19802 | (_start): Zero BSS from __bss_start to _end. | |
19803 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
19804 | New extern. | |
19805 | (GRUB_IEEE1275_NO_PARTITION_0): New #define. | |
19806 | ||
4d61feb0 | 19807 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
19808 | ||
ad0bd20b | 19809 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return |
19810 | -1 if args.base was -1. | |
4d61feb0 | 19811 | |
026fa2f9 | 19812 | 2004-10-08 Hollis Blanchard <hollis@penguinppc.org> |
19813 | ||
19814 | * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI | |
19815 | escape sequence instead of a literal ^L. Also call | |
19816 | grub_ofconsole_gotoxy. | |
19817 | ||
9f2220ef | 19818 | 2004-10-03 Hollis Blanchard <hollis@penguinppc.org> |
19819 | ||
19820 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change | |
19821 | void * arguments to grub_addr_t. All callers updated. Also make | |
19822 | the `result' argument optional. | |
19823 | (grub_ieee1275_release): change void * arguments to grub_addr_t. | |
19824 | All callers updated. | |
19825 | ||
8a572cd7 | 19826 | 2004-09-22 Hollis Blanchard <hollis@penguinppc.org> |
19827 | ||
19828 | * commands/ls.c (grub_ls_list_files): Use the string following the | |
19829 | initial ')', if present, as the filesystem path. | |
19830 | * kern/rescue.c (grub_rescue_cmd_ls): Likewise. | |
19831 | ||
19832 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first. | |
19833 | ||
18aa81f2 | 19834 | 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org> |
19835 | ||
19836 | Make the source code of the menu interface more readable. | |
f19dbdb7 | 19837 | |
18aa81f2 | 19838 | * normal/menu.c: Include grub/mm.h. |
19839 | (TERM_WIDTH): New macro. | |
19840 | (TERM_HEIGHT): Likewise. | |
19841 | (TERM_INFO_HEIGHT): Likewise. | |
19842 | (TERM_MARGIN): Likewise. | |
19843 | (TERM_SCROLL_WIDTH): Likewise. | |
19844 | (TERM_TOP_BORDER_Y): Likewise. | |
19845 | (TERM_LEFT_BORDER_X): Likewise. | |
19846 | (TERM_BORDER_WIDTH): Likewise. | |
19847 | (TERM_MESSAGE_HEIGHT): Likewise. | |
19848 | (TERM_BORDER_HEIGHT): Likewise. | |
19849 | (TERM_NUM_ENTRIES): Likewise. | |
19850 | (TERM_FIRST_ENTRY_Y): Likewise. | |
19851 | (TERM_ENTRY_WIDTH): Likewise. | |
19852 | (TERM_CURSOR_X): Likewise. | |
19853 | (draw_border): Use macros instead of magic numbers. | |
19854 | (print_entry): Likewise. | |
19855 | (print_entries): Likewise. | |
19856 | (run_menu): Likewise. Also, handle the key 'e'. | |
19857 | (run_menu_entry): Ignore empty command lines. | |
19858 | (print_message): Added a new argument EDIT. If EDIT is true, | |
19859 | print a different message. | |
19860 | (init_page): Likewise. | |
19861 | (edit_menu_entry): New function. Not implemented yet. | |
19862 | ||
b47efe30 | 19863 | 2004-09-17 Marco Gerards <metgerards@student.han.nl> |
19864 | ||
19865 | Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels | |
19866 | can be loaded from normal mode. | |
f19dbdb7 | 19867 | |
b47efe30 | 19868 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and |
19869 | `multiboot.mod'. | |
19870 | (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES) | |
19871 | (multiboot_mod_CFLAGS): New variables. | |
19872 | * loader/i386/pc/linux_normal.c: New file. | |
f19dbdb7 | 19873 | * loader/i386/pc/multiboot_normal.c: Likewise. |
19874 | ||
b47efe30 | 19875 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the |
19876 | attribute `unused'. | |
f19dbdb7 | 19877 | |
b47efe30 | 19878 | * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use |
19879 | `fdiro' to read the mode information from instead of `diro'. | |
19880 | ||
19881 | * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after | |
19882 | looking up a symlink. | |
19883 | ||
19884 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New | |
19885 | macro. | |
19886 | * normal/command.c (grub_command_execute): Don't parse the | |
19887 | arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the | |
19888 | flags of the command. | |
19889 | ||
19890 | * normal/menu.c (grub_menu_run): Fix typo. | |
19891 | ||
da75ac71 | 19892 | 2004-09-14 Hollis Blanchard <hollis@penguinppc.org> |
19893 | ||
19894 | * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware. | |
19895 | ||
19896 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use | |
19897 | `y + 1' instead of `y - 1'. | |
19898 | ||
19899 | * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'. | |
f19dbdb7 | 19900 | |
062b24c2 | 19901 | 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org> |
19902 | ||
19903 | From Hollis Blanchard <hollis@penguinppc.org>: | |
19904 | * kern/misc.c (memmove): New alias for grub_memmove. | |
19905 | (memcmp): New alias for grub_memcmp. | |
19906 | (memset): New alias for grub_memset. | |
f19dbdb7 | 19907 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): |
062b24c2 | 19908 | Change "int handle" to "grub_ieee1275_phandle_t handle". |
f19dbdb7 | 19909 | * include/grub/powerpc/ieee1275/ieee1275.h |
062b24c2 | 19910 | (grub_ieee1275_get_property): Likewise. |
f19dbdb7 | 19911 | |
8ddad845 | 19912 | 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz> |
19913 | ||
19914 | Added normal mode command `chainloader' as module chain.mod, which | |
19915 | depends on normal.mod and _chain.mod. | |
f19dbdb7 | 19916 | |
8ddad845 | 19917 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'. |
19918 | (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added. | |
19919 | * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader): | |
19920 | Deleted prototype. | |
19921 | * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All | |
19922 | but arguments parsing moved to ... | |
19923 | (grub_chainloader_cmd): ... here. New function. | |
19924 | * include/grub/i386/pc/chainloader.h: New file. | |
19925 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
19926 | ||
2c1f4ce3 | 19927 | 2004-09-11 Marco Gerards <metgerards@student.han.nl> |
19928 | ||
19929 | * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c. | |
19930 | (grub_mkimage_LDFLAGS): Likewise. | |
19931 | (grub_emu_SOURCES): Likewise. | |
19932 | (kernel_img_HEADERS): Added fshelp.h. | |
19933 | * fs/ext2.c: Include <grub/fshelp.h>. | |
19934 | (FILETYPE_REG): New macro. | |
19935 | (FILETYPE_INO_REG): Likewise. | |
19936 | (grub_ext_sblock): Renamed to `grub_ext2_sblock'. | |
19937 | Changed all users. | |
19938 | (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed | |
19939 | all users. | |
19940 | (grub_fshelp_node): New struct. | |
19941 | (grub_ext2_data): Added member `diropen'. Changed member `inode' | |
19942 | to a pointer. | |
19943 | (grub_ext2_get_file_block): Removed function. | |
19944 | (grub_ext2_read_block): New function. | |
19945 | (grub_ext2_read_file): Replaced parameter `data' by `node'. | |
19946 | This function was written. | |
19947 | (grub_ext2_mount): Read the root inode. Create a diropen struct. | |
19948 | (grub_ext2_find_file): Removed function. | |
19949 | (grub_ext2_read_symlink): New function. | |
19950 | (grub_ext2_iterate_dir): Likewise. | |
19951 | (grub_ext2_open): Rewritten. | |
19952 | (grub_ext2_dir): Rewritten. | |
19953 | * include/grub/fshelp.h: New file. | |
19954 | * fs/fshelp.c: Likewise. | |
19955 | ||
3c52136a | 19956 | 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org> |
19957 | ||
19958 | * normal/menu.c: Include grub/loader.h and grub/machine/time.h. | |
19959 | (print_message): Add a missing newline. | |
19960 | (run_menu): Added timeout support. | |
19961 | (run_menu_entry): New local function. | |
19962 | (grub_menu_run): Added support for booting. | |
19963 | ||
19964 | * kern/loader.c (grub_loader_is_loaded): New function. | |
19965 | ||
19966 | * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h. | |
19967 | (grub_get_rtc): Exported. | |
19968 | ||
19969 | * include/grub/i386/pc/time.h: Include grub/symbol.h. | |
19970 | (grub_get_rtc): Exported. | |
19971 | ||
19972 | * include/grub/normal.h (struct grub_command_list): Remove | |
19973 | constant from the member `command'. | |
19974 | ||
19975 | * include/grub/loader.h (grub_loader_is_loaded): Declared. | |
19976 | ||
19977 | * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant. | |
19978 | ||
19979 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h. | |
19980 | ||
aa033560 | 19981 | 2004-08-28 Marco Gerards <metgerards@student.han.nl> |
19982 | ||
19983 | Add support for the JFS filesystem. | |
19984 | ||
19985 | * fs/jfs.c: New file. | |
19986 | * include/grub/fs.h (grub_jfs_init): New prototype. | |
19987 | (grub_jfs_fini): New prototype. | |
19988 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c. | |
19989 | (grub_emu_SOURCES): Likewise. | |
19990 | (pkgdata_MODULES): Add jfs.mod. | |
19991 | (jfs_mod_SOURCES): New variable. | |
19992 | (jfs_mod_CFLAGS): Likewise. | |
19993 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c. | |
19994 | (grubof_SOURCES): Likewise. | |
19995 | * util/grub-emu.c (main): Initialize and deinitialize JFS support. | |
19996 | ||
19997 | * fs/fat.c (grub_fat_find_dir): Convert the filename little | |
19998 | endian to the host endian. | |
19999 | (grub_fat_utf16_to_utf8): Move function from there... | |
20000 | * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert | |
fe987087 | 20001 | the endianness of the source string anymore. |
aa033560 | 20002 | * include/grub/misc.h (grub_utf16_to_utf8): New prototype. |
20003 | ||
94bc45af | 20004 | 2004-08-24 Marco Gerards <metgerards@student.han.nl> |
20005 | ||
20006 | * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional. | |
20007 | (grub_boot_fini) [GRUB_UTIL]: Likewise. | |
20008 | (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise. | |
20009 | (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise. | |
f19dbdb7 | 20010 | |
94bc45af | 20011 | * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'. |
20012 | (grub_hfs_iterate_dir): Make the function static. Add prototypes | |
20013 | for `node_found' and `it_dir'. | |
20014 | (grub_hfs_dir): Add prototype for `dir_hook'. | |
20015 | ||
20016 | * fs/minix.c (grub_minix_get_file_block): Add prototype for | |
20017 | `grub_get_indir'. Rename `indir' in two blocks to `indir16' | |
20018 | and `indir32' to silence a gcc warning. | |
20019 | ||
20020 | * include/grub/fs.h (grub_hfs_init): New prototype. | |
20021 | (grub_hfs_fini): Likewise. | |
f19dbdb7 | 20022 | |
20023 | ||
97543f08 | 20024 | 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
20025 | ||
20026 | Each disk device has its own id now. This is useful to make use | |
20027 | of multiple disk devices. | |
f19dbdb7 | 20028 | |
97543f08 | 20029 | * include/grub/disk.h (grub_disk_dev_id): New enum. |
20030 | (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant. | |
20031 | (GRUB_DISK_DEVICE_OFDISK_ID): Likewise. | |
20032 | ||
20033 | * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify | |
20034 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
20035 | ||
20036 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify | |
20037 | GRUB_DISK_DEVICE_OFDISK_ID as an id. | |
20038 | ||
20039 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify | |
20040 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
20041 | ||
20042 | * include/grub/disk.h (struct grub_disk_dev): Added a new member | |
20043 | "id" which is used by the cache manager. | |
20044 | ||
20045 | * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead | |
20046 | of just "GRUB". | |
20047 | ||
64372eb4 | 20048 | 2004-08-18 Marco Gerards <metgerards@student.han.nl> |
20049 | ||
20050 | * fs/hfs.c: New file. | |
20051 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c. | |
20052 | (grub_emu_SOURCES): Likewise. | |
20053 | (pkgdata_MODULES): Add hfs.mod. | |
20054 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c. | |
20055 | (grubof_SOURCES): Likewise. | |
20056 | * util/grub-emu.c (main): Initialize and deinitialize HFS support. | |
20057 | ||
20058 | * include/grub/misc.h (grub_strncasecmp): Add prototype. | |
20059 | * kern/misc.c (grub_strncasecmp): Add function. | |
20060 | ||
cc61b58f | 20061 | 2004-08-14 Marco Gerards <metgerards@student.han.nl> |
20062 | ||
20063 | * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro | |
20064 | with parentheses. | |
20065 | ||
20066 | * fs/ext2.c (FILETYPE_UNKNOWN): New macro. | |
20067 | (grub_ext2_dir): In case the directory entry type is unknown, read | |
20068 | it from the inode. | |
20069 | ||
0ef123f6 | 20070 | 2004-08-02 Peter Bruin <pjbruin@dds.nl> |
20071 | ||
20072 | * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass | |
20073 | grub_load_linux instead of grub_rescue_cmd_linux as second | |
20074 | argument of grub_rescue_register_command. | |
20075 | ||
20076 | * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk. | |
20077 | ||
a447c5df | 20078 | 2004-07-27 Marco Gerards <metgerards@student.han.nl> |
20079 | ||
20080 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New | |
20081 | function. | |
20082 | * commands/boot.c: Remove the check for `GRUB_UTIL'. | |
20083 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
20084 | `loader/powerpc/ieee1275/linux.c', | |
20085 | `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'. | |
20086 | * include/grub/powerpc/ieee1275/ieee1275.h | |
20087 | (grub_ieee1275_release): New prototype. | |
20088 | * include/grub/powerpc/ieee1275/loader.h: Rewritten. | |
20089 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize | |
20090 | normal, boot, linux and linux_normal. | |
20091 | * loader/powerpc/ieee1275/linux.c: New file. | |
20092 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
20093 | ||
5a9e3546 | 20094 | 2004-07-12 Marco Gerards <metgerards@student.han.nl> |
20095 | ||
20096 | * normal/arg.c (grub_arg_parse): Correct error handling after | |
20097 | reallocating the argumentlist (check if `argl' is not null instead | |
20098 | of checking if `args' is not null). | |
20099 | * kern/mm.c (grub_realloc): Return the same pointer when using the | |
20100 | same region, instead of returning the header address. | |
20101 | ||
e15199cb | 20102 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
20103 | ||
20104 | * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip | |
20105 | one block instead of two when looking for the initial partition. | |
20106 | (grub_partition_probe): Initialize the local variable `p' with 0. | |
20107 | Use base 10 for the grub_strtoul call. | |
20108 | * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the | |
20109 | need for one local variable. | |
20110 | (grub_strtoul): Don't add the new value to `num', instead of that | |
20111 | just assign it. | |
20112 | ||
020616c2 | 20113 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
20114 | ||
20115 | * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img. | |
20116 | (pxeboot_img_SOURCES): New variable. | |
20117 | (pxeboot_img_ASFLAGS): Likewise. | |
20118 | (pxeboot_img_LDFLAGS): Likewise. | |
20119 | * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from | |
20120 | GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy | |
20121 | <lode_leroy@hotmail.com>. | |
20122 | ||
6c51eb64 | 20123 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
20124 | ||
20125 | * kern/rescue.c (grub_enter_rescue_mode): Don't continue when | |
20126 | there was no input. | |
20127 | ||
cfb12aff | 20128 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
20129 | ||
20130 | * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed | |
20131 | the history buffer logic. | |
20132 | ||
6eabba74 | 20133 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
20134 | ||
20135 | * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY) | |
20136 | (FILETYPE_INO_SYMLINK): New macros. | |
20137 | (grub_ext2_find_file): Check if the node is a directory using the | |
20138 | inode stat information instead of using the filetype in the | |
20139 | dirent. Exclude the first character of an absolute symlink. | |
20140 | (grub_ext2_dir): Mask out the filetype part of the mode member of | |
20141 | the inode. | |
20142 | ||
66e19ef8 | 20143 | 2004-05-24 Marco Gerards <metgerards@student.han.nl> |
20144 | ||
20145 | Add support for UFS version 1 and 2. Add support for the minix | |
20146 | filesystem version 1 and 2, both the variants with 14 and 30 long | |
20147 | filenames. | |
f19dbdb7 | 20148 | |
66e19ef8 | 20149 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and |
20150 | fs/minix.c. | |
20151 | (grub_emu_SOURCES): Likewise. | |
20152 | (pkgdata_MODULES): Add ufs.mod and minix.mod. | |
20153 | (ufs_mod_SOURCES): New variable. | |
20154 | (ufs_mod_CFLAGS): Likewise. | |
20155 | (minix_mod_SOURCES): Likewise. | |
20156 | (minix_mod_CFLAGS): Likewise. | |
20157 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and | |
20158 | fs/minix.c. | |
20159 | (grubof_SOURCES): Likewise. | |
20160 | * fs/ufs.c: New file. | |
20161 | * fs/minix.c: New file. | |
20162 | * include/grub/fs.h (grub_ufs_init): New prototype. | |
20163 | (grub_ufs_fini): Likewise. | |
20164 | (grub_minix_init): Likewise. | |
20165 | (grub_minix_fini): Likewise. | |
20166 | * util/grub-emu.c (main): Initialize and deinitialize UFS and | |
20167 | minix fs. | |
20168 | ||
cc2e748a | 20169 | 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx> |
20170 | ||
20171 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c, | |
20172 | commands/ls.c, commands/terminal.c, commands/boot.c, | |
20173 | commands/cmp.c and commands/cat.c. | |
20174 | (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc. | |
20175 | ||
20176 | * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of | |
20177 | "env.h" | |
20178 | ||
4b13b216 | 20179 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
20180 | ||
20181 | All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_ | |
20182 | and grub_, respectively. Because the conversion is trivial and | |
20183 | mechanical, I omit the details here. Please refer to the CVS | |
20184 | if you need more information. | |
20185 | ||
6a142551 | 20186 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
20187 | ||
20188 | * include/pupa: Renamed to ... | |
20189 | * include/grub: ... this. | |
20190 | * util/i386/pc/pupa-mkimage.c: Renamed to ... | |
20191 | * util/i386/pc/grub-mkimage.c: ... this. | |
20192 | * util/i386/pc/pupa-setup.c: Renamed to ... | |
20193 | * util/i386/pc/grub-setup.c: ... this. | |
20194 | * util/pupa-emu.c: Renamed to ... | |
20195 | * util/grub-emu.c: ... this. | |
20196 | ||
e56cdf21 | 20197 | 2004-03-29 Marco Gerards <metgerards@student.han.nl> |
20198 | ||
20199 | Add support for the newworld apple macintosh (PPC). This has been | |
20200 | tested on the powerbook 2000 only. It only adds support for | |
20201 | generic ieee1275 functions, console and disk support. This should | |
20202 | be easy to port to other architectures with support for Open | |
20203 | Firmware. | |
f19dbdb7 | 20204 | |
e56cdf21 | 20205 | * configure.ac: Accept the powerpc as host_cpu. In the case of |
20206 | the powerpc cpu set the host_vendor to ieee1275. Make sure the i386 | |
20207 | specific tests are only executed while building for the i386. | |
20208 | Inverse test for crosscompile. | |
20209 | * genmk.rb (Utility): Allow assembler files. | |
20210 | * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno. | |
20211 | * conf/powerpc-ieee1275.rmk: New file. | |
20212 | * disk/powerpc/ieee1275/ofdisk.c: Likewise. | |
20213 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
20214 | * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise. | |
20215 | * include/pupa/powerpc/ieee1275/console.h: Likewise. | |
20216 | * include/pupa/powerpc/ieee1275/partition.h: Likewise. | |
20217 | * include/pupa/powerpc/ieee1275/time.h: Likewise. | |
20218 | * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
20219 | * include/pupa/powerpc/ieee1275/multiboot.h: Likewise. | |
20220 | * include/pupa/powerpc/ieee1275/loader.h | |
20221 | * include/pupa/powerpc/setjmp.h: Likewise. | |
20222 | * include/pupa/powerpc/types.h: Likewise. | |
20223 | * kern/powerpc/ieee1275/init.c: Likewise. | |
20224 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
20225 | * term/powerpc/ieee1275/ofconsole.c: Likewise. | |
20226 | ||
20227 | These files were written by Johan Rydberg | |
20228 | (jrydberg@night.trouble.net) and I only modified them slightly. | |
f19dbdb7 | 20229 | |
e56cdf21 | 20230 | * boot/powerpc/ieee1275/cmain.c: New file. |
20231 | * boot/powerpc/ieee1275/crt0.S: Likewise. | |
20232 | * boot/powerpc/ieee1275/ieee1275.c: Likewise. | |
20233 | * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise. | |
20234 | ||
8c8cc205 | 20235 | 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx> |
20236 | ||
20237 | * Makefile.in: Update copyright. | |
20238 | * genmodsrc.sh: Likewise. | |
20239 | * gensymlist.sh: Likewise. | |
20240 | * term/i386/pc/vga.c: Indent correctly. | |
20241 | ||
20242 | * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as | |
20243 | bugreporting address. | |
20244 | * util/i386/pc/pupa-setup.c (usage): Likewise, | |
20245 | (main): Call pupa_ext2_init and pupa_ext2_fini. | |
20246 | ||
f19dbdb7 | 20247 | * fs/fat.c (log2): Renamed to ... |
8c8cc205 | 20248 | (fat_log2): ... this. |
20249 | All callers changed. | |
20250 | * kern/misc.c (memcpy): Alias to pupa_memmove. | |
20251 | * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix | |
20252 | lvalue cast. | |
20253 | * util/console.c (pupa_ncurses_fini): Return 0. | |
20254 | ||
20255 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]: | |
20256 | Move fail label here. | |
20257 | [__GNU__]: Don't warn when using stat. | |
20258 | (open_device)[!__linux__]: Check if FD < 0 instead of !FD. | |
20259 | (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to | |
20260 | long int. Use strtol instead of strtoul. | |
f19dbdb7 | 20261 | |
db1771cf | 20262 | 2004-03-14 Marco Gerards <metgerards@student.han.nl> |
20263 | ||
20264 | * commands/boot.c: New file. | |
20265 | * commands/cat.c: Likewise. | |
20266 | * commands/cmp.c: Likewise. | |
20267 | * commands/ls.c: Likewise. | |
20268 | * commands/terminal.c: Likewise. | |
20269 | * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>. | |
20270 | (pupa_register_command): Changed interface to match the new | |
20271 | argument parser. | |
20272 | (pupa_command_execute): Changed (almost rewritten) so it uses | |
20273 | pupa_split_command. Added support for setting variables using the | |
20274 | syntax `foo=bar'. | |
20275 | (rescue_command): Changed to work with the new argument parser. | |
20276 | (terminal_command): Moved from here to commands/terminal.c. | |
20277 | (set_command): New function. | |
20278 | (unset_command): New function. | |
20279 | (insmod_command): New function. | |
20280 | (rmmod_command): New function. | |
20281 | (lsmod_command): New function. | |
20282 | (pupa_command_init): Don't initialize the command terminal | |
20283 | anymore. Initialize the commands set, unset, insmod, rmmod and | |
20284 | lsmod. | |
20285 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c. | |
20286 | (kernel_img_HEADERS): Add arg.h and env.h. | |
20287 | (pupa_mkimage_LDFLAGS): Add kern/env.c. | |
20288 | (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c, | |
20289 | commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c, | |
20290 | normal/arg.c. | |
20291 | (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and | |
20292 | terminal.mod. | |
20293 | (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c. | |
20294 | (boot_mod_SOURCES): New variable. | |
20295 | (terminal_mod_SOURCES): Likewise. | |
20296 | (ls_mod_SOURCES): Likewise. | |
20297 | (cmp_mod_SOURCES): Likewise. | |
20298 | (cat_mod_SOURCES): Likewise. | |
20299 | ||
20300 | * normal/arg.c: New file. | |
20301 | * kern/env.c: Likewise. | |
20302 | * include/pupa/arg.h: Likewise. | |
20303 | * include/pupa/env.h: Likewise. | |
20304 | * font/manager.c (font_command): Changed to match argument parsing | |
20305 | interface changes. | |
20306 | (PUPA_MOD_INIT): Likewise. | |
20307 | * hello/hello.c (pupa_cmd_hello): Likewise. | |
20308 | (PUPA_MOD_INIT): Likewise. | |
20309 | * include/pupa/disk.h: Include <pupa/device.h>. | |
20310 | (pupa_print_partinfo): New prototype. | |
20311 | * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed. | |
20312 | (pupa_dl_get_prefix): Likewise. | |
20313 | * include/pupa/misc.h: Include <pupa/err.h>. | |
20314 | (pupa_isgraph): New prototype. | |
20315 | (pupa_isdigit): Likewise. | |
20316 | (pupa_split_cmdline): Likewise. | |
20317 | * include/pupa/normal.h: Include <pupa/arg.h>. | |
20318 | (pupa_command): Changed the prototype of the member `func' to | |
20319 | match the argument parsing interface. Added member `options'. | |
20320 | (pupa_register_command): Updated to match function. | |
20321 | (pupa_arg_parse): New prototype. | |
20322 | (pupa_hello_init) [PUPA_UTIL]: New prototype. | |
20323 | (pupa_hello_fini) [PUPA_UTIL]: Likewise. | |
20324 | (pupa_ls_init) [PUPA_UTIL]: Likewise. | |
20325 | (pupa_ls_fini) [PUPA_UTIL]: Likewise. | |
20326 | (pupa_cat_init) [PUPA_UTIL]: Likewise. | |
20327 | (pupa_cat_fini) [PUPA_UTIL]: Likewise. | |
20328 | (pupa_boot_init) [PUPA_UTIL]: Likewise. | |
20329 | (pupa_boot_fini) [PUPA_UTIL]: Likewise. | |
20330 | (pupa_cmp_init) [PUPA_UTIL]: Likewise. | |
20331 | (pupa_cmp_fini) [PUPA_UTIL]: Likewise. | |
20332 | (pupa_terminal_init) [PUPA_UTIL]: Likewise. | |
20333 | (pupa_terminal_fini) [PUPA_UTIL]: Likewise. | |
20334 | * kern/disk.c: Include <pupa/file.h>. | |
20335 | (pupa_print_partinfo): New function. | |
20336 | * kern/dl.c: Include <pupa/env.h>. | |
20337 | (pupa_dl_dir): Variable removed. | |
20338 | (pupa_dl_load): Use the environment variable `prefix' instead of | |
20339 | the variable pupa_dl_dir. | |
20340 | (pupa_dl_set_prefix): Function removed. | |
20341 | (pupa_dl_get_prefix): Likewise. | |
20342 | * kern/i386/pc/init.c: Include <pupa/env.h>. | |
20343 | (pupa_machine_init): Use the environment variable `prefix' instead of | |
20344 | using pupa_dl_set_prefix to set the prefix. | |
20345 | * kern/main.c: Include <pupa/env.h>. | |
20346 | (pupa_set_root_dev): Use the environment variable `prefix' instead of | |
20347 | using pupa_dl_get_prefix to get the prefix. | |
20348 | * kern/misc.c: Include <pupa/env.h>. | |
20349 | (pupa_isdigit): New function. | |
20350 | (pupa_isgraph): Likewise. | |
20351 | (pupa_ftoa): Likewise. | |
20352 | (pupa_vsprintf): Added support for printing values of the type | |
20353 | `double'. Make it possible to format variable output when using | |
20354 | formatting like `%1.2%f'. | |
20355 | (pupa_split_cmdline): New function. | |
20356 | * kern/rescue.c: Include <pupa/env.h>. | |
20357 | (next_word): Removed function. | |
20358 | (pupa_rescue_cmd_prefix): Likewise. | |
20359 | (pupa_rescue_cmd_set): New function. | |
20360 | (pupa_rescue_cmd_unset): New function. | |
20361 | (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to | |
20362 | split the command line instead of splitting it here. Added | |
20363 | support for setting variables using the syntax `foo=bar'. Don't | |
20364 | initialize the prefix command anymore. Initialized the set and | |
20365 | unset commands. | |
20366 | * normal/cmdline.c: Include <pupa/env.h>. | |
20367 | (pupa_tab_complete): Added prototypes for print_simple_completion, | |
20368 | print_partition_completion, add_completion, iterate_commands, | |
20369 | iterate_dev, iterate_part and iterate_dir. Moved code to print | |
20370 | partition information from here to kern/disk.c. | |
fe6b695a | 20371 | (pupa_cmdline_run): Don't check if the function exists anymore. |
db1771cf | 20372 | * normal/main.c: Include <pupa/env.h>. |
20373 | (pupa_rescue_cmd_normal): Use the environment variable `prefix' | |
20374 | instead of using pupa_dl_get_prefix to get the prefix. | |
20375 | * term/i386/pc/vga.c: Include <pupa/arg.h>. | |
20376 | (check_vga_mem): Cast pointers to `void *' to silence a gcc | |
20377 | warning. | |
20378 | (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case. | |
20379 | (pupa_vga_setcolor): Declare unused variables with `__attribute__ | |
20380 | ((unused))' to silence a gcc warning. | |
20381 | (pupa_vga_setcolor): Likewise. | |
20382 | (debug_command): Changed to match argument parsing | |
20383 | interface changes. | |
20384 | * util/pupa-emu.c: Include <pupa/env.h>. | |
20385 | (options): Added 0's for unused fields to silence a gcc warning. | |
20386 | (argp): Likewise. | |
20387 | (main): Use the environment variable `prefix' instead of using | |
20388 | pupa_dl_set_prefix to set the prefix. Initialize the commands ls, | |
20389 | boot, cmp, cat and terminal. Finish the commands boot, cmp, cat | |
20390 | and terminal. | |
20391 | ||
20392 | * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>. | |
20393 | * util/misc.c: Include <malloc.h>. | |
20394 | (pupa_malloc): Rewritten so errors are correctly reported. | |
20395 | (pupa_realloc): Likewise. | |
20396 | (pupa_memalign): Likewise. | |
20397 | (pupa_mm_init_region): Declare unused variables with | |
20398 | `__attribute__ ((unused))' to silence a gcc warning. | |
20399 | * normal/i386/setjmp.S: Remove tab at the end of the file to | |
20400 | silence a gcc warning. | |
20401 | * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused | |
20402 | variables with `__attribute__ ((unused))' to silence a gcc | |
20403 | warning. | |
20404 | * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the | |
20405 | local variable i unsigned to silence a gcc warning. | |
20406 | ||
20407 | * kern/term.c: Include <pupa/misc.h>. | |
20408 | (pupa_more_lines): New variable. | |
20409 | (pupa_more): Likewise. | |
20410 | (pupa_putcode): When the pager is active pause at the end of every | |
20411 | screen. | |
20412 | (pupa_set_more): New function. | |
20413 | * include/pupa/term.h (pupa_set_more): New prototype. | |
20414 | ||
20415 | ||
3b1139cb | 20416 | 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org> |
20417 | ||
20418 | Now this project is GRUB 2 rather than PUPA. The location of | |
20419 | the CVS repository was moved to GRUB's. | |
f19dbdb7 | 20420 | |
3b1139cb | 20421 | * configure.ac: Use bug-grub as the reporting address. |
20422 | Use GRUB instead of PUPA. | |
20423 | Change the version number to 1.90. | |
20424 | ||
8367695c | 20425 | 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org> |
20426 | ||
20427 | * genkernsyms.sh: Updated copyright information. | |
20428 | * genmk.rb: Likewise. | |
20429 | * genmodsrc.sh: Likewise. | |
20430 | * gensymlist.sh: Likewise. | |
20431 | * boot/i386/pc/boot.S: Likewise. | |
20432 | * boot/i386/pc/diskboot.S: Likewise. | |
20433 | * disk/i386/pc/biosdisk.c: Likewise. | |
20434 | * disk/i386/pc/partition.c: Likewise. | |
20435 | * font/manager.c: Likewise. | |
20436 | * fs/ext2.c: Likewise. | |
20437 | * fs/fat.c: Likewise. | |
20438 | * include/pupa/boot.h: Likewise. | |
20439 | * include/pupa/device.h: Likewise. | |
20440 | * include/pupa/disk.h: Likewise. | |
20441 | * include/pupa/dl.h: Likewise. | |
20442 | * include/pupa/elf.h: Likewise. | |
20443 | * include/pupa/err.h: Likewise. | |
20444 | * include/pupa/file.h: Likewise. | |
20445 | * include/pupa/font.h: Likewise. | |
20446 | * include/pupa/fs.h: Likewise. | |
20447 | * include/pupa/kernel.h: Likewise. | |
20448 | * include/pupa/loader.h: Likewise. | |
20449 | * include/pupa/misc.h: Likewise. | |
20450 | * include/pupa/mm.h: Likewise. | |
20451 | * include/pupa/net.h: Likewise. | |
20452 | * include/pupa/normal.h: Likewise. | |
20453 | * include/pupa/rescue.h: Likewise. | |
20454 | * include/pupa/setjmp.h: Likewise. | |
20455 | * include/pupa/symbol.h: Likewise. | |
20456 | * include/pupa/term.h: Likewise. | |
20457 | * include/pupa/types.h: Likewise. | |
20458 | * include/pupa/i386/setjmp.h: Likewise. | |
20459 | * include/pupa/i386/types.h: Likewise. | |
20460 | * include/pupa/i386/pc/biosdisk.h: Likewise. | |
20461 | * include/pupa/i386/pc/boot.h: Likewise. | |
20462 | * include/pupa/i386/pc/console.h: Likewise. | |
20463 | * include/pupa/i386/pc/init.h: Likewise. | |
20464 | * include/pupa/i386/pc/kernel.h: Likewise. | |
20465 | * include/pupa/i386/pc/linux.h: Likewise. | |
20466 | * include/pupa/i386/pc/loader.h: Likewise. | |
20467 | * include/pupa/i386/pc/memory.h: Likewise. | |
20468 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
20469 | * include/pupa/i386/pc/partition.h: Likewise. | |
20470 | * include/pupa/i386/pc/time.h: Likewise. | |
20471 | * include/pupa/i386/pc/vga.h: Likewise. | |
20472 | * include/pupa/i386/pc/util/biosdisk.h: Likewise. | |
20473 | * include/pupa/util/getroot.h: Likewise. | |
20474 | * include/pupa/util/misc.h: Likewise. | |
20475 | * include/pupa/util/resolve.h: Likewise. | |
20476 | * kern/device.c: Likewise. | |
20477 | * kern/disk.c: Likewise. | |
20478 | * kern/dl.c: Likewise. | |
20479 | * kern/err.c: Likewise. | |
20480 | * kern/file.c: Likewise. | |
20481 | * kern/fs.c: Likewise. | |
20482 | * kern/loader.c: Likewise. | |
20483 | * kern/main.c: Likewise. | |
20484 | * kern/misc.c: Likewise. | |
20485 | * kern/mm.c: Likewise. | |
20486 | * kern/rescue.c: Likewise. | |
20487 | * kern/term.c: Likewise. | |
20488 | * kern/i386/dl.c: Likewise. | |
20489 | * kern/i386/pc/init.c: Likewise. | |
20490 | * kern/i386/pc/lzo1x.S: Likewise. | |
20491 | * kern/i386/pc/startup.S: Likewise. | |
20492 | * loader/i386/pc/chainloader.c: Likewise. | |
20493 | * loader/i386/pc/linux.c: Likewise. | |
20494 | * loader/i386/pc/multiboot.c: Likewise. | |
20495 | * normal/cmdline.c: Likewise. | |
20496 | * normal/command.c: Likewise. | |
20497 | * normal/main.c: Likewise. | |
20498 | * normal/menu.c: Likewise. | |
20499 | * normal/i386/setjmp.S: Likewise. | |
20500 | * term/i386/pc/console.c: Likewise. | |
20501 | * term/i386/pc/vga.c: Likewise. | |
20502 | * util/console.c: Likewise. | |
20503 | * util/genmoddep.c: Likewise. | |
20504 | * util/misc.c: Likewise. | |
20505 | * util/pupa-emu.c: Likewise. | |
20506 | * util/resolve.c: Likewise. | |
20507 | * util/unifont2pff.rb: Likewise. | |
20508 | * util/i386/pc/biosdisk.c: Likewise. | |
20509 | * util/i386/pc/getroot.c: Likewise. | |
20510 | * util/i386/pc/pupa-mkimage.c: Likewise. | |
20511 | * util/i386/pc/pupa-setup.c: Likewise. | |
20512 | ||
e6eced71 | 20513 | 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx> |
20514 | ||
20515 | * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND | |
20516 | when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all | |
20517 | callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before | |
20518 | reading and reset it after reading. | |
20519 | (pupa_ext2_close): Return PUPA_ERR_NONE. | |
20520 | ||
20521 | * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS): | |
20522 | Correct value. | |
20523 | (struct linux_kernel_header): Add kernel_version and | |
20524 | initrd_addr_max. | |
20525 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether | |
20526 | pupa_file_read succeeds. | |
20527 | (pupa_rescue_cmd_initrd): Implement. | |
20528 | ||
5aded270 | 20529 | 2003-12-03 Marco Gerards <metgerards@student.han.nl> |
20530 | ||
20531 | * fs/ext2.c (pupa_ext2_label): New function. | |
20532 | (pupa_ext2_fs): Added label. | |
20533 | * fs/fat.c (pupa_fat_label): New function. | |
20534 | (pupa_fat_fs): Added label. | |
20535 | * include/pupa/fs.h (struct pupa_fs): Added prototype label. | |
20536 | ||
20537 | * kern/misc.c (pupa_strndup): New function. | |
20538 | * include/pupa/misc.h (pupa_strndup): New prototype. | |
20539 | ||
20540 | * include/pupa/normal.h: Include <pupa/err.h>. | |
20541 | (pupa_set_history): New prototype. | |
20542 | (pupa_iterate_commands): New prototype. | |
20543 | * normal/cmdline.c: Include <pupa/machine/partition.h>, | |
20544 | <pupa/disk.h>, <pupa/file.h>. | |
20545 | (hist_size): New variable. | |
20546 | (hist_lines): Likewise. | |
20547 | (hist_end): Likewise. | |
20548 | (hist_used): Likewise. | |
20549 | (pupa_set_history): New function. | |
20550 | (pupa_history_get): Likewise. | |
20551 | (pupa_history_add): Likewise. | |
20552 | (pupa_history_replace): Likewise. | |
20553 | (pupa_tab_complete): Likewise. | |
20554 | (pupa_cmdline_run): Added tab completion and history buffer. Tab | |
20555 | completion shows partitionnames while completing partitions, this | |
20556 | feature was suggested by Jeff Bailey. | |
20557 | * normal/command.c (pupa_iterate_commands): New function. | |
20558 | * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro. | |
20559 | (pupa_normal_init): Initialize history buffer. | |
20560 | (PUPA_MOD_INIT): Likewise. | |
20561 | (pupa_normal_fini): Free the history buffer. | |
20562 | (PUPA_MOD_FINI): Likewise. | |
20563 | ||
20564 | * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace | |
20565 | key. | |
20566 | ||
20567 | * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN. | |
20568 | * configure.ac [i386]: Check for regparam bug. | |
20569 | (NESTED_FUNC_ATTR) [! i386]: Defined. | |
20570 | ||
1f7315a3 | 20571 | 2003-11-17 Marco Gerards <metgerards@student.han.nl> |
20572 | ||
20573 | * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu. | |
20574 | (pupa_setup_SOURCES): Added util/i386/pc/getroot.c. | |
20575 | (pupa_emu_SOURCES): New variable. | |
20576 | (pupa_emu_LDFLAGS): Likewise. | |
20577 | * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype. | |
20578 | (pupa_ext2_fini) [PUPA_UTIL]: Likewise. | |
20579 | * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise. | |
20580 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
20581 | * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>. | |
20582 | (pupa_jmp_buf): New typedef. | |
20583 | (pupa_setjmp) [PUPA_UTIL]: New macro. | |
20584 | (pupa_longjmp) [PUPA_UTIL]: Likewise. | |
20585 | * include/pupa/term.h (struct pupa_term): New member `refresh'. | |
20586 | (pupa_refresh): New prototype. | |
20587 | * include/pupa/util/getroot.h: New file. | |
20588 | * kern/misc.c (pupa_vsprintf): Refresh the screen after updating | |
20589 | it. | |
20590 | * kern/rescue.c (pupa_rescue_get_command_line): Likewise. | |
20591 | (pupa_rescue_cmd_cat): Likewise. | |
20592 | (pupa_rescue_cmd_ls): Likewise. | |
20593 | (pupa_rescue_cmd_testload): Likewise. | |
20594 | (pupa_rescue_cmd_lsmod): Likewise. | |
20595 | * normal/cmdline.c (pupa_cmdline_get): Likewise. | |
20596 | * normal/menu.c (run_menu): Likewise. | |
20597 | * kern/term.c (pupa_cls): Likewise. | |
20598 | (pupa_refresh): New function. | |
20599 | * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function. | |
20600 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
20601 | * util/console.c: New file. | |
f19dbdb7 | 20602 | |
1f7315a3 | 20603 | * util/i386/pc/getroot.c: New file. |
20604 | * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>. | |
20605 | (pupa_putchar): New function. | |
20606 | (pupa_refresh): Likewise. | |
20607 | (xgetcwd): Function moved to ... | |
20608 | (strip_extra_slashes): Likewise. | |
20609 | (get_prefix): Likewise. | |
f19dbdb7 | 20610 | * util/i386/pc/getroot.c: ... here. |
1f7315a3 | 20611 | (find_root_device): Function moved and renamed to... |
20612 | * util/i386/pc/getroot.c (pupa_find_root_device): ... here. | |
20613 | Changed all callers. | |
20614 | * util/i386/pc/pupa-setup.c (guess_root_device): Function moved | |
20615 | and renamed to... | |
20616 | * util/i386/pc/getroot.c (pupa_guess_root_device): ... here. | |
20617 | Changed all callers. | |
20618 | * util/misc.c (pupa_memalign): New function. | |
20619 | (pupa_mm_init_region): Likewise. | |
20620 | (pupa_register_exported_symbols): Likewise. | |
20621 | (pupa_putchar): Function removed. | |
20622 | * util/pupa-emu.c: New file. | |
20623 | ||
9a5c1ade | 20624 | 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx> |
20625 | ||
20626 | * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod. | |
20627 | (_multiboot_mod_SOURCES): New variable. | |
20628 | (_multiboot_mod_CFLAGS): Likewise. | |
20629 | * loader/i386/pc/multiboot.c: New file. | |
20630 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
20631 | * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h. | |
20632 | (pupa_multiboot_real_boot): New function. | |
20633 | * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h. | |
20634 | (pupa_multiboot_real_boot): New prototype. | |
20635 | (pupa_rescue_cmd_multiboot): Likewise | |
20636 | (pupa_rescue_cmd_module): Likewise. | |
20637 | ||
20638 | * kern/loader.c (pupa_loader_set): Continue when | |
20639 | pupa_loader_unload_func() fails. | |
20640 | (pupa_loader_unset): New function. | |
20641 | * include/pupa/loader.h (pupa_loader_unset): New prototype. | |
20642 | ||
20643 | * kern/misc.c (pupa_stpcpy): New function. | |
20644 | * include/pupa/misc.h (pupa_stpcpy): New prototype. | |
20645 | ||
8e72a9c0 | 20646 | 2003-11-12 Marco Gerards <metgerards@student.han.nl> |
20647 | ||
20648 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check | |
20649 | for available extensions. | |
20650 | ||
20651 | * include/pupa/i386/pc/time.h: New file. | |
20652 | * kern/disk.c: Include <pupa/machine/time.h>. | |
20653 | (PUPA_CACHE_TIMEOUT): New macro. | |
20654 | (pupa_last_time): New variable. | |
20655 | (pupa_disk_open): Flush the cache when there was a timeout. | |
20656 | (pupa_disk_close): Reset the timer. | |
20657 | * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from | |
20658 | pupa_currticks. | |
20659 | * util/misc.c: Include <sys/times.h> | |
20660 | (pupa_get_rtc): New function. | |
20661 | ||
c4adbd32 | 20662 | 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
20663 | ||
20664 | * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks | |
20665 | as blocks. | |
20666 | (pupa_ext2_get_file_block): Use blocks member. | |
20667 | ||
20668 | * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the | |
20669 | first block. Return -1 instead of pupa_errno on error. | |
20670 | ||
bfd30f06 | 20671 | 2003-10-27 Marco Gerards <metgerards@student.han.nl> |
20672 | ||
20673 | * README: In the pupa-mkimage example use _chain instead of chain | |
20674 | and ext2 instead of fat. | |
20675 | * TODO: Replace ext2fs with jfs as an example. Add an item for | |
20676 | adding journal playback for ext2fs. | |
20677 | * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c. | |
20678 | (pkgdata_MODULES): Added ext2.mod. | |
20679 | (ext2_mod_SOURCES): New variable. | |
20680 | (ext2_mod_CFLAGS): Likewise. | |
20681 | * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP. | |
20682 | * include/pupa/misc.h (pupa_strncpy): New prototype. | |
20683 | (pupa_strcat): Likewise. | |
20684 | (pupa_strncmp): Likewise. | |
20685 | * kern/misc.c (pupa_strcat): Enable function. | |
20686 | (pupa_strncpy): New function. | |
20687 | (pupa_strncmp): Likewise. | |
20688 | * fs/ext2.c: New file. | |
f19dbdb7 | 20689 | |
bfd30f06 | 20690 | * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE |
20691 | when the read failed before retrying. | |
20692 | * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed. | |
20693 | (_FILE_OFFSET_BITS): Likewise. | |
20694 | * configure.ac: Added AC_SYS_LARGEFILE. | |
20695 | ||
98d15063 | 20696 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
20697 | ||
20698 | * genmk.rb (PModule#rule): Make sure to get only symbol names | |
20699 | from the output of nm. | |
20700 | Reported by Robert Millan <zeratul2@wanadoo.es>. | |
20701 | ||
18d9c7cd | 20702 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
20703 | ||
20704 | I forgot to check in these changes for a long time. This adds | |
20705 | incomplete support for VGA console, and this is still very | |
20706 | buggy. Also, a lot of consideration is required for I18N, | |
20707 | UNICODE, and VGA font issues. Therefore, assume that this is | |
20708 | such that "better than nothing". | |
f19dbdb7 | 20709 | |
18d9c7cd | 20710 | * font/manager.c: New file. |
20711 | * include/pupa/font.h: Likewise. | |
20712 | * include/pupa/i386/pc/vga.h: Likewise. | |
20713 | * term/i386/pc/vga.c: Likewise. | |
20714 | * util/unifont2pff.rb: Likewise. | |
20715 | ||
20716 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h. | |
20717 | (pkgdata_MODULES): Added vga.mod and font.mod. | |
20718 | (vga_mod_SOURCES): New variables. | |
20719 | (vga_mod_CFLAGS): Likewise. | |
20720 | (font_mod_SOURCES): Likewise. | |
20721 | (font_mod_CFLAGS): Likewise. | |
20722 | ||
20723 | * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant. | |
20724 | ||
20725 | * include/pupa/term.h: Include pupa/err.h. | |
f19dbdb7 | 20726 | (struct pupa_term): Added init and fini. |
18d9c7cd | 20727 | Changed the argument of putchar to pupa_uint32_t. |
20728 | ||
20729 | * include/pupa/i386/pc/console.h: Include pupa/symbol.h. | |
20730 | (pupa_console_real_putchar): New prototype. | |
20731 | (pupa_console_putchar): Removed. | |
20732 | (pupa_console_checkkey): Exported. | |
20733 | (pupa_console_getkey): Likewise. | |
20734 | ||
20735 | * kern/misc.c (pupa_vsprintf): Add support for UNICODE | |
20736 | characters. | |
20737 | ||
20738 | * kern/term.c (pupa_term_set_current): Rewritten. | |
20739 | (pupa_putchar): Likewise. | |
20740 | (pupa_putcode): New function. | |
20741 | ||
20742 | * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ... | |
20743 | (pupa_console_real_putchar): ... this. | |
20744 | (pupa_vga_set_mode): New function. | |
20745 | (pupa_vga_get_font): Likewise. | |
20746 | ||
20747 | * normal/command.c: Include pupa/term.h. | |
20748 | (terminal_command): New function. | |
20749 | (pupa_command_init): Register the command "terminal". | |
20750 | ||
20751 | * normal/menu.c (DISP_LEFT): Changed to a UNICODE value. | |
20752 | (DISP_UP): Likewise. | |
20753 | (DISP_RIGHT): Likewise. | |
20754 | (DISP_DOWN): Likewise. | |
20755 | (DISP_HLINE): Likewise. | |
20756 | (DISP_VLINE): Likewise. | |
20757 | (DISP_UL): Likewise. | |
20758 | (DISP_UR): Likewise. | |
20759 | (DISP_LL): Likewise. | |
20760 | (DISP_LR): Likewise. | |
20761 | ||
20762 | * term/i386/pc/console.c (pupa_console_putchar): New function. | |
f19dbdb7 | 20763 | |
977329f5 | 20764 | 2003-02-08 NIIBE Yutaka <gniibe@m17n.org> |
20765 | ||
20766 | * util/resolve.c (pupa_util_resolve_dependencies): BUG | |
20767 | FIX. Reverse the path_list. | |
20768 | ||
20769 | * include/pupa/normal.h: Export pupa_register_command and | |
20770 | pupa_unregister_command. | |
20771 | ||
20772 | * hello/hello.c (pupa_cmd_hello): New module. | |
20773 | * conf/i386-pc.rmk: Added hello.mod. | |
20774 | ||
1f5ab428 | 20775 | 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org> |
20776 | ||
20777 | * kern/i386/pc/lzo1x.S: New file. | |
f19dbdb7 | 20778 | |
1f5ab428 | 20779 | * util/i386/pc/pupa-mkimage.c: Include lzo1x.h. |
20780 | (compress_kernel): New variable. | |
20781 | (generate_image): Heavily modified to support compressing a | |
20782 | large part of the core image. | |
20783 | ||
20784 | * util/misc.c (pupa_util_read_image): Fix a file descriptor | |
20785 | leak. | |
20786 | (pupa_util_load_image): New function. | |
20787 | ||
20788 | * kern/i386/pc/startup.S: Include pupa/machine/kernel.h. | |
20789 | (pupa_compressed_size): New variable. | |
20790 | (codestart): Enable Gate A20 here. | |
20791 | Decompress the compressed part of the core image. | |
20792 | Rearrange the code to put functions and variables which are | |
20793 | required for initialization in the non-compressed part. | |
20794 | Include lzo1x.S. | |
20795 | ||
20796 | * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20 | |
20797 | here. | |
20798 | ||
20799 | * include/pupa/util/misc.h (pupa_util_write_image): Declared. | |
20800 | ||
f19dbdb7 | 20801 | * include/pupa/i386/pc/kernel.h |
1f5ab428 | 20802 | (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro. |
20803 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4. | |
20804 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
20805 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
20806 | (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro. | |
20807 | ||
20808 | * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable. | |
20809 | ||
20810 | * genmk.rb (Image#rule): Put LDFLAGS at the end of a line. | |
20811 | (Utility#rule): Likewise. | |
20812 | ||
20813 | * configure.ac: Check if LZO is available. | |
20814 | ||
ce5bf700 | 20815 | 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org> |
20816 | ||
20817 | * include/pupa/normal.h: New file. | |
20818 | * include/pupa/setjmp.h: Likewise. | |
20819 | * include/pupa/i386/setjmp.h: Likewise. | |
20820 | * normal/cmdline.c: Likewise. | |
20821 | * normal/command.c: Likewise. | |
20822 | * normal/main.c: Likewise. | |
20823 | * normal/menu.c: Likewise. | |
20824 | * normal/i386/setjmp.S: Likewise. | |
f19dbdb7 | 20825 | |
ce5bf700 | 20826 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global. |
20827 | (pupa_rescue_cmd_initrd): Likewise. | |
20828 | ||
20829 | * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader): | |
20830 | Likewise. | |
20831 | ||
20832 | * kern/i386/pc/startup.S (translation_table): New variable. | |
20833 | (translate_keycode): New function. | |
20834 | (pupa_console_getkey): Call translate_keycode. | |
20835 | ||
20836 | * kern/rescue.c (attempt_normal_mode): New function. | |
20837 | (pupa_enter_rescue_mode): Attempt to execute the normal mode. If | |
20838 | it failed, print a message. | |
20839 | ||
20840 | * kern/mm.c (pupa_real_malloc): Print more information when a | |
20841 | free magic is broken. | |
20842 | (pupa_free): If the first free header is not free actually, set | |
20843 | it to P. | |
20844 | ||
20845 | * kern/main.c (pupa_load_normal_mode): Just load the module | |
20846 | "normal". | |
20847 | (pupa_main): Don't print the message | |
20848 | "Entering into rescue mode..." here. | |
20849 | ||
20850 | * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd): | |
20851 | Declared. | |
20852 | (pupa_rescue_cmd_initrd): Likewise. | |
20853 | (pupa_rescue_cmd_initrd): Likewise. | |
20854 | ||
20855 | * include/pupa/symbol.h (FUNCTION): Specify the type. | |
20856 | (VARIABLE): Likewise. | |
20857 | ||
20858 | * include/pupa/err.h (pupa_err_t): Added | |
20859 | PUPA_ERR_UNKNOWN_COMMAND. | |
20860 | ||
20861 | * include/pupa/dl.h (pupa_dl_set_prefix): Exported. | |
20862 | (pupa_dl_get_prefix): Likewise. | |
20863 | ||
20864 | * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod. | |
20865 | Added _chain.mod and _linux.mod instead of chain.mod and | |
20866 | linux.mod. | |
20867 | (chain_mod_SOURCES): Renamed to ... | |
20868 | (_chain_mod_SOURCES): ... this. | |
20869 | (chain_mod_CFLAGS): Renamed to ... | |
20870 | (_chain_mod_CFLAGS): ... this. | |
20871 | (linux_mod_SOURCES): Renamed to ... | |
20872 | (_linux_mod_SOURCES): ... this. | |
20873 | (linux_mod_CFLAGS): Renamed to ... | |
20874 | (_linux_mod_CFLAGS): ... this. | |
20875 | (normal_mod_SOURCES): New variable. | |
20876 | (normal_mod_CFLAGS): Likewise. | |
20877 | (normal_mod_ASFLAGS): Likewise. | |
20878 | ||
20879 | 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org> | |
20880 | ||
20881 | * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if | |
20882 | possible. | |
20883 | ||
fe6b695a | 20884 | * kern/dl.c (pupa_dl_ref): Refer depending modules |
ce5bf700 | 20885 | recursively. |
20886 | (pupa_dl_unref): Unrefer depending modules recursively. | |
20887 | Don't call pupa_dl_unload implicitly, because PUPA can crash if | |
20888 | a module is unloaded before one depending on that module is | |
20889 | unloaded. | |
20890 | (pupa_dl_unload): Unload depending modules explicitly, | |
20891 | if possible. | |
20892 | ||
c04da074 | 20893 | 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org> |
20894 | ||
20895 | * include/pupa/i386/pc/linux.h: New file. | |
20896 | * loader/i386/pc/linux.c: Likewise. | |
f19dbdb7 | 20897 | |
c04da074 | 20898 | * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector): |
20899 | Removed. | |
20900 | (pupa_chainloader_unload): Return PUPA_ERR_NONE. | |
20901 | (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead | |
20902 | of PUPA_CHAINLOADER_BOOT_SECTOR. | |
20903 | ||
20904 | * kern/i386/pc/startup.S: Include pupa/machine/linux.h. | |
20905 | (pupa_linux_prot_size): New variable. | |
20906 | (pupa_linux_tmp_addr): Likewise. | |
20907 | (pupa_linux_real_addr): Likewise. | |
20908 | (pupa_linux_boot_zimage): New function. | |
20909 | (pupa_linux_boot_bzimage): Likewise. | |
20910 | ||
20911 | * kern/i386/pc/init.c (struct mem_region): New structure. | |
20912 | (MAX_REGIONS): New macro. | |
20913 | (mem_regions): New variable. | |
20914 | (num_regions): Likewise. | |
20915 | (pupa_os_area_addr): Likewise. | |
20916 | (pupa_os_area_size): Likewise. | |
20917 | (pupa_lower_mem): Likewise. | |
20918 | (pupa_upper_mem): Likewise. | |
20919 | (add_mem_region): New function. | |
20920 | (compact_mem_regions): Likewise. | |
20921 | (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to | |
20922 | the size of the conventional memory and that of so-called upper | |
20923 | memory (before the first memory hole). | |
20924 | Instead of adding each found region to free memory, use | |
20925 | add_mem_region and add them after removing overlaps. | |
20926 | Also, add only 1/4 of the upper memory to free memory. The rest | |
20927 | is used for loading OS images. Maybe this is ad hoc, but this | |
20928 | makes it much easier to relocate OS images when booting. | |
20929 | ||
20930 | * kern/rescue.c (pupa_rescue_cmd_module): Removed. | |
20931 | (pupa_enter_rescue_mode): Don't register initrd and module. | |
20932 | ||
20933 | * kern/mm.c: Include pupa/dl.h. | |
20934 | ||
20935 | * kern/main.c: Include pupa/file.h and pupa/device.h. | |
20936 | ||
20937 | * kern/loader.c (pupa_loader_load_module_func): Removed. | |
20938 | (pupa_loader_load_module): Likewise. | |
20939 | ||
20940 | * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of | |
20941 | ``.o''. | |
20942 | ||
20943 | * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared. | |
20944 | (pupa_linux_tmp_addr): Likewise. | |
20945 | (pupa_linux_real_addr): Likewise. | |
20946 | (pupa_linux_boot_zimage): Likewise. | |
20947 | (pupa_linux_boot_bzimage): Likewise. | |
20948 | ||
20949 | * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared. | |
20950 | (pupa_upper_mem): Likewise. | |
20951 | (pupa_gate_a20): Don't export, because turning off Gate A20 in a | |
20952 | module is too dangerous. | |
20953 | ||
20954 | * include/pupa/loader.h (pupa_os_area_addr): Declared. | |
20955 | (pupa_os_area_size): Likewise. | |
20956 | (pupa_loader_set): Remove the first argument. Loader doesn't | |
20957 | manage modules or initrd any longer. | |
20958 | (pupa_loader_load_module): Removed. | |
20959 | ||
20960 | * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod. | |
20961 | (linux_mod_SOURCES): New variable. | |
20962 | (linux_mod_CFLAGS): Likewise. | |
20963 | ||
a13f9237 | 20964 | 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org> |
20965 | ||
20966 | * util/i386/pc/pupa-setup.c (setup): Convert the endianness of | |
20967 | the length of a blocklist correctly. | |
20968 | ||
20969 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]: | |
20970 | Use ioctl only if the OS file is a block device. | |
20971 | (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is | |
20972 | not very useful for normal files. | |
20973 | ||
20974 | * kern/main.c (pupa_set_root_dev): New function. | |
20975 | (pupa_load_normal_mode): Likewise. | |
20976 | (pupa_main): Call those above. | |
20977 | ||
20978 | * include/pupa/types.h (pupa_swap_bytes16): Cast the result to | |
20979 | pupa_uint16_t. | |
20980 | ||
20981 | * include/pupa/kernel.h (pupa_enter_normal_mode): Removed. | |
20982 | ||
a5ffe966 | 20983 | 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
20984 | ||
20985 | * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h. | |
20986 | (setup): Configure the installed partition information and the | |
20987 | dl prefix. | |
20988 | ||
20989 | * loader/i386/pc/chainloader.c (my_mod): New variable. | |
20990 | (pupa_chainloader_unload): New function. | |
20991 | (pupa_rescue_cmd_chainloader): Refer itself. | |
20992 | (PUPA_MOD_INIT): Save its own module in MY_MOD. | |
20993 | ||
20994 | * kern/i386/pc/startup.S (install_partition): Removed. | |
20995 | (version_string): Likewise. | |
20996 | (config_file): Likewise. | |
20997 | (pupa_install_dos_part): New variable. | |
20998 | (pupa_install_bsd_part): Likewise. | |
20999 | (pupa_prefix): Likewise. | |
21000 | (pupa_chainloader_real_boot): Call pupa_dl_unload_all. | |
21001 | ||
21002 | * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h | |
21003 | and pupa/misc.h. | |
21004 | (make_install_device): New function. | |
21005 | (pupa_machine_init): Set the dl prefix. | |
21006 | ||
21007 | * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h. | |
21008 | (buf): Renamed to ... | |
21009 | (linebuf): ... this. | |
21010 | (pupa_rescue_cmd_prefix): New function. | |
21011 | (pupa_rescue_cmd_insmod): Likewise. | |
21012 | (pupa_rescue_cmd_rmmod): Likewise. | |
21013 | (pupa_rescue_cmd_lsmod): Likewise. | |
21014 | (pupa_enter_rescue_mode): Register new commands: prefix, insmod, | |
21015 | rmmod and lsmod. | |
21016 | ||
21017 | * kern/mm.c (pupa_memalign): If failed even after invalidating | |
21018 | disk caches, unload unneeded modules and retry. | |
21019 | ||
21020 | * kern/misc.c (pupa_memmove): New function. | |
21021 | (pupa_memcpy): Removed. | |
21022 | (pupa_strcpy): New function. | |
21023 | (pupa_itoa): Made static. | |
21024 | ||
21025 | * kern/dl.c (pupa_dl_iterate): New function. | |
21026 | (pupa_dl_ref): Likewise. | |
21027 | (pupa_dl_unref): Likewise. | |
21028 | (pupa_dl_unload): Return if succeeded or not. | |
21029 | (pupa_dl_unload_unneeded): New function. | |
21030 | (pupa_dl_unload_all): Likewise. | |
21031 | (pupa_dl_init): Renamed to ... | |
21032 | (pupa_dl_set_prefix): ... this. | |
21033 | (pupa_dl_get_prefix): New function. | |
21034 | ||
21035 | * include/pupa/i386/pc/kernel.h: Include pupa/types.h. | |
21036 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro. | |
21037 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
21038 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
21039 | (pupa_install_dos_part): Declared. | |
21040 | (pupa_install_bsd_part): Likewise. | |
21041 | (pupa_prefix): Likewise. | |
21042 | (pupa_boot_drive): Likewise. | |
21043 | ||
21044 | * include/pupa/types.h: Fix a typo. | |
21045 | ||
21046 | * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to | |
21047 | pupa_memmove. | |
21048 | (pupa_memmove): Declared. | |
21049 | (pupa_strcpy): Likewise. | |
21050 | ||
21051 | * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now | |
21052 | pupa_mod_init takes one argument, its own module. | |
21053 | (pupa_dl_unload_unneeded): Declared. | |
21054 | (pupa_dl_unload_all): Likewise. | |
21055 | (pupa_dl_ref): Likewise. | |
21056 | (pupa_dl_unref): Likewise. | |
21057 | (pupa_dl_iterate): Likewise. | |
21058 | (pupa_dl_init): Renamed to ... | |
21059 | (pupa_dl_set_prefix): ... this. | |
21060 | (pupa_dl_get_prefix): Declared. | |
21061 | ||
21062 | * fs/fat.c [!PUPA_UTIL] (my_mod): New variable. | |
f19dbdb7 | 21063 | (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being |
a5ffe966 | 21064 | unloaded. |
21065 | (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded. | |
21066 | (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself. | |
21067 | ||
21068 | * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith, | |
21069 | -Wmissing-prototypes, -Wundef and -Wstrict-prototypes. | |
21070 | ||
012d7999 | 21071 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
21072 | ||
21073 | * util/i386/pc/pupa-setup.c (setup): Define the internal | |
21074 | function find_first_partition_start at the top level, because GCC | |
21075 | 3.0.x cannot compile internal functions in deeper scopes | |
21076 | correctly. | |
21077 | (find_root_device): Use lstat instead of stat. | |
21078 | Don't follow symbolic links. | |
21079 | Fix the path-constructing code. | |
21080 | ||
21081 | * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro. | |
21082 | (pupa_util_biosdisk_open) [__linux__]: Get the size of a device | |
21083 | by a BLKGETSIZE ioctl first, because block devices don't fill | |
21084 | the member st_mode of the structure stat on Linux. | |
21085 | [__linux__] (linux_find_partition): Use a temporary buffer | |
21086 | REAL_DEV for the working space. Copy it to DEV before returning. | |
21087 | (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the | |
21088 | buffer cache consistent. | |
21089 | (get_os_disk) [__linux__]: Use the length 5 instead of 4 for | |
21090 | strncmp. The previous value was merely wrong. | |
21091 | (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat. | |
21092 | ||
21093 | * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the | |
21094 | FAT size is 12. The previous value was merely wrong. | |
21095 | ||
21096 | * kern/main.c (pupa_main): Don't split the starting message from | |
21097 | newlines. | |
21098 | ||
21099 | * kern/term.c (pupa_putchar): Put CR after LF instead of before | |
21100 | LF, because BIOS goes crazy about character attributes in this | |
21101 | case. | |
21102 | ||
1cc73a62 | 21103 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
21104 | ||
21105 | * include/i386/pc/util/biosdisk.h: New file. | |
21106 | * util/i386/pc/biosdisk.c: Likewise. | |
21107 | * util/i386/pc/pupa-setup.c: Likewise. | |
f19dbdb7 | 21108 | |
1cc73a62 | 21109 | * Makefile.in (INCLUDE_DISTFILES): Added |
21110 | include/pupa/i386/pc/util/biosdisk.h. | |
21111 | (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the | |
21112 | directory util/i386/pc. | |
21113 | (install-local): Added a rule for sbin_UTILITIES. | |
21114 | (uninstall): Likewise. | |
21115 | ||
21116 | * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc. | |
21117 | ||
21118 | * util/misc.c (xrealloc): New function. | |
21119 | (pupa_malloc): Likewise. | |
21120 | (pupa_free): Likewise. | |
21121 | (pupa_realloc): Likewise. | |
21122 | (pupa_stop): Likewise. | |
21123 | (pupa_putchar): Likewise. | |
21124 | ||
21125 | * kern/disk.c (pupa_disk_read): Prevent L from underflowing. | |
21126 | ||
21127 | * include/pupa/util/misc.h (xrealloc): Declared. | |
21128 | ||
21129 | * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New | |
21130 | macro. | |
21131 | (PUPA_BOOT_MACHINE_BPBEND): Renamed to ... | |
21132 | (PUPA_BOOT_MACHINE_BPB_END): ... this. | |
21133 | ||
21134 | * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared. | |
21135 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
21136 | ||
21137 | * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better | |
21138 | way should be implemented. | |
21139 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
21140 | ||
21141 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase | |
21142 | the size of NAME for safety. | |
21143 | (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of | |
21144 | 0x88. | |
21145 | ||
21146 | * conf/i386-pc.rmk (sbin_UTILITIES): New variable. | |
21147 | (pupa_setup_SOURCES): Likewise. | |
21148 | ||
21149 | * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules. | |
21150 | ||
08b70fe8 | 21151 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
21152 | ||
21153 | * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a | |
21154 | bunch of pushl's from pusha, because this destroys the return | |
21155 | value. | |
21156 | ||
62ddcc8f | 21157 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
21158 | ||
21159 | Use -mrtd and -mregparm=3 to reduce the generated code sizes. | |
21160 | This means that any missing prototypes could be fatal. Also, you | |
21161 | must take care when writing assembly code. See the comments at | |
21162 | the beginning of startup.S, for more details. | |
f19dbdb7 | 21163 | |
62ddcc8f | 21164 | * kern/i386/pc/startup.S (pupa_halt): Modified for the new |
21165 | compilation mechanism. | |
21166 | (pupa_chainloader_real_boot): Likewise. | |
21167 | (pupa_biosdisk_rw_int13_extensions): Likewise. | |
21168 | (pupa_biosdisk_rw_standard): Likewise. | |
21169 | (pupa_biosdisk_check_int13_extensions): Likewise. | |
21170 | (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
21171 | (pupa_biosdisk_get_diskinfo_standard): Likewise. | |
21172 | (pupa_get_memsize): Likewise. | |
21173 | (pupa_get_mmap_entry): Likewise. | |
21174 | (pupa_console_putchar): Likewise. | |
21175 | (pupa_console_setcursor): Likewise. | |
21176 | (pupa_getrtsecs): Use pushl instead of push. | |
21177 | ||
21178 | * kern/i386/pc/init.c (pupa_machine_init): Use the scratch | |
21179 | memory instead of the stack for a mmap entry, because some | |
21180 | BIOSes may ignore the maximum size and overflow. | |
21181 | ||
21182 | * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3. | |
21183 | ||
21184 | * genmk.rb (PModule#rule): Compile automatically generated | |
21185 | sources with module-specific CFLAGS as well as other sources. | |
21186 | ||
9962ed99 | 21187 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
21188 | ||
21189 | * configure.ac: Check ld. | |
21190 | Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS | |
21191 | respectively, before checking endianness and sizes. | |
21192 | ||
21193 | * Makefile.in (LD): New variable. | |
f19dbdb7 | 21194 | |
abdfc3c5 | 21195 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
21196 | ||
21197 | * Makefile.in (BUILD_CC): CC -> BUILD_CC. | |
21198 | ||
6a161fa9 | 21199 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
21200 | ||
21201 | * Changelog: New file. | |
21202 |