]>
Commit | Line | Data |
---|---|---|
8e54b4b7 VS |
1 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
2 | ||
3 | * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix | |
4 | misaligned access. | |
5 | (serpent_setkey): Likewise. | |
6 | (serpent_encrypt_internal): Likewise. | |
7 | (serpent_decrypt_internal): Likewise. | |
8 | (serpent_encrypt): Don't put an alignment-increasing cast. | |
9 | (serpent_decrypt): Likewise. | |
10 | (serpent_test): Likewise. | |
11 | ||
813c0a2b VS |
12 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
13 | ||
14 | * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address. | |
15 | ||
f2b60fbd VS |
16 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
17 | ||
18 | Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts. | |
19 | ||
20 | * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to | |
21 | grub_addr_t casts. | |
22 | (PTR_TO_UINT64): Likewise. | |
23 | (PTR_TO_UINT32): Likewise. | |
24 | ||
5ef5c511 VS |
25 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
26 | ||
27 | * util/grub-mkimage.c (generate_image): Decrease the higher limit | |
28 | because of stack. | |
29 | * util/grub-setup.c (setup): Don't add redundancy past the higher load | |
30 | limit. | |
31 | ||
c476e6df VS |
32 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
33 | ||
34 | * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case | |
35 | text_width > available width a bit more gracefully. | |
36 | ||
384ad7cc VS |
37 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
38 | ||
39 | * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix | |
40 | current address calculation. | |
41 | ||
96f8caf8 VS |
42 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
43 | ||
44 | * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not | |
45 | stack. | |
46 | (encode_block): Likewise. | |
47 | ||
276b7a8b VS |
48 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
49 | ||
50 | * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for | |
51 | certainety. | |
52 | ||
e3fd394a VS |
53 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> |
54 | ||
55 | * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to | |
56 | non-RS part to avoid RS messing with GDT. | |
57 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): | |
58 | Increase to suit in realmode routines. | |
59 | ||
60 | 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> | |
61 | ||
62 | * grub-core/kern/i386/realmode.S: Increase alignment. | |
63 | * grub-core/boot/i386/pc/startup_raw.S: Likewise. | |
64 | ||
ee9c2e7a VS |
65 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
66 | ||
67 | * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to | |
68 | be deterministic. | |
69 | (syndroms): Compute 0 syndrom. | |
70 | (rs_recover): Use 0 syndrom. | |
71 | ||
7a7f7cc9 VS |
72 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
73 | ||
74 | * include/grub/kernel.h (FOR_MODULES): Make it a bit faster. | |
75 | ||
a14b16d1 VS |
76 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
77 | ||
78 | * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing | |
79 | brackets. | |
80 | ||
9f59e9fc VS |
81 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
82 | ||
ca1b552c VS |
83 | * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into |
84 | account. | |
85 | (get_top_pad): Likewise. | |
86 | (get_right_pad): Likewise. | |
87 | (get_bottom_pad): Likewise. | |
88 | ||
89 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> | |
90 | ||
91 | * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if. | |
9f59e9fc | 92 | |
e739d698 VS |
93 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
94 | ||
95 | * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed | |
96 | attribute as the structure isn't guaranteed to be properly aligned. | |
97 | (grub_efi_pci_device_path): Likewise. | |
98 | (grub_efi_pccard_device_path): Likewise. | |
99 | (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly | |
100 | specify the size of `memory_type'. | |
101 | (grub_efi_vendor_device_path): Likewise. | |
102 | (grub_efi_controller_device_path): Likewise. | |
103 | (grub_efi_acpi_device_path): Likewise. | |
104 | (grub_efi_expanded_acpi_device_path): Likewise. | |
105 | (grub_efi_atapi_device_path): Likewise. | |
106 | (grub_efi_scsi_device_path): Likewise. | |
107 | (grub_efi_fibre_channel_device_path): Likewise. | |
108 | (grub_efi_1394_device_path): Likewise. | |
109 | (grub_efi_usb_device_path): Likewise. | |
110 | (grub_efi_usb_class_device_path): Likewise. | |
111 | (grub_efi_i2o_device_path): Likewise. | |
112 | (grub_efi_mac_address_device_path): Likewise. | |
113 | (grub_efi_ipv4_device_path): Likewise. | |
114 | (grub_efi_ipv6_device_path): Likewise. | |
115 | (grub_efi_infiniband_device_path): Likewise. | |
116 | (grub_efi_uart_device_path): Likewise. | |
117 | (grub_efi_vendor_messaging_device_path): Likewise. | |
118 | (grub_efi_hard_drive_device_path): Likewise. | |
119 | (grub_efi_cdrom_device_path): Likewise. | |
120 | (grub_efi_vendor_media_device_path): Likewise. | |
121 | (grub_efi_file_path_device_path): Likewise. | |
122 | (grub_efi_protocol_device_path): Likewise. | |
123 | (grub_efi_piwg_device_path): Likewise. | |
124 | (grub_efi_bios_device_path): Likewise. | |
125 | ||
cb8f88ea VS |
126 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
127 | ||
128 | * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer. | |
129 | (grub_ucs4_to_utf8_alloc): Likewise. | |
130 | (grub_ucs4_to_utf8): Likewise. | |
131 | * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise. | |
132 | (grub_ucs4_to_utf8_alloc): Likewise. | |
133 | ||
309e5352 VS |
134 | 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com> |
135 | ||
136 | AFFS never uses unicode. | |
137 | ||
138 | * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const. | |
139 | (grub_latin1_to_utf8): New inline function. | |
140 | * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8. | |
141 | ||
e7987e1b VS |
142 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
143 | ||
144 | * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison | |
145 | overflow. | |
146 | ||
efc2616e VS |
147 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
148 | ||
149 | * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes. | |
150 | (grub_squash_dirent_header): Likewise. | |
151 | (read_chunk): Don't double swap. | |
152 | (grub_squash_iterate_dir): Fix swap sizes. | |
153 | ||
3c349f5a VS |
154 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
155 | ||
156 | * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness. | |
157 | ||
b453412d VS |
158 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
159 | ||
160 | * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys. | |
161 | (grub_hfs_iterate_dir): Likewise. | |
162 | ||
12e9d4d1 VS |
163 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
164 | ||
165 | Fix video on platforms where unaligned access is forbidden. | |
166 | Make several optimisations while on it. | |
167 | ||
168 | * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN): | |
169 | Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER. | |
170 | (grub_video_fbblit_replace_32bit_1bit): Likewise. | |
171 | (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]: | |
172 | Disable. | |
173 | (grub_video_fbblit_replace_16bit_1bit): | |
174 | Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER. | |
175 | (grub_video_fbblit_replace_8bit_1bit): Likewise. | |
176 | (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise. | |
177 | (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise. | |
178 | (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise. | |
179 | (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise. | |
180 | (grub_video_fbblit_replace_BGR888_RGB888): Likewise. | |
181 | (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise. | |
182 | (grub_video_fbblit_replace_RGB888_RGBX888): Likewise. | |
183 | (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise. | |
184 | (grub_video_fbblit_replace_index_RGBX8888): Likewise. | |
185 | (grub_video_fbblit_replace_index_RGB888): Likewise. | |
186 | (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise. | |
187 | (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise. | |
188 | (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise. | |
189 | (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise. | |
190 | (grub_video_fbblit_blend_index_RGBA8888): Likewise. | |
191 | (grub_video_fbblit_blend_XXXA8888_1bit): Likewise. | |
192 | (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]: | |
193 | Disable. | |
194 | (grub_video_fbblit_blend_XXX565_1bit): | |
195 | Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER. | |
196 | * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise. | |
197 | * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return | |
198 | void *. | |
199 | * grub-core/video/fb/video_fb.c (common_blitter) | |
200 | [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters. | |
201 | (grub_video_fb_create_render_target_from_pointer) | |
202 | [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment. | |
203 | * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *. | |
204 | * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New | |
205 | definition. | |
206 | * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise. | |
207 | ||
ace96609 VS |
208 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
209 | ||
210 | * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support | |
211 | HH22 and HM10 relocations. | |
212 | ||
fd261d73 VS |
213 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
214 | ||
215 | * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing. | |
216 | ||
e59b7857 VS |
217 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
218 | ||
219 | * grub-core/commands/videotest.c (grub_cmd_videotest): Check that | |
220 | allocation succeeded. | |
221 | ||
9b4baaa4 VS |
222 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
223 | ||
224 | * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first | |
225 | argument a u8 pointer. All users updated. | |
226 | Handle unaligned buffers. | |
227 | ||
dc713193 VS |
228 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
229 | ||
230 | * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of | |
231 | add_part to workaround compiler bug. | |
232 | ||
30dd48c2 VS |
233 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
234 | ||
235 | * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants. | |
236 | ||
0c6087a8 VS |
237 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
238 | ||
239 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms): | |
240 | Reserve alignment invariants. | |
241 | (grub_multiboot_load): Likewise. | |
242 | (retrieve_video_parameters): Likewise. | |
243 | (grub_multiboot_make_mbi): Likewise. | |
244 | ||
c2e77777 VS |
245 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
246 | ||
247 | * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix | |
248 | incorrect pointer. | |
249 | ||
b70b6d11 VS |
250 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
251 | ||
252 | * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer. | |
253 | (grub_pata_pio_write): Likewise. | |
254 | ||
02a2bf83 VS |
255 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
256 | ||
257 | Add noreturn attributes and remove unreachable code. | |
258 | ||
259 | * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable | |
260 | code. | |
261 | * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable | |
262 | code. Mark as noreturn. | |
263 | * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise. | |
264 | * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise. | |
265 | * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove | |
266 | unreachable code. | |
267 | * grub-core/kern/main.c (grub_main): Mark as noreturn. | |
268 | * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise. | |
269 | * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise. | |
270 | * grub-core/normal/menu.c (run_menu): Remove unreachable code. | |
271 | * include/grub/kernel.h (grub_main): Mark as noreturn. | |
272 | * include/grub/reader.h (grub_rescue_run): Likewise. | |
273 | ||
2019d09e VS |
274 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
275 | ||
276 | * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove | |
277 | redundant declaration. | |
278 | ||
d1c501ee VS |
279 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
280 | ||
281 | * include/grub/net.h (grub_net_network_level_interfaces): Remove | |
282 | redundant declaration. | |
283 | (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place. | |
284 | ||
61664420 VS |
285 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
286 | ||
287 | * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 * | |
288 | to ensure alignment. | |
289 | (grub_hdparm_print_identify): Make argument uint16 * to ensure | |
290 | alignment. Ensure tmp alignment. | |
291 | (grub_cmd_hdparm): Ensure buf alignment. | |
292 | * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 * | |
293 | to ensure alignment. | |
294 | (grub_ata_dumpinfo): Ensure text alignment. | |
295 | (grub_atapi_identify): Preserve alignment invariant. | |
296 | (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary. | |
297 | ||
0d51ee20 VS |
298 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
299 | ||
300 | * include/grub/emu/misc.h (xasprintf): Add missing format attribute. | |
301 | * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration. | |
302 | * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise. | |
303 | * include/grub/misc.h (grub_reboot) | |
304 | [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export. | |
305 | (grub_halt) [__mips__]: Likewise. | |
306 | ||
753ef8c1 VS |
307 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
308 | ||
309 | * include/grub/efi/memory.h (grub_machine_mmap_iterate): | |
310 | Remove redundant declaration. | |
311 | (grub_mmap_get_post64): Likewise. | |
312 | (grub_mmap_get_upper): Likewise. | |
313 | (grub_mmap_get_lower): Likewise. | |
314 | ||
85c85365 VS |
315 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
316 | ||
317 | * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument | |
318 | uint32_t * to ensure alignment. | |
319 | (dvh_partition_map_iterate): Make `block' a union to ensure alignment. | |
320 | ||
a23f2cc4 VS |
321 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
322 | ||
93018f64 VS |
323 | * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument |
324 | uint16_t * to ensure alignment. | |
325 | (sun_pc_partition_map_iterate): Make `block' a union to ensure | |
326 | alignment. | |
327 | ||
328 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> | |
329 | ||
330 | * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t * | |
a23f2cc4 VS |
331 | to ensure alignment. |
332 | (sun_partition_map_iterate): Make `block' a union to ensure alignment. | |
333 | ||
58acccd6 VS |
334 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
335 | ||
336 | * grub-core/fs/ntfs.c (u16at): Make into inline function. | |
337 | Handle unaligned pointers. | |
338 | (u32at): Likewise. | |
339 | (u64at): Likewise. | |
340 | (fixup): Use byte access instead of v16at. | |
341 | (find_attr): Fix imporper usage of v32at. | |
342 | (read_data): Likewise. | |
343 | (list_file): Handle byte-swapping and unaligned strings. | |
344 | (grub_ntfs_label): Likewise. | |
345 | ||
9b05cad7 VS |
346 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
347 | ||
348 | * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute | |
349 | as it's not necessarily aligned. | |
350 | ||
b3950b84 VS |
351 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
352 | ||
353 | * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove | |
354 | redundant declaration. | |
355 | (grub_serial_init): Likewise. | |
356 | (grub_terminfo_init): Likewise. | |
357 | ||
fcd232b7 VS |
358 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
359 | ||
360 | * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline | |
361 | function. | |
362 | (ZAP_HASH_IDX): Likewise. | |
363 | (ZAP_LEAF_HASH_SHIFT): Likewise. | |
364 | (ZAP_LEAF_HASH_NUMENTRIES): Likewise. | |
365 | (LEAF_HASH): Likewise. | |
366 | (ZAP_LEAF_NUMCHUNKS): Likewise. | |
367 | (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve | |
368 | alignment invariants. Return pointer. All users updated. | |
369 | (ZAP_LEAF_ENTRY): Make into inline function. | |
370 | (NBBY): Removed. | |
371 | (xor): LIkewise. | |
372 | (xor_out): Use grub_crypto_xor. | |
373 | (dnode_get_path): Use grub_get_unaligned. | |
374 | (nvlist_find_value): Likewise. | |
375 | (grub_zfs_nvlist_lookup_uint64): Likewise. | |
376 | (grub_zfs_nvlist_lookup_string): Likewise. | |
377 | (get_nvlist_size): Likewise. | |
378 | (grub_zfs_open): Likewise. | |
379 | (fill_fs_info): Likewise. | |
380 | (grub_zfs_dir): Likewise. | |
381 | * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve | |
382 | alignment invariants. | |
383 | * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not | |
384 | necessarily aligned. | |
385 | ||
f138623a VS |
386 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
387 | ||
388 | * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment. | |
389 | ||
564840dc VS |
390 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
391 | ||
392 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer | |
393 | arithmetic to conserve alignment invariants. | |
394 | ||
9b40df20 VS |
395 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
396 | ||
397 | * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove | |
398 | redundant declaration. | |
399 | (grub_efiemu_mm_obtain_request): Likewise. | |
400 | (grub_efiemu_prepare): Likewise. | |
401 | ||
d1c930f9 VS |
402 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
403 | ||
404 | * include/grub/list.h: Explicitly cast return of grub_bad_type_cast | |
405 | to match types. | |
406 | ||
4c5f3056 VS |
407 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
408 | ||
409 | * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the | |
410 | case of aunaligned recptr. | |
411 | (grub_hfsplus_read_block): Declare extoverflow as key to ensure | |
412 | alignment. | |
413 | (grub_hfsplus_btree_search): Handle unaligned index. | |
414 | ||
728cba91 VS |
415 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
416 | ||
417 | * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16 | |
418 | to get freetag and skip. | |
419 | ||
eb561f31 VS |
420 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
421 | ||
422 | * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys | |
423 | array. | |
424 | (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment. | |
425 | (grub_nilfs2_btree_lookup): Ensure buffer alignment. | |
426 | ||
20993fbb VS |
427 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
428 | ||
429 | * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align | |
430 | name for checksum and fix allocation algorithm. | |
431 | ||
1f313b94 VS |
432 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
433 | ||
434 | * include/grub/types.h (grub_properly_aligned_t): New type. | |
435 | (GRUB_PROPERLY_ALIGNED_ARRAY): New macro. | |
436 | (grub_get_unaligned16): Add explicit casts. | |
437 | (grub_get_unaligned32): Likewise. | |
438 | (grub_get_unaligned64): Likewise. | |
439 | (grub_set_unaligned16): New function. | |
440 | (grub_set_unaligned32): Likewise. | |
441 | ||
47ae27ec VS |
442 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
443 | ||
444 | * grub-core/normal/datetime.c (grub_weekday_names): Make const. | |
445 | ||
78c2cd1c VS |
446 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
447 | ||
448 | * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16. | |
449 | * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise. | |
450 | * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise. | |
451 | ||
53072f9b VS |
452 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
453 | ||
454 | * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor | |
455 | conditionals. | |
456 | ||
055dc239 VS |
457 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
458 | ||
459 | * grub-core/kern/emu/main.c (main): Add missing const qualifier. | |
460 | * grub-core/loader/efi/appleloader.c (devdata): Likewise. | |
461 | ||
496bd074 VS |
462 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
463 | ||
464 | Unify and improve RAID and crypto xor. | |
465 | ||
466 | * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users | |
467 | changed to grub_crypto_xor | |
468 | * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ... | |
469 | * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined. | |
470 | Use bigger types when possible. | |
471 | ||
ef6e4335 VS |
472 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
473 | ||
474 | * grub-core/disk/raid.c (scan_devices): Fix condition. | |
475 | ||
5d048bf2 VS |
476 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
477 | ||
478 | * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties): | |
479 | Make name a const ptr. | |
480 | ||
ee533335 VS |
481 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
482 | ||
483 | * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make | |
484 | first argument a const pointer. | |
485 | * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise. | |
486 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update | |
487 | proto. | |
488 | (grub_children_iterate): Likewise. | |
489 | (grub_machine_mmap_iterate): Remove redundant declaration. | |
490 | ||
cc8f3668 VS |
491 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
492 | ||
493 | * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable. | |
494 | (grub_cmd_acpi) [!x86]: Disable EBDA. | |
495 | ||
c5fc563a VS |
496 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
497 | ||
498 | Enable UTF8 in gnulib regexp. | |
499 | ||
500 | * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define. | |
501 | * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower. | |
502 | (isupper): Use grub_isupper. | |
503 | (isascii): New inline function. | |
504 | * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents. | |
505 | * grub-core/lib/posix_wrap/wctype.h: Likewise. | |
506 | * grub-core/normal/charset.c (grub_utf8_process): New function. | |
507 | (grub_utf8_to_utf16): Use grub_utf8_process. | |
508 | (grub_encode_utf8_character): New function. | |
509 | (grub_ucs4_to_utf8): Use grub_encode_utf8_character. | |
510 | * include/grub/charset.h (grub_utf8_process): New declaration. | |
511 | (grub_encode_utf8_character): Likewise. | |
512 | * include/grub/misc.h (grub_islower): New inline function. | |
513 | (grub_isupper): Likewise. | |
514 | (grub_strchrsub): Moved down to fix the definitions. | |
515 | ||
0af2346f VS |
516 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
517 | ||
518 | * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned | |
519 | specification. | |
520 | ||
74dbd244 VS |
521 | 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
522 | ||
523 | * include/grub/loader.h (grub_loader_register_preboot_hook): | |
524 | Use struct preboot * and not void * for handle. All users updated. | |
525 | (grub_loader_unregister_preboot_hook): Likewise. | |
526 | ||
1bc8f60d VS |
527 | 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com> |
528 | ||
529 | * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const. | |
530 | * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to | |
531 | UTF-16-BE. All users updated. | |
532 | (grub_hfsplus_cmp_catkey): Fix unicode handling. | |
533 | (grub_hfsplus_iterate_dir): Likewise. | |
534 | (grub_hfsplus_label): Likewise. | |
535 | ||
48d6e456 VS |
536 | 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com> |
537 | ||
538 | * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition. | |
539 | ||
bf3a3857 VS |
540 | 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com> |
541 | ||
542 | Add missing const qualifiers. | |
543 | ||
544 | * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const. | |
545 | * grub-core/commands/lspci.c (grub_pci_classname): Likewise. | |
546 | * grub-core/commands/menuentry.c (hotkey_aliases): Likewise. | |
547 | * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise. | |
548 | (grub_lvm_check_flag): Likewise. | |
549 | * grub-core/efiemu/i386/coredetect.c | |
550 | (grub_efiemu_get_default_core_name): Likewise | |
551 | * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise. | |
552 | * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise. | |
553 | * grub-core/fs/ntfs.c (fixup): Likewise. | |
554 | * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise. | |
555 | * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise. | |
556 | (fzap_lookup): Likewise. | |
557 | (zap_lookup): Likewise. | |
558 | * grub-core/gnulib/regcomp.c (init_dfa): Likewise. | |
559 | * grub-core/lib/legacy_parse.c (check_option): Likewise. | |
560 | * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise. | |
561 | * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise. | |
562 | (grub_freebsd_add_meta_module): Likewise. | |
563 | (grub_cmd_freebsd_module): Likewise. | |
564 | * grub-core/loader/i386/xnu.c (tbl_alias): Likewise. | |
565 | * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise. | |
566 | (grub_xnu_writetree_get_size): Likewise. | |
567 | (grub_xnu_writetree_toheap_real): Likewise. | |
568 | (grub_xnu_find_key): Likewise. | |
569 | (grub_xnu_create_key): Likewise. | |
570 | (grub_xnu_create_value): Likewise. | |
571 | (grub_xnu_register_memory): Likewise. | |
572 | (grub_xnu_check_os_bundle_required): Likewise. | |
573 | (grub_xnu_scan_dir_for_kexts): Likewise. | |
574 | (grub_xnu_load_kext_from_dir): Likewise. | |
575 | * grub-core/normal/color.c (color_list): Likewise. | |
576 | * grub-core/normal/completion.c (current_word): Likewise. | |
577 | * grub-core/normal/menu_entry.c (insert_string): Likewise. | |
578 | * grub-core/term/serial.c (grub_serial_find): Likewise. | |
579 | * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise. | |
580 | * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name): | |
581 | Likewise. | |
582 | * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise. | |
583 | (grub_freebsd_add_meta_module): Likewise. | |
584 | * include/grub/lib/arg.h (grub_arg_option): Likewise. | |
585 | * include/grub/net.h (grub_net_card_driver): Likewise. | |
586 | (grub_net_card): Likewise. | |
587 | (grub_net_app_protocol): Likewise. | |
588 | * include/grub/parttool.h (grub_parttool_argdesc): Likewise. | |
589 | * include/grub/serial.h (grub_serial_find): Likewise. | |
590 | * include/grub/tparm.h (grub_terminfo_tparm): Likewise. | |
591 | * include/grub/xnu.h (grub_xnu_create_key): Likewise. | |
592 | (grub_xnu_create_value): Likewise. | |
593 | (grub_xnu_find_key): Likewise. | |
594 | (grub_xnu_scan_dir_for_kexts): Likewise. | |
595 | (grub_xnu_load_kext_from_dir): Likewise. | |
596 | ||
597 | * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ... | |
598 | * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here. | |
599 | * include/grub/zfs/zio_checksum.h (zio_checksum_info): | |
600 | Moved from here ... | |
601 | * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const. | |
602 | ||
112b4837 CW |
603 | 2011-11-28 Colin Watson <cjwatson@ubuntu.com> |
604 | ||
605 | * util/getroot.c (find_root_device_from_libzfs): Use xasprintf. | |
606 | ||
49e891ac VS |
607 | 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com> |
608 | ||
609 | * grub-core/fs/zfs/zfs.c (recovery): Fix spelling. | |
610 | (read_device): Fix size calculation. | |
611 | ||
fd258e5c RM |
612 | 2011-11-25 Robert Millan <rmh@gnu.org> |
613 | ||
614 | * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'. | |
615 | (find_root_device_from_libzfs): Add zpool output parser to be used | |
616 | as fallback when libzfs isn't available. | |
617 | ||
78845dc2 SG |
618 | 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com> |
619 | ||
620 | * po/Makefile.in.in: Add missing escape-continuation. | |
621 | ||
adac5211 VS |
622 | 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com> |
623 | ||
624 | * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly. | |
625 | ||
10b64f1c VS |
626 | 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
627 | ||
628 | * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling. | |
629 | ||
bb416954 VS |
630 | 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
631 | ||
632 | * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments. | |
633 | ||
bdfe9eeb VS |
634 | 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
635 | ||
636 | * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment. | |
637 | ||
581ffa8a VS |
638 | 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
639 | ||
640 | * grub-core/lib/adler32.c: Add missing license specification. | |
641 | * grub-core/lib/crc64.c: Likewise. | |
642 | * grub-core/loader/i386/pc/plan9.c: Likewise. | |
643 | * grub-core/partmap/plan.c: Likewise. | |
644 | ||
2536cf64 LK |
645 | 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com> |
646 | ||
647 | Add facility to debug GRUB with gdb under qemu. | |
648 | ||
649 | * grub-core/gdb_grub.in: New file. | |
650 | * grub-core/gmodule.pl.in: Likewise. | |
651 | * grub-core/Makefile.core.def (gmodule.pl): New script. | |
652 | (gdb_grub): Likewise. | |
653 | ||
bc108a4a VS |
654 | 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
655 | ||
656 | * util/grub-mount.c (argp_parser): Accept relative pathes. | |
657 | * util/grub-fstest.c (argp_parser): Likewise. | |
658 | ||
111c1778 VS |
659 | 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
660 | ||
661 | Plan9 support. | |
662 | ||
663 | * Makefile.util.def (libgrubmods): Add | |
664 | grub-core/partmap/plan.c. | |
665 | * docs/grub.texi: Notice Plan9 support. | |
666 | * grub-core/Makefile.core.def (plan9): New module. | |
667 | (part_plan): Likewise. | |
668 | * grub-core/loader/i386/pc/plan9.c: New file. | |
669 | * grub-core/partmap/plan.c: Likewise. | |
670 | * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New | |
671 | define. | |
672 | (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise. | |
673 | * include/grub/mm.h (grub_extend_alloc): New inline function. | |
674 | ||
c30be3b6 VS |
675 | 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
676 | ||
677 | Make Reed-Solomon faster by using power of generator representation of | |
678 | GF(256)*. | |
679 | ||
680 | * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed. | |
681 | (gf_double_t): Likewise. | |
682 | (gf_invert): Removed. | |
683 | (gf_powx): New array. | |
684 | (gf_powx_inv): Likewise. | |
685 | (scratch): Move higher. | |
686 | (gf_reduce): Removed. | |
687 | (gf_mul): Use powx. | |
688 | (gf_invert): Likewise. | |
689 | (init_inverts): Replaced with ... | |
690 | (init_powx): ...this. All users updated. | |
691 | (pol_evaluate): Replace multiplications with additions. | |
692 | (rs_encode): Likewise. | |
693 | (gauss_eliminate): Call gf_invert. | |
694 | (grub_reed_solomon_add_redundancy): Call init_powx. | |
695 | (grub_reed_solomon_recover): Call init_powx unconditionally. | |
696 | ||
fa5aeffc VS |
697 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
698 | ||
699 | * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling. | |
700 | ||
a346b81c VS |
701 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
702 | ||
703 | * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore | |
704 | disk->partiton for safety. | |
705 | ||
d89ee414 VS |
706 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
707 | ||
708 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): | |
709 | Fix a memory leak. | |
710 | (grub_util_biosdisk_get_grub_dev): Add a useful debug info. | |
711 | ||
91ee7b6d VS |
712 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
713 | ||
714 | * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak. | |
715 | ||
91e5a33d VS |
716 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
717 | ||
718 | * include/grub/lvm.h (grub_lvm_pv): Correct start type. | |
719 | ||
9edd7be2 VS |
720 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
721 | ||
722 | Fix spaces handling in proc/self/mountinfo. | |
723 | ||
724 | * util/getroot.c (unescape): New function. | |
725 | (grub_find_root_device_from_mountinfo): Use unescape. | |
726 | ||
ba102053 VS |
727 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
728 | ||
729 | Support ZFS embedding. | |
730 | ||
731 | * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function. | |
732 | (grub_zfs_fs): Register grub_zfs_embed. | |
733 | ||
aa94b870 VS |
734 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
735 | ||
736 | Fix MIPS compilation. | |
737 | ||
738 | * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_* | |
739 | * include/grub/offsets.h: Rename decompressor fields from | |
740 | GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*. | |
741 | * util/grub-mkimage.c (image_targets): Use new names. | |
742 | ||
5fbdac14 VS |
743 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
744 | ||
745 | Defer multiboot device parsing until we're in compressed part. | |
746 | ||
747 | * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and | |
748 | bsd_part. setdevice has fallen into disuse. | |
749 | * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed. | |
750 | (bsd_part): Likewise. | |
751 | (boot_dev): New variable. | |
752 | (multiboot_trampoline): Don't parse multiboot device. | |
753 | Pass multiboot device in %edx. | |
754 | * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse | |
755 | grub_boot_device. | |
756 | * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation): | |
757 | Likewise. | |
758 | * grub-core/kern/i386/pc/startup.S: Save edx. | |
759 | (grub_boot_drive): Removed. | |
760 | (grub_install_dos_part): Likewise. | |
761 | (grub_install_bsd_part): Likewise. | |
762 | (grub_boot_device): New variable. | |
763 | * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed. | |
764 | (grub_install_bsd_part): Likewise. | |
765 | (grub_boot_drive): Likewise. | |
766 | (grub_boot_device): New variable. | |
767 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): | |
768 | Removed. | |
769 | (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise. | |
770 | (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower. | |
771 | (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed. | |
772 | (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise. | |
773 | * util/grub-install.in: Remove redundant condition. | |
774 | ||
691cbb58 VS |
775 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
776 | ||
777 | Fix bug introduced by previous commit. | |
778 | ||
779 | * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly. | |
780 | ||
60240b8b VS |
781 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
782 | ||
783 | Use decompressors framework on i386-pc. It increases core size | |
784 | by 46 bytes but improves compatibility and maintainability. | |
785 | ||
786 | * grub-core/Makefile.core.def (lzma_decompress): New image. | |
787 | (kernel): Add i386_pc_ldflags. | |
788 | * grub-core/kern/i386/pc/startup.S: Move intial part to .. | |
789 | * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers | |
790 | to real_to_prot, prot_to_real and device info. | |
791 | * include/grub/offsets.h: Renamed decompressor offsets. | |
792 | * util/grub-mkimage.c (grub_compression_t): New cmpression lzma. | |
793 | (image_target_desc): Remove raw_size and rename decompressor fields. | |
794 | (compress_kernel): Handle lzma. | |
795 | (generate_image): Handle decompressors on i386-pc. | |
796 | ||
e9d3421c VS |
797 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
798 | ||
799 | * configure.ac: Add -fno-asynchronous-unwind-tables. | |
800 | ||
2b23074a VS |
801 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
802 | ||
803 | Move assembly code to C by using intwrap. It increases core size | |
804 | by 88 bytes but improves compatibility and maintainability. | |
805 | ||
806 | * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ... | |
807 | * grub-core/term/i386/pc/console.c (grub_console_putchar_real): | |
808 | ... here. Translated to C. | |
809 | * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ... | |
810 | * grub-core/term/i386/pc/console.c (grub_console_getkey): | |
811 | ... here. Translated to C. | |
812 | * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ... | |
813 | * grub-core/term/i386/pc/console.c (grub_console_getxy): | |
814 | ... here. Translated to C. | |
815 | * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ... | |
816 | * grub-core/term/i386/pc/console.c (grub_console_gotoxy): | |
817 | ... here. Translated to C. | |
818 | * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ... | |
819 | * grub-core/term/i386/pc/console.c (grub_console_cls): | |
820 | ... here. Translated to C. | |
821 | * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to .. | |
822 | * grub-core/term/i386/pc/console.c (grub_console_setcursor): | |
823 | ... here. Translated to C. | |
824 | * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to .. | |
825 | * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here. | |
826 | Translated to C. | |
827 | * grub-core/term/i386/pc/console.c (int10_9): New function. | |
828 | (grub_console_putchar): Likewise. | |
829 | * include/grub/i386/pc/console.h: Removed the not anymore shared | |
830 | functions. | |
831 | ||
678f4b67 VS |
832 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
833 | ||
834 | Move grub_chainloader_real_boot out of the kernel. | |
835 | ||
836 | * grub-core/Makefile.am: Remove machine/loader.h. | |
837 | * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot): | |
838 | Removed. | |
839 | * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern | |
840 | variable. | |
841 | (grub_relocator16_keep_a20_enabled): Likewise. | |
842 | (grub_relocator16_boot): Fill new variables. | |
843 | * grub-core/lib/i386/relocator16.S: Add gate a20 handling. | |
844 | * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use | |
845 | relocator. | |
846 | (grub_chainloader_unload): Likewise. | |
847 | (grub_chainloader_cmd): Likewise. | |
848 | * include/grub/i386/pc/loader.h: Removed. | |
849 | * include/grub/i386/relocator.h (grub_relocator16_state): Add a20 | |
850 | and esi. All initialisers updated. | |
851 | ||
4626edf6 VS |
852 | 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
853 | 2011-11-12 Colin Watson <cjwatson@ubuntu.com> | |
854 | ||
855 | * Makefile.util.def (grub-mount): New util. | |
856 | * .bzrignore: Add grub-mount. | |
857 | * configure.ac: Check for fuse and enable grub-mount if available. | |
858 | * docs/man/grub-mount.h2m: New file. | |
859 | * util/grub-mount.c: Likewise. | |
860 | ||
10f0117b VS |
861 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
862 | ||
863 | * grub-core/commands/efi/fixvideo.c: Gettextize. | |
864 | * grub-core/commands/hashsum.c: Likewise. | |
865 | * grub-core/commands/i386/cmostest.c: Likewise. | |
866 | * grub-core/commands/i386/pc/drivemap.c: Likewise. | |
867 | * grub-core/commands/i386/pc/lsapm.c: Likewise. | |
868 | * grub-core/commands/i386/pc/sendkey.c: Likewise. | |
869 | * grub-core/commands/lsmmap.c: Likewise. | |
870 | * grub-core/commands/menuentry.c: Likewise. | |
871 | * grub-core/commands/mips/loongson/lsspd.c: Likewise. | |
872 | * grub-core/commands/setpci.c: Likewise. | |
873 | * grub-core/loader/i386/bsd.c: Likewise. | |
874 | * grub-core/loader/i386/linux.c: Likewise. | |
875 | * util/getroot.c: Likewise. | |
876 | * util/grub-editenv.c: Likewise. | |
877 | * util/grub-fstest.c: Likewise. | |
878 | * util/grub-mkfont.c: Likewise. | |
879 | * util/grub-mkimage.c: Likewise. | |
880 | * util/grub-mkpasswd-pbkdf2.c: Likewise. | |
881 | * util/grub-pe2elf.c: Likewise. | |
882 | * util/grub-probe.c: Likewise. | |
883 | * util/grub-setup.c: Likewise. | |
884 | * util/ieee1275/ofpath.c: Likewise. | |
885 | * util/misc.c: Likewise. | |
886 | * util/raid.c: Likewise. | |
887 | ||
566f779b RM |
888 | 2011-11-11 Robert Millan <rmh@gnu.org> |
889 | ||
890 | * util/getroot.c (grub_util_get_geom_abstraction): Remove | |
891 | __attribute__((unused)) from `os_dev', which *is* being used. | |
892 | ||
b50787de VS |
893 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
894 | ||
895 | * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back | |
896 | forgotten define. | |
897 | (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of | |
898 | GRUB_IA64_DL_GOT_ALIGN. | |
899 | (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of | |
900 | GRUB_IA64_DL_TRAMP_ALIGN. | |
901 | ||
119d11c8 VS |
902 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
903 | ||
904 | Replace grub_fatal with normal errors in i386 linux loader. | |
905 | ||
906 | * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error. | |
907 | (allocate_pages): Check find_efi_mmap_size return value. | |
908 | (grub_e820_add_region): Return error. | |
909 | (grub_linux_boot): Check mmap return value. | |
910 | ||
6e0632e2 VS |
911 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
912 | ||
913 | * grub-core/commands/acpihalt.c: Gettextized. | |
914 | * grub-core/commands/cacheinfo.c: Likewise. | |
915 | * grub-core/commands/cmp.c: Likewise. | |
916 | * grub-core/commands/efi/loadbios.c: Likewise. | |
917 | * grub-core/commands/gptsync.c: Likewise. | |
918 | * grub-core/commands/ieee1275/suspend.c: Likewise. | |
919 | * grub-core/commands/legacycfg.c: Likewise. | |
920 | * grub-core/commands/memrw.c: Likewise. | |
921 | * grub-core/commands/minicmd.c: Likewise. | |
922 | * grub-core/commands/parttool.c: Likewise. | |
923 | * grub-core/commands/time.c: Likewise. | |
924 | * grub-core/commands/videoinfo.c: Likewise. | |
925 | * grub-core/disk/geli.c: Likewise. | |
926 | * grub-core/disk/i386/pc/biosdisk.c: Likewise. | |
927 | * grub-core/disk/luks.c: Likewise. | |
928 | * grub-core/disk/lvm.c: Likewise. | |
929 | * grub-core/font/font_cmd.c: Likewise. | |
930 | * grub-core/fs/zfs/zfscrypt.c: Likewise. | |
931 | * grub-core/fs/zfs/zfsinfo.c: Likewise. | |
932 | * grub-core/gfxmenu/view.c: Likewise. | |
933 | * grub-core/kern/emu/hostdisk.c: Likewise. | |
934 | * grub-core/kern/emu/main.c: Likewise. | |
935 | * grub-core/kern/emu/misc.c: Likewise. | |
936 | * grub-core/kern/emu/mm.c: Likewise. | |
937 | * grub-core/kern/mips/arc/init.c: Likewise. | |
938 | * grub-core/kern/mips/loongson/init.c: Likewise. | |
939 | * grub-core/kern/partition.c: Likewise. | |
940 | * grub-core/lib/i386/halt.c: Likewise. | |
941 | * grub-core/lib/mips/arc/reboot.c: Likewise. | |
942 | * grub-core/lib/mips/loongson/reboot.c: Likewise. | |
943 | * grub-core/loader/i386/pc/chainloader.c: Likewise. | |
944 | * grub-core/loader/i386/xnu.c: Likewise. | |
945 | * grub-core/loader/multiboot.c: Likewise. | |
946 | * grub-core/net/bootp.c: Likewise. | |
947 | * grub-core/net/net.c: Likewise. | |
948 | * grub-core/normal/term.c: Likewise. | |
949 | * grub-core/partmap/bsdlabel.c: Likewise. | |
950 | * grub-core/parttool/msdospart.c: Likewise. | |
951 | * grub-core/term/gfxterm.c: Likewise. | |
952 | * grub-core/term/terminfo.c: Likewise. | |
953 | * grub-core/video/i386/pc/vbe.c: Likewise. | |
954 | * util/grub-menulst2cfg.c: Likewise. | |
955 | * util/grub-mkdevicemap.c: Likewise. | |
956 | * util/grub-mklayout.c: Likewise. | |
957 | * util/grub-mkrelpath.c: Likewise. | |
958 | * util/grub-script-check.c: Likewise. | |
959 | * util/ieee1275/grub-ofpathname.c: Likewise. | |
960 | * util/resolve.c: Likewise. | |
961 | ||
073aa7a9 VS |
962 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
963 | ||
964 | Support %1$d syntax. | |
965 | ||
966 | * tests/printf_unit_test.c: New file. | |
967 | * Makefile.util.def (printf_test): New test. | |
968 | * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax. | |
969 | ||
c76b5417 VS |
970 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
971 | ||
972 | * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic | |
973 | fix. | |
974 | ||
df067ad1 VS |
975 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
976 | ||
977 | * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into | |
978 | dprintf. | |
979 | * grub-core/font/font.c (grub_font_load): Likewise. | |
980 | ||
5b289bc5 VS |
981 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
982 | ||
983 | * util/grub-macho2img.c: Add comment concerning gettext. | |
984 | * grub-core/lib/legacy_parse.c: Likewise. | |
985 | ||
c1860f87 VS |
986 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
987 | ||
988 | * grub-core/kern/misc.c (grub_vprintf): Add missing va_end. | |
989 | (grub_xvasprintf): Likewise. | |
990 | ||
d35d0d37 VS |
991 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
992 | ||
993 | Add const keyword to grub_env_get and gettextize week days. | |
994 | ||
995 | * grub-core/hook/datehook.c (grub_datetime_names): Make const. | |
996 | (grub_read_hook_datetime): Return const char *. | |
997 | * grub-core/kern/env.c (grub_env_get): Return const char *. All users | |
998 | updated. | |
999 | * grub-core/normal/datetime.c (grub_weekday_names): Make const. | |
1000 | Mark for gettext. | |
1001 | (grub_get_weekday_name): Return const char *. Call gettext. | |
1002 | * grub-core/script/argv.c (grub_script_argv_append): Receive const | |
1003 | char * and len as the argument. All users updated. | |
1004 | (grub_script_argv_split_append): Receive const char *. | |
1005 | * include/grub/datetime.h (grub_get_weekday_name): Update proto. | |
1006 | * include/grub/env.h (grub_env_get): Likewise. | |
1007 | (grub_env_read_hook_t): Return const char *. | |
1008 | * include/grub/script_sh.h (grub_script_argv_append): Update proto. | |
1009 | (grub_script_argv_split_append): Likewise. | |
1010 | ||
9aed8a71 VS |
1011 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1012 | ||
1013 | * grub-core/normal/main.c (grub_normal_execute): Remove leftover call. | |
1014 | ||
067fdf00 VS |
1015 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1016 | ||
1017 | * grub-core/kern/misc.c (grub_strstr): Moved from here ... | |
1018 | * include/grub/misc.h (grub_strstr): ... here. Make static and inline. | |
1019 | ||
a8bd9d39 VS |
1020 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1021 | ||
1022 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property): | |
1023 | Fix prototype. | |
1024 | ||
f7ce5baf VS |
1025 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1026 | ||
1027 | Fix mips compilation. | |
1028 | ||
1029 | * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to | |
1030 | normal decoder. | |
1031 | (hashes): Use in embed decoder as well (for sizes). | |
1032 | (dec_stream_header): Fix embed decompressor logic. | |
1033 | (dec_stream_footer): Likewise. | |
1034 | ||
9bb182f3 VS |
1035 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1036 | ||
1037 | * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue | |
1038 | an error and not a fatal on unrecognised relocation types. | |
1039 | ||
63a9e6f6 VS |
1040 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1041 | ||
1042 | * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): | |
1043 | Issue error rather than printf on unknown arguments. | |
1044 | ||
4c458569 VS |
1045 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1046 | ||
1047 | * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property): | |
1048 | Make buf a const. | |
1049 | ||
e2d22baf VS |
1050 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1051 | ||
1052 | * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI): | |
1053 | Fix module name. | |
1054 | ||
53dc8590 VS |
1055 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1056 | ||
1057 | * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove | |
1058 | leftover debug printf. | |
1059 | ||
6c189294 VS |
1060 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1061 | ||
1062 | * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix. | |
1063 | ||
f7688369 VS |
1064 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1065 | ||
1066 | * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table): | |
1067 | A stylistic fix. | |
1068 | ||
11a775a3 VS |
1069 | 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com> |
1070 | ||
1071 | * grub-core/commands/probe.c (grub_cmd_probe): Fix error message. | |
1072 | ||
33f784e8 SL |
1073 | 2011-11-10 Shea Levy <slevy@tieronedesign.com> |
1074 | ||
1075 | Allow all modules to perform serial IO | |
1076 | ||
1077 | * grub-core/term-serial.c (grub_serial_find): Remove static qualifier | |
1078 | * include/grub/serial.h (grub_serial_port_configure): New inline | |
1079 | function. | |
1080 | (grub_serial_port_fetch): Likewise. | |
1081 | (grub_serial_port_put): Likewise. | |
1082 | (grub_serial_port_fini): Likewise. | |
1083 | (grub_serial_find): New proto. | |
1084 | ||
f6276525 VS |
1085 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1086 | ||
1087 | Put symlink at the end of the node and fix a potential | |
1088 | memory corruption. | |
1089 | ||
1090 | * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink. | |
1091 | Make symlink into an array. | |
1092 | (set_rockridge): Set have_symlink and alloc_dirents. | |
1093 | (grub_iso9660_read_symlink): Use new layout. | |
1094 | (grub_iso9660_iterate_dir): Fix memory corruption. | |
1095 | Use new layout. | |
1096 | (grub_iso9660_dir): Set have_symlink. | |
1097 | (grub_iso9660_open): Likewise. | |
1098 | ||
c3591189 VS |
1099 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1100 | ||
1101 | Remove local keyword. | |
1102 | ||
1103 | * util/grub-mkconfig_lib.in (version_test_numeric): Remove local. | |
1104 | (version_test_gt): Likewise. | |
1105 | (version_find_latest): Likewise. | |
1106 | (gettext_printf): Likewise. | |
1107 | * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise. | |
1108 | ||
cb544caa VS |
1109 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1110 | ||
1111 | * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning. | |
1112 | ||
45bd824d VS |
1113 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1114 | ||
1115 | Fix ZFS memory and resource leaks. | |
1116 | ||
1117 | * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted. | |
1118 | All users updated. | |
1119 | Free type on exit. | |
1120 | (fill_vdev_info): New parameter inserted. All users updated. | |
1121 | (check_pool_label): Likewise. | |
1122 | (scan_disk): Likewise. | |
1123 | (scan_devices): Close non-inserted disks. | |
1124 | (fzap_iterate): Free l. | |
1125 | (unmount_device): Free children descripto memory. | |
1126 | ||
ad9a2f44 VS |
1127 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1128 | ||
1129 | * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat | |
1130 | argument (access out of bounds). | |
1131 | ||
6b68db81 VS |
1132 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1133 | ||
1134 | * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for | |
1135 | >= 6 drives. | |
1136 | ||
28840fda VS |
1137 | 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com> |
1138 | ||
1139 | * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge): | |
1140 | Fix declaration. | |
1141 | ||
8a5a3a5b VS |
1142 | 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
1143 | ||
1144 | Fix several memory leaks. | |
1145 | ||
1146 | * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak. | |
1147 | * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise. | |
1148 | (grub_cpio_dir): Likewise. | |
1149 | * grub-core/fs/fat.c (grub_fat_label): Likewise. | |
1150 | * grub-core/fs/jfs.c (grub_jfs_label): Likewise. | |
1151 | * grub-core/fs/romfs.c (grub_romfs_close): Likewise. | |
1152 | (grub_romfs_label): Likewise. | |
1153 | * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety. | |
1154 | (squash_unmount): New function. | |
1155 | (grub_squash_dir): Fix memory leak. | |
1156 | (grub_squash_open): Likewise. | |
1157 | (grub_squash_read): Likewise. | |
1158 | (grub_squash_mtime): Likewise. | |
1159 | * grub-core/fs/xfs.c (grub_xfs_open): Likewise. | |
1160 | * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise. | |
1161 | * util/grub-fstest.c (fstest): Likewise. | |
1162 | ||
57b01250 VS |
1163 | 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
1164 | ||
1165 | * include/grub/misc.h (grub_strncat): Fix the order of conditionals to | |
1166 | avoid accessing beyond the array. | |
1167 | ||
19e81ba7 VS |
1168 | 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
1169 | ||
1170 | * configure.ac: Add missing -mXX to TARGET_CPPFLAGS. | |
1171 | ||
52b656c0 VS |
1172 | 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
1173 | ||
1174 | Several AFFS fixes. | |
1175 | ||
1176 | * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version. | |
1177 | (GRUB_AFFS_FLAG_FFS): Removed. | |
1178 | (GRUB_AFFS_SYMLINK_SIZE): Likewise. | |
1179 | (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned. | |
1180 | (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up. | |
1181 | (grub_fshelp_node): Make block 32-bit. | |
1182 | Add block_cache and last_block_cache. | |
1183 | (grub_affs_read_block): Fill and use block cache. | |
1184 | (grub_affs_read_file): Removed. | |
1185 | (grub_affs_mount): Zero-fill node. Fix version check. Don't reread | |
1186 | boot block. | |
1187 | (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for | |
1188 | safety. | |
1189 | (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated | |
1190 | space. | |
1191 | (grub_affs_close): Free block cache. | |
1192 | (grub_affs_read): Use grub_fshelp_read_file directly. | |
1193 | ||
438a746a VS |
1194 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1195 | ||
1196 | * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed | |
1197 | with no error set. | |
1198 | ||
49a45021 VS |
1199 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1200 | ||
1201 | * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not | |
1202 | used variable. | |
1203 | * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size): | |
1204 | Likewise. | |
1205 | ||
3ae17eb8 VS |
1206 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1207 | ||
1208 | Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row. | |
1209 | ||
1210 | * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit | |
1211 | byteswap when needed. | |
1212 | ||
27610c38 VS |
1213 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1214 | ||
1215 | Fix FreeBSD compilation. | |
1216 | ||
1217 | * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way | |
1218 | to avoid circular dependency. | |
1219 | (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise. | |
1220 | * util/getroot.c (grub_util_follow_gpart_up): Move from here... | |
1221 | * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here. | |
1222 | ||
4a19b601 VS |
1223 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1224 | ||
1225 | Fix ZFS crypto error types. | |
1226 | ||
1227 | * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type. | |
1228 | (grub_gcm_decrypt): Likewise. | |
1229 | (grub_zfs_load_key_real): Fix error code type. Handle possible error | |
1230 | from PBKDF2. | |
1231 | ||
958ee221 VS |
1232 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1233 | ||
1234 | Illumos support. | |
1235 | ||
1236 | * Makefile.util.def (10_illumos): New script. | |
1237 | * configure.ac: Set COND_HOST_ILLUMOS. | |
1238 | * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]: | |
1239 | Support Illumos calls. | |
1240 | (find_partition_start) [__sun__]: Likewise. | |
1241 | (convert_system_partition_to_system_disk) [__sun__]: Likewise. | |
1242 | (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme. | |
1243 | (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos. | |
1244 | * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw | |
1245 | device. | |
1246 | * util/grub-probe.c (probe) [__sun__]: Do character check. | |
1247 | * util/grub.d/10_illumos.in: New file. | |
1248 | ||
cac14fb6 VS |
1249 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1250 | ||
1251 | Support escaped commas in hostdisk. | |
1252 | ||
1253 | * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function. | |
1254 | (find_grub_drive): Use unescape_cmp. | |
1255 | (make_device_name): Escape commas. | |
1256 | ||
78e08dc3 VS |
1257 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1258 | ||
1259 | * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath. | |
1260 | ||
9f421dd1 VS |
1261 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1262 | ||
1263 | * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used | |
1264 | variable. | |
1265 | ||
ed64e9e2 VS |
1266 | 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> |
1267 | ||
1268 | Support trampoline jumps on powerpc. | |
1269 | ||
1270 | * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow | |
1271 | __ia64__ path. | |
1272 | (grub_dl_load_segments): Set mod->sz. | |
1273 | (grub_dl_flush_cache): Flush whole space occupied by module, not just | |
1274 | segments. | |
1275 | * grub-core/kern/ia64/dl.c (nopm): Make const while on it. | |
1276 | (jump): Likewise. | |
1277 | * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New | |
1278 | function. | |
1279 | (trampoline): New struct. | |
1280 | (trampoline_template): New const. | |
1281 | (grub_arch_dl_relocate_symbols): Create trampolines on overflow. | |
1282 | * include/grub/dl.h (grub_dl): Add sz element. | |
1283 | [__powerpc__]: Follow __ia64__. | |
1284 | (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc. | |
1285 | (GRUB_ARCH_DL_GOT_ALIGN): Likewise. | |
1286 | (GRUB_ARCH_DL_TRAMP_SIZE): Likewise. | |
1287 | (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto. | |
1288 | ||
3084ede4 VS |
1289 | 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com> |
1290 | ||
1291 | ZFS crypto support. | |
1292 | ||
1293 | * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c. | |
1294 | * grub-core/Makefile.core.def (zfscrypt): New module. | |
1295 | * grub-core/fs/zfs/zfs.c (subvolume): New structure. | |
1296 | (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside | |
1297 | it. All users updated. | |
1298 | (grub_zfs_decrypt): New var. | |
1299 | (grub_zfs_load_key): Likewise. | |
1300 | (zio_checksum_functions): Add SHA256+MAC. | |
1301 | (zio_checksum_verify): Handle incomplete comparison due to MAC. | |
1302 | (zio_read): Handle encrypted blocks. | |
1303 | (zap_verify): Remove incorrect check. | |
1304 | (fzap_iterate): Handle non-standard fzap. | |
1305 | (zap_iterate): Likewise. | |
1306 | (zap_iterate_u64): New function. | |
1307 | (dnode_get_fullpath): Load keys. | |
1308 | * grub-core/fs/zfs/zfscrypt.c: New file. | |
1309 | * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed. | |
1310 | (grub_crypto_ecb_encrypt): Make input const. | |
1311 | * include/grub/crypto.h (grub_crypto_cipher_close): Inline. | |
1312 | (grub_crypto_ecb_encrypt): Make input const. | |
1313 | (GRUB_CIPHER_AES): New macro. | |
1314 | * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN. | |
1315 | * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain. | |
1316 | * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ... | |
1317 | * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_ | |
1318 | prefix. All users updated. | |
1319 | (grub_zfs_add_key): New proto. | |
1320 | (grub_zfs_decrypt): Likewise. | |
1321 | (grub_zfs_load_key): Likewise. | |
1322 | * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC. | |
1323 | * util/grub-fstest.c (options): Add -K option. | |
1324 | (argp_parser): Likewise. | |
1325 | ||
b632b404 VS |
1326 | 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com> |
1327 | ||
1328 | Support zle compression on ZFS. | |
1329 | ||
1330 | * grub-core/fs/zfs/zfs.c (zle_decompress): New function. | |
1331 | (decomp_table): Add zle. | |
1332 | * include/grub/zfs/zio.h (zio_compress): Add zle. | |
1333 | ||
c7ba4f69 VS |
1334 | 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com> |
1335 | ||
1336 | Support BtrFS embedding. | |
1337 | ||
1338 | * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function. | |
1339 | (grub_btrfs_fs) [GRUB_UTIL]: Set embed. | |
1340 | * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed. | |
1341 | * util/grub-setup.c (setup): Use fs embedding if available. | |
1342 | Add additional sanity check. | |
1343 | ||
455377d9 VS |
1344 | 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com> |
1345 | ||
1346 | * util/grub-install.in: Fix condition for config_opt. | |
1347 | ||
c2fd16ca VS |
1348 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1349 | ||
1350 | Support third redundancy strip on raidz3. | |
1351 | ||
1352 | * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case. | |
1353 | Return error on singularity. All users updated. | |
1354 | (read_device): Don't stop on 3rd failure on raidz3. | |
1355 | ||
8622923b VS |
1356 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1357 | ||
1358 | Support case-insensitive ZFS subvolumes. | |
1359 | ||
1360 | * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive. | |
1361 | All users updated. | |
1362 | (zap_hash): Likewise. | |
1363 | (name_cmp): New function. | |
1364 | (zap_leaf_array_equal): New parameter case_insensitive. | |
1365 | All users updated. | |
1366 | (zap_leaf_lookup): Likewise. | |
1367 | (fzap_lookup): Likewise. | |
1368 | (zap_lookup): Likewise. | |
1369 | (dnode_get_path): New parameter case_insensitive. Retrieve case | |
1370 | sensitiviness of a volume. All users updated. | |
1371 | (dnode_get_fullpath): New parameter case_insensitive. | |
1372 | All users updated. | |
1373 | (grub_zfs_dir): Set info.case_insensitiveness. | |
1374 | ||
95f2e860 VS |
1375 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1376 | ||
1377 | Support second redundancy strip on raidz(2,3). | |
1378 | ||
1379 | * grub-core/fs/zfs/zfs.c (powx): New array. | |
1380 | (powx_inv): Likewise. | |
1381 | (poly): New const. | |
1382 | (xor_out): New function. | |
1383 | (gf_mul): Likewise. | |
1384 | (recovery): Likewise. | |
1385 | (read_device): Use second redundancy strip. | |
1386 | ||
11ee4389 VS |
1387 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1388 | ||
1389 | Use a power of generator representation of GF(256) multiplication group | |
1390 | to save space time and complexity. | |
1391 | ||
1392 | * grub-core/disk/raid6_recover.c (raid6_table1): Removed. | |
1393 | (raid6_table2): Likewise. | |
1394 | (powx): New array. | |
1395 | (powx_inv): Likewise. | |
1396 | (poly): New const. | |
1397 | (grub_raid_block_mul): Replace with ... | |
1398 | (grub_raid_block_mulx): ...this. | |
1399 | (grub_raid6_init_table): Rewritten. | |
1400 | (grub_raid6_recover): Use power of generator representation. | |
1401 | ||
09e2763f VS |
1402 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1403 | ||
1404 | * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector | |
1405 | for the right device. | |
1406 | ||
8bec9a28 VS |
1407 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1408 | ||
1409 | * include/grub/kernel.h (grub_module_header): Make type into uint32 as | |
1410 | expected by grub-mkimage and it's more clear since there is no implicit | |
1411 | padding. | |
1412 | ||
dbd3a32e VS |
1413 | 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com> |
1414 | ||
1415 | * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole | |
1416 | disk. | |
1417 | * grub-core/disk/lvm.c (do_lvm_scan): Likewise. | |
1418 | ||
182c872a PMH |
1419 | 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org> |
1420 | ||
1421 | * util/grub-mkrescue.in: Fix handling xorriso option. | |
1422 | ||
1e51cabd VS |
1423 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> |
1424 | ||
1425 | * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is | |
1426 | NULL. | |
1427 | ||
9cc3581d | 1428 | 2011-11-03 crocket <crockabiscuit@gmail.com> |
1429 | ||
1430 | * util/grub.d/10_linux.in: Add Slackware initrd naming. | |
1431 | ||
158dc1ea VS |
1432 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> |
1433 | ||
1434 | XZ CRC64 and SHA256 support. | |
1435 | ||
1436 | * Makefile.util.def (libgrubmods): Add crc64.c. | |
1437 | * grub-core/Makefile.core.def (crc64): New module. | |
1438 | * grub-core/lib/crc64.c: New file. | |
1439 | * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash) | |
1440 | [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context. | |
1441 | Fix the type. | |
1442 | (MAX_HASH_SIZE): New define. | |
1443 | (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields. | |
1444 | (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes. | |
1445 | (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise. | |
1446 | (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise. | |
1447 | (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ... | |
1448 | (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this. | |
1449 | Handle non-crc32 hashes. | |
1450 | (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable. | |
1451 | (dec_stream_header): Handle non-crc32 hashes. | |
1452 | (dec_stream_footer): Likewise. | |
1453 | (dec_block_header): Likewise. | |
1454 | (dec_main): Likewise. | |
1455 | (xz_dec_init): Likewise. | |
1456 | (xz_dec_reset): Likewise. | |
1457 | (xz_dec_end): Likewise. | |
1458 | * util/import_gcry.py: Add CRC64 line. | |
1459 | ||
9d9b3d2f VS |
1460 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> |
1461 | ||
1462 | * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field | |
1463 | as well. | |
1464 | ||
7d0ac931 VS |
1465 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> |
1466 | ||
1467 | Make reiserfs label retrieval similar to other *_label functions. | |
1468 | ||
1469 | * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label. | |
1470 | (REISERFS_MAX_LABEL_LENGTH): Removed. | |
1471 | (REISERFS_LABEL_OFFSET): Likewise. | |
1472 | (grub_reiserfs_label): Rewritten. | |
1473 | ||
1474 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> | |
1475 | ||
1476 | * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock | |
1477 | field. | |
1478 | ||
cf5ba824 VS |
1479 | 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com> |
1480 | ||
1481 | * grub-core/fs/zfs/zfs.c (read_device): Support raidz3. | |
1482 | ||
17744004 VS |
1483 | 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com> |
1484 | ||
1485 | * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single | |
1486 | drive failure on both raidz and raidz2. | |
1487 | ||
aca5aefc VS |
1488 | 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com> |
1489 | ||
1490 | Fix RAIDZ(2) for >= 5 devices. | |
1491 | ||
1492 | * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove | |
1493 | asize argument. All users updated. | |
1494 | ||
ce8ca56e VS |
1495 | 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
1496 | ||
1497 | Fix RAIDZ(2). | |
1498 | ||
1499 | * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift. | |
1500 | (fill_vdev_info_real): Set ashift. | |
1501 | (read_device): Rewrite RAIDZ part based on reverse engineering. | |
1502 | ||
7c01e783 VS |
1503 | 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com> |
1504 | ||
1505 | * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and | |
1506 | don't report potentially unavialiable fields in debug output. | |
1507 | (find_path): Fix double-free and memory leak. | |
1508 | ||
ce109e84 VS |
1509 | 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com> |
1510 | ||
1511 | Read label on UFS1. | |
1512 | ||
1513 | * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition. | |
1514 | (grub_ufs_fs): Always set .label. | |
1515 | ||
87661123 VS |
1516 | 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com> |
1517 | ||
1518 | Use shifts in UFS. | |
1519 | ||
1520 | * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro. | |
1521 | (grub_ufs_data): New field log2_blksz. | |
1522 | (grub_ufs_read_file): Use shifts. | |
1523 | (grub_ufs_mount): Check block size and logarithm it. | |
1524 | ||
46bc1dc2 VS |
1525 | 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com> |
1526 | ||
1527 | * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of | |
1528 | long symlinks. | |
1529 | ||
19ee2987 VS |
1530 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1531 | ||
1532 | Handle symlinks and long names on tar and cpio. | |
1533 | ||
1534 | * grub-core/fs/cpio.c (ATTR_TYPE): New definition. | |
1535 | (ATTR_FILE): Likewise. | |
1536 | (ATTR_DIR): Likewise. | |
1537 | (ATTR_LNK): Likewise. | |
1538 | (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc. | |
1539 | (grub_cpio_find_file): Fill mode, handle linkname field as well as | |
1540 | L and K entries. | |
1541 | (grub_cpio_mount): Zero-fill data. | |
1542 | (handle_symlink): New function. | |
46bc1dc2 VS |
1543 | (grub_cpio_dir): Handle symlinks. |
1544 | (grub_cpio_open): Likewise. | |
1545 | (grub_cpio_close) [MODE_USTAR]: Free linkname. | |
19ee2987 | 1546 | |
c83a08d8 VS |
1547 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1548 | ||
1549 | Fix iso9660 filename limitations and fix memory leaks. | |
1550 | ||
1551 | * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end. | |
1552 | (grub_iso9660_iterate_dir): Fix slash handling in symlinks. | |
1553 | ||
45cdd3ea VS |
1554 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1555 | ||
1556 | Fix JFS file name length limitations. | |
1557 | ||
1558 | * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length. | |
1559 | (grub_jfs_diropen): Fix maximum filename length. | |
1560 | (grub_jfs_getent): Fix filename length. | |
1561 | (grub_jfs_lookup_symlink): Fix size checks. | |
1562 | ||
94ef05c2 VS |
1563 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1564 | ||
1565 | * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type | |
1566 | string. | |
1567 | ||
785ab8c7 VS |
1568 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1569 | ||
eb0b6b45 VS |
1570 | Leverage BFS implementation to read AFS. |
1571 | ||
1572 | * Makefile.util.def (libgrubmods): Add afs.c. | |
1573 | * grub-core/Makefile.core.def (afs): New module | |
1574 | * grub-core/fs/afs.c: New file. | |
1575 | * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS. | |
1576 | ||
1577 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> | |
1578 | ||
1579 | * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks. | |
785ab8c7 | 1580 | |
c4a1628f VS |
1581 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1582 | ||
1583 | * grub-core/fs/bfs.c: Run indent. | |
1584 | ||
5825b379 VS |
1585 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1586 | ||
1587 | BFS implementation based on the specification. | |
1588 | ||
1589 | * grub-core/fs/bfs.c: New file. | |
1590 | * Makefile.util.def (libgrubmods): Add bfs.c. | |
1591 | * grub-core/Makefile.core.def (bfs): New module. | |
1592 | ||
42b2a706 VS |
1593 | 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com> |
1594 | ||
1595 | * util/grub-fstest.c (cmd_cp): Clarify error message. | |
1596 | (cmd_cmp): Likewise. | |
1597 | ||
61b99bfc YB |
1598 | 2011-10-30 Yves Blusseau <blusseau@zetam.org> |
1599 | ||
1600 | * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs | |
1601 | and befs_be. | |
1602 | ||
faba3d16 VS |
1603 | 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com> |
1604 | ||
1605 | Remove afs and befs because of copyright problem. | |
1606 | ||
1607 | * grub-core/fs/afs.c: Removed. | |
1608 | * grub-core/fs/afs_be.c: Removed. | |
1609 | * grub-core/fs/befs.c: Removed. | |
1610 | * grub-core/fs/befs_be.c: Removed. | |
1611 | * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be. | |
1612 | * grub-core/Makefile.core.def (afs): Removed. | |
1613 | (afs_be): Likewise. | |
1614 | (befs): Likewise. | |
1615 | (befs_be): Likewise. | |
1616 | ||
c39224b0 VS |
1617 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1618 | ||
1619 | Prefer rockridge over Joliet. | |
1620 | ||
1621 | * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection | |
1622 | to ... | |
1623 | (set_rockridge): ... here. | |
1624 | (grub_iso9660_mount): Check rockridge on the primary label when | |
1625 | discovering. Ignore Joliet if Rockridge is present. | |
1626 | ||
e551115a VS |
1627 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1628 | ||
1629 | Use shifts in nilfs2. | |
1630 | ||
1631 | * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition. | |
1632 | (LOG_NILFS_DAT_ENTRY_SIZE): Likewise. | |
1633 | (grub_nilfs2_palloc_entries_per_group): Replace with ... | |
1634 | (grub_nilfs2_log_palloc_entries_per_group): ... this. | |
1635 | (grub_nilfs2_palloc_group): Use shifts and bitmasks. | |
1636 | (grub_nilfs2_entries_per_block): Replaced with ... | |
1637 | (grub_nilfs2_log_entries_per_block_log): ... this. | |
1638 | (grub_nilfs2_blocks_per_group): Replaced with ... | |
1639 | (grub_nilfs2_blocks_per_group_log): ... this. | |
1640 | (grub_nilfs2_blocks_per_desc_block): Replaced with ... | |
1641 | (grub_nilfs2_blocks_per_desc_block_log): ... this. | |
1642 | (grub_nilfs2_palloc_desc_block_offset): Replaced with ... | |
1643 | (grub_nilfs2_palloc_desc_block_offset_log): ... this. | |
1644 | (grub_nilfs2_palloc_entry_offset): Replaced ... | |
1645 | (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts. | |
1646 | (grub_nilfs2_dat_translate): Use shifts. | |
1647 | (grub_nilfs2_read_inode): Likewise. | |
1648 | (GRUB_MOD_INIT): Ensure that logs are correct. | |
1649 | ||
564dd58c VS |
1650 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1651 | ||
1652 | Use shifts in minix filesystem. | |
1653 | ||
1654 | * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size. | |
1655 | (GRUB_MINIX_ZONE2SECT): Likewise. | |
1656 | (grub_minix_data): Replace block_size with log_block_size. | |
1657 | (grub_minix_read_file): Use shifts. | |
1658 | (grub_minix_mount): Check block size and take a logarithm. | |
1659 | ||
ed9ba06d VS |
1660 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1661 | ||
1662 | Use shifts in squash4. | |
1663 | ||
1664 | * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz. | |
1665 | (squash_mount): Check block size and take logarithm. | |
1666 | (direct_read): Use shifts. | |
1667 | ||
ad03fe76 VS |
1668 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1669 | ||
1670 | Correct befs block counting logic. | |
1671 | ||
1672 | * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with... | |
1673 | (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this. | |
1674 | (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition. | |
1675 | (grub_afs_read_inode): Use block_shift. | |
1676 | (RANGE_SHIFT): New definition. | |
1677 | (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on | |
1678 | unexpected conditions, use shifts and appropriate types. | |
1679 | (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE. | |
1680 | ||
6563f63d VS |
1681 | 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com> |
1682 | ||
1683 | * grub-core/disk/raid.c (scan_devices): Check partition. | |
1684 | * grub-core/disk/lvm.c (do_lvm_scan): Likewise. | |
1685 | ||
5b1ae25f VS |
1686 | 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com> |
1687 | ||
1688 | Support BFS (befs) UUID. | |
1689 | ||
1690 | * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size. | |
1691 | (grub_afs_small_data_element_header): New struct. | |
1692 | (grub_afs_read_inode): Read complete inode. Fix ino type while on it. | |
1693 | (grub_afs_read_attribute) [MODE_BFS]: New function. | |
1694 | (grub_afs_iterate_dir): Allocate for complete inode. | |
1695 | (grub_afs_mount): Likewise. | |
1696 | (grub_afs_uuid) [MODE_BFS]: New function. | |
1697 | (grub_afs_fs) [MODE_BFS]: Add .uuid. | |
1698 | ||
f8d82408 VS |
1699 | 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com> |
1700 | ||
1701 | * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning. | |
1702 | (zfs_unmount): Fix memory leak. | |
1703 | ||
5773fb64 VS |
1704 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1705 | ||
1706 | Support NTFS reparse points. | |
1707 | ||
1708 | * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate. | |
1709 | (symlink_descriptor): New struct. | |
1710 | (grub_ntfs_read_symlink): New function. | |
1711 | (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink. | |
1712 | (grub_ntfs_open): Likewise. | |
1713 | ||
91c3fdde VS |
1714 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1715 | ||
1716 | * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated. | |
1717 | ||
3be82e10 VS |
1718 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1719 | ||
1720 | fstest xnu_uuid subcommand. | |
1721 | ||
1722 | * grub-core/commands/xnu_uuid.c (libgrubkrn): Add | |
1723 | grub-core/commands/xnu_uuid.c. | |
1724 | * util/grub-fstest.c (CMD_XNU_UUID): New enum value. | |
1725 | (fstest): Handle xnu_uuid. | |
1726 | (options): Document xnu_uuid. | |
1727 | (argp_parser): Parse xnu_uuid. | |
1728 | ||
8e32442e VS |
1729 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1730 | ||
1731 | * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support | |
1732 | -l argument. Add newline at the end if printing. | |
1733 | (GRUB_MOD_INIT): Document -l. | |
1734 | ||
52a05075 VS |
1735 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1736 | ||
1737 | * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length. | |
1738 | ||
1869edb5 VS |
1739 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1740 | ||
1741 | ZFS multi-device and version 33 support. | |
1742 | ||
1743 | * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c. | |
1744 | * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct. | |
1745 | (grub_zfs_data): Add multidev-ice-related fields. | |
1746 | (zio_checksum_verify): Zero-pad printed values. Print checksum name. | |
1747 | (dva_get_offset): Make dva const. | |
1748 | (zfs_fetch_nvlist): New function. | |
1749 | (fill_vdev_info_real): Likewise. | |
1750 | (fill_vdev_info): Likewise. | |
1751 | (check_pool_label): Likewise. | |
1752 | (scan_disk): Likewise. | |
1753 | (scan_devices): Likewise. | |
1754 | (read_device): Likewise. | |
1755 | (read_dva): Likewise. | |
1756 | (zio_read_gang): Use read_dva. | |
1757 | (zio_read_data): Likewise. | |
1758 | (zap_leaf_lookup): Add missing endian conversion. | |
1759 | (zap_verify): Add missing endian conversion. All users updated. | |
1760 | (fzap_lookup): Likewise. | |
1761 | (fzap_iterate): Likewise. | |
1762 | (dnode_get_path): Handle SA bonus. | |
1763 | (nvlist_find_value): Make input const. All users updated. | |
1764 | (unmount_device): New function. | |
1765 | (zfs_unmount): Use unmount_device. | |
1766 | (zfs_mount): Use scan_disk. | |
1767 | (zfs_mtime): New function. | |
1768 | (grub_zfs_open): Handle system attributes. | |
1769 | (fill_fs_info): Likewise. | |
1770 | (grub_zfs_dir): Likewise. | |
1771 | (grub_zfs_fs): Add mtime. | |
1772 | * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return. | |
1773 | * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition. | |
1774 | (SA_MTIME_OFFSET): Likewise. | |
1775 | (SA_SYMLINK_OFFSET): Likewise. | |
1776 | * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33. | |
1777 | * util/grub-fstest.c (CMD_ZFSINFO): New enum value. | |
1778 | (fstest): Support zfsinfo. | |
1779 | (argp_parser): Likewise. | |
1780 | ||
186b4028 VS |
1781 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
1782 | ||
1783 | * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one | |
1784 | error. | |
1785 | ||
1786 | 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com> | |
5587329c VS |
1787 | |
1788 | ZFS fixes. | |
1789 | ||
1790 | * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes | |
1791 | sharing the same block. Iterate over correct number of indices. | |
1792 | (dnode_get_path): Handle symlinks correctly. | |
1793 | ||
c0584900 VS |
1794 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1795 | ||
1796 | * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname. | |
1797 | ||
67e2bd71 VS |
1798 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1799 | ||
1800 | Read label on HFS+. | |
1801 | ||
1802 | * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function. | |
1803 | (grub_hfsplus_btree_search): Fix types. | |
1804 | (grub_hfsplus_label): Implement. | |
1805 | ||
e9cc6b7b VS |
1806 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1807 | ||
1808 | * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak. | |
1809 | ||
19832ddb VS |
1810 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1811 | ||
1812 | * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux. | |
1813 | ||
66b40850 VS |
1814 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1815 | ||
1816 | Fix symlink handling on iso9660. | |
1817 | ||
1818 | * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink | |
1819 | All users updated. | |
1820 | (grub_iso9660_susp_iterate): Accept zero-size iterate. | |
1821 | (grub_iso9660_read_symlink): Moved most of code ... | |
1822 | (grub_iso9660_iterate_dir): ... here. Fill node->symlink. | |
1823 | ||
db821363 VS |
1824 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1825 | ||
1826 | * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge): | |
1827 | Use union to avoid breaking strict-aliasing rules. | |
1828 | ||
e1211949 VS |
1829 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1830 | ||
1831 | Support multi-extent iso files. | |
1832 | ||
1833 | * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector. | |
1834 | Add node. | |
1835 | (grub_fshelp_node): Revamp. All users updated. | |
1836 | (FLAG_*): New enum. | |
1837 | (read_node): New function. | |
1838 | (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument. | |
1839 | All users updated. | |
1840 | (grub_iso9660_mount): Don't attempt to read sua when there is none. | |
1841 | (get_node_size): New function. | |
1842 | (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent | |
1843 | entries. | |
1844 | Fix memory leak on . and .. | |
1845 | (grub_iso9660_read): Use read_node. | |
1846 | (grub_iso9660_close): Free node. | |
1847 | ||
d4888031 VS |
1848 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1849 | ||
1850 | Fix tar 4G limit and handle paths containing dot. | |
1851 | ||
1852 | * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets. | |
1853 | (canonicalize): New function. | |
1854 | (grub_cpio_find_file): Use canonicalize. Store offs in | |
1855 | grub_disk_addr_t. | |
1856 | (grub_cpio_dir): Use grub_disk_addr_t. | |
1857 | (grub_cpio_open): Likewise. | |
1858 | ||
9f12e664 VS |
1859 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1860 | ||
1861 | Fix handling of uncompressed blocks on squashfs and break 4G limit. | |
1862 | ||
1863 | * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove | |
1864 | unused flags. | |
1865 | (grub_squash_inode): Add long_file and block_size. | |
1866 | (grub_squash_cache_inode): New struct. | |
1867 | (grub_squash_dirent): Make types into enum. | |
1868 | (SQUASH_TYPE_LONG_REGULAR): New type. | |
1869 | (grub_squash_frag_desc): Add field size. | |
1870 | (SQUASH_BLOCK_FLAGS): New enum. | |
1871 | (grub_squash_data): Use grub_squash_cache_inode. | |
1872 | (grub_fshelp_node): Make ino_chunk 64-bit. | |
1873 | (read_chunk): Minor argument change. All users updated. | |
1874 | (squash_mount): Use correct le_to_cpu. | |
1875 | (grub_squash_open): Handle LONG_REGULAR. | |
1876 | (direct_read): New function. | |
1877 | (grub_squash_read_data): Handle blocks correctly. | |
1878 | ||
9f326fba VS |
1879 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1880 | ||
1881 | * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak. | |
1882 | ||
f4d9b64b VS |
1883 | 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com> |
1884 | ||
1885 | * grub-core/fs/romfs.c (grub_romfs_open): Add missing return. | |
1886 | ||
5bbd28b8 VS |
1887 | 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com> |
1888 | ||
1889 | Fix 2G limit on ZFS. | |
1890 | ||
1891 | * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate | |
1892 | types. | |
1893 | (uberblock_verify): Likewise. | |
1894 | (dmu_read): Likewise. | |
1895 | (grub_zfs_read): Likewise. Remove invalid cast. | |
1896 | ||
68c72069 VS |
1897 | 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com> |
1898 | ||
1899 | * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types. | |
1900 | (grub_jfs_blkno): Fix incorrect shift. | |
1901 | (grub_jfs_read_file): Use more appropriate types. | |
1902 | ||
6e536dc8 VS |
1903 | 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com> |
1904 | ||
1905 | Support triple indirect on minix2 and minix3. | |
1906 | ||
1907 | * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]: | |
1908 | Declare triple_indir_zone. | |
1909 | (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple | |
1910 | indirect. | |
1911 | ||
e0864e7a VS |
1912 | 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com> |
1913 | ||
1914 | Minix FS fixes. | |
1915 | ||
1916 | * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit. | |
1917 | (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit. | |
1918 | Rename ctime to mtime. All users updated. | |
1919 | (grub_minix_get_file_block): Fix types and double indirect computations. | |
1920 | ||
89481cab VS |
1921 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1922 | ||
1923 | * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0 | |
1924 | if no label is found. | |
1925 | (grub_fat_iterate_dir): Fix file size type. | |
1926 | (grub_fat_iterate_dir): Likewise. | |
1927 | ||
f646e143 VS |
1928 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1929 | ||
1930 | * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and | |
1931 | save some space. | |
1932 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease. | |
1933 | (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise. | |
1934 | ||
534d769e VS |
1935 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1936 | ||
1937 | * util/import_gcry.py: Automatically fix camellia.c and camellia.h. | |
1938 | ||
e084ba18 VS |
1939 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1940 | ||
1941 | * util/import_gcry.py: Accept space between # and include. | |
1942 | ||
3471ecdf VS |
1943 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1944 | ||
1945 | * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S. | |
1946 | ||
124df5f6 VS |
1947 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1948 | ||
1949 | Fine grainely disable warnings on lexer. Remove Wno-error on it. | |
1950 | ||
1951 | * grub-core/Makefile.core.def (normal): Remove -Wno-error. | |
1952 | * grub-core/script/lexer.c: Declare yytext_ptr to avoid having | |
1953 | yylex_strncpy. | |
1954 | * grub-core/script/yylex.l: Add fine-grained #pragma. | |
1955 | ||
4defb8d5 VS |
1956 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1957 | ||
1958 | * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]: | |
1959 | New inline function. | |
1960 | * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]: | |
1961 | Likewise. | |
1962 | (memset) [GRUB_UTIL]: Likewise. | |
1963 | (memcmp) [GRUB_UTIL]: Likewise. | |
1964 | ||
4e94ae65 VS |
1965 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1966 | ||
1967 | * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static | |
1968 | inline function rather than a define. | |
1969 | ||
18c575e5 VS |
1970 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1971 | ||
1972 | * util/grub-setup.c: Add missing include. | |
1973 | ||
f8bc22a8 VS |
1974 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1975 | ||
1976 | * util/ieee1275/grub-ofpathname.c: Add missing include. | |
1977 | ||
3ce69fc9 VS |
1978 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1979 | ||
1980 | * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out. | |
1981 | * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start): | |
1982 | Likewise. | |
1983 | ||
d1e293bb VS |
1984 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1985 | ||
1986 | * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of | |
1987 | grub_memcmp usage. | |
1988 | ||
7a5c54a4 VS |
1989 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
1990 | ||
1991 | * util/grub-install.in: Add datarootdir as per automake manual | |
1992 | suggestion. | |
1993 | * util/grub-mknetdir.in: Likewise. | |
1994 | ||
1995 | 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> | |
7bec1053 VS |
1996 | |
1997 | * util/grub.d/10_hurd.in: Add datarootdir as per automake manual | |
1998 | suggestion. | |
1999 | * util/grub.d/10_kfreebsd.in: Likewise. | |
2000 | * util/grub.d/10_linux.in: Likewise. | |
2001 | * util/grub.d/10_netbsd.in: Likewise. | |
2002 | * util/grub.d/10_windows.in: Likewise. | |
2003 | * util/grub.d/20_linux_xen.in: Likewise. | |
2004 | ||
766f7d08 VS |
2005 | 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com> |
2006 | ||
2007 | Remove redundant grub_kernel_image_size. | |
2008 | ||
2009 | * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use | |
2010 | _edata and _start. | |
2011 | * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after | |
2012 | the small code. It moves it only by few bytes but simplifies the code. | |
2013 | * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and | |
2014 | _start. | |
2015 | * grub-core/kern/i386/pc/startup.S: Use _edata and _start. | |
2016 | (grub_kernel_image_size): Removed. | |
2017 | * grub-core/kern/i386/qemu/startup.S: Use _edata and _start. | |
2018 | (grub_kernel_image_size): Removed. | |
2019 | [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be | |
2020 | compiled with Apple toolchain. | |
2021 | * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields. | |
2022 | * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed. | |
2023 | * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed. | |
2024 | (grub_total_module_size): Likewise. | |
2025 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE): | |
2026 | Removed. | |
2027 | (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower. | |
2028 | (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise. | |
2029 | (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise. | |
2030 | (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise. | |
2031 | (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed. | |
2032 | (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise. | |
2033 | (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise. | |
2034 | * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size): | |
2035 | Removed. | |
2036 | (grub_total_module_size): Removed. | |
2037 | * util/grub-mkimage.c (image_target_desc): Remove image_size. | |
2038 | (image_targets): Likewise. | |
2039 | Set .compressed_size to no field on sparc. | |
2040 | (generate_image): Remove kernel_image_size handling. | |
2041 | ||
fcf1d672 SJ |
2042 | 2011-10-19 Szymon Janc <szymon@janc.net.pl> |
2043 | ||
2044 | * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible | |
2045 | NULL pointer dereference. | |
2046 | ||
de9c615e VS |
2047 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2048 | ||
2049 | Removed unused GRUB_BOOT_VERSION. Check for kernel version is better | |
2050 | done with a dedicated section. | |
2051 | ||
2052 | * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION. | |
2053 | Ensure the correct position of boot_path. | |
2054 | * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION. | |
2055 | * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of | |
2056 | other fields. | |
2057 | * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION. | |
2058 | * include/grub/boot.h: Removed. All references removed. | |
2059 | * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ): | |
2060 | Removed. | |
2061 | (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower. | |
2062 | ||
e55599dc VS |
2063 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2064 | ||
2065 | * util/grub-install.in: Declare IEEE1275 as able to find out the disk | |
2066 | name. | |
2067 | ||
36dd20ad VS |
2068 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2069 | ||
2070 | * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix. | |
2071 | ||
f8f72eb8 VS |
2072 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2073 | ||
2074 | * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
2075 | Don't add the bogus brackets. | |
2076 | ||
a374751b VS |
2077 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2078 | ||
2079 | ExFAT support. | |
2080 | ||
2081 | * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c. | |
2082 | * grub-core/Makefile.core.def (exfat): New module. | |
2083 | * grub-core/fs/exfat.c: New file. | |
2084 | * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed. | |
2085 | (GRUB_FAT_ATTR_*): Make into an enum. | |
2086 | (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed. | |
2087 | (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID. | |
2088 | (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed. | |
2089 | (GRUB_FAT_MAXFILE): Removed. | |
2090 | (grub_exfat_bpb) [MODE_EXFAT]: New struct. | |
2091 | (grub_current_fat_bpb_t): New type. | |
2092 | (grub_fat_dir_entry) [MODE_EXFAT]: New struct. | |
2093 | (grub_fat_dir_node) [MODE_EXFAT]: New struct. | |
2094 | (grub_fat_dir_node_t): New type. | |
2095 | (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors. | |
2096 | (fat_log2) [MODE_EXFAT]: Removed. | |
2097 | (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks. | |
2098 | (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT. | |
2099 | (grub_fat_iterate_dir) [MODE_EXFAT]: New function. | |
2100 | (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT. | |
2101 | (grub_fat_label) [MODE_EXFAT]: New function. | |
2102 | (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and | |
2103 | reserved_first_sector to 0. | |
2104 | ||
544c2487 VS |
2105 | 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com> |
2106 | ||
2107 | Move grub_reboot out of the kernel. | |
2108 | ||
2109 | * grub-core/Makefile.core.def (reboot): Add platform-specific files. | |
2110 | * grub-core/kern/efi/efi.c (grub_reboot): Moved to ... | |
2111 | * grub-core/lib/efi/reboot.c: ... here. | |
2112 | * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S. | |
2113 | * grub-core/kern/i386/ieee1275/startup.S: Likewise. | |
2114 | * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot. | |
2115 | * grub-core/kern/i386/realmode.S (grub_reboot): Moved to... | |
2116 | * grub-core/lib/i386/reboot_trampoline.S: ... here. | |
2117 | * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to... | |
2118 | * grub-core/lib/ieee1275/reboot.c: ... here. | |
2119 | * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to... | |
2120 | * grub-core/lib/mips/arc/reboot.c: ... here. | |
2121 | * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to... | |
2122 | * grub-core/lib/mips/loongson/reboot.c: ...here. | |
2123 | * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to... | |
2124 | * grub-core/lib/mips/qemu_mips/reboot.c: ... here. | |
2125 | * include/grub/emu/misc.h (grub_reboot): New function declaration. | |
2126 | * include/grub/i386/reboot.h: New file. | |
2127 | * include/grub/mips/loongson/ec.h: Fix includes. | |
2128 | * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed. | |
2129 | * include/grub/misc.h (grub_reboot): Don't mark as kernel function. | |
2130 | * grub-core/lib/i386/reboot.c: New file. | |
2131 | ||
a97501d2 VS |
2132 | 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com> |
2133 | ||
2134 | Make grub_prefix into module to fix the arbitrary limit and save | |
2135 | some space. | |
2136 | ||
2137 | * grub-core/kern/emu/main.c (grub_prefix): Removed. | |
2138 | * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise. | |
2139 | * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise. | |
2140 | * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise. | |
2141 | * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise. | |
2142 | * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise. | |
2143 | * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise. | |
2144 | * grub-core/kern/mips/startup.S (grub_prefix): Likewise. | |
2145 | * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise. | |
2146 | * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise. | |
2147 | * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise. | |
2148 | * include/grub/ia64/efi/kernel.h: Removed. | |
2149 | * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX. | |
2150 | (grub_prefix): Removed. | |
2151 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed. | |
2152 | (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise. | |
2153 | (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise. | |
2154 | (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise. | |
2155 | (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise. | |
2156 | (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise. | |
2157 | (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise. | |
2158 | (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise. | |
2159 | (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise. | |
2160 | (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise. | |
2161 | (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise. | |
2162 | (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise. | |
2163 | (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise. | |
2164 | (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise. | |
2165 | (GRUB_KERNEL_I386_EFI_PREFIX): Likewise. | |
2166 | (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise. | |
2167 | (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise. | |
2168 | (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise. | |
2169 | (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise. | |
2170 | (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise. | |
2171 | (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise. | |
2172 | (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise. | |
2173 | (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise. | |
2174 | (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise. | |
2175 | (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise. | |
2176 | (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise. | |
2177 | (GRUB_KERNEL_MACHINE_PREFIX): Likewise. | |
2178 | (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise. | |
2179 | * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix | |
2180 | from module. | |
2181 | * util/grub-mkimage.c (image_target_desc): Removed prefix and | |
2182 | prefix_end. | |
2183 | (image_targets): Likewise. | |
2184 | (generate_image): Put prefix as a module. | |
2185 | ||
39705fad VS |
2186 | 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
2187 | ||
2188 | Replace grub_module_iterate with FOR_MODULES. | |
2189 | ||
2190 | * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface. | |
2191 | * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to... | |
2192 | (grub_efi_modules_addr): ...this. | |
2193 | * grub-core/kern/efi/init.c (grub_modbase): New variable. | |
2194 | (grub_efi_init): Set grub_modbase. | |
2195 | * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed. | |
2196 | (grub_modbase): New variable. | |
2197 | * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed. | |
2198 | (grub_modbase): New variable. | |
2199 | (grub_machine_init): Set grub_modbase. | |
2200 | * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed. | |
2201 | (grub_modbase): New variable. | |
2202 | (grub_machine_init): Set grub_modbase. | |
2203 | * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed. | |
2204 | (grub_modbase): New variable. | |
2205 | (grub_machine_init): Set grub_modbase. | |
2206 | * grub-core/kern/main.c (grub_module_iterate): Remove. | |
2207 | (grub_modules_get_end): Use grub_modbase. | |
2208 | (grub_load_modules): Use FOR_MODULES. | |
2209 | (grub_load_config): Likewise. | |
2210 | * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed. | |
2211 | (grub_modbase): New variable. | |
2212 | (grub_machine_init): Set grub_modbase. | |
2213 | * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed. | |
2214 | (grub_modbase): New variable. | |
2215 | (grub_machine_init): Set grub_modbase. | |
2216 | * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): | |
2217 | Removed. | |
2218 | (grub_modbase): New variable. | |
2219 | (grub_machine_init): Set grub_modbase. | |
2220 | * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration. | |
2221 | * include/grub/kernel.h (grub_arch_modules_addr): Removed. | |
2222 | (grub_module_iterate): Likewise. | |
2223 | (grub_modbase): New variable declaration. | |
2224 | (FOR_MODULES): New macro. | |
2225 | ||
2afb7f6c VS |
2226 | 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
2227 | ||
2228 | * configure.ac: Check for __ctzdi2 and __ctzsi2. | |
2229 | * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present. | |
2230 | ||
366e34fa VS |
2231 | 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
2232 | ||
2233 | Fix few obvious type discrepancies. | |
2234 | ||
2235 | * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset. | |
2236 | * grub-core/fs/afs.c (grub_afs_read_file): Likewise. | |
2237 | * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover | |
2238 | variable. | |
2239 | * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset | |
2240 | and connected types. | |
2241 | * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for | |
2242 | offset. | |
2243 | (grub_nilfs2_iterate_dir): Use grub_off_t for fpos. | |
2244 | * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset. | |
2245 | * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset | |
2246 | and connected types. | |
2247 | ||
177b960e VS |
2248 | 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
2249 | ||
2250 | Fix python 3.x incompatibilities. | |
2251 | ||
2252 | * gentpl.py: Put brackets around print strings. | |
2253 | * util/import_gcry.py: Open explicitly as utf-8. | |
2254 | Use in instead of has_key. | |
2255 | ||
3b619ae1 VS |
2256 | 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
2257 | ||
2258 | * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset. | |
2259 | (GRUB_XFS_INO_AGBITS): Make into inline function. | |
2260 | (GRUB_XFS_INO_INOINAG): Likewise. | |
2261 | (GRUB_XFS_INO_AG): Likewise. | |
2262 | (GRUB_XFS_FSB_TO_BLOCK): Likewise. | |
2263 | (GRUB_XFS_EXTENT_OFFSET): Likewise. | |
2264 | (GRUB_XFS_EXTENT_BLOCK): Likewise. | |
2265 | (GRUB_XFS_EXTENT_SIZE): Likewise. | |
2266 | (GRUB_XFS_ROUND_TO_DIRENT): Likewise. | |
2267 | (GRUB_XFS_NEXT_DIRENT): Likewise. | |
2268 | (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP. | |
2269 | (grub_xfs_read_file): Fix offset type. | |
2270 | ||
8bcebcb8 RM |
2271 | 2011-10-15 Robert Millan <rmh@gnu.org> |
2272 | ||
2273 | * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs. | |
2274 | ||
0017e5ef RM |
2275 | 2011-10-15 Robert Millan <rmh@gnu.org> |
2276 | ||
2277 | Fix build problem on FreeBSD and GNU/kFreeBSD. | |
2278 | ||
2279 | * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'. | |
2280 | ||
d8919552 VS |
2281 | 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com> |
2282 | ||
2283 | Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested. | |
2284 | ||
2285 | * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate | |
2286 | types. | |
2287 | (grub_hfsplus_btree_recoffset): Likewise. | |
2288 | (grub_hfsplus_btree_recptr): Likewise. | |
2289 | (grub_hfsplus_find_block): Likewise. | |
2290 | (grub_hfsplus_btree_search): Likewise. | |
2291 | (grub_hfsplus_read_block): Likewise. | |
2292 | (grub_hfsplus_read_file): Likewise. | |
2293 | (grub_hfsplus_mount): Likewise. | |
2294 | (grub_hfsplus_btree_iterate_node): Likewise. | |
2295 | (grub_hfsplus_btree_search): Likewise. | |
2296 | (grub_hfsplus_iterate_dir): Likewise. | |
2297 | (grub_hfsplus_read): A small code simplification. | |
2298 | ||
c81296b6 VS |
2299 | 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com> |
2300 | ||
2301 | * grub-core/kern/emu/hostdisk.c | |
2302 | (convert_system_partition_to_system_disk): Don't assume that children | |
2303 | of mapper nodes are mapper nodes. | |
2304 | ||
0eb8ffb1 VS |
2305 | 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com> |
2306 | ||
2307 | * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit. | |
2308 | * include/grub/misc.h (grub_isxdigit): New function. | |
2309 | * grub-core/video/colors.c (my_isxdigit): Removed. All users | |
2310 | switched to grub_isxdigit. | |
2311 | * grub-core/term/serial.c (grub_serial_find): Fix in case of port | |
2312 | number starting with a letter. | |
2313 | ||
a98f4a08 RM |
2314 | 2011-10-09 Robert Millan <rmh@gnu.org> |
2315 | ||
2316 | LVM support for FreeBSD and GNU/kFreeBSD. | |
2317 | ||
2318 | * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and | |
2319 | GNU/kFreeBSD. | |
2320 | (LVM_DEV_MAPPER_STRING): Move from here ... | |
2321 | * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here. | |
2322 | * util/getroot.c: Include `<grub/util/lvm.h>'. | |
2323 | (grub_util_get_dev_abstraction): Enable | |
2324 | grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD. | |
2325 | Check for LVM abstraction on FreeBSD and GNU/kFreeBSD. | |
2326 | (grub_util_get_grub_dev): Replace "/dev/mapper/" with | |
2327 | `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that | |
2328 | support it. | |
2329 | * util/grub-setup.c (main): Check for LVM also on FreeBSD and | |
2330 | GNU/kFreeBSD. | |
2331 | * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module | |
2332 | when LVM abstraction is required for ${GRUB_DEVICE}. | |
2333 | ||
050e8e90 SJ |
2334 | 2011-10-06 Szymon Janc <szymon@janc.net.pl> |
2335 | ||
2336 | Add support for LZO compression in GRUB: | |
2337 | - import of minilzo library, | |
2338 | - LZO decompression for btrfs, | |
2339 | - lzop files decompression. | |
2340 | ||
2341 | * grub-core/io/lzopio.c: New file. | |
2342 | * grub-core/lib/adler32.c: Likewise. | |
2343 | * grub-core/lib/minilzo/lzoconf.h: Likewise. | |
2344 | * grub-core/lib/minilzo/lzodefs.h: Likewise. | |
2345 | * grub-core/lib/minilzo/minilzo.c: Likewise. | |
2346 | * grub-core/lib/minilzo/minilzo.h: Likewise. | |
2347 | * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c, | |
2348 | grub-core/lib/adler32.c, grub-core/io/lzopio.c, | |
2349 | grub-core/lib/minilzo/minilzo.c to common. | |
2350 | * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to | |
2351 | cflags in cppflags. | |
2352 | * grub-core/Makefile.core.def (btrfs): Likewise. | |
2353 | * grub-core/Makefile.core.def (lzopio): New module. | |
2354 | (adler32): Likewise. | |
2355 | * grub-core/fs/btrfs.c: Include minilzo.h. | |
2356 | (GRUB_BTRFS_COMPRESSION_LZO): New define. | |
2357 | (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise. | |
2358 | (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise. | |
2359 | (grub_btrfs_lzo_decompress): New function. | |
2360 | (grub_btrfs_extent_read): Add support for LZO compression type. | |
2361 | * include/grub/types.h (GRUB_UCHAR_MAX): New define. | |
2362 | (GRUB_USHRT_MAX): Likewise. | |
2363 | (GRUB_UINT_MAX): Likewise. | |
2364 | * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise. | |
2365 | (UINT_MAX): Likewise. | |
2366 | (CHAR_BIT): Likewise. | |
2367 | * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to | |
2368 | grub-core/lib/posix_wrap/limits.h | |
2369 | (UCHAR_MAX): Likewise. | |
2370 | * include/grub/file.h (grub_file_filter_id): New compression filter | |
2371 | GRUB_FILE_FILTER_LZOPIO. | |
2372 | * include/grub/file.h (grub_file_filter_id): Set | |
2373 | GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST. | |
2374 | * include/grub/types.h (grub_get_unaligned16): New function. | |
2375 | (grub_get_unaligned32): Likewise. | |
2376 | (grub_get_unaligned64): Likewise. | |
2377 | * util/import_gcry.py (cryptolist): Add adler32. | |
2378 | ||
0eb8ffb1 VS |
2379 | 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com> |
2380 | ||
2381 | * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This | |
2382 | in perspective decreases the complexity of build system and fixes | |
2383 | compilation right now. | |
2384 | ||
ce79cc99 | 2385 | 2011-10-01 Ales Nesrsta <starous@volny.cz> |
2386 | ||
2387 | * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks! | |
2388 | (fixed problem related to using UHCI with coreboot). | |
2389 | ||
8667a314 BC |
2390 | 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com> |
2391 | ||
2392 | * gentpl.py: Use Autogen macros so that the output template file | |
2393 | (Makefile.tpl) size is reduced. | |
2394 | ||
fc5efcc0 MK |
2395 | 2011-09-29 Mads Kiilerich <mads@kiilerich.com> |
2396 | ||
2397 | * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to | |
2398 | extra_dist. | |
2399 | ||
d1ab689d ML |
2400 | 2011-09-29 Mario Limonciello <mario_limonciello@dell.com> |
2401 | ||
2402 | * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing | |
2403 | slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls. | |
2404 | ||
c05de032 ML |
2405 | 2011-09-29 Mario Limonciello <mario_limonciello@dell.com> |
2406 | ||
2407 | * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use | |
2408 | _fullpath. | |
2409 | ||
cca7ccd8 ML |
2410 | 2011-09-29 Mario Limonciello <mario_limonciello@dell.com> |
2411 | ||
2412 | Remove extra declaration of sleep for mingw32. | |
2413 | ||
2414 | * util/misc.c (sleep) [__MINGW32__]: Removed. | |
2415 | * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise. | |
2416 | ||
e0b0dc83 GS |
2417 | 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com> |
2418 | ||
2419 | * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields | |
2420 | type and packname. | |
2421 | * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): | |
2422 | Resurrected. | |
2423 | (NETBSD_BTINFO_BOOTWEDGE): New definition. | |
2424 | (grub_netbsd_btinfo_bootwedge): New struct. | |
2425 | * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge): | |
2426 | New function. | |
2427 | (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge. | |
2428 | ||
91a1a164 TH |
2429 | 2011-09-28 Thomas Haller <thomas.haller@fen-net.de> |
2430 | ||
2431 | * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to | |
2432 | loader. | |
2433 | ||
2ded951e AB |
2434 | 2011-09-28 Andreas Born <futur.andy@googlemail.com> |
2435 | ||
2436 | Fix incorrect identifiers in bash-completion. | |
2437 | ||
2438 | * util/bash-completion.d/grub-completion.bash.in | |
2439 | (_grub_mkpasswd-pbkdf2): Rename to ... | |
2440 | (_grub_mkpasswd_pbkdf2): ... this. All users updated. | |
2441 | (_grub_script-check): Rename to ... | |
2442 | (_grub_script_check): ... this. All users updated. | |
2443 | ||
69915030 VS |
2444 | 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com> |
2445 | ||
2446 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): | |
2447 | Return 0 if disk isn't biosdisk. | |
2448 | ||
20fd15f9 GS |
2449 | 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com> |
2450 | ||
2451 | * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3) | |
2452 | on NetBSD. | |
2453 | * Makefile.util.def (grub-fstest): Likewise. | |
2454 | ||
1a7d7db9 GS |
2455 | 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com> |
2456 | ||
2457 | * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]: | |
2458 | Get sector size from disk label. | |
2459 | ||
2221ab6c CW |
2460 | 2011-09-05 Colin Watson <cjwatson@ubuntu.com> |
2461 | ||
2462 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for | |
2463 | */README* as well as README*. | |
2464 | Reported by: Axel Beckert. | |
2465 | ||
ca51c4a0 VS |
2466 | 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
2467 | ||
2468 | * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the | |
2469 | case of less than 256 MiB of RAM. | |
2470 | ||
ab80f326 VS |
2471 | 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
2472 | ||
2473 | * grub-core/commands/wildcard.c (make_regex): Handle @. | |
2474 | ||
4155e697 VS |
2475 | 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
2476 | ||
2477 | * util/grub-install.in: Move cryptodisk logic to appropriate place. | |
2478 | ||
ab178c08 SJ |
2479 | 2011-08-21 Szymon Janc <szymon@janc.net.pl> |
2480 | ||
2481 | * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for | |
2482 | AC_LANG_CONFTEST macros. | |
2483 | ||
7dc3c686 SJ |
2484 | 2011-08-20 Szymon Janc <szymon@janc.net.pl> |
2485 | ||
2486 | Add grub-fstest option to uncompress data for commands. | |
2487 | ||
2488 | * util/grub-fstest.c (uncompress): New var. | |
2489 | (options): New option -u. | |
2490 | ||
fe8d4a7b SJ |
2491 | 2011-08-20 Szymon Janc <szymon@janc.net.pl> |
2492 | ||
2493 | * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add | |
2494 | GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement. | |
2495 | ||
a5219af1 SJ |
2496 | 2011-08-20 Szymon Janc <szymon@janc.net.pl> |
2497 | ||
2498 | * grub-core/io/gzio.c (grub_gzio_open): Always return original io if | |
2499 | file type was not recognized correctly (not gzip or corrupted). | |
2500 | ||
f87abff5 VS |
2501 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2502 | ||
2503 | * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong. | |
2504 | * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition. | |
2505 | ||
d94497ea VS |
2506 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2507 | ||
2508 | * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on | |
2509 | loongson. | |
2510 | * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init | |
2511 | video_radeon_fuloong2e. | |
2512 | * grub-core/video/radeon_fuloong2e.c: New file. | |
2513 | * include/grub/video.h (grub_video_id_t): Add new ID | |
2514 | GRUB_VIDEO_DRIVER_RADEON_FULOONG2E. | |
2515 | ||
0d1fd011 VS |
2516 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2517 | ||
2518 | * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New | |
2519 | define. | |
2520 | * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check | |
2521 | that PRID matches the detected subplatform and reset the subplatform | |
2522 | if it doesn't. | |
2523 | ||
84beb0ee VS |
2524 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2525 | ||
2526 | * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure. | |
2527 | ||
1227c133 VS |
2528 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2529 | ||
2530 | Fix PCI iterating on functions >= 4. | |
2531 | ||
2532 | * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping. | |
2533 | * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION): | |
2534 | Removed. | |
2535 | (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise. | |
2536 | (grub_pci_read): Fix bitmask. | |
2537 | (grub_pci_read_word): Likewise. | |
2538 | (grub_pci_read_byte): Likewise. | |
2539 | (grub_pci_write): Likewise. | |
2540 | (grub_pci_write_word): Likewise. | |
2541 | (grub_pci_write_byte): Likewise. | |
2542 | ||
9594c689 VS |
2543 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2544 | ||
2545 | * configure.ac: Don't impose march=loongson2f on loongson platform. (It | |
2546 | can still be specified in TARGET_CFLAGS) | |
2547 | ||
14a2562c VS |
2548 | 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
2549 | ||
2550 | Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E. | |
2551 | ||
2552 | * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong | |
2553 | into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S. | |
2554 | * grub-core/boot/mips/loongson/fuloong.S: Rename to ... | |
2555 | * grub-core/boot/mips/loongson/fuloong2f.S: ... this. | |
2556 | (FULOONG): Rename to ... | |
2557 | (FULOONG2F): ... this. All users updated. | |
2558 | * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to | |
2559 | (machtype_fuloong2f_str): ... this. | |
2560 | (machtype_fuloong2e_str): New string. | |
2561 | Check for machtype_fuloong2e_str. | |
2562 | * grub-core/loader/mips/linux.c (loongson_machtypes) | |
2563 | [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E. | |
2564 | * grub-core/term/serial.c (loongson_defserial) | |
2565 | [GRUB_MACHINE_MIPS_LOONGSON]: New array. | |
2566 | (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use | |
2567 | loongson_defserial. | |
2568 | * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG): | |
2569 | Rename to ... | |
2570 | (GRUB_ARCH_MACHINE_FULOONG2F): ... this. | |
2571 | (GRUB_ARCH_MACHINE_FULOONG2E): New const. | |
2572 | * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH | |
2573 | to IMAGE_FULOONG2F_FLASH. All users updated. | |
2574 | (image_targets): Rename images. | |
2575 | * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e. | |
2576 | ||
b526cbb6 SJ |
2577 | 2011-08-19 Szymon Janc <szymon@janc.net.pl> |
2578 | ||
2579 | Make enable of disk cache statistics code configurable. | |
2580 | ||
2581 | * configure.ac: --enable-cache-stats added. | |
2582 | * config.h.in (DISK_CACHE_STATS): New define. | |
2583 | * grub-core/Makefile.core.def (cacheinfo): New command. | |
2584 | * include/grub/disk.h(grub_disk_cache_get_performance): New function. | |
2585 | * grub-core/commands/cacheinfo.c: New file. | |
2586 | * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and | |
2587 | moved to cacheinfo.c. | |
2588 | * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache | |
2589 | debug code. | |
2590 | * include/grub/disk.h: Likewise. | |
2591 | ||
fb739ccd SJ |
2592 | 2011-08-19 Szymon Janc <szymon@janc.net.pl> |
2593 | ||
2594 | * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag. | |
2595 | * grub-core/Makefile.am: Likewise. | |
2596 | ||
2bba8cfd VS |
2597 | 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com> |
2598 | ||
2599 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with | |
2600 | non-zero pull. | |
2601 | ||
43526629 VS |
2602 | 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com> |
2603 | ||
2604 | * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino. | |
2605 | All users updated. | |
2606 | (grub_jfs_lookup_symlink): Use correct starting inode. | |
2607 | ||
5c144cc8 VS |
2608 | 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com> |
2609 | ||
2610 | * util/grub-setup.c (main): Add missing gcry initialisation. | |
2611 | ||
b1257f65 VS |
2612 | 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com> |
2613 | ||
2614 | Don't accept text modes on EFI when booting Linux. | |
2615 | ||
2616 | * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define. | |
2617 | (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes. | |
2618 | ||
828bc390 ML |
2619 | 2011-08-15 Mario Limonciello <mario_limonciello@dell.com> |
2620 | 2011-08-15 Colin Watson <cjwatson@ubuntu.com> | |
2621 | ||
2622 | * util/grub-probe.c (probe): Canonicalise the path argument, fixing | |
2623 | use of "/path/.." as in grub-install for EFI as well as handling | |
2624 | symlinks correctly. | |
2625 | Fixes Debian bug #637768. | |
2626 | ||
5f60ccac CW |
2627 | 2011-08-15 Colin Watson <cjwatson@ubuntu.com> |
2628 | ||
2629 | * util/grub-probe.c: Remove duplicate #include. | |
2630 | ||
6dc212f9 RM |
2631 | 2011-08-10 Robert Millan <rmh@gnu.org> |
2632 | ||
2633 | Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD. | |
2634 | ||
2635 | * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New | |
2636 | function. | |
2637 | [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi | |
2638 | (/dev/mfid[0-9]+) devices using get_mfi_disk_name(). | |
2639 | ||
66816d85 RM |
2640 | 2011-08-03 Robert Millan <rmh@gnu.org> |
2641 | ||
2642 | * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark | |
2643 | la_array as packed. | |
2644 | Reported by: Zachary Bedell | |
2645 | ||
20168fca CW |
2646 | 2011-07-26 Colin Watson <cjwatson@ubuntu.com> |
2647 | ||
2648 | * configure.ac: The Loongson port requires grub-mkfont due to its | |
2649 | use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to | |
2650 | be built. | |
2651 | ||
303b6246 CW |
2652 | 2011-07-26 Colin Watson <cjwatson@ubuntu.com> |
2653 | ||
2654 | * util/grub-install.in: Don't source grub-mkconfig_lib until after | |
2655 | processing arguments (otherwise help2man fails when GRUB has not yet | |
2656 | been installed). | |
2657 | ||
6795300e VS |
2658 | 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
2659 | ||
41aa28ea VS |
2660 | New script grub-mkstandalone. |
2661 | ||
2662 | * Makefile.util.def (grub-mkstandalone): New script. | |
2663 | * docs/man/grub-mkstandalone.h2m: New file. | |
2664 | * util/grub-mkstandalone.in: Likewise. | |
2665 | ||
2666 | 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com> | |
2667 | ||
2668 | Support ATA disks with 4K sectors. | |
6795300e VS |
2669 | |
2670 | * include/grub/ata.h (grub_ata): New member log_sector_size. | |
2671 | * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size. | |
2672 | (grub_ata_identify): Read sector size. | |
2673 | (grub_ata_readwrite): Use log_sector_size rather than hardcoded value. | |
2674 | ||
92227597 VS |
2675 | 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
2676 | ||
2677 | * util/grub-install.in: Don't use uhci outside of x86. | |
2678 | ||
c77069f5 VS |
2679 | 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
2680 | ||
2681 | * util/grub-mkrescue.in: Add missing quotes. | |
2682 | ||
2683 | 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com> | |
b70e4cb0 VS |
2684 | |
2685 | * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL | |
2686 | dereference. | |
2687 | ||
583168a2 VS |
2688 | 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com> |
2689 | ||
2690 | * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait. | |
2691 | ||
6be1c01f VS |
2692 | 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com> |
2693 | ||
2694 | * include/grub/video.h: add missing EXPORT_FUND on | |
2695 | grub_video_edid_checksum and grub_video_edid_preferred_mode. | |
2696 | ||
a1167439 VS |
2697 | 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com> |
2698 | ||
2699 | * include/grub/mips/kernel.h: Fix define conflict. | |
2700 | ||
bf66054f VS |
2701 | 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com> |
2702 | ||
2703 | * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush | |
2704 | all four ways. | |
2705 | ||
8fc4fa45 CW |
2706 | 2011-07-21 Colin Watson <cjwatson@ubuntu.com> |
2707 | ||
2708 | Preferred resolution detection for VBE. | |
2709 | ||
2710 | * grub-core/video/video.c (grub_video_edid_checksum): New function. | |
2711 | (grub_video_edid_preferred_mode): Likewise. Try EDID followed by | |
2712 | the Flat Panel extension, in line with the X.org VESA driver. | |
2713 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info): | |
2714 | New function. | |
2715 | (grub_vbe_bios_get_ddc_capabilities): Likewise. | |
2716 | (grub_vbe_bios_read_edid): Likewise. | |
2717 | (grub_vbe_get_preferred_mode): Likewise. | |
2718 | (grub_video_vbe_setup): When the mode is "auto", try to get the | |
2719 | preferred mode from VBE, and use the largest mode that is no larger | |
2720 | than the preferred mode (some BIOSes expose a preferred mode that is | |
2721 | not in their mode list!). If this fails, fall back to 640x480 as a | |
2722 | safe conservative choice. | |
2723 | (grub_video_vbe_get_edid): New function. | |
2724 | (grub_video_vbe_adapter): Add get_edid. | |
2725 | * include/grub/video.h (struct grub_vbe_edid_info): New structure. | |
2726 | (struct grub_video_adapter): Add get_edid. | |
2727 | (grub_video_edid_checksum): Add prototype. | |
2728 | (grub_video_edid_preferred_mode): Likewise. | |
2729 | * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New | |
2730 | structure. | |
2731 | ||
2732 | * grub-core/commands/videoinfo.c (print_edid): New function. | |
2733 | (grub_cmd_videoinfo): Print EDID if available. | |
2734 | ||
2735 | * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This | |
2736 | is more appropriate on a wider range of platforms than 640x480. | |
2737 | * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE | |
2738 | documentation. | |
2739 | ||
ca5572a9 VS |
2740 | 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
2741 | ||
2742 | * util/grub-install.in: Recognize ESP mounted at /boot/EFI. | |
2743 | ||
e4bcf625 VS |
2744 | 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
2745 | ||
2746 | * po/POTFILES.in: Regenerate. | |
2747 | ||
c4edd548 VS |
2748 | 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
2749 | ||
2750 | * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix | |
2751 | incorrect memory usage. | |
2752 | ||
16a2bab0 VS |
2753 | 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
2754 | ||
2755 | * util/grub-install.in: Source grub-mkconfig_lib. | |
2756 | ||
2e418de6 VS |
2757 | 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com> |
2758 | ||
2759 | Remove getroot.c from core on emu platform. | |
2760 | ||
2761 | * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and | |
2762 | kern/emu/raid.c. | |
2763 | * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's | |
2764 | useless. | |
2765 | * grub-core/kern/emu/misc.c (get_win32_path): Moved from here... | |
2766 | * util/getroot.c (get_win32_path): ... here. | |
2767 | * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here... | |
2768 | * util/getroot.c (fini_libzfs): ... here. | |
2769 | * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here... | |
2770 | * util/getroot.c (grub_get_libzfs_handle): ... here. | |
2771 | * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): | |
2772 | Moved from here... | |
2773 | * util/getroot.c (grub_find_zpool_from_dir): ... here. | |
2774 | * grub-core/kern/emu/misc.c | |
2775 | (grub_make_system_path_relative_to_its_root): Moved from here... | |
2776 | * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here. | |
2777 | * grub-core/kern/emu/getroot.c: Moved from here ... | |
2778 | * util/getroot.c: ... here. All users updated. | |
2779 | * grub-core/kern/emu/raid.c: Moved from here ... | |
2780 | * util/raid.c: ... here. All users updated. | |
2781 | ||
def9832a VS |
2782 | 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com> |
2783 | ||
2784 | * po/POTFILES.in: Regenerate. | |
2785 | ||
cd8fe79a VS |
2786 | 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com> |
2787 | ||
2788 | Fix compilation on GNU/Linux. | |
2789 | ||
2790 | * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]: | |
2791 | Disable geli. | |
2792 | (grub_util_get_grub_dev) [!FreeBSD]: Likewise. | |
2793 | (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name. | |
2794 | * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto. | |
2795 | ||
a251b719 VS |
2796 | 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com> |
2797 | 2011-07-07 Michael Gorven <michael@gorven.za.net> | |
2798 | 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org> | |
2799 | ||
2800 | LUKS and GELI support. | |
2801 | ||
2802 | * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c, | |
2803 | grub-core/disk/luks.c, grub-core/disk/geli.c, | |
2804 | grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c, | |
2805 | grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c, | |
2806 | grub-core/lib/arg.c. | |
2807 | (libgrubmods.a): Remove gcrypts cflags and cppflags. | |
2808 | Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c, | |
2809 | grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c, | |
2810 | grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c. | |
2811 | (grub-bin2h): Add libgcry.a. | |
2812 | (grub-mkimage): Likewise. | |
2813 | (grub-mkrelpath): Likewise. | |
2814 | (grub-script-check): Likewise. | |
2815 | (grub-editenv): Likewise. | |
2816 | (grub-mkpasswd-pbkdf2): Likewise. | |
2817 | (grub-pe2elf): Likewise. | |
2818 | (grub-fstest): Likewise. | |
2819 | (grub-mkfont): Likewise. | |
2820 | (grub-mkdevicemap): Likewise. | |
2821 | (grub-probe): Likewise. | |
2822 | (grub-ofpath): Likewise. | |
2823 | (grub-mklayout): Likewise. | |
2824 | (example_unit_test): Likewise. | |
2825 | (grub-menulst2cfg): Likewise. | |
2826 | * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def. | |
2827 | * grub-core/Makefile.core.def (cryptodisk): New module. | |
2828 | (luks): Likewise. | |
2829 | (geli): Likewise. | |
2830 | * grub-core/disk/AFSplitter.c: New file. | |
2831 | * grub-core/disk/cryptodisk.c: Likewise. | |
2832 | * grub-core/disk/geli.c: Likewise. | |
2833 | * grub-core/disk/luks.c: Likewise. | |
2834 | * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on | |
2835 | grub_util_is_lvm. | |
2836 | (grub_util_get_dm_abstraction): New function. | |
2837 | (grub_util_follow_gpart_up): Likewise. | |
2838 | (grub_util_get_geom_abstraction): Likewise. | |
2839 | (grub_util_get_dev_abstraction): Use new functions. | |
2840 | (grub_util_pull_device): Pull GELI and LUKS. | |
2841 | (grub_util_get_grub_dev): Handle LUKS and GELI. | |
2842 | * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function. | |
2843 | (grub_util_biosdisk_open): Use grub_util_get_fd_sectors. | |
2844 | (follow_geom_up): Removed. | |
2845 | (grub_util_fd_seek): New function. | |
2846 | (open_device): Use grub_util_fd_seek. | |
2847 | (nread): Rename to .. | |
2848 | (grub_util_fd_read): ... this. All users updated. | |
2849 | * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype. | |
2850 | (grub_crypto_cbc_decrypt): Likewise. | |
2851 | (grub_crypto_hmac_write): Likewise. | |
2852 | (grub_crypto_hmac_buffer): Likewise. | |
2853 | (grub_password_get): Extend to util. | |
2854 | * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]: | |
2855 | New member modname. | |
2856 | (gcry_md_spec) [GRUB_UTIL]: Likewise. | |
2857 | * include/grub/cryptodisk.h: New file. | |
2858 | * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK. | |
2859 | * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add | |
2860 | LUKS and GELI. | |
2861 | (grub_util_follow_gpart_up): New proto. | |
2862 | * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise. | |
2863 | (grub_util_fd_read): Likewise. | |
2864 | (grub_cryptodisk_cheat_mount): Likewise. | |
2865 | (grub_util_cryptodisk_print_uuid): Likewise. | |
2866 | (grub_util_get_fd_sectors): Likewise. | |
2867 | * util/grub-fstest.c (mount_crypt): New var. | |
2868 | (fstest): Mount crypto if requested. | |
2869 | (options): New option -C. | |
2870 | (argp_parser): Parse -C. | |
2871 | (main): Init and fini gcry. | |
2872 | * util/grub-install.in: Support cryptodisk install. | |
2873 | * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK. | |
2874 | * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support | |
2875 | cryptodisk. | |
2876 | (prepare_grub_to_access_device): Likewise. | |
2877 | * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get. | |
2878 | * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe. | |
2879 | (probe_cryptodisk_uuid): New function. | |
2880 | (probe_abstraction): Likewise. | |
2881 | (probe): Use new functions. | |
2882 | * util/import_gcry.py: Create Makefile.utilgcry.def. | |
2883 | Add modname member. | |
2884 | ||
9bfdcbbc VS |
2885 | 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com> |
2886 | ||
2887 | Lazy device scanning. | |
2888 | ||
2889 | * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c. | |
2890 | (grub-setup): Remove util/raid.c. | |
2891 | * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu. | |
2892 | * grub-core/disk/lvm.c (scan_depth): New variable. | |
2893 | (grub_lvm_iterate): Rescan if necessary. | |
2894 | (find_lv): New function based on grub_lvm_open. | |
2895 | (grub_lvm_open): Use find_lv. Rescan on error. | |
2896 | (is_node_readable): New function. | |
2897 | (is_lv_readable): Likewise. | |
2898 | (grub_lvm_scan_device): Skip already found disks. | |
2899 | (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it. | |
2900 | Stop if searched device is found and readable. | |
2901 | * grub-core/disk/raid.c (inscnt): New variable. | |
2902 | (scan_depth): Likewise. | |
2903 | (scan_devices): New function based on grub_raid_register. Abort if | |
2904 | looked for device is found. | |
2905 | (grub_raid_iterate): Rescan if needed. | |
2906 | (find_array): NEw function based on -grub_raid_open. | |
2907 | (grub_raid_open): Use find_array and rescan. | |
2908 | (insert_array): Set became_readable_at. | |
2909 | * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull. | |
2910 | * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]: | |
2911 | New function. | |
2912 | (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm. | |
2913 | (grub_util_pull_device): New function. | |
2914 | (grub_util_get_grub_dev): Call grub_util_pull_device. | |
2915 | * util/raid.c: Moved to .. | |
2916 | * grub-core/kern/emu/raid.c: ... here. | |
2917 | (grub_util_raid_getmembers): New parameter "bootable". | |
2918 | All users updated. Support 1.x. | |
2919 | * include/grub/ata.h (grub_ata_dev): Change iterate prototype. | |
2920 | All users updated. | |
2921 | * include/grub/disk.h (grub_disk_pull_t): New enum. | |
2922 | (grub_disk_dev): Change iterate prototype. | |
2923 | All users updated. | |
2924 | * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]: | |
2925 | New proto. | |
2926 | * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise. | |
2927 | * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname. | |
2928 | * include/grub/raid.h (grub_raid_array): New member became_readable_at. | |
2929 | * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype. | |
2930 | All users updated. | |
2931 | * include/grub/util/raid.h: Removed. | |
2932 | ||
1c358e59 VS |
2933 | 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com> |
2934 | ||
2935 | * po/POTFILES.in: Regenerate. | |
2936 | ||
abee94ed VS |
2937 | 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com> |
2938 | ||
2939 | Unify sparc init with other ieee1275. | |
2940 | ||
2941 | * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c | |
2942 | instead of kern/sparc64/ieee1275/init.c. | |
2943 | * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options) | |
2944 | [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0. | |
2945 | * grub-core/kern/ieee1275/init.c [__sparc__]: Include | |
2946 | grub/machine/kernel.h. | |
2947 | (grub_ieee1275_original_stack) [__sparc__]: New variable. | |
2948 | (grub_claim_heap) [__sparc__]: Use sparc version. | |
2949 | (grub_machine_init): Moved args parsing to | |
2950 | (grub_parse_cmdline): ...this. | |
2951 | * grub-core/kern/sparc64/ieee1275/init.c: Removed. | |
2952 | * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP): | |
2953 | New definition. | |
2954 | (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise. | |
2955 | ||
2956 | Move BOOTP to separate file. | |
2957 | ||
2958 | * grub-core/Makefile.core.def (net): Add net/bootp.c. | |
2959 | * grub-core/net/net.c: Move all BOOTP functions to | |
2960 | * grub-core/net/bootp.c: ... here. | |
2961 | ||
2962 | Use frame interface on PXE. | |
2963 | ||
2964 | * grub-core/Makefile.core.def (pxecmd): Removed. | |
2965 | (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c. | |
2966 | * grub-core/commands/i386/pc/pxecmd.c: Removed. | |
2967 | * grub-core/i386/pc/pxe.c: Moved from here ... | |
2968 | * grub-core/net/i386/pc/pxe.c: ... here. Rewritten. | |
2969 | * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax. | |
2970 | * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed. | |
2971 | ||
2972 | EFI network support. | |
2973 | ||
2974 | * grub-core/Makefile.core.def (efinet): New module. | |
2975 | * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from | |
2976 | here... | |
2977 | * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here. | |
2978 | All users updated. | |
2979 | * grub-core/kern/efi/init.c (grub_efi_net_config): New variable. | |
2980 | (grub_machine_get_bootlocation): Call grub_efi_net_config if needed. | |
2981 | * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function. | |
2982 | * grub-core/net/drivers/efi/efinet.c: New file. | |
2983 | * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto. | |
2984 | (grub_efi_net_config): New extern var. | |
2985 | ||
2986 | Various cleanups and bugfixes. | |
2987 | ||
2988 | * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one | |
2989 | error. | |
2990 | (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole | |
2991 | disk declared as partition. | |
2992 | * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory | |
2993 | leak on failure. | |
2994 | * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak. | |
2995 | * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx. | |
2996 | (grub_debug_zalloc): Likewise. | |
2997 | (grub_debug_realloc): Likewise. | |
2998 | (grub_debug_memalign): Likewise. | |
2999 | * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide. | |
3000 | Check that target is IPv4. | |
3001 | * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use | |
3002 | local-mac-address as fallback. | |
3003 | * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent | |
3004 | memory leak. | |
3005 | * grub-core/net/ip.c (ipchksum): Rename to ... | |
3006 | (grub_net_ip_chksum): ... this. All users updated. | |
3007 | (grub_net_recv_ip_packets): Special handling for DHCP. | |
3008 | * util/grub-mkimage.c (generate_image): Zero-out aout header. | |
3009 | ||
3010 | Unify prefix handling | |
3011 | ||
3012 | * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ... | |
3013 | (grub_machine_get_bootlocation): ... this. | |
3014 | * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ... | |
3015 | (grub_machine_get_bootlocation): ... this. | |
3016 | (grub_prefix): New variable. | |
3017 | (prefix): Removed. | |
3018 | (root_dev): New variable. | |
3019 | (dir): Likewise. | |
3020 | (main): Use new variables. | |
3021 | * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix): | |
3022 | Revamped into ... | |
3023 | (grub_machine_get_bootlocation): ... this. | |
3024 | * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed. | |
3025 | * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ... | |
3026 | (grub_machine_get_bootlocation): ... this. | |
3027 | (grub_machine_set_prefix): Removed. | |
3028 | * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed. | |
3029 | * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): | |
3030 | Revamped into ... | |
3031 | (grub_machine_get_bootlocation): ... this. | |
3032 | * grub-core/kern/main.c (grub_set_root_dev): Revamped into ... | |
3033 | (grub_set_prefix_and_root): ... this. All users updated. | |
3034 | * grub-core/kern/mips/init.c (grub_machine_set_prefix): | |
3035 | Revamped into ... | |
3036 | (grub_machine_get_bootlocation): ... this. | |
3037 | * include/grub/kernel.h (grub_machine_set_prefix): Removed. | |
3038 | (grub_machine_get_bootlocation): New proto. | |
3039 | * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var. | |
3040 | ||
3041 | Less intrusive and more reliable seek on network implementation. | |
3042 | ||
3043 | * grub-core/kern/file.c (grub_file_net_seek): Removed. | |
3044 | (grub_file_seek): Don't call grub_file_net_seek. | |
3045 | * grub-core/net/net.c (grub_net_fs_read): Renamed to ... | |
3046 | (grub_net_fs_read_real): .. this. | |
3047 | (grub_net_seek_real): Use net->offset. | |
3048 | (grub_net_fs_read): Seek if necessary. | |
3049 | ||
3050 | Unify IEEE1275 netwotk config with the other platforms. | |
3051 | ||
3052 | * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config): | |
3053 | New variable. | |
3054 | (grub_machine_get_bootlocation): Support network. | |
3055 | * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): | |
3056 | Support type and device parsing. | |
3057 | (grub_ieee1275_get_device_type): New function. | |
3058 | * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped | |
3059 | into ... | |
3060 | (grub_ieee1275_net_config_real): ... this. | |
3061 | (grub_ofnet_probecards): Removed. | |
3062 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h. | |
3063 | * include/grub/ieee1275/ofnet.h: Removed. | |
3064 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw | |
3065 | extern var. | |
3066 | (grub_ieee1275_get_device_type): New function. | |
3067 | ||
3068 | Unify network device closing across platforms and make more robust. | |
3069 | ||
3070 | * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call | |
3071 | grub_grubnet_fini. | |
3072 | * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't | |
3073 | already. | |
3074 | * grub-core/net/net.c (grub_net_network_level_interface_register): | |
3075 | Update num_ifaces. | |
3076 | (grub_net_card_unregister): Close all interfaces. | |
3077 | (receive_packets): Don't poll if no iterfaces are registered. | |
3078 | Open if necessary. | |
3079 | (grub_net_fini_hw): New function. | |
3080 | (grub_net_restore_hw): Likewise. | |
3081 | (fini_hnd): New variable. | |
3082 | (GRUB_MOD_INIT): Register preboot hook. | |
3083 | (GRUB_MOD_FINI): Run and unregister preboot hook. | |
3084 | ||
3085 | Poll network cards when idle. | |
3086 | ||
3087 | * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable. | |
3088 | (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL. | |
3089 | * grub-core/net/net.c (receive_packets): Save last poll time. | |
3090 | (grub_net_poll_cards_idle_real): New function. | |
3091 | (GRUB_MOD_INIT): Register grub_net_poll_cards_idle. | |
3092 | (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle. | |
3093 | * include/grub/kernel.h (grub_poll_cards_idle): New extern variable. | |
3094 | ||
3095 | Rename ofnet interfaces. | |
3096 | ||
3097 | * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function. | |
3098 | (grub_ofnet_findcards): Use ofnet_%s names. | |
3099 | ||
3100 | * util/grub-mknetdir.in: Support for EFI and IEEE1275. | |
3101 | ||
3102 | Cleanup socket opening. | |
3103 | ||
3104 | * grub-core/net/net.c (grub_net_fs_open): Rewritten. | |
3105 | (grub_net_fs_close): Likewise. | |
3106 | (grub_net_fs_read_real): Use eof member. | |
3107 | * include/grub/net/udp.h (+grub_net_udp_open): New proto. | |
3108 | (+grub_net_udp_close): New inline function. | |
3109 | ||
3110 | * include/grub/net/tftp.h: Moved to the top of ... | |
3111 | * grub-core/net/tftp.c: ... here. | |
3112 | * include/grub/net/ip.h: Moved mostly to the top of ... | |
3113 | * grub-core/net/ip.c: ... here. | |
3114 | * include/grub/net/ethernet.h: Moved mostly to the top of ... | |
3115 | * grub-core/net/ethernet.c: ... here. | |
3116 | ||
3117 | * grub-core/kern/device.c (grub_device_close): Free device->net->server. | |
3118 | ||
3119 | * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for | |
3120 | FS name. | |
3121 | ||
3122 | * include/grub/net/ip.h (ipv4_ini): Removed. | |
3123 | (ipv4_fini): Likewise. | |
3124 | ||
3125 | * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto. | |
3126 | (grub_net_send_ip_packets): Likewise. | |
3127 | ||
cf1337aa VS |
3128 | 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com> |
3129 | ||
3130 | * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new | |
3131 | grub_read_cmos prototype. | |
3132 | ||
93c06ff9 VS |
3133 | 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com> |
3134 | ||
3135 | VGA text support in qemu-mips | |
3136 | ||
3137 | * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c, | |
3138 | term/i386/vga_common.c and kern/vga_init.c on qemu-mips. | |
3139 | * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga | |
3140 | text. | |
3141 | * grub-core/kern/i386/qemu/init.c: Renamed to ... | |
3142 | * grub-core/kern/vga_init.c: ... this. | |
3143 | * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust. | |
3144 | (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base. | |
3145 | * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]: | |
3146 | Adjust. | |
3147 | * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare | |
3148 | GRUB_MACHINE_PCI_IO_BASE. | |
3149 | ||
748ccabe VS |
3150 | 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com> |
3151 | ||
3152 | MIPS qemu flash support. | |
3153 | ||
3154 | * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check | |
3155 | magic. | |
3156 | * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function. | |
3157 | (grub_machine_init): Probe memory if its size isn't known. | |
3158 | * util/grub-mkimage.c (image_targets): Add flash targets. | |
3159 | (generate_image): Handle flash targets. | |
3160 | ||
d7345994 VS |
3161 | 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com> |
3162 | ||
3163 | MIPS qemu at_keyboard support. | |
3164 | ||
3165 | * gentpl.py (videoinkernel): Add qemu-mips. | |
3166 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers. | |
3167 | * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout. | |
3168 | * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new | |
3169 | modules. | |
3170 | * grub-core/term/at_keyboard.c (grub_keyboard_controller_init) | |
3171 | [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set. | |
3172 | * grub-core/term/serial.c (grub_serial_register) | |
3173 | [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active. | |
3174 | ||
a07a81b3 VS |
3175 | 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com> |
3176 | ||
3177 | CMOS support on sparc. | |
3178 | ||
3179 | * gentpl.py (cmos): Add powerpc and sparc. | |
3180 | * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on | |
3181 | powerpc and sparc. | |
3182 | * grub-core/lib/cmos_datetime.c (grub_get_datetime) | |
3183 | [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos. | |
3184 | (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to | |
3185 | grub_set_datetime_cmos. | |
3186 | * grub-core/lib/ieee1275/cmos.c: New file. | |
3187 | * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable. | |
3188 | (find_rtc): Set no_ieee1275_rtc on error. | |
3189 | (grub_get_datetime): Call grub_get_datetime_cmos on error. | |
3190 | (grub_set_datetime): Call grub_set_datetime_cmos on error. | |
3191 | * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may | |
3192 | fail. Move value to argument. All users updated | |
3193 | (grub_cmos_write): Likewise. | |
3194 | (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten. | |
3195 | (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise. | |
3196 | * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare | |
3197 | grub_get_datetime_cmos and grub_set_datetime_cmos. | |
3198 | ||
77546584 GS |
3199 | 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com> |
3200 | ||
3201 | * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when | |
3202 | sourcing grub-mkconfig_lib. | |
3203 | * util/update-grub_lib.in: Likewise. | |
3204 | * util/grub.d/00_header.in: Likewise. | |
3205 | * util/grub.d/10_hurd.in: Likewise. | |
3206 | * util/grub.d/10_kfreebsd.in: Likewise. | |
3207 | * util/grub.d/10_linux.in: Likewise. | |
3208 | * util/grub.d/10_netbsd.in: Likewise. | |
3209 | * util/grub.d/10_windows.in: Likewise. | |
3210 | * util/grub.d/20_linux_xen.in: Likewise. | |
3211 | * util/grub.d/30_os-prober.in: Likewise. | |
3212 | ||
54894791 CW |
3213 | 2011-06-28 Colin Watson <cjwatson@ubuntu.com> |
3214 | ||
3215 | * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use | |
3216 | default_bg_color rather than black. | |
3217 | (grub_gfxterm_fullscreen): Likewise. | |
3218 | (grub_gfxterm_background_color_cmd): Save new background color in | |
3219 | default_bg_color. | |
3220 | ||
8d5d8444 VS |
3221 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3222 | ||
3223 | * grub-core/Makefile.core.def (chain): Fix coreboot filename. | |
3224 | ||
5afeb5bd VS |
3225 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3226 | ||
3227 | * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a | |
3228 | mismerge. | |
3229 | ||
ba7df45e VS |
3230 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3231 | ||
3232 | Chainloading on coreboot support. | |
3233 | ||
3234 | * grub-core/Makefile.core.def (chain): Add coreboot. | |
3235 | * grub-core/loader/i386/coreboot/chainloader.c: New file. | |
3236 | ||
d0b526b2 VS |
3237 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3238 | ||
3239 | * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure | |
3240 | if it happens. | |
3241 | ||
5ff1d945 VS |
3242 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3243 | ||
3244 | Implement time command. | |
3245 | ||
3246 | * grub-core/Makefile.core.def (time): New module. | |
3247 | * grub-core/commands/time.c: New file. | |
3248 | * grub-core/script/parser.y: Remove "time" keyword. | |
3249 | * grub-core/script/yylex.l: Likewise. | |
3250 | ||
5ebaad7e VS |
3251 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3252 | ||
3253 | * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export. | |
3254 | ||
bdea3798 VS |
3255 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3256 | ||
3257 | * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption | |
3258 | when handling leftovers. | |
3259 | ||
b28c5655 VS |
3260 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3261 | ||
3262 | * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version | |
3263 | so that help2man doesn't fail. | |
3264 | ||
b6f945dc VS |
3265 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3266 | ||
3267 | * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right | |
3268 | type in pointers on sparc64. | |
3269 | (get_card_packet): Likewise. | |
3270 | ||
f9b75e8a CW |
3271 | 2011-06-27 Colin Watson <cjwatson@ubuntu.com> |
3272 | ||
3273 | * grub-core/commands/videoinfo.c (hook): Indicate current video mode | |
3274 | with `*'. | |
3275 | (grub_cmd_videoinfo): Fetch current video mode. | |
3276 | ||
1e3d9b86 VS |
3277 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3278 | ||
3279 | * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K | |
3280 | because of underlying system restrictions. | |
3281 | ||
efff4b1c VS |
3282 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3283 | ||
3284 | * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when | |
3285 | necessary. | |
3286 | ||
9fc9ce37 VS |
3287 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3288 | ||
3289 | Coreboot video support. | |
3290 | ||
3291 | * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot. | |
3292 | (vbe): Likewise. | |
3293 | * grub-core/kern/i386/coreboot/startup.S: Include int.S. | |
3294 | * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from | |
3295 | here ... | |
3296 | * grub-core/kern/i386/int.S: ... here. | |
3297 | * grub-core/video/i386/pc/vbe.c: Updated includes. | |
3298 | * grub-core/video/i386/pc/vga.c: Likewise. | |
3299 | * include/grub/i386/coreboot/memory.h | |
3300 | (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition. | |
3301 | (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise. | |
3302 | (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise. | |
3303 | * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]: | |
3304 | Disable interrupts. | |
3305 | * include/grub/i386/pc/vga.h: Removed. All users updated. | |
3306 | ||
41bec7fe VS |
3307 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3308 | ||
3309 | * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper | |
3310 | definitions for dprintf. | |
3311 | * grub-core/disk/pata.c (grub_pata_readwrite): Likewise. | |
3312 | ||
ca80309d VS |
3313 | 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com> |
3314 | ||
3315 | * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix | |
3316 | prototype. | |
3317 | (get_card_packet): Likewise. | |
3318 | ||
9e322ce8 YB |
3319 | 2011-06-26 Yves Blusseau <blusseau@zetam.org> |
3320 | ||
3321 | Display the path of the file when file is not found | |
3322 | ||
3323 | * grub-core/fs/fat.c: Display the filename when file is not found. | |
3324 | * grub-core/fs/fshelp.c: Likewise. | |
3325 | * grub-core/fs/hfs.c: Likewise. | |
3326 | * grub-core/fs/jfs.c: Likewise. | |
3327 | * grub-core/fs/minix.c: Likewise. | |
3328 | * grub-core/fs/ufs.c: Likewise. | |
3329 | * grub-core/fs/btrfs.c: Likewise. | |
3330 | * grub-core/commands/i386/pc/play.c: Likewise. | |
3331 | ||
cbf597af SJ |
3332 | 2011-06-26 Szymon Janc <szymon@janc.net.pl> |
3333 | ||
3334 | * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL | |
3335 | pointer checks before calling grub_free(). | |
3336 | * grub-core/commands/wildcard.c (match_devices): Likewise. | |
3337 | * grub-core/commands/wildcard.c (match_files): Likewise. | |
3338 | * grub-core/fs/cpio.c (grub_cpio_dir): Likewise. | |
3339 | * grub-core/fs/cpio.c (grub_cpio_open): Likewise. | |
3340 | * grub-core/fs/udf.c (grub_udf_read_block): Likewise. | |
3341 | * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise. | |
3342 | * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise. | |
3343 | * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise. | |
3344 | * grub-core/script/yylex.l (grub_lexer_unput): Likewise. | |
3345 | * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise. | |
3346 | * grub-core/video/readers/png.c (grub_png_output_byte): Likewise. | |
3347 | ||
6295b32f P |
3348 | 2011-06-25 Patrick <p55@mailinator.com> |
3349 | ||
3350 | * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment. | |
3351 | ||
77c0840b VS |
3352 | 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com> |
3353 | ||
3354 | * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration. | |
3355 | (grub_pxe_send): Likewise. | |
3356 | (GRUB_MOD_INIT): Fix types. | |
3357 | ||
40ea05de SJ |
3358 | 2011-06-24 Szymon Janc <szymon@janc.net.pl> |
3359 | ||
3360 | * grub-core/io/xzio.c: Fix code style issues | |
3361 | ||
90162423 MRA |
3362 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3363 | 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com> | |
423a1849 MRA |
3364 | |
3365 | Network infrastructure. | |
3366 | The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com> | |
3367 | ||
3368 | * include/grub/net/arp.h: New file. | |
90162423 MRA |
3369 | * include/grub/net/device.h: Likewise. |
3370 | * include/grub/net/ethernet.h: Likewise. | |
3371 | * include/grub/net/ip.h: Likewise. | |
3372 | * include/grub/net/netbuff.h: Likewise. | |
3373 | * include/grub/net/tftp.h: Likewise. | |
3374 | * include/grub/net/udp.h: Likewise. | |
3375 | * include/grub/ieee1275/ofnet.h: Likewise. | |
3376 | * include/grub/emu/export.h: Likewise. | |
3377 | * include/grub/net.h: Likewise. | |
3378 | * grub-core/net/arp.c: Likewise. | |
3379 | * grub-core/net/ethernet.c: Likewise. | |
3380 | * grub-core/net/ip.c: Likewise. | |
3381 | * grub-core/net/udp.c: Likewise. | |
3382 | * grub-core/net/tftp.c: Likewise. | |
3383 | * grub-core/net/netbuff.c: Likewise. | |
3384 | * grub-core/net/net.c: Likewise. | |
3385 | * grub-core/net/drivers/emu/emunet.c: Likewise. | |
3386 | * grub-core/net/drivers/ieee1275/ofnet.c: Likewise. | |
3387 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and | |
3388 | export.h. | |
3389 | * grub-core/Makefile.core.def (net): New module. | |
3390 | (tftp): Likewise. | |
3391 | (ofnet): Likewise. | |
3392 | (emunet): Likewise. | |
3393 | * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List | |
3394 | network protocols. | |
3395 | * grub-core/kern/device.c (grub_net_open) : New variable. | |
3396 | (grub_device_open): Handle network device. | |
3397 | (grub_device_close): Likewise. | |
3398 | * grub-core/kern/file.c (grub_file_net_seek) : New variable. | |
3399 | (grub_grubnet_fini): Likewise. | |
3400 | (grub_file_seek): Seek in network device. | |
3401 | * grub-core/kern/fs.c (grub_fs_probe): Handle network devices. | |
3402 | * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle | |
3403 | network root. | |
3404 | (grub_machine_fini): Call grub_grubnet_fini. | |
3405 | * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle | |
3406 | network. | |
3407 | (grub_ieee1275_get_aliasdevname): New function. | |
3408 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size): | |
3409 | Add unofficial Solaris network info. | |
3410 | (grub_multiboot_make_mbi): Likewise. | |
3411 | * grub-core/fs/i386/pc/pxe.c: Moved from here ... | |
3412 | * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design. | |
3413 | * include/grub/device.h (grub_fs): Removed. | |
3414 | * include/grub/err.h (grub_err_t): Add network-related values. | |
3415 | * include/grub/i386/pc/pxe.h: Removed bootp parts. | |
3416 | * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct. | |
3417 | (grub_ieee1275_get_aliasdevname): New proto. | |
3418 | * include/grub/net.h: Rewritten. | |
423a1849 | 3419 | |
031f22a0 VS |
3420 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3421 | ||
3422 | * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable | |
3423 | names. | |
3424 | ||
4388ca72 VS |
3425 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3426 | ||
3427 | * grub-core/commands/wildcard.c (match_files): Add a useful dprintf. | |
3428 | (wildcard_expand): Don't stop on nonregexp parts after regexp ones since | |
3429 | it truncates the output. | |
3430 | Reported by: Ximin Luo. | |
3431 | ||
98e2f506 VS |
3432 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3433 | ||
3434 | * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and .. | |
3435 | ||
2a5e94d8 VS |
3436 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3437 | ||
3438 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load | |
3439 | partmap before abstraction. | |
3440 | ||
535c1910 AK |
3441 | 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com> |
3442 | ||
3443 | * util/grub-mkconfig_lib.in: Add missing quotes. | |
3444 | ||
bc09e1a2 VS |
3445 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3446 | ||
3447 | * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to | |
3448 | old method if mountinfo would return /dev/root and /dev/root doesn't | |
3449 | exist. | |
3450 | ||
290766fb VS |
3451 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> |
3452 | ||
3453 | ZFS zlib support | |
3454 | ||
3455 | * grub-core/fs/zfs/zfs.c (zlib_decompress): New function. | |
3456 | (decomp_table): Add zlib entries. | |
3457 | (zio_read): USe 8 bits for compression function rather than 3. | |
3458 | * include/grub/zfs/zio.h (zio_compress): Add zlib values. | |
3459 | ||
3460 | 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com> | |
3461 | ||
3462 | * grub-core/disk/ahci.c: Add missing license statements. | |
3463 | * grub-core/fs/romfs.c: Likewise. | |
3464 | * grub-core/lib/ia64/setjmp.S: Likewise. | |
3465 | * grub-core/loader/i386/pc/freedos.c: Likewise. | |
3466 | * grub-core/loader/ia64/efi/linux.c: Likewise. | |
3467 | * grub-core/video/colors.c: Likewise. | |
3468 | * include/grub/dl.h (GRUB_MOD_DEP): New macro. | |
3469 | ||
5ab3f48a VS |
3470 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3471 | ||
3472 | AHCI support. | |
3473 | ||
3474 | * grub-core/Makefile.core.def (ata_pthru): Removed. | |
3475 | (ahci): New module. | |
3476 | (pata): Likewise. | |
3477 | * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook | |
3478 | on unload. | |
3479 | * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA | |
3480 | readwrite. | |
3481 | (grub_hdparm_do_check_powermode_cmd): Likewise. | |
3482 | (grub_hdparm_do_smart_cmd): Likewise. | |
3483 | (grub_hdparm_set_val_cmd): Likewise. | |
3484 | (grub_cmd_hdparm): Likewise. Check thta we have an ATA device. | |
3485 | * grub-core/disk/ahci.c: New file. | |
3486 | * grub-core/disk/ata.c: Factor out the low-level part into ... | |
3487 | * grub-core/disk/pata.c: ... here. | |
3488 | * grub-core/disk/ata_pthru.c: Contents moved to ... | |
3489 | * grub-core/disk/pata.c: ... here. | |
3490 | * grub-core/disk/scsi.c (grub_scsi_names): New array. | |
3491 | (grub_scsi_iterate): Use grub_scsi_names. | |
3492 | (grub_scsi_open): Likewise. | |
3493 | * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed. | |
3494 | * include/grub/ata.h (grub_ata_commands): Add DMA commands. | |
3495 | (grub_ata_regs_t): New struct. | |
3496 | (grub_disk_ata_pass_through_parms): Likewise. | |
3497 | (grub_ata_device): Renamed to ... | |
3498 | (grub_ata): ... this. | |
3499 | (grub_ata_dev): New struct. | |
3500 | Removed all low-level inline functions. | |
3501 | * include/grub/scsi.h: Add PATA and AHCI subsystems. | |
3502 | (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to | |
3503 | iterate hooks and open. All users updated. | |
3504 | * util/grub-install.in: Handle AHCI disk module. | |
3505 | ||
c31dc5f5 SJ |
3506 | 2011-06-23 Szymon Janc <szymon@janc.net.pl> |
3507 | ||
3508 | Add support for DRI and RSTn markers in JPEG files. | |
3509 | ||
3510 | * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define. | |
3511 | (JPEG_MARKER_RST0): Likewise. | |
3512 | (JPEG_MARKER_RST1): Likewise. | |
3513 | (JPEG_MARKER_RST2): Likewise. | |
3514 | (JPEG_MARKER_RST3): Likewise. | |
3515 | (JPEG_MARKER_RST4): Likewise. | |
3516 | (JPEG_MARKER_RST5): Likewise. | |
3517 | (JPEG_MARKER_RST6): Likewise. | |
3518 | (JPEG_MARKER_RST7): Likewise. | |
3519 | (grub_jpeg_data): New fields dri, r1, bitmap_ptr. | |
3520 | (grub_jpeg_decode_dri): New function. | |
3521 | (grub_jpeg_decode_sos): Move image data related part into | |
3522 | grub_jpeg_decode_data function. | |
3523 | (grub_jpeg_decode_data): New function. | |
3524 | (grub_jpeg_reset): New function. | |
3525 | (grub_jpeg_decode_jpeg): Handle new markers. | |
3526 | ||
fe12fd5b VS |
3527 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3528 | ||
3529 | * util/ieee1275/ofpath.c (check_sas): Close fd. | |
3530 | (main): Free of_path. | |
3531 | Reported by: David Volgyes <dvolgyes>. | |
3532 | ||
03147f46 VS |
3533 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3534 | ||
3535 | * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close. | |
3536 | Reported by: David Volgyes <dvolgyes>. | |
3537 | ||
cad3237f VS |
3538 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3539 | ||
3540 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close | |
3541 | file after stat. | |
3542 | Reported by: David Volgyes <dvolgyes>. | |
3543 | ||
13548d26 VS |
3544 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3545 | ||
3546 | * util/raid.c (grub_util_raid_getmembers): Close fd before returning. | |
3547 | ||
3548 | Reported by: David Volgyes <dvolgyes>. | |
3549 | ||
e061a1b5 VS |
3550 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3551 | ||
3552 | * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]: | |
3553 | Prevent memory leak. | |
3554 | ||
1abe47dc VS |
3555 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3556 | ||
3557 | * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak. | |
3558 | (main): Close file. | |
e061a1b5 | 3559 | Reported by: David Volgyes <dvolgyes>. |
1abe47dc | 3560 | |
fbc62666 VS |
3561 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3562 | ||
3563 | * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt | |
3564 | to continue if allocation is failed. | |
3565 | ||
3566 | Reported by: David Volgyes <dvolgyes>. | |
3567 | ||
e98c83e9 DV |
3568 | 2011-06-23 David Volgyes <dvolgyes> |
3569 | ||
3570 | * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer | |
3571 | dereference. | |
3572 | ||
a199a8cd VS |
3573 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3574 | ||
3575 | Fix spurious warning. | |
3576 | ||
3577 | * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union. | |
3578 | (acorn_partition_map_find): Use .bin member. | |
3579 | ||
e2d1dba0 VS |
3580 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3581 | ||
3582 | * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept | |
3583 | /dev/root as a valid device. | |
3584 | ||
8a5d6919 JM |
3585 | 2011-06-23 Jim Meyering <meyering@redhat.com> |
3586 | ||
e2d1dba0 VS |
3587 | Avoid NULL deref in grub_device_open. |
3588 | ||
8a5d6919 JM |
3589 | * grub-core/kern/device.c (grub_device_open): Don't dereference |
3590 | a NULL pointer upon failed grub_env_get. | |
3591 | ||
f7db6f4a VS |
3592 | 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com> |
3593 | ||
3594 | Support non-512B sectors and agglomerate reads. | |
3595 | ||
3596 | * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c. | |
3597 | * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io. | |
3598 | (disk_io_guid): Removed. | |
3599 | (make_devices): Locate solely by BlockIO. | |
3600 | (grub_efidisk_open): Fill log_sector_size and total_sectors. | |
3601 | (grub_efidisk_read): Use read_blocks. | |
3602 | (grub_efidisk_write): Use write_blocks. | |
3603 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill | |
3604 | log_sector_size. | |
3605 | (get_safe_sectors): Handle non-512B sectors. | |
3606 | (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B | |
3607 | sectors. | |
3608 | (grub_biosdisk_write): Handle non-512B sectors. | |
3609 | * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size. | |
3610 | (grub_scsi_read): Remove special non-512B block handling (now handled | |
3611 | one level up). | |
3612 | * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size | |
3613 | and do sanity checks. | |
3614 | (grub_disk_adjust_range): Handle non-512B sectors. | |
3615 | (transform_sector): New function. | |
3616 | (grub_disk_read_small): Likewise. | |
3617 | (grub_disk_read): Rewritten. | |
3618 | (grub_disk_write): Handle non-512B sectors. | |
3619 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill | |
3620 | log_sector_size. | |
3621 | (open_device): Use log_sector_size. | |
3622 | (grub_util_biosdisk_read): Likewise. | |
3623 | (grub_util_biosdisk_write): Likewise. | |
3624 | * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle | |
3625 | non-512B sectors. | |
3626 | (pc_partition_map_embed): Likewise. | |
3627 | * include/grub/disk.h (grub_disk): New field log_sector_size. | |
3628 | (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS. | |
3629 | (GRUB_DISK_CACHE_BITS): Increased to 6. | |
3630 | * util/grub-fstest.c (fstest): New command testload. | |
3631 | (argp_parser): Likewise. | |
3632 | ||
881ac815 RM |
3633 | 2011-06-16 Robert Millan <rmh@gnu.org> |
3634 | ||
3635 | Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using | |
3636 | `ata' driver on kernel of FreeBSD 9. | |
3637 | ||
3638 | * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name) | |
3639 | (get_ataraid_disk_name): New functions. | |
3640 | [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid | |
3641 | (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using | |
3642 | get_ataraid_disk_name() and get_ada_disk_name(). | |
3643 | ||
1e9aef7d CW |
3644 | 2011-06-13 Colin Watson <cjwatson@ubuntu.com> |
3645 | ||
3646 | * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the | |
3647 | input format. | |
3648 | ||
351c7c8a CW |
3649 | 2011-05-29 Colin Watson <cjwatson@ubuntu.com> |
3650 | ||
3651 | * docs/grub.texi (Obtaining and Building GRUB): Substitute | |
3652 | `ftp.gnu.org' for `alpha.gnu.org'. | |
3653 | ||
6b4e6430 CW |
3654 | 2011-05-27 Colin Watson <cjwatson@ubuntu.com> |
3655 | ||
3656 | * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle | |
3657 | partitions under /dev/disk/by-id/. | |
3658 | ||
c64db050 CW |
3659 | 2011-05-27 Colin Watson <cjwatson@ubuntu.com> |
3660 | ||
3661 | * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up | |
3662 | after ten consecutive open failures. Scanning all the way up to | |
3663 | 10000 is excessive and can cause serious performance problems in | |
3664 | some configurations. | |
3665 | Fixes Ubuntu bug #787461. | |
3666 | ||
245f4aba VS |
3667 | 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com> |
3668 | ||
3669 | * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before | |
3670 | opening new one. | |
3671 | ||
f767c929 VS |
3672 | 2011-05-21 Colin Watson <cjwatson@ubuntu.com> |
3673 | 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com> | |
3674 | ||
3675 | Don't stat devices unless we have to. | |
3676 | ||
3677 | * grub-core/kern/emu/getroot.c (grub_find_device): Recognize | |
3678 | dir == /dev/mapper. | |
3679 | (grub_guess_root_device): Use already known os_dev if possible. | |
3680 | * grub-core/kern/emu/hostdisk.c | |
3681 | (convert_system_partition_to_system_disk): Scan only in /dev/mapper | |
3682 | if device is known to be a dm one. | |
3683 | ||
f35fa3a6 CW |
3684 | 2011-05-20 Colin Watson <cjwatson@ubuntu.com> |
3685 | ||
3686 | * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and | |
3687 | GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT. | |
3688 | Reported by: Pawel Tecza. | |
3689 | ||
9a79fcf2 VS |
3690 | 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com> |
3691 | ||
3692 | * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge. | |
3693 | (lsefisystab): Likewise. | |
3694 | (lssal): Likewise. | |
3695 | (lsefimmap): Likewise. | |
3696 | (hdparm): Enable on qemu-mips. | |
3697 | (setjmp): Add ia64 nodist. | |
3698 | (serial): Simplify tags. | |
3699 | ||
63e3eea9 CW |
3700 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3701 | ||
3702 | * Makefile.util.def (grub-ofpathname): Install manual page. | |
3703 | ||
09728256 CW |
3704 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3705 | ||
3706 | * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE. | |
3707 | ||
8b63a142 CW |
3708 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3709 | ||
3710 | * .bzrignore: Add grub-core/modinfo.sh and a number of test files. | |
3711 | ||
e775d8ed VS |
3712 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3713 | ||
3714 | * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf | |
3715 | into dprintf. | |
3716 | ||
bf947d36 VS |
3717 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3718 | ||
3719 | Use full 64-bit division. | |
3720 | ||
3721 | * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ... | |
3722 | (grub_divmod64): ... this. | |
3723 | * include/grub/misc.h (grub_divmod64): Removed. All users switch to full | |
3724 | version. | |
3725 | ||
b84f26c5 CW |
3726 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3727 | ||
3728 | * util/grub-mkrescue.in: Use portable `.' rather than non-portable | |
3729 | `source'. | |
3730 | ||
5626056f CW |
3731 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3732 | ||
3733 | * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e', | |
3734 | to avoid accidents when debugging with 'sh -x'. | |
3735 | * grub-core/gensyminfo.sh.in: Likewise. | |
3736 | * tests/example_scripted_test.in: Likewise. | |
3737 | * tests/grub_cmd_regexp.in: Likewise. | |
3738 | * tests/grub_script_blanklines.in: Likewise. | |
3739 | * tests/grub_script_dollar.in: Likewise. | |
3740 | * tests/grub_script_expansion.in: Likewise. | |
3741 | * tests/grub_script_final_semicolon.in: Likewise. | |
3742 | * tests/partmap_test.in: Likewise. | |
3743 | * tests/util/grub-shell-tester.in: Likewise. | |
3744 | * tests/util/grub-shell.in: Likewise. | |
3745 | ||
e2965f4a CW |
3746 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> |
3747 | ||
3748 | Move gfxmenu color handling to video, so that gfxterm can use it | |
3749 | too. | |
3750 | ||
3751 | * grub-core/gfxmenu/named_colors.c: Move to ... | |
3752 | * grub-core/video/colors.c: ... here. Rename | |
3753 | grub_gui_get_named_color to grub_video_get_named_color. | |
3754 | * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ... | |
3755 | * grub-core/video/colors.c (my_isxdigit): ... here. | |
3756 | * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component): | |
3757 | Move to ... | |
3758 | * grub-core/video/colors.c (parse_hex_color_component): ... here. | |
3759 | * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move | |
3760 | to ... | |
3761 | * grub-core/video/colors.c (grub_video_parse_color): ... here. | |
3762 | ||
3763 | * include/grub/gui.h (grub_gui_color_t): Move to ... | |
3764 | * include/grub/video.h (grub_video_rgba_color_t): ... here. | |
3765 | * include/grub/gui.h (grub_gui_color_rgb): Move to ... | |
3766 | * include/grub/video.h (grub_video_rgba_color_rgb): ... here. | |
3767 | * include/grub/gui.h (grub_gui_map_color): Move to ... | |
3768 | * include/grub/video.h (grub_video_map_rgba_color): ... here. | |
3769 | * include/grub/gui_string_util.h (grub_gui_get_named_color): Move | |
3770 | to ... | |
3771 | * include/grub/video.h (grub_video_get_named_color): ... here. | |
3772 | * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ... | |
3773 | * include/grub/video.h (grub_video_parse_color): ... here. | |
3774 | ||
3775 | * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add | |
3776 | video/colors.c. | |
3777 | (gfxmenu): Remove gfxmenu/named_colors.c. | |
3778 | (video) [videomodules]: Add video/colors.c. | |
3779 | ||
3780 | Add a background_color command. | |
3781 | ||
3782 | * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New | |
3783 | function. | |
3784 | (GRUB_MOD_INIT): Register background_color command. | |
3785 | (GRUB_MOD_FINI): Unregister background_color command. | |
3786 | (redraw_screen_rect): Allow blend/replace of text layer to be | |
3787 | controlled independently from whether there is a background bitmap. | |
3788 | (grub_gfxterm_background_image_cmd): Change blend_text_bg when | |
3789 | changing bitmap. | |
3790 | ||
1e4b4390 VS |
3791 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3792 | ||
26618ff0 VS |
3793 | Patch BPB in ntldr and chainloader --bpb. |
3794 | ||
1e4b4390 VS |
3795 | * grub-core/fs/fat.c: Include grub/fat.h. |
3796 | (grub_fat_bpb): Moved to ... | |
3797 | * include/grub/fat.h (grub_fat_bpb): ... here. New file. | |
3798 | * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and | |
3799 | grub/ntfs.h. | |
3800 | * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t): | |
3801 | Moved from here... | |
3802 | * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ... | |
3803 | here. | |
3804 | * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb): | |
3805 | New function. | |
3806 | (grub_chainloader_cmd): Patch BPB if --bpb is given. | |
3807 | (GRUB_MOD_INIT): Show --bpb. | |
3808 | * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB. | |
3809 | * grub-core/normal/main.c (features): New variable. | |
3810 | (GRUB_MOD_INIT): Set feature_* variables. | |
3811 | * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New | |
3812 | proto. | |
3813 | * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive. | |
3814 | ||
cf02731e VS |
3815 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3816 | ||
3817 | * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275 | |
3818 | for cleanness. | |
3819 | ||
e3a1073f VS |
3820 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3821 | ||
3822 | FreeDOS direct loading support. | |
3823 | ||
3824 | * docs/grub.texi (Supported OS): Add FreeDOS. | |
3825 | * grub-core/Makefile.core.def (freedos): New module. | |
3826 | * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern | |
3827 | variable. | |
3828 | (grub_relocator16_boot): Handle %ebx. | |
3829 | * grub-core/lib/i386/relocator16.S: Likewise. | |
3830 | * grub-core/loader/i386/pc/freedos.c: New file. | |
3831 | ||
05caa461 VS |
3832 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3833 | ||
3834 | Long Linux command line support. | |
3835 | ||
3836 | * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed. | |
3837 | (maximal_cmdline_size): New variable. | |
3838 | (allocate_pages): Use maximal_cmdline_size. | |
3839 | (grub_cmd_linux): Set and use maximal_cmdline_size. | |
3840 | * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed. | |
3841 | (allocate_pages): Use maximal_cmdline_size. | |
3842 | (grub_cmd_linux): Set and use maximal_cmdline_size. | |
3843 | * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed. | |
3844 | (linux_kernel_header): Add fields kernel_alignment, relocatable, pad | |
3845 | and cmdline_size. | |
3846 | ||
a2491e23 VS |
3847 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3848 | 2011-05-18 Colin Watson <cjwatson@ubuntu.com> | |
3849 | ||
3850 | Improve devmapper support | |
3851 | ||
3852 | * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed. | |
3853 | (grub_util_is_lvm): New function. | |
3854 | (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather | |
3855 | than lvm if not dmraid. | |
3856 | Handle mapped md nodes. | |
3857 | * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ... | |
3858 | (grub_util_device_is_mapped): ... this. Make always available. All users | |
3859 | updated. | |
3860 | (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function. | |
3861 | (convert_system_partition_to_system_disk): Handle lvm, mpath and | |
3862 | dmraid nodes. | |
3863 | * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto. | |
3864 | ||
6ad6223e VS |
3865 | 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
3866 | ||
3867 | Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms | |
3868 | ||
3869 | * grub-core/Makefile.am (platform_DATA): Add modinfo.sh. | |
3870 | * grub-core/modinfo.sh.in: New file. | |
3871 | * grub-core/Makefile.core.def (modinfo.sh): New script. | |
3872 | * util/grub-mknetdir.in: Use modinfo.sh. | |
3873 | * util/grub-mkrescue.in: Likewise. | |
3874 | ||
543a8f6e VS |
3875 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3876 | ||
3877 | * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size): | |
3878 | Fix potential usage of Elf32 instead of Elf64 when compiling on | |
3879 | 32-bit architecture. Add endianness macros while on it. | |
3880 | ||
4959e111 VS |
3881 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3882 | ||
3883 | Use mipsel- rather than mips- in directories involving mipsel ports to | |
3884 | allow both endiannesses coexist. | |
3885 | ||
3886 | * configure.ac: proparate target_cpu=mipsel rather than resetting to | |
3887 | mips. All conditions adjusted. | |
3888 | * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu | |
3889 | variable. | |
3890 | * util/grub-install.in: Adjust conditions to take renaming into account. | |
3891 | * util/grub-mkimage.c (image_targets): Likewise. New target | |
3892 | mips-qemu_mips-elf for bigendian mips. | |
3893 | ||
35341bbc VS |
3894 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3895 | ||
3896 | Avoid unnecessary copying on MIPS. | |
3897 | ||
3898 | * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit | |
3899 | early if src == dest. | |
3900 | * util/grub-mkimage.c (generate_image): Arange for src == dest if | |
3901 | compression is none. | |
3902 | ||
b772baed VS |
3903 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3904 | ||
3905 | Reduce memory footprint on SGI by putting modules before the kernel | |
3906 | as opposed to after. | |
3907 | ||
3908 | * grub-core/Makefile.core.def (kernel): Increase linking address. | |
3909 | (none_decompress): Likewise. | |
3910 | (xz_decompress): Likewise. | |
3911 | * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression | |
3912 | address. | |
3913 | * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory | |
3914 | layout change. | |
3915 | (grub_arch_modules_addr): New function. | |
3916 | * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here... | |
3917 | * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here | |
3918 | * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and | |
3919 | here. | |
3920 | * grub-core/kern/mips/startup.S (total_size): Rename to ... | |
3921 | (grub_total_modules_size): ... this. Make global. | |
3922 | [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss. | |
3923 | * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR): | |
3924 | New definition. | |
3925 | (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise. | |
3926 | (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise. | |
3927 | (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise. | |
3928 | (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased. | |
3929 | * util/grub-mkimage.c (image_target_desc): New flag | |
3930 | PLATFORM_FLAGS_MODULES_BEFORE_KERNEL. | |
3931 | (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc. | |
3932 | (generate_image): Handle images with modules before kernel. | |
3933 | ||
566a1917 VS |
3934 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3935 | ||
3936 | Prevent potential loss of memory map by overwrite on qemu-mips. | |
3937 | ||
3938 | * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: | |
3939 | Save ram size in $s4. | |
3940 | * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed. | |
3941 | All users changed to grub_arch_memsize. | |
3942 | * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to | |
3943 | Loongson. | |
3944 | [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize. | |
3945 | * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size. | |
3946 | * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New | |
3947 | external variable. | |
3948 | ||
5d420cd9 CW |
3949 | 2011-05-17 Colin Watson <cjwatson@ubuntu.com> |
3950 | ||
3951 | * .bzrignore: Remove grub-dumpbios. | |
3952 | ||
d064b830 CW |
3953 | 2011-05-17 Colin Watson <cjwatson@ubuntu.com> |
3954 | ||
3955 | * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE | |
3956 | and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace | |
3957 | GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the | |
3958 | existing options which append). | |
3959 | * docs/grub.texi (Simple configuration): Document new options. | |
3960 | Reported by: Ian Jackson. Fixes Debian bug #617538. | |
3961 | ||
3ca2b466 CW |
3962 | 2011-05-17 Colin Watson <cjwatson@ubuntu.com> |
3963 | ||
3964 | * util/grub-fstest.c (cmd_cat): New function. | |
3965 | (fstest): Handle CMD_CAT. | |
3966 | (options): Add cat. | |
3967 | (argp_parser): Handle cat. | |
3968 | ||
24c9143a CW |
3969 | 2011-05-17 Colin Watson <cjwatson@ubuntu.com> |
3970 | ||
3971 | * Makefile.util.def (grub-bin2h): Don't install. | |
3972 | * docs/man/grub-bin2h.h2m: Remove. | |
3973 | ||
90f7ac19 VS |
3974 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3975 | ||
3976 | * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right | |
3977 | place. | |
3978 | ||
8d4a5178 VS |
3979 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
3980 | ||
3981 | Reenable qemu-mips port. | |
3982 | ||
3983 | * configure.ac: Handle --target=qemu-mips and --target=qemu_mips. | |
3984 | Fix small arc bug while on it. | |
3985 | * gentpl.py: Handle qemu_mips. | |
3986 | * grub-core/Makefile.am: Likewise. | |
3987 | * grub-core/Makefile.core.def: Likewise. | |
3988 | * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove | |
3989 | inappropriate includes. | |
3990 | (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed. | |
3991 | (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten. | |
3992 | * grub-core/kern/main.c (grub_modules_get_end) | |
3993 | [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable. | |
3994 | * grub-core/kern/mips/qemu-mips: Moved to .. | |
3995 | * grub-core/kern/mips/qemu_mips: ... this. | |
3996 | * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed. | |
3997 | (grub_machine_init): Call terminfo_init and serial_init. | |
3998 | * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE. | |
3999 | * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]: | |
4000 | New variable. | |
4001 | (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips | |
4002 | parameter passing. | |
4003 | (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params. | |
4004 | (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params. | |
4005 | (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise. | |
4006 | * include/grub/mips/qemu_mips/cmos.h: New file. | |
4007 | * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h. | |
4008 | * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate): | |
4009 | Removed. | |
4010 | * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS): | |
4011 | Use correct mips-style address. | |
4012 | * include/grub/mips/qemu-mips/time.h: Include cpu/time.h. | |
4013 | (GRUB_TICKS_PER_SECOND): Removed. | |
4014 | (grub_get_rtc): Likewise. | |
4015 | (grub_cpu_idle): Likewise. | |
4016 | * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR): | |
4017 | New definition. | |
4018 | (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise. | |
4019 | (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise. | |
4020 | (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise. | |
4021 | (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise. | |
4022 | (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise. | |
4023 | (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise. | |
4024 | (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise. | |
4025 | * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf. | |
4026 | ||
400b9371 VS |
4027 | 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
4028 | ||
4029 | SGI ARCS port. | |
4030 | ||
4031 | * Makefile.util.def (libgrubmods.a): Add dvh.c. | |
4032 | * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips | |
4033 | platforms. | |
4034 | * configure.ac: New target mips-arc. | |
4035 | * gentpl.py: Likewise. | |
4036 | * grub-core/Makefile.am: Likewise. | |
4037 | * grub-core/Makefile.core.def: Likewise. | |
4038 | (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR. | |
4039 | (none_decompress): Likewise. | |
4040 | (lsdev): New module. | |
4041 | (datetime): Use lib/arc/datetime.c on ARC. | |
4042 | (part_dvh): New module. | |
4043 | * grub-core/commands/arc/lsdev.c: New file. | |
4044 | * grub-core/disk/arc/arcdisk.c: Likewise. | |
4045 | * grub-core/kern/mips/arc/init.c: Likewise. | |
4046 | * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte | |
4047 | aligned addresses. | |
4048 | * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian | |
4049 | support. | |
4050 | (grub_arch_dl_relocate_symbols): Likewise. | |
4051 | * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here... | |
4052 | * grub-core/kern/mips/init.c (grub_get_rtc): ... here. | |
4053 | * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all | |
4054 | platforms. | |
4055 | * grub-core/lib/arc/datetime.c: New file. | |
4056 | * grub-core/loader/mips/linux.c: Always include time.h. Don't include | |
4057 | pci.h on non-loongson. | |
4058 | (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove. | |
4059 | (grub_linux_boot): Set unused registers to 0. | |
4060 | (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp. | |
4061 | * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ... | |
4062 | * grub-core/mmap/mips/uppermem.c: ...here. | |
4063 | * grub-core/partmap/dvh.c: New file. | |
4064 | * grub-core/term/arc/console.c: Likewise. | |
4065 | * grub-core/term/terminfo.c (ANSI_C0_STR): New const. | |
4066 | (grub_terminfo_set_current): Add terminal "arc". | |
4067 | (grub_terminfo_readkey): Support ARC sequences. | |
4068 | * include/grub/arc/arc.h: New file. | |
4069 | * include/grub/arc/console.h: Likewise. | |
4070 | * include/grub/disk.h (grub_disk_dev_id): Add | |
4071 | GRUB_DISK_DEVICE_ARCDISK_ID. | |
4072 | * include/grub/mips/arc/kernel.h: New file. | |
4073 | * include/grub/mips/arc/memory.h: Likewise. | |
4074 | * include/grub/mips/arc/time.h: Likewise. | |
4075 | * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ... | |
4076 | * include/grub/mips/kernel.h (grub_halt): ... here. | |
4077 | * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from | |
4078 | here... | |
4079 | * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here. | |
4080 | (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ... | |
4081 | * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here | |
4082 | * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant | |
4083 | proto. | |
4084 | * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved | |
4085 | from here ... | |
4086 | * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here. | |
4087 | (GRUB_ARCH_LOWMEMPSTART): Moved from here ... | |
4088 | * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here. | |
4089 | (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ... | |
4090 | * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here. | |
4091 | (GRUB_ARCH_HIGHMEMPSTART): Moved from here ... | |
4092 | * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here. | |
4093 | (grub_phys_addr_t): Moved from here ... | |
4094 | * include/grub/mips/memory.h (grub_phys_addr_t): ... here. | |
4095 | (grub_vtop): Moved from here ... | |
4096 | * include/grub/mips/memory.h (grub_vtop): ... here. | |
4097 | (grub_map_memory): Moved from here ... | |
4098 | * include/grub/mips/memory.h (grub_map_memory): ... here. | |
4099 | (grub_unmap_memory): Moved from here ... | |
4100 | * include/grub/mips/memory.h (grub_unmap_memory): ... here. | |
4101 | (grub_machine_mmap_iterate): Moved from here ... | |
4102 | * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here. | |
4103 | (grub_mmap_get_lower): Moved from here ... | |
4104 | * include/grub/mips/memory.h (grub_mmap_get_lower): ... here. | |
4105 | (grub_mmap_get_upper): Moved from here ... | |
4106 | * include/grub/mips/memory.h (grub_mmap_get_upper): ... here. | |
4107 | * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from | |
4108 | here ... | |
4109 | * include/grub/mips/time.h (grub_arch_cpuclock): ... here. | |
4110 | * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from | |
4111 | here ... | |
4112 | * include/grub/mips/time.h (grub_get_rtc): ... here. | |
4113 | * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from | |
4114 | here ... | |
4115 | * include/grub/mips/time.h (grub_arch_cpuclock): ... here. | |
4116 | * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from | |
4117 | here ... | |
4118 | * include/grub/mips/time.h (grub_cpu_idle): ... here. | |
4119 | * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New | |
4120 | definition. | |
4121 | (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise. | |
4122 | (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise. | |
4123 | (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise. | |
4124 | (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise. | |
4125 | (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise. | |
4126 | (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise. | |
4127 | (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise. | |
4128 | (GRUB_MACHINE_LINK_ADDR): Likewise. | |
4129 | * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased | |
4130 | to 6. | |
4131 | * util/grub-install.in: Run dvhtool on ARC. | |
4132 | * util/grub-mkimage.c (image_targets): Add mips-arc. | |
b6296b3f | 4133 | (generate_image): Handle ECOFF output for mips-arc. |
400b9371 | 4134 | |
c8ecc840 VS |
4135 | 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com> |
4136 | ||
4137 | * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte | |
4138 | blocks. | |
4139 | ||
153a4b55 VS |
4140 | 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com> |
4141 | ||
4142 | * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms | |
4143 | after enabling port. | |
4144 | ||
ff44d107 VS |
4145 | 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com> |
4146 | ||
4147 | Skip incorrect USB devices. | |
4148 | ||
4149 | * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if | |
4150 | configcnt == 0. | |
4151 | * include/grub/usb.h (grub_usb_err_t): New enum value | |
4152 | GRUB_USB_ERR_BADDEVICE. | |
4153 | ||
638dbe4f VS |
4154 | 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com> |
4155 | ||
4156 | Fuloong video init support. | |
4157 | ||
4158 | * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as | |
4159 | well. | |
4160 | (grub_vga_read_arx): New function. | |
4161 | * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New | |
4162 | definition. | |
4163 | (framebuffer): New members io, mmioptr and mmiobase. | |
4164 | (read_sis_cmd): New function. | |
4165 | (write_sis_cmd): Likewise. | |
4166 | (grub_video_sis315pro_setup): Do the initialisation. Use 640x480 | |
4167 | rather than 640x400. | |
4168 | * grub-core/video/sis315_init.c: New file. | |
4169 | ||
c3fc520c VS |
4170 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4171 | ||
4172 | * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on | |
4173 | non-loongson. | |
4174 | * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument | |
4175 | to grub_dl_register_symbol. | |
4176 | ||
67b1e5c9 VS |
4177 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4178 | ||
4179 | Fix compilation errors. | |
4180 | ||
4181 | * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as | |
4182 | potentially unused. | |
4183 | * grub-core/loader/i386/linux.c (grub_linux_setup_video): | |
4184 | Handle GRUB_VIDEO_DRIVER_SIS315PRO. | |
4185 | * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init | |
4186 | to loongson machines. | |
4187 | ||
b756f75f VS |
4188 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4189 | ||
4190 | Several FS mtime support. | |
4191 | ||
4192 | * grub-core/fs/affs.c (grub_affs_time): New struct. | |
4193 | (grub_affs_file): New field mtime. | |
4194 | (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate | |
4195 | type. Removed 'size'. New field 'di'. All users updated. | |
4196 | (grub_affs_mount): Simplify checsum checking. | |
4197 | (grub_affs_iterate_dir): New helper grub_affs_create_node. | |
4198 | (grub_affs_dir): Handle mtime. | |
4199 | * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime. | |
4200 | (grub_cpio_dir): Likewise. | |
4201 | * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'. | |
4202 | (grub_hfs_filerec): New field mtime. | |
4203 | (grub_hfs_dir): Handle mtime. | |
4204 | (grub_hfs_mtime): New function. | |
4205 | (grub_hfs_fs): Register grub_hfs_mtime. | |
4206 | * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct. | |
4207 | (grub_iso9660_dir): New field mtime. | |
4208 | (grub_fshelp_node): New field dirent. | |
4209 | (iso9660_to_unixtime): New function. | |
4210 | (iso9660_to_unixtime2): Likewise. | |
4211 | (grub_iso9660_read_symlink): Use node->dirent. | |
4212 | (grub_iso9660_iterate_dir): Likewise. | |
4213 | (grub_iso9660_dir): Set mtime. | |
4214 | (grub_iso9660_mtime): New function. | |
4215 | (grub_iso9660_fs): Register grub_iso9660_mtime. | |
4216 | * grub-core/fs/jfs.c (grub_jfs_time): New struct. | |
4217 | (grub_jfs_inode): New fields atime, ctime and mtime. | |
4218 | (grub_jfs_dir): Set mtime. | |
4219 | * grub-core/fs/minix.c (grub_minix_dir): Likewise. | |
4220 | * grub-core/fs/ntfs.c (list_file): Set mtime. | |
4221 | (grub_ntfs_dir): Likewise. | |
4222 | * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'. | |
4223 | (grub_reiserfs_iterate_dir): Set mtime. | |
4224 | (grub_reiserfs_dir): Likewise. | |
4225 | * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime. | |
4226 | (grub_fshelp_node): Likewise. | |
4227 | (grub_sfs_iterate_dir): Set mtime. | |
4228 | (grub_sfs_dir): Likewise. | |
4229 | * grub-core/fs/udf.c (grub_udf_dir): Set mtime. | |
4230 | * grub-core/fs/xfs.c (grub_xfs_time): New struct. | |
4231 | (grub_xfs_inode): New fields atime, mtime, ctime. | |
4232 | (grub_xfs_dir): Set mtime. | |
4233 | * include/grub/datetime.h (grub_datetime2unixtime): New function. | |
4234 | * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime. | |
4235 | * include/grub/ntfs.h (grub_fshelp_node): New field mtime. | |
4236 | ||
4237 | Support UDF symlinks. | |
4238 | ||
4239 | * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks. | |
4240 | (grub_ufs_read_symlink): New function. All users updated. | |
4241 | ||
4242 | Check amiga partmap checksum. | |
4243 | ||
4244 | * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes. | |
4245 | (grub_amiga_partition): Likewise. | |
4246 | (amiga_partition_map_checksum): New function. | |
4247 | (amiga_partition_map_iterate): Check checksum. | |
4248 | ||
5470225d VS |
4249 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4250 | ||
4251 | ROMFS support. | |
4252 | ||
4253 | * Makefile.util.def (libgrubmods.a): Add romfs. | |
4254 | * grub-core/Makefile.core.def (romfs): New module. | |
4255 | * grub-core/fs/romfs.c: New file. | |
4256 | ||
d4680a35 VS |
4257 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4258 | ||
4259 | Squashfs v4 support. | |
4260 | ||
4261 | * Makefile.util.def (libgrubmods.a): Add squash4. | |
4262 | * grub-core/Makefile.core.def (squash4): New module. | |
4263 | * grub-core/fs/squash4.c: New file. | |
4264 | * grub-core/io/gzio.c (grub_gzio): New members disk_input_off, | |
4265 | disk_input_start, disk_input. | |
4266 | (get_byte): Handle disk_input. | |
4267 | (grub_zlib_disk_read): New function. | |
4268 | * include/grub/deflate.h (grub_zlib_disk_read): New proto. | |
4269 | ||
bcb18e74 FZ |
4270 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4271 | 2011-05-15 Feiran Zheng <famcool@gmail.com> | |
4272 | ||
4273 | * Makefile.util.def (libgrubmods.a): Add minix3. | |
4274 | * grub-core/Makefile.core.def (minix3): New module. | |
4275 | * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value. | |
4276 | (GRUB_MINIX_BSIZE): Removed. | |
4277 | (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated. | |
4278 | (grub_minix_ino_t): New type. | |
4279 | (grub_minix_le_to_cpu_ino): New macro. | |
4280 | (GRUB_MINIX_ZONE2SECT): New definition. All users updated. | |
4281 | (grub_minix_sblock) [MODE_MINIX3]: Change for minix3. | |
4282 | (grub_minix_data): New field block_size. | |
4283 | (grub_minix_read_file): Handle 64-bit correctly. | |
4284 | * grub-core/fs/minix3.c: New file. | |
4285 | ||
32297d5f TG |
4286 | 2011-05-15 Tristan Gingold <gingold@free.fr> |
4287 | 2011-05-15 Robert Millan <rmh.grub@aybabtu.com> | |
4288 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> | |
4289 | ||
4290 | IA64 support. | |
4291 | ||
4292 | * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c | |
4293 | * configure.ac: Add ia64-efi target. | |
4294 | Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3, | |
4295 | __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols. | |
4296 | * gentpl.py: Add ia64_efi platform. | |
4297 | Rename x86_efi to efi and Add ia64-efi. All users updated. | |
4298 | * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi. | |
4299 | * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64. | |
4300 | Remove kern/generic/rtc_get_time_ms.c on EFI. | |
4301 | Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c, | |
4302 | kern/ia64/dl_helper.c on ia64-efi. | |
4303 | Add kern/emu/cache.c on emu. | |
4304 | (linux): Use on loader/ia64/efi/linux.c on ia64. | |
4305 | * grub-core/gensymlist.sh (grub_register_exported_symbols): Check | |
4306 | whether symbol is a function. | |
4307 | * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h. | |
4308 | (grub_symbol): New field 'isfunc'. | |
4309 | (grub_dl_resolve_symbol): Return whole symbol rather than just address. | |
4310 | (grub_dl_register_symbol): New argument 'isfunc'. All users updated. | |
4311 | (grub_dl_load_segments): Place all sections into the same region. | |
4312 | [__ia64__]: Create trampolines and got. | |
4313 | [GRUB_MACHINE_EMU]: Call mprotect. | |
4314 | (grub_dl_resolve_symbols): Resolve symbol type as well. | |
4315 | [__ia64__]: Create function descriptors. | |
4316 | * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ... | |
4317 | (grub_rtc_get_time_ms): ... this. Expressions simplified. | |
4318 | (grub_get_rtc): New function. | |
4319 | * grub-core/kern/emu/cache.c [__ia64__]: New file. | |
4320 | * grub-core/kern/emu/cache.S: Renamed to ... | |
4321 | * grub-core/kern/emu/cache_s.S: ... this. | |
4322 | [__ia64__]: Add a nop. | |
4323 | * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size) | |
4324 | [__ia64__]: New function. | |
4325 | * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c. | |
4326 | * grub-core/kern/ia64/dl.c: New file. | |
4327 | * grub-core/kern/ia64/dl_helper.c: Likewise. | |
4328 | * grub-core/kern/ia64/efi/init.c: New file. | |
4329 | * grub-core/kern/ia64/efi/startup.S: Likewise. | |
4330 | * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi. | |
4331 | * grub-core/lib/ia64/longjmp.S: New file (from glibc). | |
4332 | * grub-core/lib/ia64/setjmp.S: Likewise (from glibc). | |
4333 | * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S. | |
4334 | * grub-core/loader/ia64/efi/linux.c: New file. | |
4335 | * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm. | |
4336 | (GRUB_MOD_DEP): Likewise. | |
4337 | (grub_dl) [__ia64__]: New fields got and tramp. | |
4338 | (grub_dl): New field 'base'. | |
4339 | (grub_dl_register_symbol): New argument isfunc. All users updated. | |
4340 | (GRUB_IA64_DL_TRAMP_ALIGN): New definition. | |
4341 | (GRUB_IA64_DL_TRAMP_SIZE): Likewise. | |
4342 | (GRUB_IA64_DL_GOT_ALIGN): Likewise. | |
4343 | (grub_ia64_dl_get_tramp_got_size): New proto. | |
4344 | (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise | |
4345 | (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise | |
4346 | (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise | |
4347 | * include/grub/efi/api.h: Skip call wrappers on ia64. | |
4348 | * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition. | |
4349 | * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000. | |
4350 | * include/grub/elf.h (ELF_ST_INFO): New definition. | |
4351 | * include/grub/ia64/efi/kernel.h: New file. | |
4352 | * include/grub/ia64/efi/memory.h: Likewise. | |
4353 | * include/grub/ia64/efi/time.h: Likewise. | |
4354 | * include/grub/ia64/kernel.h: Likewise. | |
4355 | * include/grub/ia64/setjmp.h: Likewise (from glibc). | |
4356 | * include/grub/ia64/time.h: New file. | |
4357 | * include/grub/ia64/types.h: Likewise. | |
4358 | * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3, | |
4359 | __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline): | |
4360 | New protos. | |
4361 | * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition. | |
4362 | (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise. | |
4363 | * include/grub/types.h (PRIxGRUB_ADDR): Likewise. | |
4364 | * util/grub-mkimage.c (image_target_desc): New field pe_target. | |
4365 | All users updated. | |
4366 | (EFI64_HEADER_SIZE): New definition. All users updated. | |
4367 | (image_targets): Add ia64-efi. | |
4368 | * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and | |
4369 | jumpers_addr. All users updated. | |
4370 | Create function descriptors. | |
4371 | (count_funcs): New function. | |
4372 | (unaligned_uint32): New struct. | |
4373 | (MASK20): New definition. | |
4374 | (MASK19): Likewise. | |
4375 | (MASKF21): Likewise. | |
4376 | (add_value_to_slot_20b): New function. | |
4377 | (add_value_to_slot_21_real): Likewise. | |
4378 | (add_value_to_slot_21): Likewise. | |
4379 | (ia64_kernel_trampoline): New struct. | |
4380 | (nopm): New variable. | |
4381 | (jump): Likewise. | |
4382 | (make_trampoline): New function. | |
4383 | (relocate_addresses): Handle ia64. | |
4384 | (make_reloc_section): Likewise. | |
4385 | (load_image): Likewise. | |
4386 | ||
983b414d VS |
4387 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4388 | ||
4389 | * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious | |
4390 | warning. Move variables before code while on it. | |
4391 | ||
5d063cdc VS |
4392 | 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com> |
4393 | ||
4394 | Fuloong support. | |
4395 | ||
4396 | * configure.ac: Rename yeeloong platform to loongson. All users updated. | |
4397 | * grub-core/Makefile.core.def (fwstart_fuloong): New image. | |
4398 | * grub-core/boot/mips/loongson/fuloong.S: New file. | |
4399 | * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up. | |
4400 | Explicitly init CS5536. | |
4401 | [FULOONG]: Don't use serial until CS5536 is available. | |
4402 | Set GPIO based on dumps. | |
4403 | (serial_hw_init) [FULOONG]: Handle CS5536 parts. | |
4404 | [FULOONG]: Handle GPIO and memory controller differences. | |
4405 | Parse machine type in $a2. | |
4406 | * grub-core/boot/mips/startup_raw.S: Determine and save the | |
4407 | architecture. | |
4408 | * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S. | |
4409 | (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL | |
4410 | init on architecture type. | |
4411 | * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init | |
4412 | SIS315E. Don't init at_keyboard on fuloong. | |
4413 | (grub_halt): Support Fuloong. | |
4414 | * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7. | |
4415 | * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed. | |
4416 | (loongson_machtypes): New array. | |
4417 | (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine | |
4418 | type. | |
4419 | * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and | |
4420 | config. All users updated. Handle CS5536 serial. | |
4421 | * grub-core/term/serial.c (grub_serial_register): Conditionalise | |
4422 | default port on machine type. Register serial as inactive. | |
4423 | * grub-core/video/sis315pro.c: New file. | |
4424 | * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New | |
4425 | definition. | |
4426 | (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise. | |
4427 | (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise. | |
4428 | (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise. | |
4429 | (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise. | |
4430 | (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise. | |
4431 | * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename | |
4432 | to ... | |
4433 | (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this. | |
4434 | * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New | |
4435 | definition. | |
4436 | (GRUB_ARCH_MACHINE_FULOONG): Likewise. | |
4437 | (grub_arch_machine): New extern var. | |
4438 | * include/grub/mips/loongson/serial.h | |
4439 | (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ... | |
4440 | (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this. | |
4441 | (GRUB_MACHINE_SERIAL_PORT): Renamed to ... | |
4442 | (GRUB_MACHINE_SERIAL_PORT0): ... this. | |
4443 | (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition. | |
4444 | (GRUB_MACHINE_SERIAL_PORT1): Likewise. | |
4445 | (GRUB_MACHINE_SERIAL_PORT2): Likewise. | |
4446 | (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2. | |
4447 | * include/grub/term.h (grub_term_register_input_inactive): New inline | |
4448 | function. | |
4449 | (grub_term_register_output_inactive): Likewise. | |
4450 | * include/grub/video.h (grub_video_driver_id): New value | |
4451 | GRUB_VIDEO_DRIVER_SIS315PRO. | |
4452 | * util/grub-mkimage.c (image_target_desc): Rename name to dirname. | |
4453 | New field "names". All users updated. | |
4454 | New field value IMAGE_FULOONG_FLASH. | |
4455 | (generate_image): USe separate fwstart hashes for yeeloong and fuloong. | |
4456 | ||
6ada82d1 JU |
4457 | 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com> |
4458 | ||
4459 | * docs/grub.texi (Invoking grub-install): Fix additional outdated claims | |
4460 | and add some clarification. | |
4461 | ||
90c571a4 VS |
4462 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4463 | ||
4464 | * util/grub.d/10_linux.in: Autoload gzio since it's needed on some | |
4465 | platforms if kernel is compressed. | |
4466 | ||
de04eecf VS |
4467 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4468 | ||
4469 | * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of | |
4470 | unused modules since currently referrence counter isn't reliable and | |
4471 | there isn't much memory to recover there anyway. | |
4472 | ||
57688121 VS |
4473 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4474 | ||
4475 | * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter | |
4476 | rather than resetting it to allow modules to reference themselves | |
4477 | in init. | |
4478 | ||
3d2c7e35 VS |
4479 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4480 | ||
4481 | * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference | |
4482 | counter on dependencies since grub_dl_unref already handles this. | |
4483 | ||
b25db218 VS |
4484 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4485 | ||
4486 | * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno | |
4487 | on error if not already done. | |
4488 | ||
25a45338 VS |
4489 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4490 | ||
4491 | Fix few potential memory misusage. | |
4492 | ||
4493 | * grub-core/font/font.c (load_font_index): Don't free char_index to | |
4494 | avoid double free. | |
b25db218 VS |
4495 | (grub_font_load): Zero-fill font at alloc for safety. |
4496 | Close file on error. | |
4497 | (free_font): Free bmp_idx. | |
25a45338 | 4498 | |
0cac83df VS |
4499 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4500 | ||
4501 | * docs/grub.texi (Installation): Fix several outdated claims. | |
4502 | ||
2217a143 VS |
4503 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4504 | ||
4505 | Handle module_license on windows. | |
4506 | ||
4507 | * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following | |
4508 | sections shifted. | |
4509 | (insert_string): Make argument const char * instead of char *. | |
4510 | (write_section_data): Handle long section names. | |
4511 | Handle module_license. | |
4512 | ||
d4de6b01 VS |
4513 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4514 | ||
4515 | * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly | |
4516 | handle class-free menuentries. | |
4517 | (grub_normal_add_menu_entry): Add a check to be sure. | |
4518 | ||
4c2a3b43 VS |
4519 | 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com> |
4520 | ||
4521 | * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between | |
4522 | PgUp and PgDown. | |
4523 | ||
85c6210f VS |
4524 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4525 | ||
4526 | * configure.ac: Bump version to 1.99. | |
4527 | ||
36084912 VS |
4528 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4529 | ||
4530 | Give ATA device a bit more time on first try in order to allow disks | |
4531 | to spin up. | |
4532 | ||
4533 | * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT | |
4534 | if dev->present is 1. Reset dev->present on failure. | |
4535 | (grub_ata_device_initialize): Set dev->present to 1. | |
4536 | * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value. | |
4537 | (grub_ata_device): New member 'present'. | |
4538 | ||
bda0e219 VS |
4539 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4540 | ||
4541 | * util/grub-mkimage.c (generate_image): Update hash. | |
4542 | ||
19e1c41b VS |
4543 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4544 | ||
4545 | Flush caches on DMA memory. | |
4546 | ||
4547 | * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function. | |
4548 | * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches. | |
4549 | (grub_dma_free): Likewise. | |
4550 | * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration. | |
4551 | ||
91bbcc0c VS |
4552 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4553 | ||
4554 | * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3 | |
4555 | to avoid asm treating ld and sd as macros. | |
4556 | ||
60ddfad3 VS |
4557 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4558 | ||
4559 | * grub-core/boot/mips/startup_raw.S: Flush cache after loading | |
4560 | decompressor. | |
4561 | ||
a298aa04 VS |
4562 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4563 | ||
4564 | * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call | |
4565 | grub_decompress_core since later would fail if grub_decompress_core | |
4566 | is too far. | |
4567 | ||
9b44feca VS |
4568 | 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
4569 | ||
4570 | * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle | |
4571 | R_MIPS_JALR since it's used by newer compiler. | |
4572 | ||
56dbe7b4 VS |
4573 | 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com> |
4574 | ||
4575 | * util/grub.d/10_linux.in: Correctly handle the Linux in root. | |
4576 | ||
52856af2 VS |
4577 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4578 | ||
4579 | * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set | |
4580 | file_path to 0 for surety. | |
4581 | (grub_chainloader_boot): Set exit_data to NULL. | |
4582 | Unset the loader once done. | |
4583 | (grub_cmd_chainloader): Fix confusing error message if file is empty. | |
4584 | ||
9c9bfc6d VS |
4585 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4586 | ||
4587 | * grub-core/term/at_keyboard.c (fetch_key): Make a printf on | |
4588 | unknown key into a dprintf. | |
4589 | ||
dd94a3df VS |
4590 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4591 | ||
4592 | * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort | |
4593 | on first non-existant partition. | |
4594 | ||
fa68d99c VS |
4595 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4596 | ||
4597 | * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if | |
4598 | openning fails. | |
4599 | Reported by: Mark Korenberg. | |
4600 | ||
157effb7 VS |
4601 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4602 | ||
4603 | * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible | |
4604 | overflow. | |
4605 | ||
ea75312f VS |
4606 | 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
4607 | ||
4608 | * util/grub-mkimage.c (main): Explicitely flush and sync the output | |
4609 | before closing to ensure that it will be readable by grub-setup. | |
4610 | ||
072b5d31 VS |
4611 | 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
4612 | ||
4613 | * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro. | |
4614 | (devpath_1): Use MAKE_PIWG_PATH. | |
4615 | (devpath_2): Likewise. | |
4616 | (devpath_3): Likewise. | |
4617 | (devpath_4): Likewise. | |
4618 | (devpath_5): Likewise. | |
4619 | (devpath_6): Likewise. | |
4620 | ||
4621 | The appleldr.mod was checked that to be binary identical to previous | |
4622 | version. | |
4623 | ||
7fae0051 Z |
4624 | 2011-05-05 Zach <mikezackles> |
4625 | ||
4626 | Support 2010 Macbooks. | |
4627 | ||
4628 | * grub-core/loader/efi/appleloader.c (devpath_6): New variable. | |
4629 | (devs): Add devpath_6. | |
4630 | ||
7c515bee VS |
4631 | 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
4632 | ||
4633 | * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not | |
4634 | /dev/random. /dev/urandom is good enough for our purposes (salting). | |
4635 | ||
ed660bd8 VS |
4636 | 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
4637 | ||
4638 | * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o. | |
4639 | ||
ee5614b7 VS |
4640 | 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
4641 | ||
4642 | * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle | |
4643 | hexadecimal. | |
4644 | ||
664889a6 VS |
4645 | 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
4646 | ||
4647 | * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno | |
4648 | and not 0 on failure. | |
4649 | ||
bd405bbc CW |
4650 | 2011-05-03 Colin Watson <cjwatson@ubuntu.com> |
4651 | ||
4652 | * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return | |
4653 | GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe | |
4654 | disk; otherwise grub_fs_probe will not fall back to the next | |
4655 | filesystem. | |
4656 | (grub_pxefs_open): Likewise, for consistency. | |
4657 | Reported and tested by: Ezekiel Grave. | |
4658 | ||
4ebff753 CW |
4659 | 2011-05-03 Colin Watson <cjwatson@ubuntu.com> |
4660 | ||
4661 | * tests/partmap_test.in: Don't hardcode path to parted. | |
4662 | Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150. | |
4663 | ||
8f942553 CW |
4664 | 2011-05-01 Colin Watson <cjwatson@ubuntu.com> |
4665 | ||
4666 | * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use | |
4667 | of `ls' to find out which devices are available. | |
4668 | ||
3c62402d VS |
4669 | 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
4670 | ||
4671 | * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather | |
4672 | than source address for efi mmap buffer. | |
4673 | ||
723f63f2 VS |
4674 | 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
4675 | ||
4676 | * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a | |
4677 | wrong action on non-detecting the magic. | |
4678 | ||
68797f92 VS |
4679 | 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
4680 | ||
4681 | * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's | |
4682 | already supplied by another part of the module (fixes compilation on | |
4683 | FreeBSD). | |
4684 | ||
6be8715d VS |
4685 | 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
4686 | ||
4687 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID | |
4688 | match the one used by mdadm. | |
4689 | ||
e91dba5b CW |
4690 | 2011-04-21 Colin Watson <cjwatson@ubuntu.com> |
4691 | ||
4692 | * po/README: Add instructions for creating po/LINGUAS. | |
4693 | ||
c85140b3 CW |
4694 | 2011-04-21 Colin Watson <cjwatson@ubuntu.com> |
4695 | ||
4696 | Add "SEE ALSO" sections to most man pages. Fixes Debian bug | |
4697 | #551428. | |
4698 | ||
4699 | * docs/man/grub-editenv.h2m (SEE ALSO): New section. | |
4700 | * docs/man/grub-emu.h2m (SEE ALSO): Likewise. | |
4701 | * docs/man/grub-fstest.h2m (SEE ALSO): Likewise. | |
4702 | * docs/man/grub-install.h2m (SEE ALSO): Likewise. | |
4703 | * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise. | |
4704 | * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise. | |
4705 | * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise. | |
4706 | * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise. | |
4707 | * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise. | |
4708 | * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise. | |
4709 | * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise. | |
4710 | * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise. | |
4711 | * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise. | |
4712 | * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise. | |
4713 | * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise. | |
4714 | * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise. | |
4715 | * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise. | |
4716 | * docs/man/grub-probe.h2m (SEE ALSO): Likewise. | |
4717 | * docs/man/grub-reboot.h2m (SEE ALSO): Likewise. | |
4718 | * docs/man/grub-script-check.h2m (SEE ALSO): Likewise. | |
4719 | * docs/man/grub-set-default.h2m (SEE ALSO): Likewise. | |
4720 | * docs/man/grub-setup.h2m (SEE ALSO): Likewise. | |
4721 | ||
92051871 CW |
4722 | 2011-04-21 Colin Watson <cjwatson@ubuntu.com> |
4723 | ||
4724 | * grub-core/kern/emu/getroot.c | |
4725 | (grub_find_root_device_from_mountinfo): Remove non-virtual-device | |
4726 | test that was incorrectly reintroduced in r3214. | |
4727 | Reported by: Ian Dall. Fixes Savannah bug #33133. | |
4728 | ||
b13f79a4 CW |
4729 | 2011-04-21 Colin Watson <cjwatson@ubuntu.com> |
4730 | ||
4731 | Fix stack pointer handling in 16-bit relocator. | |
4732 | ||
4733 | * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move | |
4734 | grub_relocator16_sp to %esp rather than %ss, and zero-extend it. | |
4735 | Fixes Ubuntu bug #683904. | |
4736 | ||
9b710a88 VS |
4737 | 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com> |
4738 | ||
4739 | * configure.ac: Bump version to 1.99~rc2. | |
4740 | ||
d97e7b59 VS |
4741 | 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com> |
4742 | ||
4743 | * include/grub/dl.h [ASM_FILE]: Adapt for assembly. | |
4744 | * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE. | |
4745 | * grub-core/lib/x86_64/setjmp.S: Likewise. | |
4746 | * grub-core/lib/mips/setjmp.S: Likewise. | |
4747 | * grub-core/lib/powerpc/setjmp.S: Likewise. | |
4748 | * grub-core/lib/sparc64/setjmp.S: Likewise. | |
4749 | ||
0624551c VS |
4750 | 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com> |
4751 | ||
4752 | * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE. | |
4753 | * grub-core/lib/efi/datetime.c: Likewise. | |
4754 | ||
e8f28d4c VS |
4755 | 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
4756 | ||
4757 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush): | |
4758 | New function. | |
4759 | (grub_util_biosdisk_close): Use grub_util_biosdisk_flush. | |
4760 | * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto. | |
4761 | * util/grub-setup.c (setup): Use grub_util_biosdisk_flush. | |
4762 | ||
bba79a15 VS |
4763 | 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
4764 | ||
4765 | * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous | |
4766 | bitmap. | |
4767 | (grub_gfxterm_term_init): Likewise. | |
4768 | ||
abc474ef VS |
4769 | 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
4770 | ||
4771 | Take into account the decorations the computing menu entry width. | |
4772 | ||
4773 | * grub-core/gfxmenu/widget-box.c (get_border_width): New function. | |
4774 | (grub_gfxmenu_create_box): Register get_border_width. | |
4775 | * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width | |
4776 | if available. | |
4777 | * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member | |
4778 | get_border_width. | |
4779 | ||
e74b3947 EP |
4780 | 2011-04-18 Endres Puschner <code@e7p.de> |
4781 | ||
4782 | * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon): | |
4783 | Don't skip first class. | |
4784 | ||
34faa595 VS |
4785 | 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
4786 | ||
4787 | * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge | |
4788 | chunks. | |
4789 | * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG. | |
4790 | ||
93a777e3 VS |
4791 | 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
4792 | ||
4793 | Complete 64-bit division support. | |
4794 | ||
4795 | * grub-core/kern/misc.c (grub_divmod64): Rename to ... | |
4796 | (grub_divmod64_full): ... this. Support 64-bit divisor and reminder. | |
4797 | * include/grub/misc.h (grub_divmod64): Rename to ... | |
4798 | (grub_divmod64_full): ... this. | |
4799 | (grub_divmod64): New inline function. | |
4800 | ||
a5102d94 VS |
4801 | 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
4802 | ||
4803 | * util/grub-mkimage.c (generate_image): Add forgotten comma. | |
4804 | ||
f3fb7b36 VS |
4805 | 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
4806 | ||
4807 | * util/grub-mkimage.c (generate_image): Update fwstart.img hash after | |
4808 | performing the necessary test. | |
4809 | ||
9ac718b0 VS |
4810 | 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com> |
4811 | ||
4812 | * Makefile.am (multiboot.elf): Add -Wl,--build-id=none. | |
4813 | (kfreebsd.elf): Likewise. | |
4814 | (pc-chainloader.elf): Likewise. | |
4815 | (ntldr.elf): Likewise. | |
4816 | ||
50d2cc5a VS |
4817 | 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com> |
4818 | ||
4819 | Identify RAID by its UUID rather than (guessed) name. | |
4820 | ||
4821 | * grub-core/disk/raid.c (ascii2hex): New function. | |
4822 | (grub_raid_open): Accept mduuid/%s specification. | |
4823 | * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ... | |
4824 | (get_mdadm_uuid): ... this. | |
4825 | (grub_util_get_grub_dev): Use mduuid/%s if UUID is available. | |
4826 | ||
e03f7bea VS |
4827 | 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com> |
4828 | ||
4829 | * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale | |
4830 | to negative size. | |
4831 | ||
e74c3112 CW |
4832 | 2011-04-13 Colin Watson <cjwatson@ubuntu.com> |
4833 | ||
4834 | * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a | |
4835 | btrfs subvolume. | |
4836 | * util/grub.d/20_linux_xen.in: Likewise. | |
4837 | ||
78fa584f CW |
4838 | 2011-04-13 Colin Watson <cjwatson@ubuntu.com> |
4839 | ||
4840 | Rewrite /proc/self/mountinfo handling to cope with bind-mounts and | |
4841 | move-mounts appearing out of order. Fixes Ubuntu bug #738345. | |
4842 | ||
4843 | * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo): | |
4844 | Build a list of relevant visible mounts using the mnt_id and | |
4845 | parent_mnt_id fields, and then scan that list at the end. | |
4846 | ||
9d5f8162 CW |
4847 | 2011-04-12 Colin Watson <cjwatson@ubuntu.com> |
4848 | ||
4849 | * docs/grub.texi (normal): New section. | |
4850 | (normal_exit): New section. | |
4851 | (Embedded configuration): Add reference to normal. | |
4852 | (GRUB only offers a rescue shell): Likewise. | |
4853 | * docs/grub-dev.texi (Error Handling): Fix typo. | |
4854 | ||
09a9d66f CW |
4855 | 2011-04-12 Colin Watson <cjwatson@ubuntu.com> |
4856 | ||
4857 | * NEWS: Drop obsolete entry about probe-only btrfs support. | |
4858 | ||
0c676933 CW |
4859 | 2011-04-12 Colin Watson <cjwatson@ubuntu.com> |
4860 | ||
4861 | * util/import_gcry.py: Fix typo. | |
4862 | ||
ec9f5e0d VS |
4863 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4864 | ||
4865 | * NEWS: Add btrfs support. | |
4866 | ||
fe6b2cba VS |
4867 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4868 | 2011-04-11 Colin Watson <cjwatson@ubuntu.com> | |
4869 | ||
4870 | BtrFS support. Written by me (Vladimir) with important bugfixes and | |
4871 | even more important testing by Colin. | |
4872 | ||
4873 | * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c | |
4874 | * grub-core/Makefile.core.def (btrfs): Add crc.c. | |
4875 | * grub-core/fs/btrfs.c: Stub replaced with real implementation. | |
4876 | * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size, | |
4877 | mem_input_off and mem_input. All users updated to accept in-RAM input. | |
4878 | (gzio_seek): New function. | |
4879 | (test_zlib_header): Likewise. | |
4880 | (grub_gzio_read): Likewise. | |
4881 | (grub_zlib_decompress): Likewise. | |
4882 | * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo): | |
4883 | Accept partial and non-virtual mounts. | |
4884 | (grub_guess_root_device): Do rescanning after device_from_mountinfo to | |
4885 | avoid receiving /dev/dm-X as device. | |
4886 | * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root): | |
4887 | Handle bind and partial mounts. | |
4888 | * grub-core/lib/crc.c: New file. | |
4889 | * include/grub/deflate.h: Likewise. | |
4890 | * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New | |
4891 | proto. | |
4892 | * include/grub/lib/crc.h: New file. | |
4893 | ||
e745cf0c VS |
4894 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4895 | ||
4896 | Implement automatic module license checking according to new GNU | |
4897 | guidelines. | |
4898 | ||
4899 | * grub-core/kern/dl.c (grub_dl_check_license): New function. | |
4900 | (grub_dl_load_core): Use grub_dl_check_license. | |
4901 | * include/grub/dl.h (GRUB_MOD_SECTION): New macro. | |
4902 | (GRUB_MOD_LICENSE): Likewise. | |
4903 | (GRUB_MOD_DUAL_LICENSE): Likewise. | |
4904 | All modules updated. | |
4905 | ||
2a9bc016 CW |
4906 | 2011-04-11 Colin Watson <cjwatson@ubuntu.com> |
4907 | ||
4908 | * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set | |
4909 | reserved_first_sector to 1. btrfs reserves plenty of space for boot | |
4910 | loaders. | |
4911 | Reported by: Gene Cumm. Fixes Ubuntu bug #757446. | |
4912 | ||
8a3bc88e VS |
4913 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4914 | ||
4915 | * util/grub-fstest.c (cmd_cmp): Check that sizes match. | |
4916 | ||
af869a4a VS |
4917 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4918 | ||
4919 | * util/grub-fstest.c (read_file): Report GRUB error if file opening | |
4920 | failed. | |
4921 | ||
9ee8d94f VS |
4922 | 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
4923 | ||
4924 | * grub-core/kern/file.c (grub_file_open): Don't take into account the | |
4925 | parenthesis in the middle of the filename. | |
4926 | ||
b01abe3e VS |
4927 | 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
4928 | ||
4929 | * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits | |
4930 | rather than trying to put initrd way too high. | |
4931 | Reported by: Ryan Lortie <desrt@desrt.ca> | |
4932 | ||
335bda1e VS |
4933 | 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
4934 | ||
4935 | * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back | |
4936 | improperly removed string. | |
4937 | ||
5ca1a64d VS |
4938 | 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
4939 | ||
4940 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member | |
4941 | is_disk. | |
4942 | (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices. | |
4943 | (open_device) Likewise. | |
4944 | (grub_util_biosdisk_close): Likewise. | |
d8ce9995 | 4945 | Reported by: Mark Korenberg. |
5ca1a64d | 4946 | |
cbac5b1e AK |
4947 | 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com> |
4948 | ||
4949 | * util/grub-mkconfig_lib.in: Add missing quotes. | |
4950 | ||
088cdb65 CW |
4951 | 2011-04-10 Colin Watson <cjwatson@ubuntu.com> |
4952 | ||
4953 | * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate | |
4954 | is NULL. | |
4955 | ||
8b8a81fa VS |
4956 | 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
4957 | ||
4958 | Dynamically count the number of lines for the lower banner. | |
4959 | ||
4960 | * grub-core/normal/menu_entry.c (per_term_screen): New member | |
4961 | num_entries. | |
4962 | (print_down): Use num_entries. | |
4963 | (update_screen): Likewise. | |
4964 | (grub_menu_entry_run): Set num_entries. | |
4965 | * grub-core/normal/menu_text.c (menu_viewer_data): New member | |
4966 | num_entries. | |
4967 | (grub_print_message_indented): Move real part to ... | |
4968 | (grub_print_message_indented_real): ... here. Additional argument | |
4969 | dry_run. | |
4970 | (draw_border): Additional argument num_entries. | |
4971 | (print_message): Additional argument dry_run. | |
4972 | (print_entries): Receive menu viewer data. | |
4973 | (grub_menu_init_page): New argment num_entries. | |
4974 | (menu_text_set_chosen_entry): Use num_entries. | |
4975 | (grub_menu_try_text): Likewise. | |
4976 | * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run. | |
4977 | All users updated. | |
4978 | (grub_ucs4_count_lines): New function. | |
4979 | * include/grub/term.h (grub_term_cursor_x): Moved from here .. | |
4980 | * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here. | |
4981 | * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed. | |
4982 | (grub_term_border_height): Likewise. | |
4983 | (grub_term_num_entries): Likewise. | |
4984 | ||
277f955b VS |
4985 | 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
4986 | ||
4987 | * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message. | |
4988 | Remove now unused string. | |
4989 | ||
536ce85a CW |
4990 | 2011-04-09 Colin Watson <cjwatson@ubuntu.com> |
4991 | ||
4992 | * docs/grub-dev.texi (Finding your way around): Update for 1.99 | |
4993 | build system. | |
4994 | (Getting started): GRUB is developed in Bazaar now, not Subversion. | |
4995 | ||
4996 | (Comment): Fix typo. | |
4997 | (Getting started): General copy-editing. | |
4998 | (Typical Development Experience): Likewise. | |
4999 | (Error Handling): Likewise. | |
5000 | (Video API): Likewise. | |
5001 | ||
2cf09e32 CW |
5002 | 2011-04-09 Colin Watson <cjwatson@ubuntu.com> |
5003 | ||
5004 | * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax | |
5005 | throughout. | |
5006 | ||
1ec652f4 VS |
5007 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5008 | ||
5009 | * util/grub-mkimage.c (main): Handle special naming of yeeloong | |
5010 | directory. | |
5011 | ||
2c583728 CW |
5012 | 2011-04-08 Colin Watson <cjwatson@ubuntu.com> |
5013 | ||
5014 | * docs/grub-dev.texi: Fix spelling of "developer" throughout. | |
5015 | * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of | |
5016 | "development". | |
5017 | ||
d7a565e9 VS |
5018 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5019 | ||
5020 | * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than | |
5021 | grub_strcpy since the lines aren't necessarily 0-terminated. | |
5022 | ||
7c2e4909 VS |
5023 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5024 | ||
5025 | * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set | |
5026 | root on legacy. | |
5027 | ||
34c09785 VS |
5028 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5029 | ||
5030 | * grub-core/commands/probe.c (options): Argument to set isn't optional. | |
5031 | (GRUB_MOD_INIT): DEVICE isn't optional. | |
5032 | ||
6a6f8058 VS |
5033 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5034 | ||
5035 | * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the | |
5036 | word on new line if it's too long anyway. Fixes a hang. | |
5037 | ||
2e335e90 VS |
5038 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5039 | ||
5040 | * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument | |
5041 | const. | |
5042 | * util/grub-setup.c (main): Reuse md device name if available. | |
5043 | * util/raid.c (grub_util_raid_getmembers): Receive device name and | |
5044 | not GRUB name as argument. | |
5045 | Based on patch by: Florian Wagner <fwagner>. | |
5046 | ||
10a7a867 VS |
5047 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5048 | ||
5049 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): | |
5050 | Place mbi on low memory for better compatibility. | |
5051 | ||
7a3d6cd9 VS |
5052 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5053 | ||
5054 | * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type. | |
5055 | ||
18dd6b47 VS |
5056 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5057 | 2011-04-08 Colin Watson <cjwatson@ubuntu.com> | |
5058 | ||
5059 | * autogen.sh: Ensure that collate and ctype locale is C. | |
4ed4ce58 | 5060 | * conf/Makefile.common: Likewise. |
18dd6b47 | 5061 | |
3c0e3f14 VS |
5062 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5063 | ||
f7148863 VS |
5064 | * grub-core/normal/menu.c: Add missing include. |
5065 | ||
5066 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> | |
5067 | ||
5068 | * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include. | |
3c0e3f14 | 5069 | |
6d1fa41f MZ |
5070 | 2011-04-08 Martin Zuther <mzuther@mzuther.de> |
5071 | ||
5072 | * util/grub-mkconfig.in: Ignore emacsen backup. | |
5073 | ||
478182a8 VS |
5074 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5075 | ||
5076 | * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not | |
5077 | on open. | |
5078 | (grub_util_biosdisk_close): Likewise. | |
5079 | ||
72a89a54 VS |
5080 | 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com> |
5081 | ||
5082 | * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing | |
5083 | const attribute and use grub_isdigit. | |
5084 | ||
b5ebecfa A |
5085 | 2011-04-06 Andrey <dev_null@ukr.net> |
5086 | ||
5087 | * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older | |
5088 | gcc warning. | |
5089 | ||
7755f66e VS |
5090 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5091 | ||
5092 | * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few | |
5093 | useful grub_dprintf's. | |
5094 | ||
461121ff VS |
5095 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5096 | ||
5097 | * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields. | |
5098 | ||
2a961775 VS |
5099 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5100 | ||
5101 | * util/grub.d/00_header.in: Don't use LANG unless unifont is available. | |
5102 | ||
adf594cc VS |
5103 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5104 | ||
5105 | Output errors if theme loading failed. | |
5106 | ||
5107 | * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to | |
5108 | grub_gfxterm_fullscreen on error paths to ... | |
5109 | * grub-core/normal/menu.c (menu_init): ...here. Wait after showing | |
5110 | theme loading error. | |
5111 | ||
665900a3 VS |
5112 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5113 | ||
5114 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more | |
5115 | space for older compilers. | |
5116 | (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise. | |
5117 | ||
a562b479 VS |
5118 | 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
5119 | ||
5120 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares | |
5121 | and report them as not RAID members since they are useless for GRUB. | |
5122 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise. | |
5123 | ||
850e9373 VS |
5124 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5125 | ||
5126 | Increase LVM implementation robustness in order not to crash on | |
5127 | configurations like pvmove. Previously code assumed that in some places | |
5128 | only lvs or only pvs are used whereas it seems that they are used | |
5129 | interchangeably. | |
5130 | ||
5131 | * grub-core/disk/lvm.c (read_node): New function. | |
5132 | (read_lv): Use read_node. | |
5133 | (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs. | |
5134 | Match volumes only at the end when all lvs are found. Take both | |
5135 | pvs (first) and lvs (second) into account. | |
5136 | * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and | |
5137 | mirror_* into node_*. All users updated. | |
5138 | (grub_lvm_stripe): Merge this ... | |
5139 | (grub_lvm_mirror): ... and this ... | |
5140 | (grub_lvm_node): ... into this. All users updated. | |
5141 | ||
6f332153 VS |
5142 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5143 | ||
5144 | * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end | |
5145 | of function to allow further scanning for LVMs. | |
5146 | ||
829ea451 VS |
5147 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5148 | ||
5149 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close | |
5150 | on failed seek as it breaks open fd reusage. | |
5151 | ||
09ceb9a5 VS |
5152 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5153 | ||
5154 | * util/grub-install.in: Add a recommendation to use --recheck before | |
5155 | reporting bugs. | |
5156 | ||
67e11623 VS |
5157 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5158 | ||
5159 | * docs/grub.texi (Vendor power-on buttons): Explain how the numbers | |
5160 | are obtained. | |
5161 | ||
caee5efd VS |
5162 | 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
5163 | ||
5164 | GRUB developper manual based on existing Internals section and | |
5165 | contributions by the various authors with active copyright assignment. | |
5166 | ||
5167 | * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi. | |
5168 | * docs/font_char_metrics.png: New file. | |
5169 | * docs/font_char_metrics.txt: Likewise. | |
5170 | * docs/grub-dev.texi: Likewise. | |
5171 | * docs/grub.texi (Internals): Move from here ... | |
5172 | * docs/grub-dev.texi: ... here. | |
5173 | ||
2cccc747 CW |
5174 | 2011-04-01 Colin Watson <cjwatson@ubuntu.com> |
5175 | ||
5176 | Store the loopback device as data on loopback grub_disk structures, | |
5177 | rather than the file it points to. This fixes use of freed memory | |
5178 | if an existing loopback device is replaced. | |
5179 | ||
5180 | * grub-core/disk/loopback.c (grub_loopback_open): Store dev in | |
5181 | disk->data, not dev->file. | |
5182 | (grub_loopback_read): Adjust file assignment to match. | |
5183 | Fixes Ubuntu bug #742967. | |
5184 | ||
186ae367 CW |
5185 | 2011-04-01 Colin Watson <cjwatson@ubuntu.com> |
5186 | ||
5187 | * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak | |
5188 | when replacing an existing device. | |
5189 | ||
cfed2ad0 VS |
5190 | 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com> |
5191 | ||
5192 | Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some | |
5193 | memory corruptions. | |
5194 | ||
5195 | * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as | |
5196 | unsigned. | |
5197 | (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int. | |
5198 | (grub_jfs_blkno): Use 64-bit quantities for block sectors. | |
5199 | (grub_jfs_read_inode): Likewise. | |
5200 | (grub_jfs_opendir): Likewise. Remove now useless casts. | |
5201 | (grub_jfs_getent): Likewise. | |
5202 | Make ino a grub_uint32_t rather than int. | |
5203 | (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent. | |
5204 | (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace | |
5205 | division and module with bit operations. | |
5206 | (grub_jfs_find_file): Make ino a grub_uint32_t. | |
5207 | (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities | |
5208 | ||
05d2ed32 CW |
5209 | 2011-04-01 Colin Watson <cjwatson@ubuntu.com> |
5210 | ||
5211 | * grub-core/normal/menu_entry.c (run): Quieten uninitialised | |
5212 | warning. (This was in fact always initialised before use, but GCC | |
5213 | wasn't smart enough to prove that.) | |
5214 | * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise. | |
5215 | ||
91dc6073 VS |
5216 | 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com> |
5217 | ||
5218 | * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte | |
5219 | stack alignment. | |
5220 | (efi_wrap_1): Likewise. | |
5221 | (efi_wrap_2): Likewise. | |
5222 | (efi_wrap_3): Likewise. | |
5223 | (efi_wrap_4): Likewise. | |
5224 | (efi_wrap_5): Likewise. | |
5225 | (efi_wrap_6): Likewise. | |
5226 | (efi_wrap_10): Likewise. | |
5227 | Based on information by: Red Hat/Peter Jones. | |
5228 | ||
a8afc1d1 CW |
5229 | 2011-03-31 Colin Watson <cjwatson@ubuntu.com> |
5230 | ||
5231 | * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove | |
5232 | set-but-not-used variable. | |
5233 | ||
a826cc7d CW |
5234 | 2011-03-31 Colin Watson <cjwatson@ubuntu.com> |
5235 | ||
5236 | * docs/grub.texi (Simple configuration): Be more explicit about | |
5237 | GRUB_DEFAULT, and add an example. | |
5238 | Reported by: Leslie Rhorer. | |
5239 | ||
875b67ba CW |
5240 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5241 | ||
5242 | * docs/grub.texi (Commands): Link to "GRUB only offers a rescue | |
5243 | shell". | |
5244 | ||
fd7cd914 AS |
5245 | 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org> |
5246 | ||
5247 | * util/grub.d/10_linux.in: Add gentoo-specific config filename. | |
5248 | * util/grub.d/20_linux_xen.in: Likewise. | |
5249 | ||
090b1b6a VS |
5250 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5251 | ||
5252 | * util/grub.d/10_linux.in: Try alternative config filenames where | |
5253 | we parse config file. | |
5254 | * util/grub.d/20_linux_xen.in: Likewise. | |
5255 | ||
baad885c AS |
5256 | 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org> |
5257 | ||
5258 | * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names. | |
5259 | * util/grub.d/20_linux_xen.in: Likewise. | |
5260 | ||
241e41f5 VS |
5261 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5262 | ||
5263 | * grub-core/disk/raid.c (insert_array): Add few potentially | |
5264 | useful grub_util_info. | |
5265 | (grub_raid_register): Likewise. | |
5266 | ||
56445fb2 VS |
5267 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5268 | ||
5269 | * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]: | |
5270 | Preserve partition number in mdadm code path. | |
5271 | ||
c871b1c6 VS |
5272 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5273 | ||
5274 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add | |
5275 | few potentially useful grub_util_info. | |
5276 | ||
5e631b4f CW |
5277 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5278 | ||
5279 | * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n. | |
5280 | ||
2d5d0333 CW |
5281 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5282 | ||
5283 | * docs/grub.texi (default): Use @example rather than nested | |
5284 | itemized lists to avoid breaking gendocs. | |
5285 | ||
3d7ed04e CW |
5286 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5287 | ||
5288 | * docs/grub.texi (Future): Update. | |
5289 | ||
abf04200 | 5290 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5291 | ||
5292 | * docs/grub.texi (Environment): New chapter. | |
5293 | (Changes from GRUB Legacy): Link to "Environment block" section for | |
5294 | details of limitations. | |
5295 | (Simple configuration): Likewise. Link to documentation of gfxmode | |
5296 | and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD | |
5297 | respectively. | |
5298 | (Shell-like scripting): Note that normal variables are stored in the | |
5299 | environment. | |
5300 | (gettext): Link to documentation of lang and locale_dir. | |
5301 | (list_env): New section. | |
5302 | (load_env): New section. | |
5303 | (save_env): New section. | |
5304 | ||
5305 | (Reporting bugs): Fix typo. | |
5306 | ||
e1ad0edd VS |
5307 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5308 | ||
5309 | * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in | |
5310 | the example. | |
5311 | ||
5d803174 VS |
5312 | 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
5313 | ||
5314 | * grub-core/term/at_keyboard.c (set_scancodes) | |
5315 | [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1. | |
5316 | ||
2a2da1d0 CW |
5317 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5318 | ||
5319 | * docs/grub.texi (Menu-specific commands): Remove some semantics | |
5320 | that were true in GRUB Legacy but not in GRUB 2. | |
5321 | (submenu): New section. | |
5322 | (false): New section. | |
5323 | (read): New section. | |
5324 | (true): New section. | |
5325 | ||
a7527639 CW |
5326 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> |
5327 | ||
5328 | * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading. | |
5329 | ||
5330 | 2011-03-30 Colin Watson <cjwatson@ubuntu.com> | |
e30af029 CW |
5331 | |
5332 | * docs/grub.texi (Simple configuration): Explain some of the | |
5333 | current limitations of grub-mkconfig. | |
8a748df2 | 5334 | Reported by: Leslie Rhorer. |
e30af029 | 5335 | |
fc858482 VS |
5336 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5337 | ||
5338 | Old macs search for boot.efi rather than for bootia32.efi. | |
5339 | ||
5340 | * util/grub-install.in: Copy bootia32.efi to boot.efi. | |
5341 | * util/grub-mkrescue.in: Likewise. | |
5342 | Suggested by: Peter Jones. | |
5343 | ||
e1eb511d VS |
5344 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5345 | ||
5346 | * util/grub.d/20_linux_xen.in: Accept old-style xen kernels. | |
5347 | ||
70e75364 VS |
5348 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5349 | ||
5350 | * include/grub/lvm.h (grub_lvm_lv): New field 'visible'. | |
5351 | (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'. | |
5352 | (grub_lvm_mirror): New struct. | |
5353 | * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out. | |
5354 | (grub_lvm_iterate): Iterate only visible volumes. | |
5355 | (grub_lvm_read): Factor out to .. | |
5356 | (read_lv): ... this. Support mirrors. | |
5357 | (grub_lvm_read): New wrapper function. | |
5358 | (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't | |
5359 | stripped or mirrored. | |
5360 | ||
fc18f6a3 VS |
5361 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5362 | ||
5363 | * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms. | |
5364 | ||
5c650f4c CW |
5365 | 2011-03-29 Colin Watson <cjwatson@ubuntu.com> |
5366 | ||
5367 | * docs/grub.texi (loopback): New section. | |
5368 | ||
61d7156b CW |
5369 | 2011-03-29 Colin Watson <cjwatson@ubuntu.com> |
5370 | ||
5371 | * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting | |
5372 | removed -p option. | |
5373 | ||
994b8264 CW |
5374 | 2011-03-29 Colin Watson <cjwatson@ubuntu.com> |
5375 | ||
5376 | * docs/grub.texi (BIOS installation): New section, partly based on | |
5377 | previous text in other sections. | |
5378 | (Installing GRUB using grub-install): Replace BIOS discussion with a | |
5379 | cross-reference. | |
5380 | (Images): Likewise. | |
5381 | ||
9e4d19e0 VS |
5382 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5383 | ||
5384 | * grub-core/kern/emu/hostdisk.c (find_partition_start) | |
5385 | [HAVE_DIOCGDINFO]: Add safety checks. | |
5386 | ||
a307c0b2 VS |
5387 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5388 | ||
5389 | * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's | |
5390 | per default compiled in kernel and prior to 8.0 isn't shipped at all. | |
5391 | ||
b4db4f39 CW |
5392 | 2011-03-29 Colin Watson <cjwatson@ubuntu.com> |
5393 | ||
5394 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If | |
5395 | real_sb->size is zero (e.g. RAID-0), get the disk size from | |
5396 | real_sb->data_size instead. | |
5397 | Fixes Ubuntu bug #743136. | |
5398 | ||
35e5f84c VS |
5399 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5400 | ||
5401 | * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct | |
5402 | printf clauses for printing size and start. | |
5403 | ||
d2e29d81 VS |
5404 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5405 | ||
5406 | * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow. | |
5407 | Reported and tested by: Timothy Nikkel. | |
5408 | ||
ed5587af VS |
5409 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5410 | ||
5411 | * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ... | |
5412 | (dirty_region_add_real): ... this. | |
5413 | (dirty_region_add): Don't discard margin refresh when performing | |
5414 | scheduled repaint. | |
5415 | ||
a1dc717c VS |
5416 | 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
5417 | ||
5418 | * grub-core/lib/relocator.c (allocate_regstart) | |
5419 | [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all | |
5420 | terminals are capabple of malloc-free operation. | |
5421 | (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise. | |
5422 | (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise. | |
5423 | ||
9f3677d3 VS |
5424 | 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com> |
5425 | ||
5426 | * util/grub-setup.c: Copy the partition table zone if floppy support | |
5427 | is disabled, even if no partition table is found. | |
5428 | ||
5429 | Otherwise, the BIOS on Dell Latitude E series laptops will freeze | |
5430 | during POST if an invalid partition table is contained in the PBR | |
5431 | of the active partition when GRUB is installed to a partition. | |
5432 | ||
24148725 CW |
5433 | 2011-03-28 Colin Watson <cjwatson@debian.org> |
5434 | ||
5435 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale | |
5436 | comment. | |
5437 | ||
f329eda7 CW |
5438 | 2011-03-28 Colin Watson <cjwatson@debian.org> |
5439 | ||
5440 | * grub-core/disk/raid.c (grub_raid_register): Adjust debug message | |
5441 | to be specific about what kind of RAID device we're scanning for. | |
5442 | ||
c482ad98 SG |
5443 | 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com> |
5444 | ||
5445 | * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't | |
5446 | return freed string. | |
5447 | ||
5ee04984 VS |
5448 | 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
5449 | ||
5450 | * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label. | |
5451 | ||
f4727da9 VS |
5452 | 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
5453 | ||
5454 | Use libgeom on FreeBSD to detect partitions. | |
5455 | ||
5456 | * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd. | |
5457 | (grub-mkrelpath): Likewise. | |
5458 | (grub-script-check): Likewise. | |
5459 | (grub-editenv): Likewise. | |
5460 | (grub-mkpasswd-pbkdf2): Likewise. | |
5461 | (grub-fstest): Likewise. | |
5462 | (grub-mkfont): Likewise. | |
5463 | (grub-mkdevicemap): Likewise. | |
5464 | (grub-probe): Likewise. | |
5465 | (grub-setup): Likewise. | |
5466 | (grub-ofpathname): Likewise. | |
5467 | (grub-mklayout): Likewise. | |
5468 | (example_unit_test): Likewise. | |
5469 | (grub-menulst2cfg): Likewise. | |
5470 | * grub-core/Makefile.core.def (grub-emu): Likewise. | |
5471 | (grub-emu-lite): Likewise. | |
5472 | * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM. | |
5473 | * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't | |
5474 | define HAVE_DIOCGDINFO. | |
5475 | (follow_geom_up) [FreeBSD]: New function. | |
5476 | (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up. | |
5477 | (convert_system_partition_to_system_disk) [FreeBSD]: Likewise. | |
5478 | (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path | |
5479 | unconditionally of HAVE_DIOCGDINFO. | |
5480 | ||
82fe6c75 VS |
5481 | 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
5482 | ||
5483 | Fix FreeBSD compilation problem. | |
5484 | ||
5485 | * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition. | |
5486 | (FLOPPY_MAJOR) [FreeBSD]: Likewise. | |
5487 | ||
4c6c9431 CW |
5488 | 2011-03-24 Colin Watson <cjwatson@ubuntu.com> |
5489 | ||
5490 | * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini): | |
5491 | Switch back to page zero before loading a kernel, since some kernel | |
5492 | drivers expect that. | |
5493 | Thanks to: Felix Kuehling. | |
5494 | ||
c7064d94 VS |
5495 | 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com> |
5496 | ||
5497 | * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr) | |
5498 | [DEBUG_RELOCATOR]: Reuse grub_mm_check. | |
5499 | (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise. | |
5500 | ||
3f71cded VS |
5501 | 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com> |
5502 | ||
5503 | * include/grub/mm.h (GRUB_MM_CHECK): Rename to ... | |
5504 | (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE. | |
5505 | ||
ef6de21a VS |
5506 | 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com> |
5507 | ||
5508 | * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless | |
5509 | DEBUG_RELOCATOR is defined since gfxterm can't cope with output when | |
5510 | malloc is disabled. | |
5511 | ||
8bc66a2c VS |
5512 | 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com> |
5513 | ||
5514 | * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account | |
5515 | for modules headers when counting the needed allocation size. | |
5516 | ||
5657722c VS |
5517 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5518 | ||
5519 | * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8 | |
5520 | if no ASCII character is found to prevent crash. | |
5521 | ||
41a85f55 AK |
5522 | 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com> |
5523 | ||
5524 | * grub-core/video/bitmap.c (match_extension): Ignore case. | |
5525 | ||
59e1e5f1 VS |
5526 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5527 | ||
5528 | * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error. | |
5529 | ||
bd4d051a VS |
5530 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5531 | ||
5532 | * grub-core/script/parser.y: Declare "time" as valid argument. | |
5533 | ||
bae7fcc1 PJ |
5534 | 2011-03-23 Peter Jones <pjones@redhat.com> |
5535 | ||
5536 | Fix incorrect assert failure reporting. | |
5537 | ||
5538 | * grub-core/tests/example_functional_test.c (example_test): Add | |
5539 | a failure comment. | |
5540 | * grub-core/tests/lib/test.c (add_failure): Renamed to ... | |
5541 | (failure_start): ...this. Check that malloc succeeded. | |
5542 | Don't call xvasprintf. Return failure struct. | |
5543 | (failure_append_vtext): New function. | |
5544 | (failure_append_text): Likewise. | |
5545 | (add_failure): Likewise. | |
5546 | (grub_test_assert_helper): Likewise. | |
5547 | * include/grub/test.h (grub_test_assert_helper): New declaration. | |
5548 | (grub_test_assert): Macro rewritten. | |
5549 | ||
537dc9be VS |
5550 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5551 | ||
5552 | * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable. | |
5553 | ||
fa3e01bf VS |
5554 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5555 | ||
5556 | * grub-core/lib/i386/pc/biosnum.c: Add missing include. | |
5557 | ||
b1d28404 VS |
5558 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5559 | ||
5560 | * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error | |
5561 | into GRUB-style one. | |
5562 | ||
2e3e2e09 VS |
5563 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5564 | ||
5565 | * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style | |
5566 | error and not grub_errno. | |
5567 | * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise. | |
5568 | ||
ed57e557 VS |
5569 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5570 | ||
5571 | * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return | |
5572 | GRUB_USB_SPEED_NONE in case of failure and not the error code. | |
5573 | ||
d1611f01 VS |
5574 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5575 | ||
5576 | * grub-core/efiemu/i386/pc/cfgtables.c | |
5577 | (grub_machine_efiemu_init_tables): Make declaration a prototype. | |
5578 | * grub-core/loader/xnu.c (grub_xnu_lock): Likewise. | |
5579 | (grub_xnu_unlock): Likewise. | |
5580 | * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise. | |
5581 | ||
7d4e39d6 VS |
5582 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5583 | ||
5584 | * grub-core/bus/usb/usb.c (attach_hooks): Make static. | |
5585 | * grub-core/bus/usb/usbhub.c (hubs): Likewise. | |
5586 | * grub-core/commands/hashsum.c (aliases): Likewise. | |
5587 | * grub-core/commands/setpci.c (pci_registers): Likewise. | |
5588 | * grub-core/disk/usbms.c (attach_hook): Likewise. | |
5589 | * grub-core/fs/zfs/zfs.c (decomp_table): Likewise. | |
5590 | (zio_checksum_table): Likewise. | |
5591 | * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise. | |
5592 | * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise. | |
5593 | * grub-core/lib/legacy_parse.c (legacy_commands): Likewise. | |
5594 | * grub-core/lib/relocator.c (leftovers): Likewise. | |
5595 | (extra_blocks): Likewise. | |
5596 | * grub-core/loader/i386/bsd.c (relocator): Likewise. | |
5597 | * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise. | |
5598 | (modules_last): Likewise. | |
5599 | * grub-core/loader/i386/xnu.c (table_aliases): Likewise. | |
5600 | (devices): Likewise. | |
5601 | * grub-core/loader/multiboot_mbi2.c (modules): Likewise. | |
5602 | (modules_last): Likewise. | |
5603 | * grub-core/normal/auth.c (users): Likewise. | |
5604 | * grub-core/normal/context.c (initial_menu): Likewise. | |
5605 | (current_menu): Likewise. | |
5606 | * grub-core/normal/crypto.c (crypto_specs): Likewise. | |
5607 | * grub-core/term/serial.c (grub_serial_ports): Likewise. | |
5608 | (grub_serial_terminfo_input_template): Likewise. | |
5609 | (grub_serial_terminfo_output_template): Likewise. | |
5610 | (grub_serial_terminfo_input): Likewise. | |
5611 | (grub_serial_terminfo_output): Likewise. | |
5612 | (registered): Likewise. | |
5613 | * grub-core/term/usb_keyboard.c (attach_hook): Likewise. | |
5614 | ||
40fc4659 VS |
5615 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5616 | ||
5617 | * grub-core/video/bochs.c (grub_video_bochs_setup): Use | |
5618 | grub_video_mode_type_t. | |
5619 | * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise. | |
5620 | * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise. | |
5621 | * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise. | |
5622 | ||
2da48d28 VS |
5623 | 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com> |
5624 | ||
5625 | * util/grub-install.in: Correct the x86-64 name as x86_64. | |
5626 | ||
9b43bf39 CW |
5627 | 2011-03-11 Colin Watson <cjwatson@ubuntu.com> |
5628 | ||
5629 | * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the | |
5630 | initial chunk read from the kernel always includes GRUB's multiboot | |
5631 | header, which is now outside the first sector. | |
5632 | ||
be1a7ce0 CW |
5633 | 2011-03-09 Colin Watson <cjwatson@ubuntu.com> |
5634 | ||
5635 | * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align | |
5636 | cached mmap_size, so that this works correctly when called multiple | |
5637 | times. | |
5638 | Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638. | |
5639 | ||
83a3c48d CW |
5640 | 2011-03-09 Colin Watson <cjwatson@ubuntu.com> |
5641 | ||
5642 | * docs/grub.texi (Simple configuration): Tidy up formatting. | |
5643 | ||
57d75699 SJ |
5644 | 2011-03-07 Szymon Janc <szymon@janc.net.pl> |
5645 | ||
5646 | * grub-core/fs/zfs/zfs.c (zap_leaf_lookup): | |
5647 | Set-but-not-used variable removed. | |
5648 | ||
028501a0 VS |
5649 | 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com> |
5650 | ||
5651 | Workaround yet another IEEE1275 bug. | |
5652 | ||
5653 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value | |
5654 | GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS. | |
5655 | * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore | |
5656 | adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS | |
5657 | is set. | |
5658 | * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
5659 | GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs. | |
5660 | ||
d998657d VS |
5661 | 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com> |
5662 | ||
5663 | * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one | |
5664 | error. | |
5665 | ||
fee7cdd4 CW |
5666 | 2011-02-11 Colin Watson <cjwatson@ubuntu.com> |
5667 | ||
5668 | * util/grub.d/20_linux_xen.in: Bail out early if linux_list is | |
5669 | empty, since in that case we can only generate either nothing or a | |
5670 | syntactically invalid configuration file. | |
5671 | Reported by: Michal Suchanek. Fixes Debian bug #612898. | |
5672 | ||
97286eb5 CW |
5673 | 2011-02-09 Colin Watson <cjwatson@ubuntu.com> |
5674 | ||
5675 | * docs/grub.texi (Kernel): Add reference to grub-mkrescue. | |
5676 | (Making a GRUB bootable CD-ROM): Likewise. | |
5677 | (Invoking grub-mkrescue): New section. | |
5678 | Reported by: Yann Dirson. Fixes Debian bug #612585. | |
5679 | ||
22b28eb3 CW |
5680 | 2011-02-09 Colin Watson <cjwatson@ubuntu.com> |
5681 | ||
5682 | * util/grub-install.in: Remove unnecessary brackets from tr | |
5683 | arguments. | |
5684 | * util/grub.d/10_hurd.in: Likewise. | |
5685 | * util/grub.d/10_kfreebsd.in: Likewise. | |
5686 | * util/grub.d/10_linux.in: Likewise. | |
5687 | * util/grub.d/20_linux_xen.in: Likewise. | |
5688 | Reported by: Jamie Heilman. Fixes Debian bug #612564. | |
5689 | ||
7e735e43 CW |
5690 | 2011-02-08 Colin Watson <cjwatson@ubuntu.com> |
5691 | ||
5692 | * include/grub/file.h (not_easly_seekable): Rename to ... | |
5693 | (not_easily_seekable): ... this. Update all users. | |
5694 | ||
800f1881 CW |
5695 | 2011-01-28 Colin Watson <cjwatson@ubuntu.com> |
5696 | ||
5697 | * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe | |
5698 | grub-mkrescue. | |
5699 | ||
3281d3d6 VS |
5700 | 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com> |
5701 | ||
5702 | * util/grub-mkimage.c (generate_image): Refuse to create the images | |
5703 | bigger than the actual flash (512K) in Loongson machines. 512K is also | |
5704 | the biggest chip supported by them. | |
5705 | ||
3533413c VS |
5706 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5707 | ||
5708 | * grub-core/kern/emu/getroot.c: Include config-util.h explicitly. | |
5709 | ||
73ae4f4f VS |
5710 | 2011-01-22 Anthony DeRobertis <anthony@derobert.net> |
5711 | ||
5712 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check | |
5713 | super_offset field. | |
5714 | ||
37f4f608 VS |
5715 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5716 | ||
5717 | * util/grub-install.in: Ignore install device on platforms | |
5718 | where it doesn't make sense. Always use UUIDs except on pc, efi and | |
5719 | sparc64. | |
5720 | Reported by: Daniel Kahn Gillmor. | |
5721 | ||
03a4ccb5 VS |
5722 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5723 | ||
5724 | * grub-core/bus/bonito.c (write_bases): Fix direction of the shift. | |
5725 | ||
ffc8f4d8 VS |
5726 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5727 | ||
5728 | * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h. | |
5729 | (iterate_real): Don't rely on partition being non-NULL. | |
5730 | ||
80f23be7 VS |
5731 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5732 | ||
5733 | * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all | |
5734 | supported platforms. Put a compile time assert for this rather than | |
5735 | generate a warning with 32-bit shift. | |
5736 | ||
5d4f4dd5 VS |
5737 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5738 | ||
5739 | * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make | |
5740 | logical expression more readable. | |
5741 | ||
e489601a VS |
5742 | 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
5743 | ||
5744 | * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number | |
5745 | even if some elements have a name. | |
5746 | Reported by: Alexander GQ Gerasiov. | |
5747 | ||
96e0a6ea CW |
5748 | 2011-01-22 Colin Watson <cjwatson@ubuntu.com> |
5749 | ||
5750 | * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a | |
5751 | path unreadable if `grub-probe -t abstraction' fails, for example if | |
5752 | memberlist fails on an LVM volume group. | |
5753 | Reported by: Darius Jahandarie. | |
5754 | ||
81431e2b CW |
5755 | 2011-01-22 Colin Watson <cjwatson@ubuntu.com> |
5756 | ||
5757 | * docs/grub.texi (Simple configuration): Document | |
5758 | GRUB_PRELOAD_MODULES. | |
5759 | ||
5e79d66a CW |
5760 | 2011-01-17 Colin Watson <cjwatson@ubuntu.com> |
5761 | ||
5762 | * .bzrignore: Remove nonexistent grub-pbkdf2. | |
5763 | ||
646ada34 VS |
5764 | 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com> |
5765 | ||
5766 | * configure.ac: Bump version to 1.99~rc1. | |
5767 | ||
04360337 VS |
5768 | 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com> |
5769 | ||
5770 | * util/grub-mkimage.c (generate_image): Check fwstart.img checksum | |
5771 | for safety. | |
5772 | ||
46c9db88 VS |
5773 | 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com> |
5774 | ||
5775 | * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot | |
5776 | module. | |
5777 | ||
5778 | 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com> | |
1d955d00 VS |
5779 | |
5780 | * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS. | |
5781 | ||
4fbf1852 VS |
5782 | 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com> |
5783 | ||
5784 | * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and | |
5785 | diskdevid. | |
5786 | ||
f1632d4d VS |
5787 | 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com> |
5788 | ||
5789 | Fix compilation on cygwin. | |
5790 | ||
5791 | * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and | |
5792 | -R .drectve on cygwin. | |
5793 | * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data. | |
5794 | * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF. | |
5795 | (COND_CYGWIN): New condition. | |
5796 | * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF. | |
5797 | * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and | |
5798 | not @TARGET_OBJ2ELF@. | |
5799 | * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not | |
5800 | type to determine whether aux is to be used. | |
5801 | ||
0b5e127b VS |
5802 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5803 | ||
5804 | * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the | |
5805 | realpath'ed device string. | |
5806 | Handle floppy (somewhat). | |
5807 | Issue error in unknown case rather than garbage. | |
5808 | Reported by: Axel Beckert. | |
5809 | ||
173b71e9 VS |
5810 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5811 | ||
5812 | * util/grub.d/00_header.in (load_video): Handle the case when no video | |
5813 | drivers available. | |
5814 | Thanks to: Axel Beckert. | |
5815 | ||
f8f479db VS |
5816 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5817 | ||
5818 | * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data | |
5819 | variable. Fixes problem on big endian platforms. | |
5820 | ||
8fc0a245 VS |
5821 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5822 | ||
5823 | * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc. | |
5824 | It doesn't work well there. | |
5825 | ||
b8494fbe VS |
5826 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5827 | ||
5828 | * grub-core/normal/context.c (grub_env_context_close): Silence spurious | |
5829 | warning. | |
5830 | * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise. | |
5831 | * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned | |
5832 | counter. | |
5833 | ||
b44a558c VS |
5834 | 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
5835 | ||
5836 | Use alias->path rather than buggy "canon". | |
5837 | ||
5838 | * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function. | |
5839 | (ofdisk_hash_add): New argument curcan. All users updated. | |
5840 | ||
51fa856c CW |
5841 | 2011-01-11 Colin Watson <cjwatson@ubuntu.com> |
5842 | ||
5843 | * configure.ac: Fall back to `true' if `makeinfo' does not exist. | |
5844 | ||
9da068a5 VS |
5845 | 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com> |
5846 | ||
5847 | * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply | |
5848 | loadmask before doing any calculations. Use correct type for offset. | |
5849 | (grub_linux_load64): Likewise. | |
5850 | ||
86205c94 CW |
5851 | 2011-01-11 Colin Watson <cjwatson@ubuntu.com> |
5852 | ||
5853 | * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate | |
5854 | with NULL. | |
5855 | (console_grub_equivalences_unshift): Likewise. | |
5856 | Reported by: Daniel Dehennin. | |
5857 | ||
4531a206 VS |
5858 | 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com> |
5859 | ||
5860 | * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable. | |
5861 | (set_env_limn_ro): Likewise. | |
5862 | (GRUB_MOD_INIT): Likewise. | |
5863 | * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to | |
5864 | ARRAY_SIZE while on it. | |
5865 | (GRUB_MOD_FINI): Change to ARRAY_SIZE. | |
5866 | * grub-core/normal/context.c (grub_env_export): Move from here ... | |
5867 | * grub-core/kern/env.c (grub_env_export): ... here. | |
5868 | * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and | |
5869 | prefix. | |
5870 | * grub-core/kern/main.c (grub_main): Export root and prefix. | |
5871 | * include/grub/env.h (grub_env_export): Export. | |
5872 | Reported by: Seth Goldberg. | |
5873 | ||
45146057 VS |
5874 | 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com> |
5875 | ||
5876 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): | |
5877 | Take into account space used by ELF sections and multiboot palette. | |
5878 | Reported by: Grégoire Sutre. | |
5879 | ||
f093110b VS |
5880 | 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com> |
5881 | ||
5882 | * BUGS: New file. | |
5883 | ||
3395fe52 VS |
5884 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5885 | ||
5886 | Pass more appropriate video id to Linux. | |
5887 | ||
5888 | * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use | |
5889 | grub_video_get_driver_id and variable gfxpayloadforcelfb to | |
5890 | fill have_vga. | |
5891 | (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and | |
5892 | shift params->lfb_size. | |
5893 | * include/grub/i386/linux.h: Make an enume out of have_vga values. | |
5894 | ||
c2fa6cbb VS |
5895 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5896 | ||
5897 | * util/grub-menulst2cfg.c: Add missing include of misc.h. | |
5898 | ||
b3ff6ff0 VS |
5899 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5900 | ||
5901 | * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as | |
5902 | separator and pass bootpath/devid even if only one of them is available. | |
5903 | Reported by: Seth Goldberg. | |
5904 | ||
ae67942e VS |
5905 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5906 | ||
5907 | Don't use post-4G memory on EFI even if 64-bit since some non-compliant | |
5908 | implementations bug on them. | |
5909 | ||
5910 | * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G | |
5911 | memory. | |
5912 | (filter_memory_map): Likewise. | |
5913 | ||
d570097a VS |
5914 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5915 | ||
5916 | * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables. | |
5917 | Reported by: nebuchadnezzar. | |
5918 | ||
a508e776 VS |
5919 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5920 | ||
5921 | * util/grub-kbdcomp.in: Add missing transform and bindir variables. | |
5922 | Reported by: nebuchadnezzar. | |
5923 | ||
dcb883b1 VS |
5924 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5925 | ||
5926 | Submenu default support. | |
5927 | ||
5928 | * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter | |
5929 | auto_boot. All users updated. | |
5930 | Declared static. | |
5931 | Handle chosen and default with submenus. | |
5932 | (grub_menu_execute_with_fallback): Declared static. | |
5933 | Don't notify failure if autobooted. Upper level does it. | |
5934 | (menuentry_eq): New function. | |
5935 | (get_entry_number): Use menuentry_eq. | |
5936 | (show_menu): New parameter "autobooted". All users updated. | |
5937 | (grub_show_menu): Likewise. | |
5938 | * include/grub/normal.h (grub_show_menu): Likewise. | |
5939 | * include/grub/menu.h (grub_menu_execute_entry): Removed. | |
5940 | (grub_menu_execute_with_fallback): Likewise. | |
5941 | ||
6fef99b4 VS |
5942 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5943 | ||
5944 | * util/grub-mklayout.c (usage): Update help text. | |
5945 | ||
47a77af5 VS |
5946 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5947 | ||
5948 | * grub-core/commands/legacycfg.c (legacy_file): Trim the line. | |
5949 | ||
ce6bb3ee VS |
5950 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5951 | ||
5952 | * util/grub-menulst2cfg.c (main): Trim the line. | |
5953 | ||
db87be2a VS |
5954 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5955 | ||
5956 | * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed. | |
5957 | (grub_machine_init): Don't check amount of low memory as reportedly | |
5958 | INT 12h can be broken and if low memory is too low we wouldn't have | |
5959 | gotten into grub_machine_init anyway. | |
5960 | ||
c49849cc VS |
5961 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5962 | ||
5963 | * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function. | |
5964 | (grub_machine_mmap_iterate): Take low memory into account | |
5965 | ||
b1969b30 VS |
5966 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5967 | ||
5968 | * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into | |
5969 | badfs. | |
5970 | Reported by: TiCPU. | |
5971 | ||
cf0eaf13 VS |
5972 | 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
5973 | ||
5974 | * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate | |
5975 | members errors. | |
5976 | ||
1f060f39 GS |
5977 | 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com> |
5978 | ||
5979 | * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function. | |
5980 | (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module. | |
5981 | ||
a21e5672 GS |
5982 | 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com> |
5983 | ||
5984 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle | |
5985 | openbsd and netbsd types being in part_bsd module. | |
5986 | ||
c88172fa VS |
5987 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
5988 | ||
5989 | * config.h.in (_LARGEFILE_SOURCE): Add missing define. | |
5990 | (_FILE_OFFSET_BITS): Likewise. | |
5991 | Reported by: Seth Goldberg. | |
5992 | ||
53798c4b GS |
5993 | 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com> |
5994 | ||
5995 | * configure.ac: Check for libdevmapper header. | |
5996 | ||
e7121b69 VS |
5997 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
5998 | ||
5999 | * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to | |
6000 | avoid aliasing. | |
6001 | (fzap_lookup): Likewise. | |
6002 | (dnode_get): Likewise. | |
6003 | (make_mdn): Likewise. | |
6004 | (zfs_mount): Likewise. | |
6005 | (fzap_iterate): Use temporary pointer to avoid aliasing. | |
6006 | (grub_zfs_read): Likewise. | |
6007 | * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise. | |
6008 | * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some | |
6009 | pointers to avoid aliasing. | |
6010 | (grub_cmd_xnu_kernel64): Likewise. | |
6011 | (grub_xnu_load_driver): Likewise. | |
6012 | ||
fc836af9 VS |
6013 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6014 | ||
6015 | * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence | |
6016 | aliasing warning. | |
6017 | (grub_cmd_terminal_output): Likewise. | |
6018 | Reported and tested by: Grégoire Sutre. | |
6019 | ||
f9f37648 VS |
6020 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6021 | ||
6022 | * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious | |
6023 | warning. | |
6024 | Reported and tested by: Grégoire Sutre. | |
6025 | ||
ec1dfd63 VS |
6026 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6027 | ||
6028 | * configure.ac: Do CPU substitution even if it's specified explicitly. | |
6029 | Reported and tested by: Alain Greppin. | |
6030 | ||
9462775a VS |
6031 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6032 | ||
6033 | * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os. | |
6034 | Reported and tested by: Alain Greppin. | |
6035 | ||
0fd48e35 VS |
6036 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6037 | ||
6038 | Satisfy some bison versions need for inttypes.h. | |
6039 | ||
6040 | * grub-core/lib/posix_wrap/inttypes.h: New file. | |
6041 | * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type. | |
6042 | (int16_t): Likewise. | |
6043 | (int32_t): Likewise. | |
6044 | (int64_t): Likewise. | |
6045 | Reported and tested by: Alain Greppin. | |
6046 | ||
43f1bc83 VS |
6047 | 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com> |
6048 | ||
6049 | * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): | |
6050 | Silence spurious warning. | |
6051 | Reported and tested by: Alain Greppin. | |
6052 | ||
64d1f041 SJ |
6053 | 2011-01-07 Szymon Janc <szymon@janc.net.pl> |
6054 | ||
6055 | * docs/grub.texi (Support automatic decompression): Update with xz | |
6056 | decompression support. | |
6057 | ||
25953e10 SJ |
6058 | 2011-01-07 Szymon Janc <szymon@janc.net.pl> |
6059 | ||
6060 | Improve loaders' kernel command line handling. | |
6061 | ||
6062 | * grub-core/lib/cmdline.c: New file. | |
6063 | * include/grub/lib/cmdline.h: Likewise. | |
6064 | * grub-core/loader/i386/linux.c (grub_cmd_linux): Use | |
6065 | grub_create_loader_cmdline to create kernel command line. | |
6066 | * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise. | |
6067 | * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise. | |
6068 | * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise. | |
6069 | * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc. | |
6070 | (linux): Add lib/cmdline.c on common. | |
6071 | ||
e72d259f VS |
6072 | 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com> |
6073 | ||
6074 | * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that | |
6075 | inopos might be unaligned. | |
6076 | ||
c0cf26da VS |
6077 | 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com> |
6078 | ||
6079 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing | |
6080 | endian transformations. | |
6081 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise. | |
6082 | Based on report by: Doug Nazar. | |
6083 | ||
0ca09e6c DN |
6084 | 2011-01-07 Doug Nazar <nazard.michi@gmail.com> |
6085 | ||
6086 | * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing | |
6087 | array->members[i].start_sector. | |
6088 | * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise. | |
6089 | ||
014b6806 VS |
6090 | 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com> |
6091 | ||
6092 | * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels. | |
6093 | Reported and tested by: Grégoire Sutre. | |
6094 | ||
415502c2 CW |
6095 | 2011-01-06 Colin Watson <cjwatson@ubuntu.com> |
6096 | ||
6097 | * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to | |
6098 | avoid causing test failures by clearing the screen. | |
6099 | ||
71b6a2b7 CW |
6100 | 2011-01-06 Colin Watson <cjwatson@ubuntu.com> |
6101 | ||
6102 | * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo): | |
6103 | Fix prefix check to handle the case where dir ends with a slash | |
6104 | (most significantly, "/" itself). | |
6105 | Reported by: Michael Vogt. | |
6106 | ||
b3f8d28a VS |
6107 | 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com> |
6108 | ||
6109 | Run terminfo_cls on initing terminfo output to clear the screen and | |
6110 | move the cursor to (0,0). | |
6111 | ||
6112 | * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output): | |
6113 | Call grub_terminfo_output_init. | |
6114 | * grub-core/term/serial.c (grub_serial_term_output): Set .init. | |
6115 | * grub-core/term/terminfo.c (grub_terminfo_output_init): New function. | |
6116 | * include/grub/terminfo.h (grub_terminfo_output_init): New declaration. | |
6117 | ||
4c3e4f37 VS |
6118 | 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com> |
6119 | ||
6120 | * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr | |
6121 | only when needed. | |
6122 | ||
488f71f1 VS |
6123 | 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com> |
6124 | ||
6125 | * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with | |
6126 | CTRL. | |
6127 | ||
18a38098 VS |
6128 | 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com> |
6129 | ||
6130 | The E820 type 5 is BADRAM, not EXEC_CODE. | |
6131 | ||
6132 | * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed. | |
6133 | (GRUB_E820_BADRAM): New define. | |
6134 | * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code | |
6135 | into reserved. Propagate BADRAM. | |
6136 | * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed. | |
6137 | (GRUB_E820_BADRAM): New define. | |
6138 | ||
9eae2084 VS |
6139 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
6140 | ||
6141 | * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events): | |
6142 | Ignore the memory post-4G. | |
6143 | (grub_relocator_firmware_alloc_region): Additional debug statement. | |
6144 | ||
ebc71d28 VS |
6145 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
6146 | ||
6147 | * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s | |
6148 | names. | |
6149 | Reported by: David Pravec. | |
6150 | ||
446fa400 VS |
6151 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
6152 | ||
6153 | * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy | |
6154 | BIOSes. | |
6155 | ||
a0159f37 VS |
6156 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
6157 | ||
6158 | * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): | |
6159 | Prevent overflow. | |
6160 | (grub_reed_solomon_recover): Likewise. | |
6161 | ||
e5146ca1 VS |
6162 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
6163 | ||
6164 | * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test. | |
6165 | ||
6166 | 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com> | |
95638499 VS |
6167 | |
6168 | * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover | |
6169 | variable. | |
6170 | ||
5b1bdf12 CW |
6171 | 2011-01-04 Colin Watson <cjwatson@ubuntu.com> |
6172 | ||
6173 | * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in | |
6174 | descriptions of extract_legacy_entries_source and | |
6175 | extract_legacy_entries_configfile. | |
6176 | Reported by: Seung Soo, Ha. | |
6177 | ||
99d925aa CW |
6178 | 2011-01-03 Colin Watson <cjwatson@ubuntu.com> |
6179 | ||
6180 | * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions | |
6181 | on devices that do not implement function 0. | |
6182 | ||
4af0504b DV |
6183 | 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca> |
6184 | ||
6185 | * grub-core/fs/hfsplus.c: Make parent unsigned. | |
6186 | (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it | |
6187 | overflows. | |
6188 | (grub_hfsplus_cmp_extkey): Likewise | |
6189 | ||
469ee10a VS |
6190 | 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com> |
6191 | ||
6192 | * util/grub-install.in: Correctly use bootloader_id and not | |
6193 | GRUB_DISTRIBUTOR on efibootmgr line. | |
6194 | ||
323a8e9c VS |
6195 | 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com> |
6196 | ||
6197 | * util/grub-mkfont.c (main): Report errors in FT_New_Face. | |
6198 | ||
1b394975 IC |
6199 | 2010-12-31 Ian Campbell <ijc@hellion.org.uk> |
6200 | ||
6201 | * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize | |
6202 | Xen and reorder menu item wording to make it clearer that this entry | |
6203 | will launch Xen. Print separate messages when loading Xen and | |
6204 | Linux. | |
6205 | ||
275bff5f VS |
6206 | 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com> |
6207 | ||
6208 | * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define. | |
6209 | (amiga_partition_map_iterate): Check "PART" magic to avoid a very long | |
6210 | loop in case of incorrect amiga partmap. | |
6211 | ||
307806cb VS |
6212 | 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com> |
6213 | ||
6214 | * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define. | |
6215 | (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp. | |
6216 | Reported by:EHeM. | |
6217 | ||
b12b923e VS |
6218 | 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com> |
6219 | ||
6220 | * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence | |
6221 | spurious warning. | |
6222 | Reported by: crocket | |
6223 | ||
14b48a19 VS |
6224 | 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
6225 | ||
6226 | * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]: | |
6227 | Preload EFIemu. | |
6228 | (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise. | |
6229 | ||
693db2df VS |
6230 | 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
6231 | ||
6232 | * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel | |
6233 | is loaded | |
6234 | (grub_cmd_xnu_kextdir): Likewise. | |
6235 | (grub_cmd_xnu_splash): Likewise. | |
6236 | ||
c7638645 VS |
6237 | 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
6238 | ||
6239 | Avoid using Reed-Solomon with 0 redundancy. | |
6240 | ||
6241 | * grub-core/kern/i386/pc/startup.S: Remove 0-data check. | |
6242 | * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data | |
6243 | or 0 redundancy. | |
6244 | (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy. | |
6245 | (grub_reed_solomon_recover): Likewise. | |
6246 | ||
25dd4780 VS |
6247 | 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
6248 | ||
6249 | Don't use disk subsystem in freebsd_boot. | |
6250 | ||
6251 | * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable. | |
6252 | (freebsd_biosdev): Likewise. | |
6253 | (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev. | |
6254 | (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev. | |
6255 | ||
0b2db943 VS |
6256 | 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com> |
6257 | ||
6258 | Handling of files of unknown size is currently limited. They can't be | |
6259 | used e.g. for initrd or modules. Moreover gzip handling of not | |
6260 | easily seekable files is buggy. Disable unknown file size for now. May | |
6261 | be inefficient but works. | |
6262 | ||
6263 | * grub-core/io/gzio.c (test_header): Always retrieve the file size. | |
6264 | * grub-core/io/xzio.c (grub_xzio_open): Likewise. | |
6265 | ||
5c408d0f MP |
6266 | 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de> |
6267 | ||
6268 | * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on | |
6269 | floppy probe. | |
6270 | ||
190a011a JD |
6271 | 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch> |
6272 | ||
6273 | * grub-core/disk/raid.c (insert_array): Don't add spurious members. | |
6274 | ||
022d01b8 SL |
6275 | 2010-12-25 Shea Levy <shlevy> |
6276 | ||
6277 | * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy. | |
6278 | ||
c4855fdc VS |
6279 | 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com> |
6280 | ||
6281 | * util/grub.d/30_os-prober.in: Don't emit drivemap directive for | |
6282 | Windows Server 2008. | |
6283 | Reported by: Devin Giddings. | |
6284 | ||
0354b867 VS |
6285 | 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com> |
6286 | ||
6287 | * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before | |
6288 | writing an error message because of async power management. | |
6289 | * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise. | |
6290 | (grub_reboot): Likewise. | |
6291 | ||
ab66c69f JU |
6292 | 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com> |
6293 | ||
6294 | * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to | |
6295 | keep unit tests from failing when they shouldn't. | |
6296 | ||
1426ef35 CW |
6297 | 2010-12-21 Colin Watson <cjwatson@ubuntu.com> |
6298 | ||
6299 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The | |
6300 | previous patch increased the size of the RS code by 20 bytes (at | |
6301 | least with gcc-4.4), so increase this by 20 bytes to match. | |
6302 | (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise. | |
6303 | ||
20641b6b CW |
6304 | 2010-12-21 Colin Watson <cjwatson@ubuntu.com> |
6305 | ||
6306 | * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone | |
6307 | scratch area. Make sure to initialise chosen in standalone mode as | |
6308 | well as non-standalone. | |
6309 | Reported by: Robert Hooker and Andy Whitcroft. | |
6310 | Tested by: Andy Whitcroft. | |
6311 | ||
d060ad60 CW |
6312 | 2010-12-21 Colin Watson <cjwatson@ubuntu.com> |
6313 | ||
6314 | * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by | |
6315 | constructing a new unescaped string and passing it to grub_xputs in | |
6316 | one go, rather than passing characters to grub_printf one at a time. | |
6317 | ||
b889cfad CW |
6318 | 2010-12-21 Colin Watson <cjwatson@ubuntu.com> |
6319 | ||
6320 | * grub-core/fs/udf.c (read_string): Pacify GCC warning by | |
6321 | initialising utf16. | |
6322 | ||
4e01b6c8 CW |
6323 | 2010-12-21 Colin Watson <cjwatson@ubuntu.com> |
6324 | ||
6325 | * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying | |
6326 | comment. Add an extra layer of quotation, requiring the output of | |
6327 | this function to be used in a printf format string. | |
6328 | (gettext_printf): New function. | |
6329 | * util/grub.d/10_hurd.in: Use gettext_printf where appropriate. | |
6330 | Extract translatable strings from here-documents and use a temporary | |
6331 | variable instead, so that xgettext can find them. | |
6332 | * util/grub.d/10_kfreebsd.in: Likewise. | |
6333 | * util/grub.d/10_linux.in: Likewise. | |
6334 | * util/grub.d/20_linux_xen.in: Likewise. | |
6335 | ||
6336 | * po/grub.d.sed: New file. | |
6337 | * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf | |
6338 | arguments. Set c-format flags on all strings extracted from | |
6339 | util/grub.d/ (xgettext refuses to include these itself for strings | |
6340 | it extracted from a shell file, but these really are c-format). | |
6341 | ||
5318fe98 VS |
6342 | 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com> |
6343 | ||
6344 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module): | |
6345 | Avoid next pointing to nowhere. | |
6346 | ||
6c85b743 VS |
6347 | 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com> |
6348 | ||
6349 | * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock | |
6350 | rather than assuming than rootblock is exactly in the middle. | |
6351 | (grub_affs_label): Likewise. | |
6352 | ||
a2a08a35 VS |
6353 | 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com> |
6354 | ||
6355 | * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set | |
6356 | reserved_first_sector to 0. | |
6357 | * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise. | |
6358 | * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise. | |
6359 | * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise. | |
6360 | ||
7059d1ec VS |
6361 | 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com> |
6362 | ||
6363 | Fix handling of UTF-16 UDF labels. | |
6364 | ||
6365 | * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part | |
6366 | (read_string): .. here. | |
6367 | (grub_udf_label): Use read_string. | |
6368 | ||
30aff4cb BC |
6369 | 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com> |
6370 | ||
6371 | * grub-core/normal/menu_entry.c (run): Execute commands from menu | |
6372 | editor under argument scope. | |
6373 | Reported by: Jordan Uggla | |
6374 | ||
5cf86f4b VS |
6375 | 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com> |
6376 | ||
6377 | * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes. | |
6378 | ||
32570200 CW |
6379 | 2010-12-18 Colin Watson <cjwatson@ubuntu.com> |
6380 | ||
6381 | * grub-core/normal/term.c (print_more): Make \r or \n scroll one | |
6382 | line, and other keys scroll an entire page (previous handling was | |
6383 | for \r and \n to scroll a page and other keys to scroll two lines). | |
6384 | ||
e1dffcf2 VS |
6385 | 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com> |
6386 | ||
6387 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): | |
6388 | Set ptrdest to correct get_physical_target_address rather than | |
6389 | incorrect get_virtual_current_address. | |
6390 | ||
b04298cf | 6391 | 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com> |
6392 | ||
6393 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use | |
6394 | correct cat to grub_uint8_t * rather than grub_uint32_t *. | |
6395 | ||
5367ecd3 CW |
6396 | 2010-12-10 Colin Watson <cjwatson@ubuntu.com> |
6397 | ||
6398 | * .bzrignore: Ignore grub-core/rs_decoder.S. | |
6399 | ||
1fb430f8 CW |
6400 | 2010-12-10 Colin Watson <cjwatson@ubuntu.com> |
6401 | ||
6402 | * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out | |
6403 | .mo/.mo.gz opening sequence to ... | |
6404 | (grub_mofile_open_lang): ... here. | |
6405 | (grub_gettext_init_ext): If opening ll_CC fails, try ll. | |
6406 | * util/grub.d/00_header.in (grub_lang): Include country part of | |
6407 | locale. | |
6408 | Reported by: Mario Limonciello. | |
6409 | ||
a94a6671 RM |
6410 | 2010-12-09 Robert Millan <rmh@gnu.org> |
6411 | ||
6412 | * NEWS: Document addition of ZFS support. | |
6413 | ||
24b7938b CW |
6414 | 2010-12-04 Colin Watson <cjwatson@ubuntu.com> |
6415 | ||
6416 | * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1' | |
6417 | rather than `/ 2', as the latter requires -Wa,--divide which would | |
6418 | require bumping our minimum binutils version. | |
6419 | ||
bddc3ef6 BC |
6420 | 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com> |
6421 | ||
6422 | * util/grub-script-check.c (main): Print script line number on | |
6423 | error. | |
6424 | ||
bf78d5b2 RM |
6425 | 2010-12-01 Robert Millan <rmh@gnu.org> |
6426 | ||
6427 | * grub-core/fs/zfs/zfs.c: New file. | |
6428 | * grub-core/fs/zfs/zfs_fletcher.c: Likewise. | |
6429 | * grub-core/fs/zfs/zfs_lzjb.c: Likewise. | |
6430 | * grub-core/fs/zfs/zfs_sha256.c: Likewise. | |
6431 | * grub-core/fs/zfs/zfsinfo.c: Likewise. | |
6432 | ||
6433 | * include/grub/zfs/dmu.h: Likewise. | |
6434 | * include/grub/zfs/dmu_objset.h: Likewise. | |
6435 | * include/grub/zfs/dnode.h: Likewise. | |
6436 | * include/grub/zfs/dsl_dataset.h: Likewise. | |
6437 | * include/grub/zfs/dsl_dir.h: Likewise. | |
6438 | * include/grub/zfs/sa_impl.h: Likewise. | |
6439 | * include/grub/zfs/spa.h: Likewise. | |
6440 | * include/grub/zfs/uberblock_impl.h: Likewise. | |
6441 | * include/grub/zfs/vdev_impl.h: Likewise. | |
6442 | * include/grub/zfs/zap_impl.h: Likewise. | |
6443 | * include/grub/zfs/zap_leaf.h: Likewise. | |
6444 | * include/grub/zfs/zfs.h: Likewise. | |
6445 | * include/grub/zfs/zfs_acl.h: Likewise. | |
6446 | * include/grub/zfs/zfs_znode.h: Likewise. | |
6447 | * include/grub/zfs/zil.h: Likewise. | |
6448 | * include/grub/zfs/zio.h: Likewise. | |
6449 | * include/grub/zfs/zio_checksum.h: Likewise. | |
6450 | ||
6451 | * Makefile.util.def: Build ZFS into libgrubmods. | |
6452 | * grub-core/Makefile.core.def: Build zfs.mod. | |
6453 | ||
3f0f3831 SJ |
6454 | 2010-11-30 Szymon Janc <szymon@janc.net.pl> |
6455 | ||
6456 | * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused | |
6457 | variable. | |
6458 | * grub-core/commands/wildcard.c (match_files): Likewise. | |
6459 | ||
3a4253b2 RM |
6460 | 2010-11-30 Robert Millan <rmh@gnu.org> |
6461 | ||
6462 | * grub-core/loader/i386/bsd.c | |
6463 | (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check | |
6464 | whether kernel is loaded using grub_loader_is_loaded(), rather | |
6465 | than `kernel_type', which may still be `KERNEL_TYPE_NONE' under | |
6466 | certain error conditions. | |
6467 | ||
8c317b27 RM |
6468 | 2010-11-30 Robert Millan <rmh@gnu.org> |
6469 | ||
c5c9cd3e RM |
6470 | * grub-core/commands/echo.c: Include `<grub/term.h>'. |
6471 | (grub_cmd_echo): Call grub_refresh() after printing a message. | |
8c317b27 | 6472 | |
49d3ab46 VS |
6473 | 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com> |
6474 | ||
6475 | Avoid using tricks for initialising endian variables. | |
6476 | ||
6477 | * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): | |
6478 | Make const. | |
6479 | (GRUB_MOD_INIT): Don't byte-swap. | |
6480 | * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT): | |
6481 | Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time. | |
6482 | * include/grub/types.h (grub_swap_bytes16_compile_time): New macro. | |
6483 | (grub_swap_bytes32_compile_time): Likewise. | |
6484 | (grub_cpu_to_le32_compile_time): Likewise. | |
6485 | (grub_cpu_to_le16_compile_time): Likewise. | |
6486 | ||
f420a804 VS |
6487 | 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com> |
6488 | ||
6489 | * util/grub-setup.c (setup): Stop recommending --force. People who | |
6490 | understand the dangers of blocklists are able to find this option | |
6491 | anyway and the ones who don't shouldn't use it anyway. | |
6492 | ||
4e7db17b RM |
6493 | 2010-11-26 Robert Millan <rmh@gnu.org> |
6494 | ||
6495 | * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify. | |
6496 | Update all users. | |
6497 | ||
9be57a0d CW |
6498 | 2010-11-26 Colin Watson <cjwatson@ubuntu.com> |
6499 | ||
6500 | Fix LVM-on-RAID probing. | |
6501 | ||
6502 | * util/grub-probe.c (probe): Remember which disk was detected as | |
6503 | RAID (perhaps an LVM physical volume). Use that disk's raidname | |
6504 | rather than that of the top-level disk. | |
6505 | ||
2c7859b3 | 6506 | 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com> |
7e623b0d | 6507 | |
d7647bb6 BC |
6508 | Fix cmdline argument quotes for setparams command of menuentry |
6509 | definitions. | |
7e623b0d BC |
6510 | |
6511 | * grub-core/commands/menuentry.c (setparams_prefix): Use single | |
6512 | quotes for arguments. | |
f866fe80 | 6513 | * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use |
7955bea0 | 6514 | grub_strchrsub function instead. |
f866fe80 | 6515 | |
7955bea0 | 6516 | * include/grub/misc.h (grub_strchrsub): New function. |
7e623b0d | 6517 | |
74f72a64 CW |
6518 | 2010-11-24 Colin Watson <cjwatson@ubuntu.com> |
6519 | ||
6520 | * util/deviceiter.c (grub_util_iterate_devices): Save a bit of | |
6521 | effort by skipping "." and ".." entries up-front. | |
6522 | Suggested by: Michael Lazarev. | |
6523 | ||
5a407278 CW |
6524 | 2010-11-24 Colin Watson <cjwatson@ubuntu.com> |
6525 | ||
6526 | * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from | |
6527 | ldflags to ldadd, to fix link line ordering. | |
6528 | (none_decompress): Likewise. | |
6529 | ||
3030d8ec CW |
6530 | 2010-11-24 Colin Watson <cjwatson@ubuntu.com> |
6531 | ||
6532 | * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu | |
6533 | platforms. | |
6534 | (grub-emu-lite): Remove kern/emu/cache.S. | |
6535 | ||
b7fbac12 CW |
6536 | 2010-11-23 Colin Watson <cjwatson@ubuntu.com> |
6537 | ||
6538 | * util/deviceiter.c (compare_devices): If the by-id link for a | |
6539 | device couldn't be resolved, fall back to sorting by the by-id link | |
6540 | rather than segfaulting. | |
6541 | Reported and tested by: Daniel Mierswa. | |
6542 | ||
5225f328 CW |
6543 | 2010-11-23 Colin Watson <cjwatson@ubuntu.com> |
6544 | ||
6545 | * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not | |
6546 | ldflags, to fix link line ordering. | |
6547 | ||
038b3ce8 CW |
6548 | 2010-11-23 Colin Watson <cjwatson@ubuntu.com> |
6549 | ||
6550 | * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some | |
6551 | linkers are picky about this. | |
6552 | ||
bf16e98e CW |
6553 | 2010-11-23 Colin Watson <cjwatson@ubuntu.com> |
6554 | ||
6555 | * grub-core/Makefile.am (command.lst): Adjust sed expression | |
6556 | ordering so that extended and priority commands aren't treated as | |
6557 | ordinary commands. | |
6558 | ||
7242bab6 CW |
6559 | 2010-11-23 Colin Watson <cjwatson@ubuntu.com> |
6560 | ||
6561 | * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT): | |
6562 | Remove byte-swapping function calls, which are not valid in | |
6563 | structure initialisers. | |
6564 | * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make | |
6565 | non-const. | |
6566 | (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of | |
6567 | grub_gpt_partition_type_bios_boot. | |
6568 | ||
14e8b279 CW |
6569 | 2010-11-22 Colin Watson <cjwatson@ubuntu.com> |
6570 | ||
6571 | Fix test program build on GNU/kFreeBSD. | |
6572 | ||
6573 | * Makefile.util.def (example_unit_test): Add `$(LIBZFS) | |
6574 | $(LIBNVPAIR)' library dependencies. | |
6575 | ||
e6f63338 | 6576 | 2010-11-22 Colin Watson <cjwatson@ubuntu.com> |
03df09c7 CW |
6577 | |
6578 | * util/grub-install.in: Fix parsing of --grub-mkrelpath= option. | |
6579 | ||
cf8ffc38 CW |
6580 | 2010-11-22 Colin Watson <cjwatson@ubuntu.com> |
6581 | ||
6582 | * util/grub-install.in: Remove excessive quoting that broke | |
6583 | installations to RAID devices. | |
6584 | ||
7f8b0fd7 VS |
6585 | 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com> |
6586 | ||
6587 | * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the | |
6588 | bootloader version instead of 0. | |
6589 | ||
dfd240b1 VS |
6590 | 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com> |
6591 | ||
6592 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious | |
6593 | warning. | |
6594 | ||
7b61e609 VS |
6595 | 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com> |
6596 | ||
6597 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to | |
6598 | retrieve the metadat sector if size isn't known. | |
6599 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise. | |
6600 | ||
9dfe92d0 RM |
6601 | 2010-11-18 Robert Millan <rmh@gnu.org> |
6602 | ||
6603 | * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp() | |
6604 | with grub_memcmp(). | |
6605 | ||
41cc919e VS |
6606 | 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com> |
6607 | ||
6608 | * grub-core/normal/menu_entry.c (print_up): Fix displacement of up | |
6609 | arrow. | |
6610 | Reported by: Jordan Uggla. | |
6611 | ||
1afcc914 VS |
6612 | 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
6613 | ||
6614 | Make better UTF compliant. | |
6615 | ||
6616 | * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte | |
6617 | sequences as incorrect. | |
6618 | (grub_is_valid_utf8): Likewise. | |
6619 | (grub_utf8_to_ucs4): Likewise. | |
6620 | (grub_ucs4_to_utf8): Handle codepoints outside of BMP. | |
6621 | (grub_ucs4_to_utf8_alloc): Likewise. | |
6622 | * include/grub/charset.h (grub_utf16_to_utf8): Likewise. | |
6623 | ||
f1808884 VS |
6624 | 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
6625 | ||
6626 | Make legacy_source behave like source. | |
6627 | ||
6628 | * grub-core/commands/legacycfg.c (legacy_file): Don't call | |
6629 | grub_show_menu. | |
6630 | (grub_cmd_legacy_source): Call grub_show_menu if needed. | |
6631 | ||
24ec575b CW |
6632 | 2010-11-16 Colin Watson <cjwatson@debian.org> |
6633 | ||
6634 | * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter. | |
6635 | (-Wunused implies -Wunused-parameter, but not vice versa). | |
6636 | ||
72b7c7aa CW |
6637 | 2010-11-16 Colin Watson <cjwatson@ubuntu.com> |
6638 | ||
6639 | * configure.ac: Make error messages less confusing by testing for | |
6640 | -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always | |
6641 | accepted, but produces a diagnostic if something else is wrong). | |
6642 | ||
e98937aa VS |
6643 | 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com> |
6644 | ||
6645 | * grub-core/term/at_keyboard.c (grub_keyboard_controller_read) | |
6646 | [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out | |
6647 | (now unused). | |
6648 | (grub_keyboard_controller_init) | |
6649 | [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to | |
6650 | read the initial state since controller isn't inited yet. | |
6651 | ||
f6bbabc3 VS |
6652 | 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com> |
6653 | ||
6654 | * grub-core/lib/relocator.c (malloc_in_range): Take into account that | |
6655 | allocate_regbeg may need to create new chunk header. | |
6656 | ||
22e7dbb2 VS |
6657 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6658 | ||
6659 | Fix quoting in legacy parser. | |
6660 | ||
6661 | * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle | |
6662 | single quotes. | |
6663 | (grub_legacy_parse): Likewise. | |
6664 | Reported by: Jordan Uggla. | |
6665 | Tested by: Jordan Uggla. | |
6666 | ||
03f80960 VS |
6667 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6668 | ||
6669 | Don't add -lgcc on i386 and x86_64. | |
6670 | ||
6671 | * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64. | |
6672 | * conf/Makefile.common (LDADD_KERNEL): Likewise. | |
6673 | * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL. | |
6674 | ||
779dc15b VS |
6675 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6676 | ||
6677 | * configure.ac: Add -Wno-trampolines when supported. | |
6678 | ||
d20a3b37 MV |
6679 | 2010-11-14 Modestas Vainius <modax@debian.org> |
6680 | ||
6681 | * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_ | |
6682 | fakeraid. | |
6683 | ||
e5360933 GC |
6684 | 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com> |
6685 | ||
6686 | Add generic logical block size support for UDF. | |
6687 | ||
6688 | * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed. | |
6689 | (GRUB_UDF_BLKSZ): Removed. | |
6690 | (struct grub_udf_data): New field "lbshift" to hold the logical block | |
6691 | size of the file system in log2 format. All users updated. | |
6692 | (sblocklist): Change type to unsigned. | |
6693 | (grub_udf_mount): Change type of "sblklist" to unsigned. | |
6694 | Move AVDP search before VRS recognition, because the latter requires | |
6695 | knowledge of the logical block size, which is detected during the | |
6696 | former. | |
6697 | Detect and validate logical block size during AVDP search, adding | |
6698 | support for block sizes 512, 1024 and 4096. | |
6699 | Make VRS recognition independent of block size. | |
6700 | ||
cb0229c5 GC |
6701 | 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com> |
6702 | ||
6703 | Properly handle deleted files on UDF. | |
6704 | ||
6705 | * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries | |
6706 | whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED | |
6707 | set. | |
6708 | ||
406858a8 GC |
6709 | 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com> |
6710 | ||
6711 | Support reading files larger than 2 GiB. | |
6712 | ||
6713 | * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable | |
6714 | "offset" to grub_off_t. | |
6715 | (grub_udf_read_file): Likewise for parameter "pos". | |
6716 | ||
130da6a7 VS |
6717 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6718 | ||
6719 | * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is | |
6720 | unavailable. | |
6721 | (Simple configuration): Refer to Changes from GRUB Legacy about | |
6722 | save_env availability. | |
6723 | ||
65e93f6b VS |
6724 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6725 | ||
6726 | * util/grub-install.in: Ignore empty partition table detection | |
6727 | instead of trying to include part_ module. | |
6728 | ||
1fd08bf1 VS |
6729 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6730 | ||
6731 | * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes | |
6732 | LVM on RAID support. | |
6733 | ||
de1a024f VS |
6734 | 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com> |
6735 | ||
6736 | Properly define WORDS_BIGENDIAN in wrapped environments. | |
6737 | ||
6738 | * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New | |
6739 | definition. | |
6740 | * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise. | |
6741 | ||
6742 | Reported by: Manoel Rebelo Abranches. | |
6743 | Tested by: Manoel Rebelo Abranches. | |
6744 | ||
bc5dd0b9 VS |
6745 | 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
6746 | ||
6747 | * util/grub-mkconfig.in: Fix quoting. | |
6748 | ||
58c184be VS |
6749 | 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
6750 | ||
6751 | Support big ext2 files. | |
6752 | ||
6753 | * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high. | |
6754 | (grub_ext2_read_block): Support triple indirect blocks. | |
6755 | (grub_ext2_read_file): Use 64-bit types and read size_high. | |
6756 | (grub_ext2_open): Read size_high. | |
6757 | Reported by: Ximin Luo. | |
6758 | Tested by: Manoel Rebelo Abranches. | |
6759 | ||
5f0c02b3 VS |
6760 | 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
6761 | ||
6762 | * util/grub-install.in: Handle filenames containing spaces. | |
6763 | Reported by: Jordan Uggla. | |
6764 | Tested by: Jordan Uggla. | |
6765 | ||
4417aae6 VS |
6766 | 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
6767 | ||
6768 | * util/grub-mkconfig.in (grub_script_check): New variable. | |
6769 | Use grub_script_check instead of grub-script-check. | |
6770 | Reported by: Barry Jackson. | |
6771 | ||
7625a68e VS |
6772 | 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com> |
6773 | ||
6774 | * docs/grub.texi (menu): Correct the order. | |
6775 | Reported by: D. Hugh Redelmeier. | |
6776 | ||
10001ac5 VS |
6777 | 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com> |
6778 | ||
6779 | * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing | |
6780 | jump. | |
6781 | ||
9c4cf53b MRA |
6782 | 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com> |
6783 | ||
10001ac5 VS |
6784 | * include/grub/elfload.h (grub_elf32_size): New parameter. |
6785 | All users updated. | |
9c4cf53b MRA |
6786 | Return maximum segments alignment. |
6787 | (grub_elf64_size): Likewise. | |
6788 | * kern/elf.c (grub_elf32_size): New parameter. All users updated. | |
6789 | Return maximum segments alignment. | |
6790 | (grub_elf64_size): Likewise. | |
6791 | * grub-core/loader/powerpc/ieee1275/linux.c: | |
10001ac5 VS |
6792 | (grub_linux_claimmap_iterate): New function. Uses the |
6793 | "available" property in the "memory" node for memory allocation | |
6794 | for kernel in the PowerPC loader. | |
9c4cf53b MRA |
6795 | (grub_linux_load32): Correctly find linux entry point offset. |
6796 | (grub_linux_load64): Likewise. | |
6797 | ||
d2bf06bf RM |
6798 | 2010-11-07 Robert Millan <rmh@gnu.org> |
6799 | ||
6800 | On mips-yeeloong, build with -march=loongson2f when this flag is | |
6801 | available (GCC >= 4.4). | |
6802 | * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove | |
6803 | `-march=mips3'. | |
6804 | * configure.ac: For mips-yeeloong, add -march=loongson2f if available, | |
6805 | or otherwise add -march=mips3. | |
6806 | ||
898c99a2 BC |
6807 | 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com> |
6808 | ||
87220a68 BC |
6809 | Suppress shell expansion on echo '*' and echo "*" like cases. |
6810 | Reported by: Jordan Uggla. | |
898c99a2 BC |
6811 | |
6812 | * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape | |
6813 | string arguments before shell expansion. | |
6814 | * tests/grub_cmd_echo.in: New testcases. | |
6815 | ||
4f9b406a RM |
6816 | 2010-11-07 Robert Millan <rmh@gnu.org> |
6817 | ||
6818 | * conf/mips-qemu-mips.rmk: Remove stale file from previous | |
6819 | transition. | |
6820 | ||
80c6d25e VS |
6821 | 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com> |
6822 | ||
6823 | * grub-core/kern/emu/hostdisk.c | |
6824 | (convert_system_partition_to_system_disk): Handle devices like "sdaa1". | |
6825 | ||
4a1a0153 VS |
6826 | 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com> |
6827 | ||
6828 | * include/grub/emu/misc.h: Don't include grub/util/libzfs.h. | |
6829 | * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ... | |
6830 | * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here. | |
6831 | ||
34706ddc VS |
6832 | 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com> |
6833 | ||
6834 | * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase. | |
6835 | ||
6972dea9 VS |
6836 | 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com> |
6837 | ||
6838 | * util/grub-install.in: Replace useless recomendation to pass | |
6839 | --modules with a recomendation to report a bug. | |
6840 | ||
9c693bd6 VS |
6841 | 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com> |
6842 | ||
6843 | Properly register serial terminfo. | |
6844 | Reported by: Jordan Uggla | |
6845 | ||
6846 | * grub-core/term/serial.c (grub_serial_terminfo_input_template): New | |
6847 | const. | |
6848 | (grub_serial_terminfo_output_template): Likewise. | |
6849 | (grub_cmd_serial): Register "serial" with terminfo. | |
6850 | (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and | |
6851 | grub_serial_terminfo_output. | |
6852 | ||
6c9e4c0c RM |
6853 | 2010-11-05 Robert Millan <rmh@gnu.org> |
6854 | ||
6855 | * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer | |
6856 | needed). | |
6857 | ||
b9b3839f RM |
6858 | 2010-11-05 Robert Millan <rmh@gnu.org> |
6859 | ||
6860 | On Yeeloong, pass machine type information to Linux. | |
6861 | ||
6862 | * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG] | |
6863 | (LOONGSON_MACHTYPE): New macro, set to | |
6864 | "machtype=lemote-yeeloong-2f-8.9inches". | |
6865 | [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as | |
6866 | additional argument to Linux. | |
6867 | ||
1a3aaff4 RM |
6868 | 2010-11-04 Robert Millan <rmh@gnu.org> |
6869 | ||
6870 | * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI | |
6871 | limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96 | |
6872 | (its SATA disks are detected as slaveless IDE master drives on | |
6873 | kFreeBSD). | |
6874 | Reported by Carsten Aulbert. | |
6875 | ||
a75f4f62 CW |
6876 | 2010-11-02 Colin Watson <cjwatson@ubuntu.com> |
6877 | ||
6878 | * util/bin2h.c (main): Fix spelling error in generated output. | |
6879 | ||
33b4b0c6 GS |
6880 | 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com> |
6881 | ||
6882 | * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow. | |
6883 | ||
2b36fbf4 VS |
6884 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6885 | ||
6886 | * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if | |
6887 | vga= option is supplied. | |
6888 | ||
74aaf558 VS |
6889 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6890 | ||
6891 | * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries. | |
6892 | * util/grub.d/10_kfreebsd.in: Likewise. | |
6893 | * util/grub.d/10_linux.in: Likewise. | |
6894 | * util/grub.d/20_linux_xen.in: Likewise. | |
6895 | ||
6428dec3 VS |
6896 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6897 | ||
6898 | * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct | |
6899 | argument as an argument to no-argument option. | |
6900 | ||
f8729d98 VS |
6901 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6902 | ||
6903 | * util/grub.d/10_linux.in: Add missing load_video with explicit | |
6904 | GRUB_GFXPAYLOAD_LINUX. | |
6905 | ||
89d68fa6 VS |
6906 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6907 | ||
6908 | * Makefile.am (libgrub.pp): Propagate the libgrub.a split. | |
6909 | ||
3a1197cd VS |
6910 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6911 | ||
6912 | * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put | |
6913 | elements with invlid index. | |
6914 | * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise. | |
6915 | * grub-core/disk/raid.c (insert_array): Automatically reallocate | |
6916 | members. | |
6917 | * include/grub/raid.h (grub_raid_member): New struct. | |
6918 | (grub_raid_array): Transform devices and start_sector into usage of | |
6919 | grub_raid_member. All users updated | |
6920 | (allocated_devs): New member. | |
6921 | ||
71574288 VS |
6922 | 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com> |
6923 | ||
6924 | * docs/man/grub-set-default.h2m: Clarify that only saved default entry | |
6925 | is modified | |
6926 | ||
8d40ec65 BC |
6927 | 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com> |
6928 | ||
6929 | NetBSD build fix for getline function conflict from gnulib. | |
6930 | ||
6931 | * Makefile.util.def (libgrubkern.a): New library for grub kernel | |
6932 | components that depend on gnulib headers. | |
6933 | (libgrubmods.a): Renamed from earlier libgrub.a. | |
6934 | * conf/Makefile.common: Remove gnulib from *_LIBRARY flags. | |
6935 | ||
95b9257e VS |
6936 | 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
6937 | ||
6938 | * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless | |
6939 | install rather than creating a broken install. | |
6940 | ||
26c53dc6 VS |
6941 | 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
6942 | ||
6943 | * util/grub-setup.c (argp): Remove misleading example of installing to | |
6944 | a partition. | |
6945 | ||
4171b3c5 VS |
6946 | 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
6947 | ||
6948 | * util/grub-setup.c (setup): Clarify the error message. | |
6949 | ||
18568d18 VS |
6950 | 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com> |
6951 | ||
6952 | * include/grub/types.h (grub_target_off_t): Removed no longer used type. | |
6953 | ||
4f6a2e21 VS |
6954 | 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com> |
6955 | ||
6956 | * grub-core/kern/emu/misc.c | |
6957 | (grub_make_system_path_relative_to_its_root) | |
6958 | [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS. | |
6959 | ||
6960 | 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com> | |
5c81f8b3 VS |
6961 | |
6962 | * grub-core/kern/emu/misc.c | |
6963 | (grub_make_system_path_relative_to_its_root): Revert r2882. | |
6964 | ||
e138c458 VS |
6965 | 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com> |
6966 | ||
6967 | * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now | |
6968 | useless field head. All users updated. | |
6969 | (free_subchunk): Correct handling of IN_REGION subchunk. | |
6970 | ||
0cbcdf0e CW |
6971 | 2010-10-22 Colin Watson <cjwatson@ubuntu.com> |
6972 | ||
6973 | * docs/grub.texi (Installing GRUB using grub-install): Proofread. | |
6974 | (Supported kernels): Likewise. | |
6975 | ||
b65ea155 GS |
6976 | 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com> |
6977 | ||
6978 | Make mktemp invocations portable. | |
6979 | ||
6980 | * grub-core/genmod.sh.in: Use mktemp with an explicit template, and | |
6981 | exit if mktemp fails. | |
6982 | * tests/grub_script_blockarg.in: Likewise. | |
6983 | * tests/partmap_test.in: Likewise. | |
6984 | * tests/util/grub-shell-tester.in: Likewise. | |
6985 | * tests/util/grub-shell.in: Likewise. | |
6986 | * util/powerpc/ieee1275/grub-mkrescue.in: Likewise. | |
6987 | * Makefile.am: Likewise, and chain shell commands with `&&' | |
6988 | instead of ';'. | |
6989 | * util/grub-mkrescue.in: Use the same explicit template as above, and | |
6990 | exit if mktemp fails. | |
6991 | ||
05f43cdd BC |
6992 | 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com> |
6993 | ||
6994 | * util/grub.d/10_linux.in: Fix built-in initramfs image mode for | |
6995 | Linux kernel, reported by Dennis Schridde. | |
6996 | ||
800e6a9b SJ |
6997 | 2010-10-17 Szymon Janc <szymon@janc.net.pl> |
6998 | ||
6999 | * grub-core/normal/auth.c (grub_auth_check_authentication): | |
7000 | Set-but-not-used variable removed. | |
7001 | ||
d82df574 VS |
7002 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7003 | ||
7004 | * docs/grub.texi (GNU/Linux): Document APM unavailability with | |
7005 | 32-bit linux protocol. | |
7006 | ||
7bced458 VS |
7007 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7008 | ||
7009 | * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check | |
7010 | cursor shape for sanity. | |
7011 | ||
5b027690 VS |
7012 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7013 | ||
7014 | * docs/grub.texi (Installation): Document buggy BIOS install. | |
7015 | ||
ba5f65cf VS |
7016 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7017 | ||
7018 | * docs/grub.texi (Installation): Indent. | |
7019 | ||
fdf2ec9c VS |
7020 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7021 | ||
7022 | * util/grub-setup.c (setup): New parameter allow_floppy. | |
7023 | (arguments): New member allow_floppy. | |
7024 | (argp_parser): Handle --allow-floppy. | |
7025 | (main): Pass allow_floppy. | |
7026 | * util/grub-install.in: New option --allow-floppy passed though to | |
7027 | grub-setup. | |
7028 | ||
861dfd4c VS |
7029 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7030 | ||
7031 | * util/grub-install.in: Handle partitionless disks. | |
7032 | ||
f77a8c24 VS |
7033 | 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> |
7034 | ||
7035 | * util/grub-setup.c (setup): Don't clean blocklists before readability | |
7036 | verfification. | |
7037 | ||
27d9ee32 VS |
7038 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7039 | ||
7040 | * docs/grub.texi (Installation): Document embedding zone. Remove | |
7041 | obsolete grub-install example. | |
7042 | ||
6bdda8f8 SJ |
7043 | 2010-10-16 Szymon Janc <szymon@janc.net.pl> |
7044 | ||
7045 | * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): | |
7046 | Set-but-not-used variable ifdef'ed. | |
7047 | * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise. | |
7048 | * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used | |
7049 | variable removed. | |
7050 | * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise. | |
7051 | * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise. | |
7052 | * grub-core/fs/minix.c (grub_minix_dir): Likewise. | |
7053 | * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise. | |
7054 | * grub-core/fs/ufs.c (grub_ufs_dir): Likewise. | |
7055 | * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise. | |
7056 | * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise. | |
7057 | * grub-core/gfxmenu/widget-box.c (draw): Likewise. | |
7058 | * grub-core/lib/relocator.c (malloc_in_range): Likewise. | |
7059 | * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise. | |
7060 | * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable): | |
7061 | Likewise. | |
7062 | ||
e19b016b VS |
7063 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7064 | ||
7065 | * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op. | |
7066 | * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New | |
7067 | enum value. | |
7068 | ||
6c8d3002 VS |
7069 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7070 | ||
7071 | * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as | |
7072 | synonym to _S5_. Needed for some DSDTs. | |
7073 | ||
c32b51c9 VS |
7074 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7075 | ||
7076 | Userspace ACPI parser debugging. | |
7077 | ||
7078 | * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace | |
7079 | headers and add relevant defines. Don't include standard headers. | |
7080 | (main) [GRUB_DSDT_TEST]: New function. | |
7081 | * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers. | |
7082 | Don't declare functions. | |
7083 | ||
fbfbeb39 VS |
7084 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7085 | ||
7086 | Remove dead grub_efi_mm_fini. | |
7087 | ||
7088 | * grub-core/kern/efi/mm.c (allocated_page): Removed. | |
7089 | (ALLOCATED_PAGES_SIZE): Likewise. | |
7090 | (MAX_ALLOCATED_PAGES): Likewise. | |
7091 | (allocated_pages): Likewise. | |
7092 | (grub_efi_allocate_pages): Don't record allocated pages. | |
7093 | (grub_efi_free_pages): Likewise. | |
7094 | (grub_efi_mm_init): Likewise. | |
7095 | (grub_efi_mm_fini): Removed. | |
7096 | ||
65f7ed7c VS |
7097 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7098 | ||
7099 | * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down. | |
7100 | (grub_efi_mm_init): Take into account the memory map size increase. | |
7101 | ||
24977b44 VS |
7102 | 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
7103 | ||
7104 | * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0. | |
7105 | (serial_hw_put): Wait based on real time rather than port reads. Don't | |
7106 | roken ports. | |
7107 | * include/grub/serial.h (grub_serial_port): New field broken. | |
7108 | ||
1eb01cd2 RM |
7109 | 2010-10-16 Robert Millan <rmh@gnu.org> |
7110 | ||
7111 | * grub-core/kern/emu/misc.c | |
7112 | (grub_make_system_path_relative_to_its_root): Fix premature return | |
7113 | when processing non-root ZFS filesystems. | |
5f8b440b | 7114 | Reported by Sergio Talens-Oliag. |
1eb01cd2 | 7115 | |
2d5fed60 RM |
7116 | 2010-10-15 Robert Millan <rmh@gnu.org> |
7117 | ||
7118 | * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to | |
7119 | guarantee compressed ones are processed first. | |
7120 | ||
d0f4c1ea VS |
7121 | 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com> |
7122 | ||
7123 | * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from | |
7124 | grub_efiemu_autocore. | |
7125 | ||
d87c681f VS |
7126 | 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com> |
7127 | ||
7128 | * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly | |
7129 | rather than 0x1b. | |
7130 | (grub_console_getkey): Use correct jae opcode rather than ja. | |
7131 | ||
219b3564 RM |
7132 | 2010-10-12 Robert Millan <rmh@gnu.org> |
7133 | ||
7134 | * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and | |
7135 | `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY' | |
7136 | variable. All references updated. | |
7137 | ||
7138 | * util/grub.d/10_kfreebsd.in: Support recovery boot entries. | |
7139 | ||
20c6bb7e VS |
7140 | 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com> |
7141 | ||
7142 | Correctly distinguish mdraid flavours. | |
7143 | ||
7144 | * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function. | |
7145 | (insert_array): New argument raid. | |
7146 | * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname. | |
7147 | * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver. | |
7148 | * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid". | |
7149 | ||
74baff84 VS |
7150 | 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com> |
7151 | ||
7152 | * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect | |
7153 | handling of special keys. | |
7154 | ||
3ef068df | 7155 | 2010-10-02 Aleš Nesrsta <starous@volny.cz> |
7156 | ||
c7980ad9 VS |
7157 | * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of |
7158 | GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT. | |
3ef068df | 7159 | |
a9455194 | 7160 | 2010-10-02 Aleš Nesrsta <starous@volny.cz> |
7161 | ||
c7980ad9 VS |
7162 | * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase. |
7163 | * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit | |
7164 | users updated. | |
a9455194 | 7165 | * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite): |
c7980ad9 | 7166 | Use right endpoint when querying descriptor. |
a9455194 | 7167 | |
441cfe65 VS |
7168 | 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com> |
7169 | ||
7170 | Clear out 0x80 color bit on EFI. | |
7171 | Tested by: decoder | |
7172 | Reported by: decoder and meta tech. | |
7173 | ||
7174 | * grub-core/term/efi/console.c (grub_console_standard_color): Removed. | |
7175 | (grub_console_setcolorstate): Clear out 0x80 bit. | |
7176 | Use GRUB_TERM_DEFAULT_STANDARD_COLOR. | |
7177 | (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR. | |
7178 | Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR. | |
7179 | ||
bf26bcc4 VS |
7180 | 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com> |
7181 | ||
7182 | * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]: | |
7183 | Set to "auto". | |
7184 | ||
6e3c515d VS |
7185 | 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> |
7186 | ||
7187 | * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using | |
7188 | mo_file after freeing. | |
7189 | ||
e6d983ba VS |
7190 | 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> |
7191 | ||
7192 | * grub-core/normal/term.c (read_terminal_list): Free in a right order. | |
7193 | ||
74ccb5b5 VS |
7194 | 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> |
7195 | ||
7196 | * grub-core/script/execute.c (grub_script_execute_sourcecode): Set | |
7197 | flags. | |
7198 | ||
17821956 VS |
7199 | 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> |
7200 | ||
7201 | * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp | |
7202 | usage. | |
7203 | ||
ee74fa48 VS |
7204 | 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com> |
7205 | ||
7206 | Put terminfo into core on ieee1275 and yeeloong (needed for console). | |
7207 | ||
7208 | * gentpl.py: New groups terminfoinkernel and terminfomodule. | |
7209 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h | |
7210 | and terminfo.h when needed. | |
7211 | * grub-core/Makefile.core.def (kernel): Include term/terminfo.c, | |
7212 | term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel. | |
7213 | (terminfo): Enable only on terminfokernel. | |
7214 | (extcmd): Likewise. | |
7215 | * include/grub/extcmd.h: Add missing EXPORT_FUNC. | |
7216 | * include/grub/lib/arg.h: Likewise. | |
7217 | * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix | |
7218 | incorrect usage of ->. | |
7219 | ||
aa438e68 VS |
7220 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7221 | ||
7222 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi] | |
7223 | [GRUB_MACHINE_EFI && __i386__]: Fix typo. | |
7224 | ||
57994012 VS |
7225 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7226 | ||
7227 | Fix coreboot compilation. | |
7228 | ||
7229 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size): | |
7230 | Take VBE info into account even if only text is supported. | |
7231 | (fill_vbe_info): Take into account the case when only VGA text | |
7232 | is supported. | |
7233 | * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero | |
7234 | on coreboot, multiboot and qemu. | |
7235 | ||
2a406611 VS |
7236 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7237 | ||
7238 | * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose | |
7239 | debug messages. | |
7240 | (grub_relocator_prepare_relocs): Set movers_chunk.srcv. | |
7241 | ||
d33613fc VS |
7242 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7243 | ||
7244 | * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial | |
7245 | parameters. | |
7246 | ||
44a1b432 VS |
7247 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7248 | ||
7249 | * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as | |
7250 | if they were BSD-style. | |
7251 | ||
edde54e6 VS |
7252 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7253 | ||
7254 | * grub-core/boot/i386/pc/lnxboot.S: Replace | |
7255 | GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with | |
7256 | GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART. | |
7257 | ||
b65830fa VS |
7258 | 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> |
7259 | ||
7260 | Write embedding zone using Reed-Solomon. | |
7261 | ||
7262 | * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c. | |
7263 | * grub-core/Makefile.am (rs_decoder.S): New target. | |
7264 | (kern/i386/pc/startup.S): Depend on rs_decoder.S. | |
7265 | * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field. | |
7266 | (multiboot): Move to RS part. | |
7267 | (post_reed_solomon): New label. | |
7268 | (grub_boot_drive): Move to non-RS part since it's modified in memory | |
7269 | on boot. | |
7270 | Include rs_decoder.S. | |
7271 | * grub-core/lib/reed_solomon.c: New file. | |
7272 | * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): | |
7273 | New definition. | |
7274 | (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed. | |
7275 | (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated. | |
7276 | (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition. | |
7277 | * include/grub/partition.h (grub_partition_map): Change prototype of | |
7278 | embed to allow returning additional sectors. | |
7279 | * include/grub/reed_solomon.h: New file. | |
7280 | * util/grub-setup.c (setup): Handle Reed-Solomon. | |
7281 | ||
0b4b227f CW |
7282 | 2010-09-28 Colin Watson <cjwatson@ubuntu.com> |
7283 | ||
7284 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix | |
7285 | i386 and x86-64 definedness tests. | |
7286 | ||
f772623b YB |
7287 | 2010-09-27 Yves Blusseau <blusseau@zetam.org> |
7288 | ||
7289 | Fix generation of kernel_syms.lst | |
7290 | ||
7291 | * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of | |
7292 | ASM_PREFIX | |
7293 | ||
8e57a6ca RM |
7294 | 2010-09-26 Robert Millan <rmh@gnu.org> |
7295 | ||
7296 | Support degraded ZFS arrays in "grub-probe -t device" resolution. | |
7297 | ||
7298 | * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When | |
7299 | the pool is an array of devices, iterate through it and return the | |
7300 | first device that passes a stat() test (instead of blindly returning | |
7301 | the first one). | |
7302 | ||
f9130836 RM |
7303 | 2010-09-26 Robert Millan <rmh@gnu.org> |
7304 | ||
7305 | Build fixes for GNU/kFreeBSD. | |
7306 | ||
7307 | * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies | |
7308 | to programs that require ZFS conversion. | |
7309 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support | |
7310 | kernels that don't have FLOPPY_MAJOR. | |
7311 | ||
96510faf BC |
7312 | 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com> |
7313 | ||
7314 | * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo. | |
7315 | ||
449333eb BC |
7316 | 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com> |
7317 | ||
7318 | Fix grub-emu build. | |
7319 | ||
7320 | * grub-core/kern/emu/main.c: Remove #include <getopt.h>. | |
7321 | * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into | |
7322 | mdraid09 and mdraid1x. | |
7323 | ||
e1fd1939 CW |
7324 | 2010-09-24 Colin Watson <cjwatson@ubuntu.com> |
7325 | ||
7326 | Re-enable grub-extras. | |
7327 | ||
7328 | * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to | |
7329 | avoid confusing Automake. Run autogen only twice, once for the top | |
7330 | level and once for grub-core. Add Makefile.util.def and | |
7331 | Makefile.core.def from extra modules to the appropriate autogen | |
7332 | invocations. If Makefile.common exists in an extra module, include | |
7333 | it in both Makefile.util.am and grub-core/Makefile.core.am; | |
7334 | similarly, include any Makefile.util.common file in Makefile.util.am | |
7335 | and any Makefile.core.common file in grub-core/Makefile.core.am. | |
7336 | * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am): | |
7337 | Depend on $(top_srcdir)/grub-core/Makefile.gcry.def. | |
7338 | ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove. | |
7339 | * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am. | |
7340 | ||
7341 | * gentpl.py (gvar_add): Turn GVARS into a set. | |
7342 | (global_variable_initializers): Sort global variables on output. | |
7343 | (vars_init): New function. | |
7344 | (first_time): Likewise. | |
7345 | (library): Ensure that non-global variable initialisations are | |
7346 | emitted before the first time we emit code for a library block. | |
7347 | Append to variables rather than setting them. Only emit | |
7348 | noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for | |
7349 | each conditional path. | |
7350 | (program): installdir() emits an Autogen macro, so must be passed to | |
7351 | var_add rather than gvar_add. | |
7352 | (data): Likewise. | |
7353 | (script): Likewise. | |
7354 | (rules): New function, centralising handling for different target | |
7355 | types. Set up Guile association lists for first_time and vars_init, | |
7356 | and send most output to a diversion so that variable initialisations | |
7357 | can be emitted first. | |
7358 | (module_rules): Use new rules function. | |
7359 | (kernel_rules): Likewise. | |
7360 | (image_rules): Likewise. | |
7361 | (library_rules): Likewise. | |
7362 | (program_rules): Likewise. | |
7363 | (script_rules): Likewise. | |
7364 | (data_rules): Likewise. | |
7365 | ||
7366 | * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img. | |
7367 | ||
7368 | * .bzrignore: Add contrib and grub-core/contrib. Remove | |
7369 | grub-core/Makefile.gcry.am. | |
7370 | ||
1d12cf29 YB |
7371 | 2010-09-24 Yves Blusseau <blusseau@zetam.org> |
7372 | ||
7373 | * grub-core/lib/LzFind.c: Add missing include. | |
7374 | * grub-core/lib/LzmaEnc.c: Likewise. | |
7375 | * grub-core/script/lexer.c: Likewise. | |
7376 | * grub-core/script/yylex.l: Likewise. | |
7377 | * util/grub-macho2img.c: Likewise. | |
7378 | * util/grub-menulst2cfg.c: Likewise. | |
7379 | * util/grub-mklayout.c: Likewise. | |
7380 | * util/grub-mkpasswd-pbkdf2.c | |
7381 | * util/grub-mkrelpath.c: Likewise. | |
7382 | * util/resolve.c: Likewise. | |
7383 | ||
dd363028 BC |
7384 | 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com> |
7385 | ||
7386 | * Makefile.util.def (example_unit_test): Add | |
7387 | grub-core/gnulib/libgnu.a. | |
7388 | ||
f5a109e2 GS |
7389 | 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com> |
7390 | ||
7391 | * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev. | |
7392 | ||
6d0fa83c VS |
7393 | 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com> |
7394 | ||
7395 | Support xz compression on yeeloong. | |
7396 | ||
7397 | * Makefile.util.def (grub-mkimage): Add $(LIBLZMA). | |
7398 | * configure.ac: Check for LZMA. | |
7399 | * grub-core/Makefile.core.def (xz_decompress): New target. | |
7400 | (none_decompress): Likewise. | |
7401 | * grub-core/boot/decompressor/minilib.c: New file. | |
7402 | * grub-core/boot/decompressor/none.c: Likewise. | |
7403 | * grub-core/boot/decompressor/xz.c: Likewise. | |
7404 | * grub-core/kern/mips/cache.S: Change to noreorder nomacro. | |
7405 | * grub-core/kern/mips/cache_flush.S: Likewise. | |
7406 | * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code. | |
7407 | * grub-core/kern/mips/startup.S: Move first stage to ... | |
7408 | * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder | |
7409 | nomacro. | |
7410 | * grub-core/kern/mips/startup.S: Change to noreorder nomacro. | |
7411 | * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro. | |
7412 | * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]: | |
7413 | Allocate statically. | |
7414 | * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]: | |
7415 | Allocate statically or use scratch. Don't check CRC32. | |
7416 | * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]: | |
7417 | Allocate statically. Don't check CRC32. | |
7418 | * include/grub/decompressor.h: New file. | |
7419 | * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE): | |
7420 | Removed. | |
7421 | (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field. | |
7422 | (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted. | |
7423 | (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise. | |
7424 | (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise. | |
7425 | (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define. | |
7426 | * util/grub-mkimage.c (grub_compression_t): New type. | |
7427 | (PLATFORM_FLAGS_DECOMPRESSORS): New flag. | |
7428 | (image_target_desc): New field default_compression. | |
7429 | (image_targets): Adjust yeeloong targets. | |
7430 | (compress_kernel_xz) [HAVE_LIBLZMA]: New function. | |
7431 | (compress_kernel): New parameter comp. | |
7432 | (generate_image): Likewise. Handle new compression case. | |
7433 | (options): New option --compression | |
7434 | (help): Likewise. | |
7435 | (main): Handle new option. | |
7436 | ||
1b655af6 GS |
7437 | 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com> |
7438 | ||
7439 | * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR. | |
7440 | ||
8f03f0b5 CW |
7441 | 2010-09-22 Colin Watson <cjwatson@ubuntu.com> |
7442 | ||
7443 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix | |
7444 | typo in __i386__ conditional. | |
7445 | ||
7835dfd3 VS |
7446 | 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com> |
7447 | ||
7448 | * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing | |
7449 | include. | |
7450 | ||
e255597e VS |
7451 | 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com> |
7452 | ||
6d0fa83c | 7453 | Implement EFI and ACPI multiboot2 extensions. |
e255597e VS |
7454 | |
7455 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare | |
7456 | new tags as supported. | |
7457 | (acpiv2_size): New function. | |
7458 | (grub_multiboot_get_mbi_size): Take new tags into account. | |
7459 | (grub_multiboot_make_mbi): Add new tags. | |
7460 | * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition. | |
6d0fa83c | 7461 | |
6cc14051 | 7462 | 2010-09-21 Aleš Nesrsta <starous@volny.cz> |
7463 | ||
7464 | * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): | |
7465 | Added missing configuration of USB device. | |
7466 | ||
df7769d8 CW |
7467 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7468 | ||
7469 | * grub-core/normal/menu_entry.c (run): Make sure we always return | |
7470 | a value. | |
7471 | ||
b031012d CW |
7472 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7473 | ||
7474 | * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap): | |
7475 | NumberOfPages is UINT64 according to the UEFI specification, not | |
7476 | UINTN. Fix printf format. | |
7477 | ||
174de8f3 CW |
7478 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7479 | ||
7480 | * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of | |
7481 | `err' to grub_usb_err_t. | |
7482 | Reported and tested by: KESHAV P.R. | |
7483 | ||
d7dbe923 CW |
7484 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7485 | ||
7486 | * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make | |
7487 | tpart non-const, so that we can assign to it. (Since this is a | |
7488 | typedef, the constness refers to the pointer rather than what it | |
7489 | points to.) | |
7490 | ||
8d5e2af3 CW |
7491 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7492 | ||
7493 | * conf/Makefile.common (CPPFLAGS_GNULIB): Add | |
7494 | $(top_srcdir)/grub-core/gnulib as well as | |
7495 | $(top_builddir)/grub-core/gnulib. | |
7496 | Reported by: KESHAV P.R. | |
7497 | ||
5c527783 CW |
7498 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7499 | ||
7500 | * util/grub-install.in: Fix the bootloader ID option to be | |
7501 | consistently --bootloader-id, not --bootloader_id. | |
7502 | Reported by: KESHAV P.R. | |
7503 | ||
d309a16e CW |
7504 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7505 | ||
7506 | * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or | |
7507 | check hash checksum." consistently translatable. | |
7508 | ||
b830cd16 YB |
7509 | 2010-09-21 Yves Blusseau <blusseau@zetam.org> |
7510 | ||
7511 | * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with | |
7512 | $(top_builddir). | |
7513 | ||
c4fe27a8 CW |
7514 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7515 | ||
7516 | * grub-core/commands/hashsum.c (aliases): Add sha1sum alias. | |
7517 | (GRUB_MOD_INIT): Register sha1sum command. | |
7518 | (GRUB_MOD_FINI): Unregister sha1sum command. | |
7519 | ||
a4c1d277 YB |
7520 | 2010-09-21 Yves Blusseau <blusseau@zetam.org> |
7521 | ||
7522 | Keep boot and grub directory names in sync with utils scripts | |
7523 | ||
7524 | * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros. | |
7525 | * config.h.in: Add previous macros. | |
7526 | * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros. | |
7527 | * util/grub-install.in: Use $bootdir and $grubdir variables. | |
7528 | ||
4eff79d2 CW |
7529 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7530 | ||
7531 | * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to | |
7532 | convert partition names to disk names if the new `convert' parameter | |
7533 | is set. | |
7534 | (grub_util_biosdisk_get_grub_dev): If opening the disk device | |
7535 | returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a | |
7536 | disk in its own right. This can happen with Xen disk images. | |
7537 | ||
934d7e44 YB |
7538 | 2010-09-21 Yves Blusseau <blusseau@zetam.org> |
7539 | ||
7540 | * util/grub-editenv.c: Update strings to avoid warnings when generating | |
7541 | grub.pot file. | |
7542 | * util/grub-setup.c: Likewise. | |
934d7e44 | 7543 | |
df3367cc VS |
7544 | 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com> |
7545 | ||
7546 | * configure.ac: Change version to 1.99~beta0. | |
7547 | ||
77a94e98 VS |
7548 | 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com> |
7549 | ||
7550 | * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): | |
7551 | Add BADRAM. | |
7552 | * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap): | |
7553 | Likewise. | |
7554 | * include/multiboot.h: Resynced with specification. | |
7555 | * include/multiboot2.h: Likewise. | |
7556 | ||
269004c1 CW |
7557 | 2010-09-21 Colin Watson <cjwatson@ubuntu.com> |
7558 | ||
7559 | Fix po directory handling. | |
7560 | ||
7561 | * configure.ac: Create po/Makefile.in rather than po/Makefile. | |
7562 | * grub-core/gnulib/Makefile.am: Import gettext module. | |
7563 | * m4/gnulib-cache.m4: Likewise. | |
7564 | * m4/gnulib-comp.m4: Likewise. | |
7565 | * m4/gettext.m4: New file, from gnulib. | |
7566 | * m4/glibc2.m4: Likewise. | |
7567 | * m4/iconv.m4: Likewise. | |
7568 | * m4/intdiv0.m4: Likewise. | |
7569 | * m4/intl.m4: Likewise. | |
7570 | * m4/intldir.m4: Likewise. | |
7571 | * m4/intlmacosx.m4: Likewise. | |
7572 | * m4/intmax.m4: Likewise. | |
7573 | * m4/inttypes-pri.m4: Likewise. | |
7574 | * m4/lcmessage.m4: Likewise. | |
7575 | * m4/lib-ld.m4: Likewise. | |
7576 | * m4/lib-link.m4: Likewise. | |
7577 | * m4/lib-prefix.m4: Likewise. | |
7578 | * m4/lock.m4: Likewise. | |
7579 | * m4/nls.m4: Likewise. | |
7580 | * m4/po.m4: Likewise. | |
7581 | * m4/printf-posix.m4: Likewise. | |
7582 | * m4/progtest.m4: Likewise. | |
7583 | * m4/threadlib.m4: Likewise. | |
7584 | * m4/uintmax_t.m4: Likewise. | |
7585 | * m4/visibility.m4: Likewise. | |
7586 | * po/Makefile.am: Remove. | |
7587 | * po/Makefile.in.in: New file, from gettext. | |
7588 | ($(DOMAIN).pot-update): Support POTFILES-shell. | |
7589 | * po/Makevars: New file. | |
7590 | * po/POTFILES-shell: Rename to ... | |
7591 | * po/POTFILES-shell.in: ... this. Update. | |
7592 | * po/POTFILES: Rename to ... | |
7593 | * po/POTFILES.in: ... this. Update. | |
7594 | * po/Rules-quot: New file, from gettext. | |
7595 | * po/boldquot.sed: Likewise. | |
7596 | * po/en@boldquot.header: Likewise. | |
7597 | * po/en@quot.header: Likewise. | |
7598 | * po/insert-header.sin: Likewise. | |
7599 | * po/quot.sed: Likewise. | |
7600 | * po/remove-potcdate.sin: Likewise. | |
7601 | ||
3e0fa5d0 VS |
7602 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7603 | ||
7604 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible. | |
7605 | ||
ade9bd66 VS |
7606 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7607 | ||
7608 | * util/grub.d/20_linux_xen.in: Use submenus. | |
7609 | ||
fc55cc4c VS |
7610 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7611 | ||
7612 | Support submenus. | |
7613 | ||
7614 | * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New | |
7615 | parameter submenu. All users updated. | |
7616 | * grub-core/normal/main.c (free_menu): Rename to ... | |
7617 | (grub_normal_free_menu): ... this. Made global. | |
7618 | * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context | |
7619 | if requested. | |
7620 | * grub-core/normal/menu_entry.c (screen): New field submenu. | |
7621 | (make_screen): Set submenu. | |
7622 | (run): Open new context if requested. | |
7623 | * include/grub/menu.h (grub_menu_entry): New field submenu. | |
7624 | * include/grub/normal.h (grub_normal_free_menu): New proto. | |
7625 | ||
600cedf7 VS |
7626 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7627 | ||
7628 | Menu entries extractor. | |
7629 | ||
7630 | * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor | |
7631 | variants. | |
7632 | (GRUB_MOD_INIT): Register new variants. | |
7633 | (GRUB_MOD_FINI): Unregister new variants. | |
7634 | * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge | |
7635 | into grub_cmd_legacy_source. | |
7636 | (grub_cmd_legacy_source): Implement extractor variants. | |
7637 | (GRUB_MOD_INIT): Register new variants. | |
7638 | (GRUB_MOD_FINI): Unregister new variants. | |
7639 | * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry | |
7640 | as an extractor. | |
7641 | * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare | |
7642 | search as an extractor. | |
7643 | * grub-core/commands/test.c (GRUB_MOD_INIT): Declare | |
7644 | test as an extractor. | |
7645 | * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set | |
7646 | as an extractor. | |
7647 | * grub-core/normal/context.c (grub_env_context_open): Reorganised. | |
7648 | (grub_env_new_context): New function. | |
7649 | (grub_env_context_open): Likewise. | |
7650 | (grub_env_extractor_open): Likewise. | |
7651 | (grub_env_extractor_close): Likewise. | |
7652 | * grub-core/script/execute.c (grub_script_execute_cmdline): Handle | |
7653 | grub_extractor_level. | |
7654 | * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag. | |
7655 | * include/grub/env.h (grub_env_extractor_open): New proto. | |
7656 | (grub_env_extractor_close): Likewise. | |
7657 | * include/grub/normal.h (grub_extractor_level): New external variable. | |
7658 | ||
7bda3a87 VS |
7659 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7660 | ||
7661 | Make cutmem accept a region specification. | |
7662 | Suggested by: Samuel Thibault | |
7663 | ||
7664 | * grub-core/mmap/mmap.c (parsemem): New function. | |
7665 | (grub_cmd_cutmem): Handle new arguments. | |
7666 | ||
2ea57f88 VS |
7667 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7668 | ||
7669 | New command cutmem. | |
7670 | ||
7671 | * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function. | |
7672 | (GRUB_MOD_INIT): Register new command. | |
7673 | (GRUB_MOD_FINI): Unregister new command. | |
7674 | ||
74342e31 VS |
7675 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7676 | ||
7677 | Support some annoying BSD and Minix subpartitions. | |
7678 | ||
7679 | * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c. | |
7680 | * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): | |
7681 | Properly handle concatenation. | |
7682 | * grub-core/kern/device.c (grub_device_iterate): Likewise. | |
7683 | * grub-core/normal/completion.c (iterate_partition): Likewise. | |
7684 | * grub-core/kern/disk.c (grub_disk_open): Make disk->name not | |
7685 | contain partition. All users updated. | |
7686 | * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New | |
7687 | struct. | |
7688 | (grub_openbsdlabel_partition_map): Likewise. | |
7689 | (bsdlabel_partition_map_iterate): Rename to .. | |
7690 | (iterate_real): ... this. New arguments sector, freebsd and pmap. | |
7691 | (bsdlabel_partition_map_iterate): New function. | |
7692 | (netopenbsdlabel_partition_map_iterate): Likewise. | |
7693 | (netbsdlabel_partition_map_iterate): Likewise. | |
7694 | (openbsdlabel_partition_map_iterate): Likewise. | |
7695 | (GRUB_MOD_INIT): Register new partmaps. | |
7696 | (GRUB_MOD_FINI): Unregister new partmaps. | |
7697 | * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ... | |
7698 | (grub_partition_msdos_iterate): ... this. All users updated. | |
7699 | Don't support embedding other than in a minix partition. | |
7700 | * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New | |
7701 | proto. | |
7702 | * include/grub/partition.h (grub_partition): New field msdostype. | |
7703 | * util/grub-install.in: Handle openbsd and netbsd types being in | |
7704 | part_bsd module. | |
7705 | ||
1e8d555b VS |
7706 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7707 | ||
7708 | Split mdraid.mod into mdraid09.mod and mdraid1x.mod. | |
7709 | ||
7710 | * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c. | |
7711 | * grub-core/Makefile.core.def (mdraid): Renamed to ... | |
7712 | (mdraid09): ... this. | |
7713 | (mdraid1x): New module. | |
7714 | * grub-core/disk/mdraid_linux.c: Move 1.x parts ... | |
7715 | * grub-core/disk/mdraid1x_linux.c: ...here. All users updated. | |
7716 | ||
899d8af4 VS |
7717 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7718 | ||
7719 | * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of | |
7720 | vsprintf. | |
7721 | ||
40901acd CW |
7722 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7723 | ||
7724 | * grub-core/commands/efi/lsefimmap.c: Correct header. | |
7725 | * NEWS: Update. | |
7726 | ||
dfe3b247 CW |
7727 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7728 | ||
7729 | * util/grub-editenv.c (argp_parser): Don't pass translated strings | |
7730 | as printf format strings; the translations might contain '%' which | |
7731 | could cause a crash. | |
7732 | (main): Likewise. | |
7733 | * util/grub-fstest.c (argp_parser): Likewise. | |
7734 | * util/grub-setup.c (argp_parser): Likewise. | |
7735 | (main): Likewise. | |
7736 | ||
3286a4b4 VS |
7737 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7738 | ||
7739 | Use argp in grub-fstest. | |
7740 | ||
7741 | * util/grub-fstest.c: Don't include getopt.h. | |
7742 | Include argp.h. | |
7743 | (root): New variable. | |
7744 | (args_count): Likewise. | |
7745 | (nparm): Likewise. | |
7746 | (num_disks): Likewise. | |
7747 | (images): Likewise. | |
7748 | (cmd): Likewise. | |
7749 | (debug_str): Likewise. | |
7750 | (args): Likewise. | |
7751 | (options): Transformed to argp. | |
7752 | (usage): Removed. | |
7753 | (main): Split argument parsing into ... | |
7754 | (argp_parser): ... this. Changed to argp format. | |
7755 | (argp): New variable. | |
7756 | (main): Use argp_parse. | |
7757 | ||
3dccbe4b TG |
7758 | 2010-09-20 Tristan Gingold <gingold@free.fr> |
7759 | 2010-09-20 Robert Millan <rmh.grub@aybabtu.com> | |
7760 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> | |
7761 | ||
7762 | * grub-core/commands/efi/lsefimmap.c: New file. | |
7763 | * grub-core/Makefile.core.def (lsefimmap): New module. | |
7764 | * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition. | |
7765 | ||
38c259a7 VS |
7766 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7767 | ||
7768 | Pause the execution (10s max) if any errors are displayed so the user | |
7769 | has a chance to see them. | |
7770 | ||
7771 | * grub-core/kern/err.c (grub_err_printed_errors): New variable. | |
7772 | (grub_print_error): Increment grub_err_printed_errors. | |
7773 | * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the | |
7774 | execution if any errors were displayed. | |
7775 | (show_menu): Remove old code for pause. | |
7776 | * grub-core/normal/menu_entry.c (run): Likewise. | |
7777 | * grub-core/normal/term.c (grub_normal_char_counter): Removed. All | |
7778 | users updated. | |
7779 | (grub_normal_get_char_counter): Likewise. | |
7780 | * include/grub/err.h (grub_err_printed_errors): New external variable. | |
7781 | * include/grub/normal.h (grub_normal_get_char_counter): Removed. | |
7782 | ||
f218b09c VS |
7783 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7784 | ||
7785 | Support multiboot VBE info. | |
7786 | ||
7787 | * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size): | |
7788 | Take VBE info into account. | |
7789 | (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function. | |
7790 | (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]: | |
7791 | Call fill_vbe_info when appropriate. | |
7792 | (grub_multiboot_make_mbi): Account for the size occupied by VBE info. | |
7793 | * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags | |
7794 | as supported. | |
7795 | (grub_multiboot_get_mbi_size): Take new tags into account. | |
7796 | (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function. | |
7797 | (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]: | |
7798 | Call fill_vbe_tag when appropriate. | |
7799 | (grub_multiboot_make_mbi): Properly align tags. | |
7800 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New | |
7801 | function. | |
7802 | * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New | |
7803 | proto. | |
7804 | * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition. | |
7805 | ||
a9cc5438 VS |
7806 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7807 | ||
7808 | Suport manual terminal geometry specification. | |
7809 | ||
7810 | * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): | |
7811 | Save state in grub_ofconsole_terminfo_output. | |
7812 | (grub_ofconsole_term): Use grub_terminfo_getwh. | |
7813 | (grub_ofconsole_getwh): Removed. | |
7814 | * grub-core/term/serial.c (grub_serial_getwh): Removed. | |
7815 | (grub_serial_term): Use grub_terminfo_getwh. | |
7816 | * grub-core/term/terminfo.c (grub_terminfo_getwh): New function. | |
7817 | (options): New struct. | |
7818 | (OPTION_*): New enum. | |
7819 | (grub_cmd_terminfo): Transform into extcmd and handle new parameters. | |
7820 | * include/grub/terminfo.h (grub_terminfo_output_state): New fields | |
7821 | width and height. | |
7822 | (grub_terminfo_getwh): New proto. | |
7823 | * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines. | |
7824 | ||
1a8fed20 VS |
7825 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7826 | ||
7827 | Handle legacy "terminal" command. | |
7828 | ||
7829 | * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE | |
7830 | and FLAG_TERMINAL. | |
7831 | (legacy_commands): Add terminal and title. | |
7832 | (grub_legacy_parse): Handle terminal. Simplify title handling. | |
7833 | ||
41e9c57d VS |
7834 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7835 | ||
7836 | * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle | |
7837 | parameters overflow. | |
7838 | ||
61c874c5 CW |
7839 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7840 | ||
7841 | * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and | |
7842 | widthspec.h. | |
7843 | ||
7844 | * docs/grub.texi (Shell-like scripting): Document `!'. | |
7845 | (Network): Simplify using new i386-pc-pxe format. Mention | |
7846 | grub-mknetdir. | |
7847 | ||
7848 | * NEWS: Update. | |
7849 | ||
943682b4 CW |
7850 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7851 | ||
7852 | * Makefile.am (SUBDIRS): Restore "."; it's important to force | |
7853 | ordering, so that e.g. ascii.h is built before grub-core/font/font.c | |
7854 | when needed. | |
7855 | ||
6d3d698d CW |
7856 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7857 | ||
7858 | * grub-core/commands/efi/lsefisystab.c: Correct header. | |
7859 | * grub-core/commands/efi/lssal.c: Likewise. | |
7860 | * grub-core/commands/testload.c: Likewise. | |
7861 | ||
c982589f CW |
7862 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7863 | ||
7864 | * util/grub-mkrescue.in: Add explicit root argument to --set to | |
7865 | prevent the UUID being interpreted as an argument to --set (matches | |
7866 | previous change to prepare_grub_to_access_device). | |
7867 | ||
a63c31b6 CW |
7868 | 2010-09-20 Colin Watson <cjwatson@ubuntu.com> |
7869 | ||
7870 | * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h> | |
7871 | on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce | |
7872 | the verbosity of later #ifs. | |
7873 | (find_partition_start): Define this function on FreeBSD too. | |
7874 | (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New | |
7875 | function. | |
7876 | (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic | |
7877 | on FreeBSD. | |
7878 | ||
6439b8ee YB |
7879 | 2010-09-20 Yves Blusseau <blusseau@zetam.org> |
7880 | ||
7881 | * util/grub-editenv.c: Use argp instead of getopt. | |
7882 | ||
c5930ec8 YB |
7883 | 2010-09-20 Yves Blusseau <blusseau@zetam.org> |
7884 | ||
7885 | * util/grub-setup.c: Use argp instead of getopt. | |
7886 | ||
15c69261 YB |
7887 | 2010-09-20 Yves Blusseau <blusseau@zetam.org> |
7888 | ||
7889 | Use gnulib-tool to create gnulib source files. | |
7890 | ||
7891 | * Add gnulib files generated by gnulib-tool in build-aux, m4 and | |
7892 | grub-core/gnulib directories | |
7893 | * .bzignore: Add **/.deps and autogenerated gnulib files | |
7894 | * configure.ac: Assign auxiliary directory to build-aux, add invocation | |
7895 | of gnulib macros, add grub-core/gnulib/Makefile | |
7896 | * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .), | |
7897 | include m4 directory to aclocal. | |
7898 | * Makefile.util.def: Remove direct compilation of gnulib source files | |
7899 | and use the new grub-core/gnulib/libgnu.a. | |
7900 | * build-aux/config.rpath: move config.rpath from top directory to | |
7901 | build-aux | |
7902 | * conf/Makefile.common: Remove the macro _GL_UNUSED already defined | |
7903 | in gnulib headers | |
7904 | * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4 | |
7905 | * grub-core/Makefile.core.def: Remove unnecessary extra_dist | |
7906 | * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update | |
7907 | header. | |
7908 | * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static | |
7909 | string. | |
7910 | ||
e511c9f5 YB |
7911 | 2010-09-20 Yves Blusseau <blusseau@zetam.org> |
7912 | ||
7913 | * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker, | |
7914 | grub-core/genmod.sh and grub-core/gensyminfo.sh | |
7915 | ||
c2dede05 BC |
7916 | 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com> |
7917 | ||
7918 | Add a test for echo command options. | |
7919 | ||
7920 | * tests/grub_cmd_echo.in: New test. | |
7921 | * Makefile.util.def: Rules for new test. | |
7922 | ||
c55f5018 SJ |
7923 | 2010-09-20 Szymon Janc <szymon@janc.net.pl> |
7924 | ||
7925 | Remove crc.mod and move crc command to hashsum.mod. | |
7926 | Remove lib/crc.c - users updated to use gcrypt implementation. | |
7927 | ||
7928 | * grub-core/commands/crc.c: Removed. | |
7929 | * grub-core/Makefile.core.def (crc): Module removed. | |
7930 | * grub-core/commands/hashsum.c (aliases[]): Add crc alias. | |
7931 | * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command. | |
7932 | * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command. | |
7933 | * grub-core/lib/crc.c: Removed. | |
7934 | * include/grub/lib/crc.h: Removed. | |
7935 | * Makefile.util.def (crc): Remove lib/crc.c | |
7936 | * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c. | |
7937 | * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation. | |
7938 | * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c. | |
7939 | * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags. | |
7940 | * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags. | |
7941 | * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation. | |
7942 | ||
e0337366 VS |
7943 | 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com> |
7944 | ||
7945 | * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range. | |
7946 | ||
742f9232 VS |
7947 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> |
7948 | ||
7949 | Split config.h for util and core. | |
7950 | ||
7951 | * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable. | |
7952 | (ADDR32): Likewise. | |
7953 | (DATA32): Likewise. | |
7954 | (BSS_START_SYMBOL): Likewise. | |
7955 | (END_SYMBOL): Likewise. | |
7956 | (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated. | |
7957 | (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed. | |
7958 | * config.h.in: New file. | |
7959 | * configure.ac: Use config-util.h as config define file. | |
7960 | Rename MACHINE into GRUB_MACHINE. All users updated. | |
7961 | (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users | |
7962 | updated. | |
7963 | (NESTED_FUNC_ATTR): Likewise. | |
7964 | Substitue new variables. | |
7965 | (COND_HAVE_ASM_USCORE): New conditional. | |
7966 | * grub-core/Makefile.am (ASM_PREFIX): New variable. | |
7967 | (kernel_syms.lst): Use ASM_PREFIX. | |
7968 | * grub-core/kern/emu/console.c: Include config-util.h. | |
7969 | * grub-core/kern/emu/misc.c: Likewise. | |
7970 | * grub-core/kern/emu/mm.c: Likewise. | |
7971 | * include/grub/emu/misc.h: Likewise. | |
7972 | * include/grub/libgcc.h: Likewise. | |
7973 | ||
39feb0e8 VS |
7974 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> |
7975 | ||
7976 | * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_* | |
7977 | constants usage. | |
7978 | * grub-core/kern/emu/console.c (grub_ncurses_getkey): | |
7979 | Fix GRUB_TERM_KEY_* constants usage. | |
7980 | * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage. | |
7981 | ||
9af6dac3 VS |
7982 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> |
7983 | ||
7984 | * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to | |
7985 | print pointer. | |
7986 | * grub-core/bus/usb/uhci.c: Remove empty define. | |
7987 | (grub_uhci_check_transfer): Add missing cast. | |
7988 | * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to | |
7989 | print pointer. | |
7990 | * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use | |
7991 | PRIuGRUB_SIZE. | |
7992 | * include/grub/types.h (PRIuGRUB_SIZE): New definition. | |
7993 | ||
d6d94820 VS |
7994 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> |
7995 | ||
7996 | * grub-core/Makefile.core.def (legacycfg): Add | |
7997 | lib/i386/pc/vesa_modes_table.c on emu. | |
7998 | ||
3572f2b6 BC |
7999 | 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com> |
8000 | ||
8001 | Reduce number of temporary files generated by build system. | |
8002 | ||
8003 | * grub-core/gencmdlist.sh: Removed. | |
8004 | * grub-core/genfslist.sh: Removed. | |
8005 | * grub-core/genhandlerlist.sh: Removed. | |
8006 | * grub-core/genmodsrc.sh: Removed. | |
8007 | * grub-core/genpartmaplist.sh: Removed. | |
8008 | * grub-core/genparttoollist.sh: Removed. | |
8009 | * grub-core/gentermiinallist.sh: Removed. | |
8010 | * grub-core/genvideolist.sh: Removed. | |
8011 | ||
8012 | * grub-core/genmod.sh.in: New file. | |
8013 | * grub-core/gensyminfo.sh.in: New file. | |
8014 | ||
8015 | * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags. | |
8016 | * conf/Makefile.extra-dist: Update with new files. | |
8017 | * gentpl.py: Remove rules related to unnecessary temporary files. | |
8018 | * grub-core/Makefile.am (syminfo.lst): New replacement for def-* | |
8019 | and und-* files. | |
8020 | * grub-core/Makefile.core.def: New rules for gensyminfo.sh and | |
8021 | genmod.sh scripts. | |
8022 | * grub-core/bus/usb/uhci.c: Remove empty #define. | |
8023 | * grub-core/genmoddep.awk: Updated with new syminfo format. | |
8024 | * util/bash-completion.d/Makefile.am: Add config.log to | |
8025 | CLEANFILES. | |
8026 | ||
c836b030 YB |
8027 | 2010-09-19 Yves Blusseau <blusseau@zetam.org> |
8028 | ||
8029 | * Makefile.util.def: Add forgotten $(LIBINTL) library. | |
8030 | ||
2f4e8053 BC |
8031 | 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com> |
8032 | ||
8033 | * util/grub-mkconfig.in: Check the config script for syntax errors | |
8034 | before saving. | |
8035 | ||
75831c34 CW |
8036 | 2010-09-19 Colin Watson <cjwatson@ubuntu.com> |
8037 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> | |
8038 | ||
8039 | * Makefile.util.def (grub-install): Use util/grub-install.in on all | |
8040 | platforms. | |
8041 | * util/grub-install.in: Add EFI and IEEE1275 support. | |
8042 | * util/i386/efi/grub-install.in: Removed. | |
8043 | * util/ieee1275/grub-install.in: Likewise. | |
8044 | ||
eaf41b25 VS |
8045 | 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com> |
8046 | ||
8047 | * grub-core/commands/i386/cmostest.c (+parse_args): New function. | |
8048 | (grub_cmd_cmosclean): Likewise. | |
8049 | (GRUB_MOD_INIT): Register command cmosclean. | |
8050 | * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN. | |
8051 | * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN. | |
8052 | ||
1a9130dd CPE |
8053 | 2010-09-18 Carles Pina i Estany <carles@pina.cat> |
8054 | 2010-09-18 Aleš Nesrsta <starous@volny.cz> | |
8055 | 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com> | |
8056 | ||
8057 | Add keyboard layouts support. | |
8058 | ||
8059 | * Makefile.util.def (grub-mklayout): New file. | |
8060 | (grub-kbdcomp): New script. | |
8061 | * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]: | |
8062 | Add keyboard_layouts.h. | |
8063 | * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and | |
8064 | commands/boot.c on yeeloong. | |
8065 | (keylayouts): New module. | |
8066 | * grub-core/bus/usb/ohci.c | |
8067 | * grub-core/bus/usb/uhci.c | |
8068 | * grub-core/bus/usb/usbhub.c (rescan): New variable. | |
8069 | (grub_usb_add_hub): Poll interrupt pipe for device handling. | |
8070 | (attach_root_port): Likewise. | |
8071 | (poll_nonroot_hub): Likewise. | |
8072 | (grub_usb_poll_devices): Likewise. | |
8073 | (detach_device): Close transfer. | |
8074 | * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New | |
8075 | function. | |
8076 | (grub_usb_bulk_setup_readwrite): Likewise. | |
8077 | (grub_usb_bulk_finish_readwrite): Likewise. | |
8078 | * grub-core/commands/keylayouts.c: New file. | |
8079 | * grub-core/commands/keystatus.c (grub_getkeystatus): New function. | |
8080 | * grub-core/commands/menuentry.c (hotkey_aliases): All several new | |
8081 | aliases. | |
8082 | * grub-core/term/at_keyboard.c: Restructured to use keylayouts and | |
8083 | support scancode 2. | |
8084 | * grub-core/term/usb_keyboard.c: Restructured to use keylayouts. | |
8085 | * include/grub/keyboard_layouts.h: New file. | |
8086 | * util/grub-mklayout.c: New file. | |
8087 | * util/grub-kbdcomp.in: Likewise. | |
8088 | ||
a1d84a5e VS |
8089 | 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com> |
8090 | ||
8091 | Unify memory types. | |
8092 | ||
8093 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h. | |
8094 | * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable | |
8095 | types. | |
8096 | * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed. | |
8097 | (grub_upper_mem): Likewise. | |
8098 | * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise. | |
8099 | * include/grub/memory.h (grub_memory_type_t): New enum. | |
8100 | All users updated. | |
8101 | ||
9696382e VS |
8102 | 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com> |
8103 | ||
8104 | * grub-core/Makefile.core.def (lsapm): New module. | |
8105 | * grub-core/commands/i386/pc/lsapm.c: New file. | |
8106 | * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info. | |
8107 | * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]: | |
8108 | Likewise. | |
8109 | * include/grub/i386/pc/apm.h: New file. | |
8110 | * include/multiboot.h (multiboot_apm_info): New struct. | |
8111 | ||
8112 | 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com> | |
8113 | ||
8114 | GRUB-legacy configuration file support. | |
8115 | ||
8116 | * Makefile.util.def (grub-menulst2cfg): New util. | |
8117 | * docs/man/grub-menulst2cfg.h2m: New file. | |
8118 | * grub-core/Makefile.core.def (legacycfg): New module. | |
8119 | * grub-core/commands/legacycfg.c: New file. | |
8120 | * grub-core/commands/menuentry.c (append_menu_entry): Rename to ... | |
8121 | (grub_normal_add_menu_entry): ... this. | |
8122 | * grub-core/commands/password.c (grub_cmd_password): Split main part to ... | |
8123 | (grub_normal_set_password): ...this. | |
8124 | * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE. | |
8125 | * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to .., | |
8126 | * grub-core/lib/i386/pc/vesa_modes_table.c: ... here. | |
8127 | * grub-core/lib/legacy_parse.c: New file. | |
8128 | * grub-core/normal/auth.c (grub_cmd_authenticate): New command. | |
8129 | * include/grub/i386/pc/vesa_modes_table.h: New file. | |
8130 | * include/grub/legacy_parse.h: Likewise. | |
8131 | * include/grub/normal.h (grub_normal_add_menu_entry): New proto. | |
8132 | * util/grub-menulst2cfg.c: New file. | |
8133 | ||
bf8d1338 CW |
8134 | 2010-09-17 Colin Watson <cjwatson@ubuntu.com> |
8135 | ||
8136 | * grub-core/kern/emu/hostdisk.c | |
8137 | (convert_system_partition_to_system_disk): Initialise node. | |
8138 | ||
9c0bad2e CW |
8139 | 2010-09-17 Colin Watson <cjwatson@ubuntu.com> |
8140 | ||
8141 | * grub-core/kern/emu/hostdisk.c | |
8142 | (convert_system_partition_to_system_disk): Fix devmapper memory pool | |
8143 | leak. | |
8144 | Reported and based on patch by: Modestas Vainius. | |
8145 | ||
a939d135 CW |
8146 | 2010-09-17 Colin Watson <cjwatson@ubuntu.com> |
8147 | ||
8148 | Fix DM-RAID probing with recent versions of device-mapper udev | |
8149 | rules. | |
8150 | ||
8151 | * grub-core/kern/emu/hostdisk.c (read_device_map): Don't | |
8152 | canonicalise device paths under /dev/mapper/. | |
8153 | (convert_system_partition_to_system_disk): Compare the | |
8154 | uncanonicalised path to /dev/mapper/ rather than the canonicalised | |
8155 | path, since device nodes under /dev/mapper/ are often symlinks. | |
8156 | ||
0f7ee3c9 YB |
8157 | 2010-09-17 Yves Blusseau <blusseau@zetam.org> |
8158 | ||
8159 | * .bzrignore: *.d removed (old rule), add *.image and symlist.h. | |
8160 | ||
10854d0d YB |
8161 | 2010-09-16 Yves Blusseau <blusseau@zetam.org> |
8162 | ||
8163 | * configure.ac: Avoid some annoying error messages if freetype-config | |
8164 | program is not found. | |
8165 | ||
108538d8 CW |
8166 | 2010-09-16 Colin Watson <cjwatson@ubuntu.com> |
8167 | ||
8168 | Support RAID on virtio devices, and others. | |
8169 | ||
8170 | * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device): | |
8171 | Rename to ... | |
8172 | [__MINGW32__] (grub_find_device): ... this. | |
8173 | [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ... | |
8174 | [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a | |
8175 | reasonable default if dir is NULL. | |
8176 | [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to | |
8177 | ... | |
8178 | [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this. | |
8179 | (grub_guess_root_device): Update callers. | |
8180 | * include/grub/emu/getroot.h (grub_find_device): Add prototype. | |
8181 | ||
8182 | * util/raid.c (grub_util_getdiskname): Remove. | |
8183 | (grub_util_raid_getmembers): Use grub_find_device rather than | |
8184 | grub_util_getdiskname. | |
8185 | ||
e5bfc130 CW |
8186 | 2010-09-16 Colin Watson <cjwatson@ubuntu.com> |
8187 | ||
8188 | * docs/grub.texi (serial): Remove obsolete comment about GRUB | |
8189 | needing to be compiled with serial support. | |
8190 | (ls): Indicate that multiple files are accepted. | |
8191 | * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to | |
8192 | indicate that multiple files are accepted. | |
8193 | ||
be458ae2 CW |
8194 | 2010-09-16 Colin Watson <cjwatson@ubuntu.com> |
8195 | ||
8196 | * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester, | |
8197 | libgrub_a_init.c, and util/bash-completion.d/grub. | |
8198 | ||
cb731b5e VS |
8199 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8200 | ||
8201 | * util/grub-setup.c (setup): Fix incorrect container semantics. | |
8202 | ||
35139e8a VS |
8203 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8204 | ||
8205 | * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable | |
8206 | misusage. | |
8207 | Reported by: J. Nick Terry | |
8208 | ||
e50fca4a VS |
8209 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8210 | ||
8211 | Move embedding routines to partmap sources files. | |
8212 | ||
8213 | * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot) | |
8214 | [GRUB_UTIL]: New variable. | |
8215 | (gpt_partition_map_iterate): Set part.parent. | |
8216 | (gpt_partition_map_embed) [GRUB_UTIL]: New function. | |
8217 | (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed. | |
8218 | * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]: | |
8219 | New function. | |
8220 | (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed. | |
8221 | * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type. | |
8222 | (grub_partition_map) [GRUB_UTIL]: New field embed. | |
8223 | * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed. | |
8224 | (setup): Use ->embed. | |
8225 | ||
f00478b7 VS |
8226 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8227 | ||
8228 | * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New | |
8229 | function. | |
8230 | * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto. | |
8231 | * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy. | |
8232 | ||
2b94e3ff YB |
8233 | 2010-09-15 Yves Blusseau <blusseau@zetam.org> |
8234 | ||
8235 | Add function to get completions from usage. | |
8236 | ||
8237 | * util/bash-completion.d/grub-completion.bash.in: Add function to get | |
8238 | completions from usage. Use LC_ALL=C to get options properly. | |
8239 | ||
2e04a006 VS |
8240 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8241 | ||
8242 | * grub-core/gnulib/basename-lgpl.c: Imported. | |
8243 | * grub-core/gnulib/basename.c: Likewise. | |
8244 | * grub-core/gnulib/dirname-lgpl.c: Likewise. | |
8245 | * grub-core/gnulib/dirname.c: Likewise. | |
8246 | * grub-core/gnulib/dirname.h: Likewise. | |
8247 | * grub-core/gnulib/stripslash.c: Likewise. | |
8248 | ||
5dcdf93a VS |
8249 | 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
8250 | ||
8251 | * grub-core/gnulib/error.c: Resynced. | |
8252 | * grub-core/gnulib/getopt.c: Likewise. | |
8253 | * grub-core/gnulib/getopt_int.h: Likewise. | |
8254 | * grub-core/gnulib/regex.h: Likewise. | |
8255 | * grub-core/gnulib/regex_internal.c: Likewise. | |
8256 | * grub-core/gnulib/regex_internal.h: Likewise. | |
8257 | ||
014f47b7 SJ |
8258 | 2010-09-15 Szymon Janc <szymon@janc.net.pl> |
8259 | ||
8260 | * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block | |
8261 | CRC calculations and validity checks. | |
8262 | * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC | |
8263 | calculations. | |
8264 | ||
dd521a4a SJ |
8265 | 2010-09-15 Szymon Janc <szymon@janc.net.pl> |
8266 | ||
8267 | * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak. | |
8268 | ||
79c4eeb9 VS |
8269 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8270 | ||
8271 | Fix incorrect echo options handling. | |
8272 | Reported by: Yves Blusseau. | |
8273 | ||
8274 | * include/grub/command.h (grub_command_flags_t): New flags | |
8275 | GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START. | |
8276 | * grub-core/lib/arg.c (grub_arg_parse): Handle new flags. | |
8277 | * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags. | |
8278 | ||
ed80f7d5 VS |
8279 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8280 | ||
8281 | * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All | |
8282 | users updated. | |
8283 | (GRUB_COMMAND_FLAG_MENU): Likewise. | |
8284 | (GRUB_COMMAND_FLAG_BOTH): Likewise. | |
8285 | (GRUB_COMMAND_FLAG_TITLE): Removed. | |
8286 | (GRUB_COMMAND_FLAG_NO_ECHO): Likewise. | |
8287 | (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum. | |
8288 | (GRUB_COMMAND_FLAG_DYNCMD): Likewise. | |
8289 | (GRUB_COMMAND_FLAG_BLOCKS): Likewise. | |
8290 | (grub_command_flags_t): New enum. All users updated. | |
8291 | ||
5fe7620a SG |
8292 | 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com> |
8293 | ||
8294 | Fix solaris compilation. | |
8295 | ||
8296 | * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu. | |
8297 | (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd. | |
8298 | (grub-emu-list): Likewise. | |
8299 | ||
545b752f VS |
8300 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8301 | ||
8302 | Remove deprecated root command. | |
8303 | ||
8304 | * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users | |
8305 | updated. | |
8306 | ||
6c1a338c VS |
8307 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8308 | ||
8309 | * util/i386/pc/grub-setup.c: Merge this ... | |
8310 | * util/sparc64/ieee1275/grub-setup.c: ... and this ... | |
8311 | * util/grub-setup.c: ... into this. | |
8312 | * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]: | |
8313 | New struct. | |
8314 | ||
8315 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> | |
8316 | ||
8317 | * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when | |
8318 | possible. | |
8319 | ||
d2ea4551 VS |
8320 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8321 | ||
8322 | * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly | |
8323 | allocate p. | |
8324 | ||
3c3b5040 VS |
8325 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8326 | ||
8327 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add | |
8328 | explicit root argument to set to prevent UUID to be interpreted as | |
8329 | argument to set. | |
8330 | ||
b71c3fae VS |
8331 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8332 | ||
8333 | * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack. | |
8334 | ||
275433e6 VS |
8335 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8336 | ||
8337 | Don't export grub_gate_a20. | |
8338 | ||
8339 | * grub-core/kern/i386/pc/init.c: Remove leftovers. | |
8340 | * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename | |
8341 | to ... | |
8342 | (grub_gate_a20): ... this. All users updated. | |
8343 | * include/grub/i386/pc/init.h: Removed. All users updated. | |
8344 | ||
a5dbb1f1 VS |
8345 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8346 | ||
8347 | Create euro.pf2 which supports most European languages. | |
8348 | ||
8349 | * Makefile.am (grubdata_DATA): Add euro.pf2. | |
8350 | (euro.pf2): New target. | |
8351 | (CLEANFILES): Add euro.pf2. | |
8352 | ||
62a747cb VS |
8353 | 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> |
8354 | ||
8355 | * configure.ac: Disable emu-usb by default to prevent inadvertent | |
8356 | device takeover. | |
8357 | ||
608e43b1 VS |
8358 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8359 | ||
8360 | Disable usbserial on grub-emu since our libusb code isn't good enough | |
8361 | yet. | |
8362 | ||
8363 | * grub-core/Makefile.core.def (usbserial_common): Disable on emu. | |
8364 | (usbserial_pl2303): Likewise. | |
8365 | (usbserial_ftdi): Likewise. | |
8366 | ||
94564f81 VS |
8367 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8368 | ||
8369 | * include/grub/disk.h (grub_disk): Remove has_partitions. | |
8370 | All users updated. | |
8371 | * disk/loopback.c (grub_loopback): Remove has_partitions. | |
8372 | All users updated. | |
8373 | (options): Remove partitions. All users updated. | |
8374 | * util/grub-fstest.c (fstest): Don't pass "-p" to loopback. | |
8375 | * util/i386/pc/grub-setup.c (setup): copy partition table only when | |
8376 | actual partition table is found. | |
8377 | ||
3352800b VS |
8378 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8379 | ||
8380 | Remove readability checks (too many false negatives). | |
8381 | ||
8382 | * util/grub-install.in: Remove readability checks. | |
8383 | * util/grub-mkconfig.in: Likewise. | |
8384 | * util/grub.d/10_hurd.in: Likewise. | |
8385 | * util/grub.d/10_kfreebsd.in: Likewise. | |
8386 | * util/grub.d/10_linux.in: Likewise. | |
8387 | * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old | |
8388 | way. | |
8389 | ||
2419f17a VS |
8390 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8391 | ||
8392 | Enable acpi shutdown on all ACPI platforms. | |
8393 | ||
8394 | * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c | |
8395 | on coreboo, multiboot and EFI. | |
8396 | * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts. | |
8397 | (grub_acpi_halt): Likewise. | |
8398 | * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt. | |
8399 | (grub_cmd_halt): Don't call grub_acpi_halt directly. | |
8400 | * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt. | |
8401 | * grub-core/lib/i386/halt.c (grub_halt) | |
8402 | [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise. | |
8403 | ||
0575c7c3 VS |
8404 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8405 | ||
8406 | * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest | |
8407 | context. | |
8408 | ||
54ac3cd1 VS |
8409 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8410 | ||
8411 | * grub-core/video/efi_gop.c: Fix over-80-chars line. | |
8412 | * grub-core/video/efi_uga.c: Likewise. | |
8413 | ||
b2a30ac5 VS |
8414 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8415 | ||
8416 | Filter devaliases and never open same device twice. | |
8417 | ||
8418 | * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable. | |
8419 | (last_ihandle): Likewise. | |
8420 | (ofdisk_hash_ent): New member shortest. | |
8421 | (ofdisk_hash_add): Add canonical path too. | |
8422 | (scan): New function. | |
8423 | (grub_ofdisk_iterate): Iterate over hashed entries. | |
8424 | (compute_dev_path): Don't add :0. | |
8425 | (grub_ofdisk_open): Don't really open the disk. | |
8426 | (grub_ofdisk_close): Avoid closing unrelated disk. | |
8427 | (grub_ofdisk_read): Implement reopen logic. | |
8428 | * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname): | |
8429 | New function. | |
8430 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname): | |
8431 | New proto. | |
8432 | ||
fb53b340 VS |
8433 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8434 | ||
8435 | Fix sparc64. | |
8436 | ||
8437 | * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed. | |
8438 | * grub-core/Makefile.core.def (kernel): Make ldflags just use the | |
8439 | right address. Add sparc64_ieee1275_ldflags. | |
8440 | * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include. | |
8441 | * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32 | |
8442 | to grub_host_to_target_addr | |
8443 | (load_image): Likewise. | |
8444 | ||
f452b040 VS |
8445 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8446 | ||
8447 | * grub-core/normal/completion.c (complete_file): Handle device | |
8448 | containing slash. | |
8449 | Fix based on patch by Doug Nazar. | |
8450 | ||
9b5b2541 VS |
8451 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8452 | ||
8453 | grub-mknetdir script. | |
8454 | ||
8455 | * Makefile.util.def (grub-mknetdir): New module. | |
8456 | * tests/util/grub-shell.in: Support boot=net | |
8457 | * util/grub-mknetdir.in: New file. | |
8458 | ||
9d2be652 VS |
8459 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8460 | ||
8461 | videoinfo on non-vbe. | |
8462 | ||
8463 | * grub-core/Makefile.core.def (vbeinfo): Removed. | |
8464 | (vbetest): Removed. | |
8465 | (videoinfo): New module. | |
8466 | * grub-core/commands/i386/pc/vbeinfo.c: Removed. | |
8467 | * grub-core/commands/i386/pc/vbetest.c: Removed. | |
8468 | * grub-core/commands/videoinfo.c: New file. | |
8469 | * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode | |
8470 | specification. | |
8471 | (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked | |
8472 | as vbetest. | |
8473 | (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest. | |
8474 | (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest. | |
8475 | * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill | |
8476 | mode_number. New parameter mode. All users updated. | |
8477 | (grub_video_gop_iterate): New function. | |
8478 | (grub_video_efi_gop): New member iterate. | |
8479 | * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields. | |
8480 | (grub_vbe_set_video_mode): Remove setting useless fields. | |
8481 | (vbe2videoinfo): New function. | |
8482 | (grub_video_vbe_iterate): Likewise. | |
8483 | (grub_video_vbe_setup): Use vbe2videoinfo. | |
8484 | (grub_video_vbe_print_adapter_specific_info): New function. | |
8485 | (grub_video_vbe_adapter): New fields iterate and | |
8486 | print_adapter_specific_info. | |
8487 | * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum. | |
8488 | All users updated. | |
8489 | (grub_video_mode_info): New field mode_number. | |
8490 | (grub_video_adapter): New fields iterate and | |
8491 | print_adapter_specific_info. | |
8492 | ||
179503f5 TG |
8493 | 2010-09-13 Tristan Gingold <gingold@free.fr> |
8494 | 2010-09-13 Robert Millan <rmh.grub@aybabtu.com> | |
8495 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> | |
8496 | ||
8497 | * grub-core/commands/efi/lsefisystab.c: New file. | |
8498 | * grub-core/commands/efi/lssal.c: Likewise. | |
8499 | * grub-core/Makefile.core.def (lsacpi): New module. | |
8500 | (lsefisystab): Likewise. | |
8501 | * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition. | |
8502 | (GRUB_EFI_HCDP_TABLE_GUID): Likewise. | |
8503 | (grub_efi_sal_system_table): New struct. | |
8504 | (grub_efi_sal_system_table_entrypoint_descriptor): Likewise. | |
8505 | (grub_efi_sal_system_table_memory_descriptor): Likewise. | |
8506 | (grub_efi_sal_system_table_platform_features): Likewise. | |
8507 | (grub_efi_sal_system_table_translation_register_descriptor): Likewise. | |
8508 | (grub_efi_sal_system_table_purge_translation_coherence): Likewise. | |
8509 | (grub_efi_sal_system_table_ap_wakeup): Likewise. | |
8510 | * include/grub/types.h (PRIuGRUB_UINT64_T): New definition. | |
8511 | ||
cf9827de VS |
8512 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8513 | ||
8514 | Support explicit user claim that a device is BIOS-visible. | |
8515 | ||
8516 | * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction): | |
8517 | Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map. | |
8518 | * grub-core/kern/emu/hostdisk.c | |
8519 | (convert_system_partition_to_system_disk): Support mdX. | |
8520 | (find_system_device): New parameter add. All users updated. | |
8521 | (grub_util_biosdisk_is_present): New function. | |
8522 | * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New | |
8523 | proto. | |
8524 | ||
53f0eb1f VS |
8525 | 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com> |
8526 | ||
8527 | Search hints support. | |
8528 | ||
8529 | * commands/search.c (FUNC_NAME): New arguments hints and nhints. | |
8530 | All users updated. | |
8531 | ||
b23ffd70 YB |
8532 | 2010-09-13 Yves Blusseau <blusseau@zetam.org> |
8533 | ||
8534 | Bash completion script for util commands | |
8535 | ||
8536 | * Makefile.am: Add util/bash-completion.d directory | |
8537 | * configure.ac: Likewise. | |
8538 | * util/bash-completion.d/Makefile.am: New file. | |
8539 | * util/bash-completion.d/grub-completion.bash.in: Likewise. | |
8540 | ||
d547dc28 VS |
8541 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8542 | ||
8543 | * grub-core/normal/term.c (put_glyphs_terminal): Correct sign. | |
8544 | (print_backlog): set backlog_ucs4 and backlog_glyphs. | |
8545 | Reported by: Yves Blusseau. | |
8546 | ||
2fc8ccb9 VS |
8547 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8548 | ||
8549 | * grub-core/normal/misc.c (grub_normal_print_device_info): Show | |
8550 | partition size and offset. | |
8551 | ||
d8a84076 VS |
8552 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8553 | ||
8554 | * grub-core/commands/wildcard.c (make_regex): Escape brackets. | |
8555 | ||
84fb3b3d VS |
8556 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8557 | ||
8558 | * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files. | |
8559 | ||
768ec2e2 VS |
8560 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8561 | ||
8562 | * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary. | |
8563 | (grub_xvasprintf): Likewise. | |
8564 | ||
4870900f VS |
8565 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8566 | ||
8567 | * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all. | |
8568 | ||
faca6bec VS |
8569 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> |
8570 | ||
8571 | * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on | |
8572 | args ending with NULL. | |
8573 | ||
8574 | 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com> | |
788f1f3a VS |
8575 | |
8576 | * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context | |
8577 | pointer. | |
8578 | ||
3c70f225 SJ |
8579 | 2010-09-11 Szymon Janc <szymon@janc.net.pl> |
8580 | ||
8581 | * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype. | |
8582 | ||
4df7996d VS |
8583 | 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com> |
8584 | ||
8585 | Shutdown using ACPI. | |
8586 | ||
8587 | * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc. | |
8588 | * grub-core/commands/acpihalt.c: New file. | |
8589 | * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt. | |
8590 | * include/grub/acpi.h (grub_acpi_fadt): New member pm1a. | |
8591 | (grub_acpi_halt): New proto. | |
8592 | (GRUB_ACPI_SLP_EN): New const. | |
8593 | (GRUB_ACPI_SLP_TYP_OFFSET): Likewise. | |
8594 | (GRUB_ACPI_OPCODE_*): New enum. | |
8595 | (GRUB_ACPI_EXTOPCODE_*): Likewise. | |
8596 | ||
126b4c32 TG |
8597 | 2010-09-11 Tristan Gingold <gingold@free.fr> |
8598 | 2010-09-11 Robert Millan <rmh.grub@aybabtu.com> | |
8599 | 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com> | |
8600 | ||
8601 | * commands/lsacpi.c: New file. | |
8602 | * grub-core/Makefile.core.def (lsacpi): New module. | |
8603 | * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition. | |
8604 | (GRUB_ACPI_MADT_SIGNATURE): Likewise. | |
8605 | (grub_acpi_madt_entry_header): New struct. | |
8606 | (grub_acpi_madt): Likewise. | |
8607 | (grub_acpi_madt_entry_interrupt_override): Likewise. | |
8608 | (grub_acpi_madt_entry_sapic): Likewise. | |
8609 | (grub_acpi_madt_entry_lsapic): Likewise. | |
8610 | (grub_acpi_madt_entry_platform_int_source): Likewise. | |
8611 | * include/grub/types.h (PRIxGRUB_UINT32_T): New definition. | |
8612 | (PRIuGRUB_UINT32_T): Likewise. | |
8613 | (PRIxGRUB_UINT64_T): Likewise. | |
8614 | ||
1aa4fe88 VS |
8615 | 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com> |
8616 | ||
8617 | Implement loading palette on ieee1275_fb. | |
8618 | ||
8619 | * grub-core/video/ieee1275.c (stdout_ihandle): New variable. | |
8620 | (have_setcolors): Likewise. | |
8621 | (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors. | |
8622 | (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette. | |
8623 | (grub_video_ieee1275_set_palette): Implement. | |
8624 | ||
25761e13 VS |
8625 | 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com> |
8626 | 2010-09-11 Colin Watson <cjwatson@ubuntu.com> | |
8627 | ||
8628 | * util/grub-install.in (grub_partition): New variable. | |
8629 | Set prefix_drive on EFI and PC to (,$grub_partition) as last resort. | |
8630 | * util/i386/pc/grub-setup.c (setup): Don't touch prefix. | |
8631 | Fixes a bug reported by Yves Blusseau. | |
8632 | ||
050abaea VS |
8633 | 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com> |
8634 | ||
8635 | Fix emu on mipsel. | |
8636 | ||
8637 | * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func | |
8638 | =grub_cpu_flush_cache on all mips and not only yeeloong. | |
8639 | * configure.ac (COND_mips): New conditional. | |
8640 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all | |
8641 | platforms. | |
8642 | * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache. | |
8643 | * grub-core/kern/emu/full.c (grub_arch_dl_init_linker) | |
8644 | [GRUB_LINKER_HAVE_INIT]: New function. | |
8645 | (grub_emu_post_init): Likewise. | |
8646 | * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise. | |
8647 | * grub-core/kern/emu/main.c: Use grub_emu_post_init. | |
8648 | * include/grub/cache.h (_mips): Include mips/cache.h. | |
8649 | * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing | |
8650 | LVM and RAID prototypes. | |
8651 | * include/grub/emu/misc.h (grub_emu_post_init): New proto. | |
8652 | * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New | |
8653 | function. | |
8654 | ||
5ed7d816 CW |
8655 | 2010-09-10 Colin Watson <cjwatson@ubuntu.com> |
8656 | ||
8657 | * util/grub-install.in: Don't try to verify core.img until after | |
8658 | running grub-mkimage to create it. | |
8659 | ||
90367e04 RM |
8660 | 2010-09-10 Robert Millan <rmh@gnu.org> |
8661 | ||
8662 | * util/grub.d/10_hurd.in: Add misc readability checks. | |
8663 | * util/grub.d/10_kfreebsd.in: Likewise. | |
8664 | * util/grub.d/10_linux.in: Likewise. | |
8665 | ||
c452fa66 CW |
8666 | 2010-09-10 Colin Watson <cjwatson@ubuntu.com> |
8667 | ||
8668 | * util/grub-install.in: ${imgext} won't be defined here until the | |
8669 | install branch is merged. For the meantime, only verify core.img on | |
8670 | i386-pc and sparc64-ieee1275 platforms. | |
8671 | ||
c38fe9f4 RM |
8672 | 2010-09-10 Robert Millan <rmh@gnu.org> |
8673 | ||
8674 | Solaris support in grub_find_zpool_from_dir(). Thanks | |
8675 | Seth Goldberg for referring to getextmntent() facility. | |
8676 | ||
8677 | * configure.ac: Check for getextmntent(), `sys/mnttab.h' and | |
8678 | `sys/mkdev.h'. | |
8679 | * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include | |
8680 | `<sys/mnttab.h>'. | |
8681 | [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'. | |
8682 | [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent() | |
8683 | method for finding zpool name. | |
8684 | ||
905f7773 CW |
8685 | 2010-09-10 Colin Watson <cjwatson@ubuntu.com> |
8686 | ||
8687 | grub-fstest needs the host and hostfs modules while other utilities | |
8688 | actively require those modules to be absent, so grub-fstest needs | |
8689 | its own initialisation and finalisation code. | |
8690 | ||
8691 | * Makefile.am (grub_fstest.pp): New target. | |
8692 | (grub_fstest_init.lst): Likewise. | |
8693 | (grub_fstest_init.c): Likewise. | |
8694 | * Makefile.util.def (grub-fstest): Add grub_fstest_init.c. | |
8695 | ||
fb90b546 RM |
8696 | 2010-09-10 Robert Millan <rmh@gnu.org> |
8697 | ||
8698 | * configure.ac: Check for `struct statfs.f_fstypename' and | |
8699 | `struct statfs.f_mntfromname'. | |
8700 | ||
8701 | * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize | |
8702 | kFreeBSD-specific code. | |
8703 | ||
66d4bea5 RM |
8704 | 2010-09-10 Robert Millan <rmh@gnu.org> |
8705 | ||
8706 | * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization | |
8707 | on ZFS. Now non-main filesystems are supported as / too. | |
8708 | ||
b6a690ee CW |
8709 | 2010-09-09 Colin Watson <cjwatson@ubuntu.com> |
8710 | ||
8711 | * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c | |
8712 | and grub-core/disk/host.c to ... | |
8713 | (grub-fstest): ... here. Having the host disk implementation | |
8714 | present confuses grub-probe and other utility programs. | |
8715 | ||
8716 | * util/grub-mkconfig.in: Only verify readability of grub.cfg.new | |
8717 | when writing to a file, not when writing to stdout. | |
8718 | ||
8901b00c | 8719 | 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com> |
8720 | ||
8721 | * tests/partmap_test.in: New test for partitions. | |
8722 | * Makefile.util.def: Rules for new test. | |
8723 | ||
7bf45fdd RM |
8724 | 2010-09-09 Robert Millan <rmh@gnu.org> |
8725 | ||
8726 | * util/grub-probe.c (probe): Fix a pair of unhandled error | |
8727 | conditions. | |
8728 | ||
4dfbc574 RM |
8729 | 2010-09-09 Robert Millan <rmh@gnu.org> |
8730 | ||
8731 | Basic Btrfs support (detection and UUID). | |
8732 | ||
8733 | * grub-core/fs/btrfs.c: New file. | |
8734 | * Makefile.util.def (library): Register btrfs.c. | |
8735 | * grub-core/Makefile.core.def: Likewise. | |
8736 | ||
6b8e78ae RM |
8737 | 2010-09-08 Robert Millan <rmh@gnu.org> |
8738 | ||
8739 | * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve | |
8740 | with (optional) parameters to specify device and relative path. | |
8741 | * util/grub-install.in: Use is_path_readable_by_grub() to | |
8742 | verify readability of a few critical files. | |
8743 | * util/grub-mkconfig.in: Use is_path_readable_by_grub() to | |
8744 | verify readability of grub.cfg.new. | |
8745 | ||
27f21a8b VS |
8746 | 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com> |
8747 | ||
8748 | Split minix.mod into minix.mod and minix2.mod. | |
8749 | ||
8750 | * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c. | |
8751 | * grub-core/Makefile.core.def (minix2): New module. | |
8752 | * grub-core/fs/minix.c: Use definitions instead of runtime version | |
8753 | checking. | |
8754 | * grub-core/fs/minix2.c: New file. | |
8755 | ||
c0e53ea5 YB |
8756 | 2010-09-08 Yves Blusseau <blusseau@zetam.org> |
8757 | ||
8758 | Add new --boot-directory option to replace --root-directory | |
8759 | ||
8760 | * util/grub-install.in: Add new --boot-directory option | |
8761 | * util/grub-reboot.in: Likewise. | |
8762 | * util/grub-set-default.in: Likewise. | |
8763 | ||
b9fe6ea2 YB |
8764 | 2010-09-08 Yves Blusseau <blusseau@zetam.org> |
8765 | ||
8766 | * util/grub-mkconfig.in: Use new variable. | |
8767 | ||
d87aedff YB |
8768 | 2010-09-08 Yves Blusseau <blusseau@zetam.org> |
8769 | ||
8770 | * configure.ac: Define some useful variables. | |
8771 | ||
e55e8495 VS |
8772 | 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com> |
8773 | ||
8774 | * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
8775 | GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate. | |
8776 | * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): | |
8777 | Use terminfo and don't use cursor-on/cursor-off unless it's known | |
8778 | to work. | |
8779 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element | |
8780 | GRUB_IEEE1275_FLAG_HAS_CURSORONOFF. | |
8781 | ||
6fa6d675 CW |
8782 | 2010-09-08 Colin Watson <cjwatson@ubuntu.com> |
8783 | ||
8784 | * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix | |
8785 | starts with "(,", fill the drive containing the loaded image in | |
8786 | between those two characters, but expect that a full partition | |
8787 | specification including partition map names will follow. | |
8788 | ||
92f2aef0 RM |
8789 | 2010-09-08 Robert Millan <rmh@gnu.org> |
8790 | ||
8791 | * configure.ac: Remove `--enable-grub-fstest' option. | |
8792 | * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition. | |
8793 | ||
8794 | * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use | |
8795 | `grub-fstest' instead of `grub-probe' for readability verification. | |
8796 | * util/grub-probe.c (probe): Remove readability verification kludge. | |
8797 | ||
99fd620d RM |
8798 | 2010-09-08 Robert Millan <rmh@gnu.org> |
8799 | ||
8800 | * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when | |
8801 | initializing `GRUB_FS'. | |
8802 | ||
058e30ac | 8803 | 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com> |
8804 | ||
8805 | Not command (!) support to GRUB script. | |
8806 | ||
8807 | * tests/grub_script_not.in: New test. | |
8808 | * Makefile.util.def: Rules for new test. | |
8809 | ||
8810 | * grub-core/script/execute.c (grub_script_execute_cmdline): Handle | |
8811 | ! command as a special case. | |
8812 | * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed. | |
8813 | ||
b61d05ed | 8814 | 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com> |
8815 | ||
058e30ac | 8816 | * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong |
8817 | grub_free. | |
b61d05ed | 8818 | |
4d69c786 | 8819 | 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com> |
8820 | ||
8821 | * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}. | |
8822 | ||
aa3119c4 | 8823 | 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com> |
8824 | ||
8825 | * docs/grub.texi (Shell-like scripting): Documentation for break, | |
8826 | continue, shift and return commands. | |
8827 | ||
db0f7e3d VS |
8828 | 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com> |
8829 | ||
8830 | Rename CD-ROM to cd on BIOS. | |
8831 | ||
8832 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise | |
8833 | "cd". | |
8834 | (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX. | |
8835 | ||
88b87c93 VS |
8836 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8837 | ||
8838 | * grub-core/kern/emu/main.c (main): Reinit LVM and RAID. | |
8839 | * util/grub-probe.c (main): Likewise. | |
8840 | * util/i386/pc/grub-setup.c (main): Likewise. | |
8841 | * util/sparc64/ieee1275/grub-setup.c (main): Likewise. | |
8842 | Reported and debugged by: alexxy | |
8843 | ||
294f324d VS |
8844 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8845 | ||
8846 | * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more | |
8847 | diagnostic info. | |
8848 | ||
d7ee3441 JS |
8849 | 2010-09-05 Jo Shields <directhex@apebox.org> |
8850 | ||
8851 | * util/grub.d/30_os-prober.in: Add missing classes. | |
8852 | ||
d7e06c1f VS |
8853 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8854 | ||
8855 | * docs/grub.texi (Theme file format): Document new position format. | |
8856 | ||
fc157e53 VS |
8857 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8858 | ||
8859 | * docs/grub.texi (Theme file format): Replace Box_slice_names.png with | |
8860 | a table. Use @code instead of @verbatim. | |
8861 | ||
506e9a1c CB |
8862 | 2010-09-05 Colin D Bennett <colin@gibibit.com> |
8863 | ||
8864 | Gfxmenu documentation. | |
8865 | ||
8866 | * docs/grub.texi (Theme file format): New chapter. | |
8867 | ||
f0aff67c SJ |
8868 | 2010-09-05 Szymon Janc <szymon@janc.net.pl> |
8869 | ||
8870 | * grub-core/Makefile.core.def (xzio): New module. | |
8871 | * grub-core/io/xzio.c: New file. | |
8872 | * grub-core/lib/xzembed/xz.h: New file (from xembed). | |
8873 | * grub-core/lib/xzembed/xz_config.h: Likewise. | |
8874 | * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise. | |
8875 | * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise. | |
8876 | * grub-core/lib/xzembed/xz_dec_stream.c: Likewise. | |
8877 | * grub-core/lib/xzembed/xz_lzma2.h: Likewise. | |
8878 | * grub-core/lib/xzembed/xz_private.h: Likewise. | |
8879 | * grub-core/lib/xzembed/xz_stream.h: Likewise. | |
8880 | * include/grub/file.h (grub_file_filter_id): New compression filter | |
8881 | GRUB_FILE_FILTER_XZIO. | |
8882 | ||
82a85062 VS |
8883 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8884 | ||
8885 | * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition. | |
8886 | * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file | |
8887 | size. | |
8888 | ||
3579415d VS |
8889 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8890 | ||
8891 | * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with | |
8892 | GRUB_ERR_BAD_COMPRESSED_DATA. All users updated. | |
8893 | ||
5124ae6d VS |
8894 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8895 | ||
8896 | Uncompressed checksum support. | |
8897 | ||
8898 | * grub-core/commands/hashsum.c (options): Add option --uncompress. | |
8899 | (check_list): New parameter uncompress. | |
8900 | (grub_cmd_hashsum): Handle --uncompress. | |
8901 | ||
9aadb3d1 VS |
8902 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8903 | ||
8904 | Reintroduce testload. | |
8905 | ||
8906 | * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved | |
8907 | from here ... | |
8908 | * grub-core/commands/testload.c (grub_cmd_testload): ... here. | |
8909 | (GRUB_MOD_INIT): New function. | |
8910 | (GRUB_MOD_FINI): Likewise. | |
8911 | * grub-core/Makefile.core.def (testload): New module. | |
8912 | ||
a17792c3 SJ |
8913 | 2010-09-05 Szymon Janc <szymon@janc.net.pl> |
8914 | ||
8915 | * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum. | |
8916 | (uint8_t): New type. | |
8917 | (uint16_t): Likewise. | |
8918 | (uint32_t): Likewise. | |
8919 | (uint64_t): Likewise. | |
8920 | ||
b81e40a3 SJ |
8921 | 2010-09-05 Szymon Janc <szymon@janc.net.pl> |
8922 | ||
8923 | * include/grub/crypto.h (GRUB_MD_CRC32): New definition. | |
8924 | ||
fc2ef117 VS |
8925 | 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com> |
8926 | ||
8927 | * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter. | |
8928 | Made static. | |
8929 | (grub_gzfile_open): Removed. All users updated. | |
8930 | (GRUB_MOD_INIT): New function. | |
8931 | (GRUB_MOD_FINI): Likewise. | |
8932 | * grub-core/kern/file.c (grub_file_filters_all): New variable. | |
8933 | (grub_file_filters_enabled): Likewise. | |
8934 | (grub_file_open): Handle filters. | |
8935 | * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio. | |
8936 | * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise. | |
8937 | * include/grub/file.h (grub_file_filter_id_t): New type. | |
8938 | (grub_file_filter_t): Likewise. | |
8939 | (grub_file_filters_all): New extern variable. | |
8940 | (grub_file_filters_enabled): Likewise. | |
8941 | (grub_file_filter_register): New inline function. | |
8942 | (grub_file_filter_unregister): Likewise. | |
8943 | (grub_file_filter_disable): Likewise. | |
8944 | (grub_file_filter_disable_compression): Likewise. | |
8945 | * include/grub/gzio.h: Removed. | |
8946 | ||
35ee15e0 BC |
8947 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
8948 | ||
8949 | Filename expansion support for wildcards in GRUB script. | |
8950 | ||
8951 | * tests/grub_script_expansion.in: New test. | |
8952 | * Makefile.util.def: Rule for new test. | |
8953 | ||
8954 | * grub-core/commands/wildcard.c: New file, implements filename | |
8955 | expansion support for GRUB script. | |
8956 | * grub-core/Makefile.core.def: Rule update for regexp.mod. | |
8957 | * grub-core/script/argv.c: Cosmetic changes. | |
8958 | * grub-core/script/execute.c (grub_script_arglist_to_argv): | |
8959 | Refactored to perform wildcard expansion on arguments. | |
8960 | * include/grub/script_sh.h (grub_script_wildcard_translator): New | |
8961 | struct. | |
8962 | ||
8963 | * tests/util/grub-shell.in: Fix quoting for read input. | |
8964 | ||
5f0c4aca BC |
8965 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
8966 | ||
8967 | Support for updating environment variables with matched substrings | |
8968 | of regexp. | |
8969 | ||
8970 | * tests/grub_cmd_regexp.in: New test. | |
8971 | * Makefile.util.def: Rule for new test. | |
8972 | ||
8973 | * grub-core/commands/regexp.c: New option -s to update environment | |
8974 | variables with regexp matches. | |
8975 | ||
3759a35f SJ |
8976 | 2010-09-04 Szymon Janc <szymon@janc.net.pl> |
8977 | ||
8978 | * include/grub/file.h (grub_file): New member not_easly_seekable. | |
8979 | (grub_file_seekable): New inline function. | |
8980 | * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't | |
8981 | easily seekable. | |
8982 | (grub_gzio_open): Set not_easly_seekable. | |
8983 | * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable. | |
8984 | * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable. | |
8985 | ||
ed8c6dec BC |
8986 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
8987 | ||
8988 | Support for options to appear multiple times on cmdline. | |
8989 | ||
8990 | * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype. | |
8991 | * grub-core/commands/extcmd.c: Support for repeatable option. | |
8992 | * grub-core/lib/arg.c (grub_arg_list_alloc): New function for | |
8993 | repeatable option support. | |
8994 | ||
8995 | Refactor menuentry into a regular command. | |
8996 | ||
8997 | * grub-core/commands/menuentry.c: New file, menuentry command | |
8998 | implementation. | |
8999 | * grub-core/Makefile.core.def: Rule update for normal.mod. | |
9000 | * grub-core/normal/main.c: Moved menuentry creation to | |
9001 | grub-core/commands/menuentry.c. | |
9002 | * grub-core/normal/menu.c (grub_menu_execute_entry): Removed. | |
9003 | (grub_menu_execute_entry_real): Removed. | |
9004 | * grub-core/script/execute.c (grub_script_execute_sourcecode): New | |
9005 | function. | |
9006 | (grub_script_execute_menuentry): Removed. | |
9007 | * grub-core/script/parser.y (menuentry): Removed. | |
9008 | * grub-core/script/script.c (grub_script_create_cmdmenu): Removed. | |
9009 | * grub-core/script/yylex.l (menuentry): Removed. | |
9010 | * include/grub/menu.h (grub_menu_init): New prototype. | |
9011 | (grub_menu_fini): New prototype. | |
9012 | * include/grub/normal.h (grub_normal_add_menu_entry): Removed. | |
9013 | * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed. | |
9014 | (grub_script_execute_sourcecode): New prototype. | |
9015 | ||
dacd0cf0 BC |
9016 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
9017 | ||
9018 | "return" command for GRUB script functions. | |
9019 | ||
9020 | * tests/grub_script_return.in: New test. | |
9021 | * Makefile.util.def: Rules for new test. | |
9022 | ||
9023 | * grub-core/script/execute.c (grub_script_return): New function. | |
9024 | * grub-core/script/main.c: Register/unregister return commaond. | |
9025 | * include/grub/script_sh.h (grub_script_return): New prototype. | |
9026 | ||
52e72f9d BC |
9027 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
9028 | ||
9029 | "setparams" command to update positional parameters. | |
9030 | ||
9031 | * tests/grub_script_setparams.in: New test. | |
9032 | * Makefile.util.def: Rules for new test. | |
9033 | ||
9034 | * grub-core/script/argv.c (grub_script_argv_make): New function. | |
9035 | * grub-core/script/execute.c (replace_scope): New function. | |
9036 | (grub_script_setparams): New function. | |
9037 | * grub-core/script/lexer.c: Remove unused variables. | |
9038 | * grub-core/script/main.c: Register/unregister setparams command. | |
9039 | * include/grub/script_sh.h (grub_script_argv_make): New prototype. | |
9040 | (grub_script_setparams): New prototype. | |
9041 | ||
25b60c91 BC |
9042 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
9043 | ||
9044 | * grub-core/normal/completion.c (grub_normal_do_completion): Fix | |
9045 | grub_free order. | |
9046 | ||
37e7bf68 BC |
9047 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
9048 | ||
9049 | Support for passing block of commands as an argument to extcmds. | |
9050 | ||
9051 | * Makefile.util.def: Rules for new test. | |
9052 | * tests/grub_script_blockarg.in: New test. | |
9053 | * grub-core/tests/test_blockarg.c: New file, block argument | |
9054 | command used in the test. | |
9055 | ||
9056 | * include/grub/extcmd.h (grub_extcmd_context): New struct. | |
9057 | (grub_register_extcmd_prio): New function prototype. | |
9058 | (grub_extcmd_dispatcher): New function prototype. | |
9059 | * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command | |
9060 | type. | |
9061 | * include/grub/script_sh.h (struct grub_script): New members | |
9062 | `children', `next_siblings' and `refcnt' for block arguments and | |
9063 | reference counting. | |
9064 | (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type. | |
9065 | (grub_script_arg): New member `script' for block argument. | |
9066 | (grub_script_argv): New member `script' for block argument. | |
9067 | (grub_parser_param): New member `scripts' for block argument. | |
9068 | (grub_script_mem_free): New extern function prototype. | |
9069 | (grub_script_ref): New function prototype. | |
9070 | (grub_script_unref): New function prototype. | |
9071 | ||
9072 | * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to | |
9073 | extcmd form to support block arguments. | |
9074 | * grub-core/script/argv.c: Block arguments support. | |
9075 | * grub-core/script/execute.c: Likewise. | |
9076 | * grub-core/script/lexer.c: Likewise. | |
9077 | * grub-core/script/main.c: Likewise. | |
9078 | * grub-core/script/script.c: Likewise. | |
9079 | * grub-core/script/parser.y: Likewise. New `block' and `block0' | |
9080 | non-terminals. | |
9081 | ||
9082 | * grub-core/commands/acpi.c: Update extcmd implementations with | |
9083 | grub_extcmd_context_t. | |
9084 | * grub-core/commands/cat.c: Likewise. | |
9085 | * grub-core/commands/echo.c: Likewise. | |
9086 | * grub-core/commands/extcmd.c: Likewise. | |
9087 | * grub-core/commands/hashsum.c: Likewise. | |
9088 | * grub-core/commands/hdparm.c: Likewise. | |
9089 | * grub-core/commands/help.c: Likewise. | |
9090 | * grub-core/commands/hexdump.c: Likewise. | |
9091 | * grub-core/commands/i386/cpuid.c: Likewise. | |
9092 | * grub-core/commands/i386/pc/drivemap.c: Likewise. | |
9093 | * grub-core/commands/i386/pc/halt.c: Likewise. | |
9094 | * grub-core/commands/i386/pc/sendkey.c: Likewise. | |
9095 | * grub-core/commands/iorw.c: Likewise. | |
9096 | * grub-core/commands/keystatus.c: Likewise. | |
9097 | * grub-core/commands/loadenv.c: Likewise. | |
9098 | * grub-core/commands/ls.c: Likewise. | |
9099 | * grub-core/commands/lspci.c: Likewise. | |
9100 | * grub-core/commands/memrw.c: Likewise. | |
9101 | * grub-core/commands/probe.c: Likewise. | |
9102 | * grub-core/commands/search_wrap.c: Likewise. | |
9103 | * grub-core/commands/setpci.c: Likewise. | |
9104 | * grub-core/commands/sleep.c: Likewise. | |
9105 | * grub-core/disk/loopback.c: Likewise. | |
9106 | * grub-core/hello/hello.c: Likewise. | |
9107 | * grub-core/loader/i386/bsd.c: Likewise. | |
9108 | * grub-core/loader/xnu.c: Likewise. | |
9109 | * grub-core/term/gfxterm.c: Likewise. | |
9110 | * grub-core/term/serial.c: Likewise. | |
9111 | * grub-core/tests/lib/functional_test.c: Likewise. | |
9112 | ||
888d1500 BC |
9113 | 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com> |
9114 | ||
9115 | Multi-line quoted strings support. | |
9116 | ||
9117 | * grub-core/script/lexer.c (append_newline): Removed. | |
9118 | (grub_script_lexer_yywrap): Refactored. | |
9119 | (grub_script_lexer_init): Refactored. | |
9120 | * grub-core/script/yylex.l (yywrap): New function. | |
9121 | (grub_lexer_resplit): New function. | |
9122 | (grub_lexer_unput): New function. | |
9123 | * include/grub/script_sh.h (grub_lexer_param): New members, unput | |
9124 | and resplit. | |
9125 | * tests/grub_script_echo1.in: Added few more testcases. | |
9126 | ||
dda060dd VS |
9127 | 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com> |
9128 | ||
9129 | * grub-core/kern/misc.c: Don't add abort alias in utils. | |
9130 | Reported by: echoline. | |
9131 | ||
6556eba9 BC |
9132 | 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com> |
9133 | ||
9134 | Add missing files into "make dist" tarball for other platforms. | |
9135 | ||
9136 | * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST. | |
9137 | * conf/Makefile.common (dist_noinst_DATA): New variable. | |
9138 | * conf/Makefile.extra-dist: Added missing make dist files. | |
9139 | * grub-core/Makefile.core.def: Likewise. | |
9140 | ||
c8e7bf5f VS |
9141 | 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com> |
9142 | ||
9143 | Compress grub_prefix. | |
9144 | ||
9145 | * grub-core/boot/i386/pc/lnxboot.S: Use | |
9146 | GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE. | |
9147 | * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part. | |
9148 | * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to | |
9149 | GRUB_MACHINE_PREFIX_END. All users updated. | |
9150 | (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE. | |
9151 | (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX | |
9152 | + 0x40. | |
9153 | (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease. | |
9154 | * util/grub-mkimage.c (image_target_desc): Change data_end to | |
9155 | prefix_end. All users updated. | |
9156 | ||
a7c00cdb VS |
9157 | 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com> |
9158 | ||
9159 | * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane | |
9160 | value. | |
9161 | (grub_openbsd_boot): Likewise. | |
9162 | (grub_netbsd_boot): Likewise. | |
9163 | * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise. | |
9164 | (grub_xnu_boot): Likewise. | |
9165 | ||
9f915872 VS |
9166 | 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
9167 | ||
9168 | * configure.ac: Clean LIBS variable after tests. | |
9169 | ||
efa1bee7 CW |
9170 | 2010-09-02 Colin Watson <cjwatson@ubuntu.com> |
9171 | ||
9172 | * INSTALL: Document that libdevmapper needs to be 1.02.34 or later. | |
9173 | ||
61d720e5 VS |
9174 | 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
9175 | ||
9176 | * configure.ac: Check for dm_log_with_errno_init in libdevmapper and | |
9177 | echo if libdevmapper will be used. | |
9178 | ||
ef8e0ec8 IT |
9179 | 2010-09-02 Ian Turner <Ian.Turner@deshaw.com> |
9180 | ||
9181 | * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize | |
9182 | constant for the same file. | |
9183 | ||
03e261d8 VS |
9184 | 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
9185 | ||
9186 | * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include. | |
9187 | ||
c2a4eba6 CW |
9188 | 2010-09-02 Colin Watson <cjwatson@ubuntu.com> |
9189 | ||
9190 | * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and | |
9191 | grub-core/*.pp. | |
9192 | ||
9056cbf3 CW |
9193 | 2010-09-02 Colin Watson <cjwatson@ubuntu.com> |
9194 | ||
9195 | Zero %ebp and %edi when entering Linux's 32-bit entry point, as | |
9196 | required by the boot protocol. | |
9197 | ||
9198 | * include/grub/i386/relocator.h (struct grub_relocator32_state): Add | |
9199 | ebp and edi members. | |
9200 | * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle | |
9201 | state.ebp and state.edi. | |
9202 | * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set | |
9203 | %ebp and %edi according to grub_relocator32_ebp and | |
9204 | grub_relocator32_edi respectively. | |
9205 | * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp | |
9206 | and state.edi. | |
9207 | ||
529cc99a VS |
9208 | 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
9209 | ||
9210 | Add i386-pc-pxe image target. | |
9211 | ||
9212 | * util/grub-mkimage.c (image_target_desc): New enum value | |
9213 | IMAGE_I386_PC_PXE. | |
9214 | (image_targets): New target i386-pc-pxe. | |
9215 | (generate_image): Handle i386-pc-pxe image. | |
9216 | ||
9a093920 VS |
9217 | 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
9218 | ||
9219 | Fix grub_pxe_scan. | |
9220 | ||
9221 | * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe. | |
9222 | (grub_pxe_scan): Fix types and pxe_rm_entry computation. | |
9223 | All users updated. | |
9224 | * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct. | |
9225 | (grub_pxe_pxenv): Correct type. | |
9226 | ||
f9cefc4e CW |
9227 | 2010-09-01 Colin Watson <cjwatson@ubuntu.com> |
9228 | ||
9229 | * NEWS: Document most of the important changes since 1.98. | |
9230 | ||
4066f57f CW |
9231 | 2010-09-01 Colin Watson <cjwatson@ubuntu.com> |
9232 | ||
9233 | * util/grub-mkrescue.in (usage): Tidy up usage output (and hence | |
9234 | generated manual page) a little. | |
9235 | ||
da2891f9 CW |
9236 | 2010-09-01 Colin Watson <cjwatson@ubuntu.com> |
9237 | ||
9238 | * docs/grub.texi: Add myself as an author. | |
9239 | ||
ad717fae VS |
9240 | 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com> |
9241 | ||
9242 | * Makefile.util.def (libgrub.a): Add missing sunpc. | |
9243 | Reported by: Seth Goldberg. | |
9244 | ||
eefe8abd VS |
9245 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9246 | ||
9247 | Interrupt wrapping and code simplifications. | |
9248 | ||
9494ef9a VS |
9249 | * Makefile.util.def (grub-mkrescue): Use x86 tg instead of |
9250 | x86_noieee1275 which are functionaly equivalent in this case. | |
9251 | (grub-install): Make source on each platform explicit. Enable on | |
9252 | all noemu. | |
9253 | * gentpl.py (x86_efi_pc): Removed group. | |
9254 | (x86_noefi): Likewise. | |
9255 | (i386_noefi): Likewise. | |
9256 | (x86_noieee1275): Likewise. | |
9257 | (i386_noieee1275): Likewise. | |
9258 | (i386_noefi_noieee1275): Likewise. | |
9259 | (i386_pc_qemu_coreboot): Likewise. | |
9260 | (i386_coreboot_multiboot): Likewise. | |
9261 | (i386_pc_coreboot_multiboot_qemu): Likewise. | |
9262 | (x86_noefi_mips): Likewise. | |
9263 | (noieee1275): Likewise. | |
9264 | (ieee1275_mips): Likewise. | |
9265 | (noemu_noieee1275): Likewise. | |
9266 | (cmos): New group. | |
9267 | (usb): Likewise. | |
9268 | (videoinkernel): Likewise. | |
9269 | (videomodules): Likewise. | |
eefe8abd | 9270 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove |
9494ef9a VS |
9271 | include/grub/elf.h, include/grub/elfload.h, include/grub/net.h, |
9272 | include/grub/reader.h, include/grub/symbol.h, include/grub/types.h, | |
9273 | include/grub/loader.h, include/grub/msdos_partition.h, | |
9274 | include/grub/machine/biosdisk.h, include/grub/machine/boot.h, | |
9275 | include/grub/machine/console.h, include/grub/machine/vga.h, | |
9276 | include/grub/machine/vbe.h, include/grub/machine/init.h, | |
9277 | include/grub/machine/kernel.h, include/grub/cpu/time.h, | |
9278 | include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h | |
eefe8abd | 9279 | (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h. |
9494ef9a VS |
9280 | (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h |
9281 | * grub-core/Makefile.core.def (kernel): Explicit the source for | |
9282 | startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c. | |
9283 | Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S. | |
9284 | Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c. | |
9285 | Use videoinkernel tag. | |
9286 | (usb): Enable on all usb. | |
9287 | (usbserial_common): Likewise. | |
9288 | (usbserial_pl2303): Likewise. | |
9289 | (usbserial_ftdi): Likewise. | |
9290 | (uhci): Enable on all x86. | |
9291 | (ohci): Enable on all pci. | |
9292 | (cmostest): Enable on all CMOS. | |
9293 | (acpi): Include commands/acpi.c on all platforms. | |
9294 | (halt): Add relevant lib/*/halt.c. | |
9295 | (hdparm): Enable on all pci. | |
9296 | (lspci): Likewise. | |
9297 | (usbtest): Enable on all usb. | |
9298 | (ata): Enable on all pci. | |
9299 | (ata_pthru): Likewise. | |
9300 | (usbms): Enable on all usb. | |
9301 | (usb_keyboard): Likewise. | |
9302 | (font): Use tag videomodules. | |
9303 | (bufio): Likewise. | |
9304 | (datetime): Use tag cmos. Enable on all noemu. | |
9305 | (mmap): Use tags common and x86. | |
9306 | (gfxterm): Use tag videomodules. | |
9307 | (bitmap): Likewise. | |
9308 | (bitmap_scale): Likewise. | |
9309 | (video_fb): Likewise. | |
9310 | (video): Likewise. | |
9311 | * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and | |
9312 | adjust padding accordingly. All users updated. | |
9313 | (grub_ohci_transaction): Fix bad format specification. | |
9314 | (GRUB_MOD_INIT): Add asserts for struct size. | |
9315 | * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts. | |
9316 | (grub_alloc_td): Likewise. | |
9317 | (grub_free_queue): Likewise. | |
9318 | (grub_uhci_transfer): Likewise. | |
9319 | (grub_uhci_transaction): Fix bad format specification. | |
9320 | * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise. | |
9321 | (grub_usb_bulk_readwrite): Likewise. | |
9322 | * grub-core/kern/i386/misc.S (grub_stop): Moved from here ... | |
9323 | * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C. | |
9324 | Made static. | |
9325 | * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C. | |
9326 | Made static. | |
9327 | * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ... | |
9328 | * grub-core/commands/i386/pc/halt.c (grub_halt): ...here. | |
9329 | Transformed into C. | |
9330 | * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions): | |
9331 | Moved from here ... | |
9332 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions): | |
9333 | ... here. Transformed into C. Made static. | |
9334 | * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard): | |
9335 | Moved from here ... | |
9336 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard): | |
9337 | ... here. Transformed into C. Made static. | |
9338 | * grub-core/kern/i386/pc/startup.S | |
9339 | (grub_biosdisk_check_int13_extensions): Moved from here ... | |
9340 | * grub-core/disk/i386/pc/biosdisk.c | |
9341 | (grub_biosdisk_check_int13_extensions): ... here. Transformed into C. | |
9342 | Made static. | |
9343 | * grub-core/kern/i386/pc/startup.S | |
9344 | (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ... | |
9345 | * grub-core/disk/i386/pc/biosdisk.c | |
9346 | (grub_biosdisk_get_cdinfo_int13_extensions): ... here. | |
9347 | Transformed into C. Made static. | |
9348 | * grub-core/kern/i386/pc/startup.S | |
9349 | (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ... | |
9350 | * grub-core/disk/i386/pc/biosdisk.c | |
9351 | (grub_biosdisk_get_diskinfo_int13_extensions): ... here. | |
9352 | Transformed into C. Made static. | |
9353 | * grub-core/kern/i386/pc/startup.S | |
9354 | (grub_biosdisk_get_diskinfo_standard): Moved from here ... | |
9355 | * grub-core/disk/i386/pc/biosdisk.c | |
9356 | (grub_biosdisk_get_diskinfo_standard): ... here. | |
9357 | Transformed into C. Made static. | |
9358 | * grub-core/kern/i386/pc/startup.S | |
9359 | (grub_biosdisk_get_num_floppies): Moved from here ... | |
9360 | * grub-core/disk/i386/pc/biosdisk.c | |
9361 | (grub_biosdisk_get_num_floppies): ... here. | |
9362 | Transformed into C. Made static. | |
9363 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real): | |
9364 | New function. | |
9365 | * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ... | |
9366 | * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here. | |
9367 | Transformed into C. Made static. | |
9368 | * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ... | |
9369 | * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here. | |
9370 | Transformed into C. Made static. | |
9371 | * grub-core/kern/i386/ieee1275/init.c: Removed. | |
9372 | * grub-core/kern/i386/misc.S: Likewise. | |
9373 | * grub-core/kern/i386/pc/startup.S (grub_get_memsize): | |
9374 | Splitted from here ... | |
9375 | * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here. | |
9376 | Transformed into C. Made static. All users updated. | |
9377 | * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here. | |
9378 | Transformed into C. Made static. All users updated. | |
9379 | * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap): | |
9380 | Moved from here... | |
9381 | * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here. | |
9382 | Transformed into C. Made static. All users updated. | |
9383 | * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry): | |
9384 | Moved from here... | |
9385 | * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here. | |
9386 | Transformed into C. Made static. All users updated. | |
9387 | * grub-core/kern/i386/pc/startup.S (grub_stop_floppy): | |
9388 | Removed (replaced by C version). | |
9389 | * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode): | |
9390 | Moved from here... | |
9391 | * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here. | |
9392 | Transformed into C. Made static. | |
9393 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info): | |
9394 | Moved from here... | |
9395 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info): | |
9396 | ... here. Transformed into C. | |
9397 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info): | |
9398 | Moved from here... | |
9399 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info): | |
9400 | ... here. Transformed into C. | |
9401 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode): | |
9402 | Moved from here... | |
9403 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode): | |
9404 | ... here. Transformed into C. Made static. | |
9405 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode): | |
9406 | Moved from here... | |
9407 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode): | |
9408 | ... here. Transformed into C. | |
21ed554b VS |
9409 | * grub-core/kern/i386/pc/startup.S |
9410 | (grub_vbe_bios_getset_dac_palette_width):Moved from here... | |
9411 | * grub-core/video/i386/pc/vbe.c | |
9412 | (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C. | |
9494ef9a VS |
9413 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window): |
9414 | Moved from here... | |
9415 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window): | |
9416 | ... here. Transformed into C. | |
9417 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window): | |
9418 | Moved from here... | |
9419 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window): | |
9420 | ... here. Transformed into C. | |
9421 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length): | |
9422 | Moved from here... | |
9423 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length): | |
9424 | ... here. Transformed into C. | |
9425 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length): | |
9426 | Moved from here... | |
9427 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length): | |
9428 | ... here. Transformed into C. | |
9429 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start): | |
9430 | Moved from here... | |
9431 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start): | |
9432 | ... here. Transformed into C. Made static. | |
9433 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start): | |
9434 | Moved from here... | |
9435 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start): | |
9436 | ... here. Transformed into C. Made static. | |
9437 | * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data): | |
9438 | Moved from here... | |
9439 | * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data): | |
9440 | ... here. Transformed into C. Made static. | |
9441 | * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive | |
9442 | pxe_rm_entry as third argument. | |
9443 | (grub_bios_interrupt): New function. | |
9444 | * grub-core/kern/i386/qemu/mmap.c: Remove useless include. | |
9445 | * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead | |
9446 | of calling grub_stop. | |
9447 | * grub-core/kern/efi/efi.c (grub_halt): Moved from here ... | |
9448 | * grub-core/lib/efi/halt.c (grub_halt): ...here. | |
9449 | * grub-core/kern/emu/main.c (grub_halt): Moved from here ... | |
9450 | * grub-core/lib/emu/halt.c (grub_halt): ... here. | |
9451 | * grub-core/lib/i386/halt.c: Moved from here ... | |
9452 | * grub-core/lib/i386/halt.c: ... here. | |
9453 | * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ... | |
9454 | * grub-core/lib/ieee1275/halt.c (grub_halt): ... here. | |
9455 | * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call | |
9456 | grub_stop_floppy. | |
9457 | * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable. | |
9458 | * include/grub/i386/coreboot/init.h: Removed. | |
9459 | * include/grub/i386/multiboot/init.h: Likewise. | |
9460 | * include/grub/i386/pc/biosdisk.h: Removed all function prototypes. | |
9461 | * include/grub/i386/pc/init.h: Likewise except grub_gate_a20. | |
9462 | * include/grub/i386/pc/int.h: New file. | |
9463 | * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition. | |
9464 | (grub_pxe_scan): Removed. | |
9465 | (grub_pxe_call): Update prototype. | |
9466 | * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless | |
9467 | prototypes. | |
9468 | * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed. | |
9469 | * include/grub/i386/qemu/init.h: Removed. | |
9470 | * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing | |
9471 | noreturn. | |
9472 | (grub_halt): Likewise. | |
9473 | * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC. | |
9474 | (grub_reboot): Likewise. | |
9475 | * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here... | |
9476 | * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined. | |
21ed554b VS |
9477 | * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed. |
9478 | ||
215dd471 RM |
9479 | 2010-08-30 Robert Millan <rmh@gnu.org> |
9480 | ||
9481 | * NEWS: Document addition of ZFS support in `grub-install' and | |
9482 | `grub-mkconfig'. | |
9483 | ||
ebd65b82 BC |
9484 | 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com> |
9485 | ||
9486 | * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from | |
9487 | dprintf output. | |
9488 | ||
11721d19 VS |
9489 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9490 | ||
9491 | Remove leftover embedding of font objects. | |
9492 | ||
9493 | * include/grub/kernel.h (OBJ_TYPE_FONT): Removed. | |
9494 | * util/grub-install.in (font): Removed. | |
9495 | * util/grub-mkimage.c (generate_image): Remove font support. All users | |
9496 | updated. | |
9497 | ||
37837d4e VS |
9498 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9499 | ||
9500 | Remove leftover embedding of font objects. | |
9501 | ||
9502 | * include/grub/kernel.h (OBJ_TYPE_FONT): Removed. | |
9503 | * util/grub-install.in (font): Removed. | |
9504 | * util/grub-mkimage.c (generate_image): Remove font support. All users | |
9505 | updated. | |
9506 | ||
b4c1aae0 VS |
9507 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9508 | ||
9509 | * docs/grub.texi (Network): Fix reference to pxe_blksize. | |
e176a764 | 9510 | Reported by: Ian Turner |
b4c1aae0 | 9511 | |
8920a08d VS |
9512 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9513 | ||
9514 | * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second | |
9515 | timeout to avoid indefinite boot stalling. | |
9516 | ||
f21db033 VS |
9517 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9518 | ||
9519 | * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning. | |
9520 | (grub_env_write_color_highlight): Likewise. | |
9521 | ||
9a9de209 VS |
9522 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9523 | ||
9524 | * grub-core/normal/term.c (print_more): Return to normal and not | |
9525 | to standard state after printing "---MORE---". | |
9526 | ||
3dca01d7 VS |
9527 | 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
9528 | ||
9529 | * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): | |
9530 | Mask out the bit 0x80 since it has other meaning that specifiing color. | |
9531 | ||
0b986c40 VS |
9532 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
9533 | ||
9534 | New relocator. Allows for more kernel support and more straightforward | |
9535 | loader writing. | |
9536 | ||
9537 | * Makefile.am (BOOTTARGET): New variable. | |
9538 | (QEMU32): Likewise. | |
9539 | (linux.init.x86_64): New target. | |
9540 | (linux.init.i386): Likewise. | |
9541 | (multiboot.elf): Likewise. | |
9542 | (kfreebsd.elf): Likewise. | |
9543 | (kfreebsd.aout): Likewise. | |
9544 | (pc-chainloader.elf): Likewise. | |
9545 | (pc-chainloader.bin): Likewise. | |
9546 | (ntldr.elf): Likewise. | |
9547 | (ntldr.bin): Likewise. | |
9548 | (multiboot2.elf): Likewise. | |
9549 | (kfreebsd.init.x86_64): Likewise. | |
9550 | (kfreebsd.init.i386): Likewise. | |
9551 | (knetbsd.init.i386): Likewise. | |
9552 | (kopenbsd.init.i386): Likewise. | |
9553 | (knetbsd.init.x86_64): Likewise. | |
9554 | (kopenbsd.init.x86_64): Likewise. | |
9555 | (linux-initramfs.i386): Likewise. | |
9556 | (linux-initramfs.x86_64): Likewise. | |
9557 | (kfreebsd-mfsroot.i386.img): Likewise. | |
9558 | (knetbsd.image.i386): Likewise. | |
9559 | (kopenbsd.image.i386): Likewise. | |
9560 | (kopenbsd.image.x86_64): Likewise. | |
9561 | (knetbsd.miniroot-image.i386.img): Likewise. | |
9562 | (kfreebsd-mfsroot.x86_64.img): Likewise. | |
9563 | (knetbsd.image.x86_64): Likewise. | |
9564 | (knetbsd.miniroot-image.x86_64.img): Likewise. | |
9565 | (kfreebsd-mfsroot.i386.gz): Likewise. | |
9566 | (bootcheck-kfreebsd-i386): Likewise. | |
9567 | (kfreebsd-mfsroot.x86_64.gz): Likewise. | |
9568 | (bootcheck-kfreebsd-x86_64): Likewise. | |
9569 | (knetbsd.miniroot-image.i386.gz): Likewise. | |
9570 | (bootcheck-knetbsd-i386): Likewise. | |
9571 | (bootcheck-kopenbsd-i386): Likewise. | |
9572 | (bootcheck-kopenbsd-x86_64): Likewise. | |
9573 | (knetbsd.miniroot-image.x86_64.gz): Likewise. | |
9574 | (bootcheck-knetbsd-x86_64): Likewise. | |
9575 | (bootcheck-linux-i386): Likewise. | |
9576 | (bootcheck-linux-x86_64): Likewise. | |
9577 | (bootcheck-linux16-i386): Likewise. | |
9578 | (bootcheck-linux16-x86_64): Likewise. | |
9579 | (bootcheck-multiboot): Likewise. | |
9580 | (bootcheck-multiboot2): Likewise. | |
9581 | (bootcheck-kfreebsd-aout): Likewise. | |
9582 | (bootcheck-pc-chainloader): Likewise. | |
9583 | (bootcheck-ntldr): Likewise. | |
9584 | (CLEANFILES): Add new targets. | |
9585 | (BOOTCHECKS): New variable. | |
9586 | (.PHONY): Add bootchecks. | |
9587 | (SUCCESSFUL_BOOT_STRING): New variable. | |
9588 | (BOOTCHECK_TIMEOUT): Likewise. | |
9589 | (bootcheck): New target | |
9590 | * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot. | |
9591 | * configure.ac: Correct efiemu excuse. | |
9592 | * docs/grub.texi (Supported kernels): New chapter. | |
9593 | * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add | |
9594 | include/grub/mm_private.h. Simplify inclusion of | |
9595 | include/grub/boot.h, include/grub/loader.h | |
9596 | and include/grub/msdos_partition.h | |
9597 | (KERNEL_HEADER_FILES) [i386_coreboot]: | |
9598 | Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h. | |
9599 | (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise. | |
9600 | (KERNEL_HEADER_FILES) [i386_qemu]: Likewise. | |
9601 | (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove | |
9602 | include/grub/machine/loader.h. | |
9603 | (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise. | |
9604 | * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from | |
9605 | extra_dist. | |
9606 | (pci.mod): Enable on i386-multiboot. | |
9607 | (acpi.mod): Enable on i386-multiboot and i386-coreboot. | |
9608 | (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and | |
9609 | i386-qemu. | |
9610 | (relocator.mod): Rewritten. | |
9611 | (aout.mod): Enable on all x86. | |
9612 | (bsd.mod): Likewise. | |
9613 | (ntldr.mod): New module. | |
9614 | (linux.mod): Use loader/i386/linux.c on all x86. | |
9615 | (xnu.mod): Enable on all x86. | |
9616 | (vga_text.mod): disable on EFI and QEMU. | |
9617 | * grub-core/efiemu/i386/coredetect.c: Remove useless include. | |
9618 | * grub-core/efiemu/i386/pc/cfgtables.c: Likewise. | |
9619 | * grub-core/efiemu/loadcore.c: Likewise. | |
9620 | * grub-core/efiemu/main.c: Likewise. | |
9621 | (grub_efiemu_exit_boot_services): Removed. | |
9622 | (grub_efiemu_finish_boot_services): Likewise. | |
9623 | * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New | |
9624 | function. | |
9625 | * grub-core/efiemu/i386/nocfgtables.c: New file. | |
9626 | * grub-core/kern/dl.c (grub_dl_unload_all): Removed. | |
9627 | * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed. | |
9628 | (grub_efi_finish_boot_services): Moved from here ... | |
9629 | * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here. | |
9630 | Fille finish memory map and related data. | |
9631 | (finish_mmap_buf): New variable. | |
9632 | (grub_efi_uintn_t finish_mmap_size): Likewise. | |
9633 | (grub_efi_uintn_t finish_key): Likewise. | |
9634 | (grub_efi_uintn_t finish_desc_size): Likewise. | |
9635 | (grub_efi_uint32_t finish_desc_version): Likewise. | |
9636 | (grub_efi_is_finished): Likewise. | |
9637 | (grub_efi_get_memory_map): Use saved memory map if EFI is already | |
9638 | finished. | |
9639 | * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global. | |
9640 | (grub_elf64_phdr_iterate): Likewise. | |
9641 | * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed. | |
9642 | (grub_os_area_size): Likewise. | |
9643 | (grub_machine_init): Don't reserve os area. | |
9644 | * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S. | |
9645 | * grub-core/kern/i386/ieee1275/startup.S: Likewise. | |
9646 | * grub-core/kern/i386/loader.S: Removed. | |
9647 | * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed. | |
9648 | (grub_os_area_size): Likewise. | |
9649 | (grub_machine_init): Don't reserve os area. | |
9650 | * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot): | |
9651 | Don't call grub_dl_unload_all. | |
9652 | Don't include loader.S. | |
9653 | * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): | |
9654 | Declare the memory after _end as available. | |
9655 | * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here... | |
1935c077 | 9656 | * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here. |
0b986c40 | 9657 | (GRUB_MM_ALLOC_MAGIC): Moved from here... |
1935c077 VS |
9658 | * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here. |
9659 | * grub-core/kern/mm.c (grub_mm_header): Moved from here... | |
9660 | * include/grub/mm_private.h (grub_mm_header): ... here. | |
9661 | * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here... | |
9662 | * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here. | |
0b986c40 VS |
9663 | * grub-core/kern/mm.c (grub_mm_region): Moved from here ... |
9664 | (grub_mm_region): ..here. Removed addr. Added pre_size. | |
9665 | All users updated. | |
9666 | * grub-core/kern/mm.c (base): Renamed to ... | |
9667 | (grub_mm_base): ... this. Made global. | |
9668 | (grub_real_malloc): Alloc from end of region. | |
9669 | (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL. | |
9670 | * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ... | |
9671 | * grub-core/kern/powerpc/cache_flush.S: ... here. | |
9672 | * grub-core/lib/efi/relocator.c: New file. | |
9673 | * grub-core/lib/i386/relocator.c: Rewritten. | |
9674 | * grub-core/lib/i386/relocator16.S: New file. | |
9675 | * grub-core/lib/i386/relocator32.S: Likewise. | |
9676 | * grub-core/lib/i386/relocator64.S: Likewise. | |
9677 | * grub-core/lib/i386/relocator_asm.S: Rewritten. | |
9678 | * grub-core/lib/i386/relocator_common.S: New file. | |
9679 | * grub-core/lib/ieee1275/relocator.c: Likewise. | |
9680 | * grub-core/lib/mips/relocator.c: Rewritten. | |
9681 | * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor | |
9682 | stylistic adjustments. | |
9683 | * grub-core/lib/powerpc/relocator.c: New file. | |
9684 | * grub-core/lib/powerpc/relocator_asm.S: Likewise. | |
9685 | * grub-core/lib/relocator.c: Rewritten. | |
9686 | * grub-core/lib/x86_64/relocator_asm.S: New file. | |
9687 | * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *. | |
9688 | * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const. | |
9689 | (bsd_tag): New struct. | |
9690 | (tags): New variable. | |
9691 | (tags_last): Likewise. | |
9692 | (netbsd_module): New struct. | |
9693 | (netbsd_mods): New variable. | |
9694 | (netbsd_mods_last): Likewise. | |
9695 | (openbsd_opts): New parameter "serial". | |
9696 | (OPENBSD_SERIAL_ARG): New definition. | |
9697 | (netbsd_opts): New parameter "serial". | |
9698 | (NETBSD_SERIAL_ARG): New definition. | |
9699 | (grub_freebsd_add_meta): Reorganised into ... | |
9700 | (grub_bsd_add_meta): ...this. All users updated. | |
9701 | (grub_freebsd_add_mmap): Reorganised into ... | |
9702 | (generate_e820_mmap): ...this... | |
9703 | (grub_bsd_add_mmap): ...and this. All users updated. | |
9704 | (grub_freebsd_list_modules): Use tags. | |
9705 | (grub_netbsd_add_meta_module): New function. | |
9706 | (grub_netbsd_list_modules): Likewise. | |
9707 | (grub_freebsd_boot): Use relocator and finish EFI. | |
9708 | (grub_openbsd_boot): Likewise. | |
9709 | (grub_netbsd_setup_video): New function. | |
9710 | (grub_netbsd_add_modules): Likewise. | |
9711 | (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags | |
9712 | and finish EFI. | |
9713 | (grub_bsd_unload): Unload tags. | |
9714 | (grub_bsd_load_aout): Use relocator. | |
9715 | (grub_bsd_elf32_size_hook): New function. | |
9716 | (grub_bsd_elf32_hook): Use relocator. | |
9717 | (grub_bsd_elf64_size_hook): New function. | |
9718 | (grub_bsd_elf64_hook): Use relocator. | |
9719 | (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk. | |
9720 | (grub_bsd_load): Zero-out openbsd_ramdisk. | |
9721 | (grub_bsd_load): Use relocator. | |
9722 | (grub_cmd_openbsd): Support serial. | |
9723 | (grub_cmd_netbsd): Support modules. | |
9724 | (grub_cmd_freebsd_module): Use relocator. | |
9725 | (grub_netbsd_module_load): New function. | |
9726 | (grub_cmd_netbsd_module): Likewise. | |
9727 | (grub_cmd_openbsd_ramdisk): Likewise. | |
9728 | (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and | |
9729 | kopenbsd_ramdisk. | |
9730 | (GRUB_MOD_FINI): Unregister new commands. | |
9731 | * grub-core/loader/i386/bsdXX.c (load): Remove useless checks. | |
9732 | (grub_freebsd_load_elfmodule_obj): Use relocator. | |
9733 | (grub_freebsd_load_elfmodule): Likewise. | |
9734 | (grub_freebsd_load_elf_meta): Likewise. | |
9735 | (grub_netbsd_load_elf_meta): New function. | |
9736 | (grub_openbsd_find_ramdisk): Likewise. | |
9737 | * grub-core/loader/i386/bsd_helper.S: Removed. | |
9738 | * grub-core/loader/i386/bsd_pagetable.c: Support relocator. | |
9739 | * grub-core/loader/i386/bsd_trampoline.S: Removed. | |
9740 | * grub-core/loader/i386/efi/linux.c: Likewise. | |
9741 | * grub-core/loader/i386/ieee1275/linux.c: Likewise. | |
9742 | * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const. | |
9743 | (DEFAULT_VIDEO_MODE): Likewise. | |
9744 | (real_mode_target): New variable. | |
9745 | (prot_mode_target): Likewise. | |
9746 | (initrd_mem_target): Likewise. | |
9747 | (relocator): Likewise. | |
9748 | (efi_mmap_buf): Likewise. | |
9749 | (efi_mmap_size): Likewise. | |
9750 | (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c. | |
9751 | (free_pages): Use relocator. | |
9752 | (allocate_pages): Account for efi_mmap and use relocator. Return error. | |
9753 | (grub_linux_setup_video): Return error. | |
9754 | (grub_linux_trampoline_start): Removed. | |
9755 | (grub_linux_trampoline_end): Likewise. | |
9756 | (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console | |
9757 | andd video parameters depending on firmware. | |
9758 | [GRUB_MACHINE_IEEE1275]: Pass OFW parameters. | |
9759 | [GRUB_MACHINE_EFI]: Pass EFI parameters. | |
9760 | (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise. | |
9761 | (grub_cmd_initrd): Use relocator. | |
9762 | * grub-core/loader/i386/linux_trampoline.S: Removed. | |
9763 | * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable. | |
9764 | (elf_sec_entsize): Likewise. | |
9765 | (elf_sec_shstrndx): Likewise. | |
9766 | (elf_sections): Likewise. | |
9767 | (grub_multiboot_load): Use relocator. | |
9768 | (grub_multiboot_get_mbi_size): Account for sections. | |
9769 | (grub_multiboot_make_mbi): Use relocator and support sections. | |
9770 | (grub_multiboot_add_elfsyms): New function. | |
9771 | (grub_multiboot_free_mbi): Free sections. | |
9772 | * grub-core/loader/i386/pc/linux.c (relocator): New variable. | |
9773 | (grub_linux_real_target): Likewise. | |
9774 | (grub_linux_real_chunk): Likewise. | |
9775 | (grub_linux16_prot_size): Likewise. | |
9776 | (grub_linux16_boot): Use relocator. | |
9777 | (grub_linux_unload): Unload relocator. | |
9778 | (grub_cmd_linux): Use relocator. | |
9779 | (grub_cmd_initrd): Likewise. | |
9780 | * grub-core/loader/i386/pc/ntldr.c: New file. | |
9781 | * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]: | |
9782 | Don't try to guess CPU frequency. | |
9783 | (grub_xnu_set_video): Stretch bitmap. | |
9784 | (grub_xnu_boot): Use relocator. | |
9785 | * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator. | |
9786 | (grub_linux_unload): Free relocator. | |
9787 | (grub_linux_load32): Use relocator. | |
9788 | (grub_linux_load64): Likewise. | |
9789 | (grub_cmd_initrd): Likewise. | |
9790 | * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator. | |
9791 | (grub_multiboot_unload): Unload relocator. | |
9792 | (grub_cmd_multiboot): Use relocator. | |
9793 | (grub_cmd_module): Likewise. | |
9794 | * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX): | |
9795 | Use relocator and support sections. | |
9796 | * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable. | |
9797 | (elf_sec_entsize): Likewise. | |
9798 | (elf_sec_shstrndx): Likewise. | |
9799 | (elf_sections): Likewise. | |
9800 | (grub_multiboot_load): Use relocator. | |
9801 | (grub_multiboot_get_mbi_size): Account for sections. | |
9802 | (grub_multiboot_make_mbi): Use relocator and support sections. | |
9803 | (grub_multiboot_add_elfsyms): New function. | |
9804 | * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include. | |
9805 | * grub-core/loader/sparc64/ieee1275/linux.c: Likewise. | |
9806 | * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator. | |
9807 | Prototype changed. All users updated. | |
9808 | (grub_xnu_align_heap): Simplified. | |
9809 | (grub_xnu_writetree_toheap): Likewise. | |
9810 | (grub_xnu_unload): Unload relocator. | |
9811 | (grub_cmd_xnu_kernel): Use relocator. | |
9812 | (grub_cmd_xnu_kernel64): Likewise. | |
9813 | (grub_xnu_register_memory): Simplified. | |
9814 | * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator. | |
1935c077 VS |
9815 | * grub-core/term/efi/console.c (grub_console_putchar): Abort if |
9816 | EFI is finished. | |
9817 | (grub_console_checkkey): Likewise. | |
9818 | (grub_console_getkey): Likewise. | |
9819 | (grub_console_getwh): Likewise. | |
9820 | (grub_console_getxy): Likewise. | |
9821 | (grub_console_gotoxy): Likewise. | |
9822 | (grub_console_cls): Likewise. | |
9823 | (grub_console_setcolorstate): Likewise. | |
9824 | (grub_console_setcursor): Likewise. | |
9825 | * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function. | |
9826 | * grub-core/tests/boot/kbsd.init-i386.S: New file. | |
9827 | * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise. | |
9828 | * grub-core/tests/boot/kbsd.spec.txt: Likewise. | |
9829 | * grub-core/tests/boot/kernel-8086.S: Likewise. | |
9830 | * grub-core/tests/boot/kernel-i386.S: Likewise. | |
9831 | * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise. | |
9832 | * grub-core/tests/boot/kfreebsd.cfg: Likewise. | |
9833 | * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise. | |
9834 | * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise. | |
9835 | * grub-core/tests/boot/knetbsd.cfg: Likewise. | |
9836 | * grub-core/tests/boot/kopenbsd.cfg: Likewise. | |
9837 | * grub-core/tests/boot/kopenbsdlabel.txt: Likewise. | |
9838 | * grub-core/tests/boot/linux.cfg: Likewise. | |
9839 | * grub-core/tests/boot/linux.init-i386.S: Likewise. | |
9840 | * grub-core/tests/boot/linux.init-x86_64.S: Likewise. | |
9841 | * grub-core/tests/boot/linux16.cfg: Likewise. | |
9842 | * grub-core/tests/boot/multiboot.cfg: Likewise. | |
9843 | * grub-core/tests/boot/multiboot2.cfg: Likewise. | |
9844 | * grub-core/tests/boot/ntldr.cfg: Likewise. | |
9845 | * grub-core/tests/boot/pc-chainloader.cfg: Likewise. | |
9846 | * include/grub/aout.h (grub_aout_load): Make load_addr a void *. | |
9847 | * include/grub/autoefi.h (grub_autoefi_finish_boot_services): | |
9848 | New definition. | |
9849 | * include/grub/dl.h (grub_dl_unload_all): Removed. | |
9850 | * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise. | |
9851 | (grub_efi_finish_boot_services): Change prototype. | |
9852 | (grub_efi_is_finished): New variable. | |
9853 | * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services): | |
9854 | Changed prototype. | |
9855 | (grub_efiemu_finish_boot_services): Removed. | |
9856 | (grub_machine_efiemu_init_tables): New prototype. | |
9857 | * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise. | |
9858 | (grub_elf64_phdr_iterate): Likewise. | |
9859 | * include/grub/i386/bsd.h: Include relocator.h. | |
9860 | (freebsd_tag_header): New struct. | |
9861 | (grub_openbsd_bios_mmap): Removed. | |
9862 | (grub_unix_real_boot): Removed. | |
9863 | (grub_freebsd_load_elfmodule32): Changed prototype. | |
9864 | (grub_freebsd_load_elfmodule_obj64): Likewise. | |
9865 | (grub_freebsd_load_elf_meta32): Likewise. | |
9866 | (grub_freebsd_load_elf_meta64): Likewise. | |
9867 | (grub_freebsd_add_meta): Removed. | |
9868 | (grub_netbsd_load_elf_meta32): New prototype. | |
9869 | (grub_netbsd_load_elf_meta64): Likewise. | |
9870 | (grub_bsd_add_meta): Likewise. | |
9871 | (grub_openbsd_ramdisk_descriptor): New struct. | |
9872 | (grub_openbsd_find_ramdisk32): New prototype. | |
9873 | (grub_openbsd_find_ramdisk64): Likewise. | |
9874 | * include/grub/i386/coreboot/loader.h: Removed. | |
9875 | * include/grub/i386/efi/loader.h: Likewise. | |
9876 | * include/grub/i386/ieee1275/loader.h: Likewise. | |
9877 | * include/grub/i386/linux.h (linux_kernel_header): Change void * | |
9878 | to grub_uint32_t. | |
9879 | * include/grub/i386/loader.h: Removed. | |
9880 | * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the | |
9881 | value. | |
9882 | (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition. | |
9883 | (grub_phys_addr_t): New type. | |
9884 | (grub_vtop): New inline function. | |
9885 | (grub_map_memory): Likewise. | |
9886 | (grub_unmap_memory): Likewise. | |
9887 | * include/grub/i386/multiboot/loader.h: Removed. | |
9888 | * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed. | |
9889 | (NETBSD_BTINFO_CONSOLE): New definition. | |
9890 | (NETBSD_BTINFO_SYMTAB): Likewise. | |
9891 | (NETBSD_BTINFO_MODULES): Likewise. | |
9892 | (NETBSD_BTINFO_FRAMEBUF): Likewise. | |
9893 | (grub_netbsd_bootinfo): New struct. | |
9894 | (grub_netbsd_btinfo_common): Use explicit bitsize. | |
9895 | (grub_netbsd_btinfo_mmap_entry): Removed. | |
9896 | (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition. | |
9897 | (grub_netbsd_btinfo_bootdisk): New struct. | |
9898 | (grub_netbsd_btinfo_symtab): Likewise. | |
9899 | (grub_netbsd_btinfo_serial): Likewise. | |
9900 | (grub_netbsd_btinfo_modules): Likewise. | |
9901 | (grub_netbsd_btinfo_framebuf): Likewise. | |
9902 | (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition. | |
9903 | * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE): | |
9904 | Likewise. | |
9905 | (grub_openbsd_bootargs): Use explicit bitsize. | |
9906 | (grub_openbsd_bootarg_console): New struct. | |
9907 | (GRUB_OPENBSD_COM_MAJOR): New definition. | |
9908 | (GRUB_OPENBSD_VGA_MAJOR): Likewise. | |
9909 | * include/grub/i386/pc/efiemu.h: Removed. | |
9910 | * include/grub/i386/pc/loader.h: Don't include cpu/loader.h. | |
9911 | * include/grub/i386/qemu/loader.h: Removed. | |
9912 | * include/grub/i386/relocator.h: Rewritten. | |
9913 | * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed. | |
9914 | * include/grub/mips/memory.h: New file. | |
9915 | * include/grub/mips/multiboot.h: Rewritten. | |
9916 | * include/grub/mips/relocator.h: Rewritten. | |
9917 | * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type. | |
9918 | (grub_vtop): New function. | |
9919 | (grub_map_memory): Likewise. | |
9920 | (grub_unmap_memory): Likewise. | |
9921 | * include/grub/misc.h (ALIGN_DOWN): New definition. | |
9922 | * include/grub/mm.h (grub_mm_check_real): New proto. | |
9923 | (GRUB_MM_CHECK): New definition. | |
9924 | * include/grub/mm_private.h: New file. | |
9925 | * include/grub/multiboot.h (grub_multiboot_relocator): New variable. | |
9926 | (grub_multiboot_get_mbi_size): Removed. | |
9927 | (grub_multiboot_make_mbi): Change prottype. | |
9928 | (grub_multiboot_set_accepts_video): New proto. | |
9929 | (grub_multiboot_add_elfsyms): Likewise. | |
9930 | (grub_multiboot_payload_eip): New variable. | |
9931 | * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]: | |
9932 | New prototype. | |
9933 | * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): | |
9934 | New definition. | |
9935 | (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise. | |
9936 | (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise. | |
9937 | * include/grub/powerpc/ieee1275/loader.h: Removed. | |
9938 | * include/grub/powerpc/memory.h: New file. | |
9939 | * include/grub/powerpc/relocator.h: Likewise. | |
9940 | * include/grub/relocator.h: Likewise. | |
9941 | * include/grub/relocator_private.h: Likewise. | |
9942 | * include/grub/sparc64/ieee1275/loader.h: Removed. | |
9943 | * include/grub/x86_64/memory.h: New file. | |
9944 | * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype. | |
9945 | (grub_xnu_heap_malloc): Likewise. | |
9946 | (grub_xnu_heap_real_start): Removed. | |
9947 | (grub_xnu_heap_start): Likewise. | |
9948 | (grub_xnu_relocator): New variable. | |
9949 | (grub_xnu_heap_target_start): Likewise. | |
9950 | * tests/util/grub-shell.in: Support non-pc. | |
9951 | * util/grub-mkimage.c (image_targets): Fix multiboot target. | |
0b986c40 | 9952 | |
5303b85d VS |
9953 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
9954 | ||
9955 | * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop | |
9956 | on malloc error. | |
9957 | (grub_bidi_logical_to_visual): Check that malloc succeded. | |
9958 | * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb | |
9959 | puts. | |
9960 | (grub_xputs_normal): Likewise. | |
9961 | ||
d768d159 VS |
9962 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
9963 | ||
9964 | * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to | |
9965 | extra_dist. | |
9966 | ||
9967 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> | |
9968 | ||
9969 | * grub-core/efiemu/runtime/efiemu.sh: Removed. | |
9970 | ||
5bf84df4 VS |
9971 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
9972 | ||
9973 | * Makefile.util.def (grub-ofpathname): Add missing ldadd. | |
9974 | ||
3626810e VS |
9975 | 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
9976 | ||
9977 | * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after | |
9978 | dprintf. | |
9979 | ||
a7363f53 BC |
9980 | 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com> |
9981 | ||
9982 | * Makefile.util.def: Use ldadd instead of ldflags for libraries. | |
9983 | ||
902f75f6 VS |
9984 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
9985 | ||
9986 | * grub-core/normal/term.c (print_more): Fix a memory leak. | |
9987 | (grub_puts_terminal): Revert to dumb puts if memory allocation fails. | |
9988 | (grub_xputs_normal): Likewise. | |
9989 | ||
3c707967 VS |
9990 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
9991 | ||
9992 | * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before | |
9993 | the begining of the string | |
9994 | ||
2053cc07 VS |
9995 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
9996 | ||
9997 | * grub-core/script/script.c (grub_script_parse): Free parsed on | |
9998 | failure. | |
9999 | ||
46422ebf VS |
10000 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
10001 | ||
10002 | * grub-core/normal/completion.c (grub_normal_do_completion): Free argv | |
10003 | on failure. | |
10004 | ||
9e0fa3f6 VS |
10005 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
10006 | ||
10007 | * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on | |
10008 | return. | |
10009 | ||
3393cf16 VS |
10010 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
10011 | ||
10012 | * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer. | |
10013 | (scroll_up): Fix a memory leak. | |
10014 | ||
b17540cb VS |
10015 | 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
10016 | ||
10017 | * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read | |
10018 | errors. | |
10019 | ||
67140446 VS |
10020 | 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com> |
10021 | ||
10022 | Handle USB pendrives exposed as floppies. | |
10023 | ||
10024 | * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be | |
10025 | floppy. | |
10026 | * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise. | |
10027 | Check for partitions on all devices. | |
10028 | ||
e35e46fc VS |
10029 | 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
10030 | ||
10031 | * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype. | |
10032 | (readkey): Likewise. | |
10033 | ||
d24c6190 BC |
10034 | 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com> |
10035 | ||
10036 | Multiple variable names support to "export" command. | |
10037 | ||
10038 | * normal/context.c (grub_cmd_export): "export" command supports | |
10039 | multiple variable names. | |
10040 | ||
04ddcc6a ST |
10041 | 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org> |
10042 | ||
10043 | * util/grub.d/30_os-prober.in: Fix conversion from grub-probe | |
10044 | --target=drive output to Mach device name. | |
10045 | ||
0c8b61d8 BC |
10046 | 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com> |
10047 | ||
10048 | New Automake based build system for GRUB. | |
10049 | ||
10050 | * ABOUT-NLS: New file. | |
10051 | * Makefile.am: New file. GRUB host utils' rules that doesn't fit | |
10052 | in Makefile.util.def file. | |
10053 | * Makefile.util.def: New file. Autogen build definitions file for | |
10054 | GRUB host utils. | |
10055 | * conf/Makefile.common: New file. Common variables for GRUB host | |
10056 | utils and target modules. | |
10057 | * conf/Makefile.extra-dist: New file. Extra files for make dist. | |
10058 | * docs/Makefile.am: New file. Automake file for docs. | |
10059 | * gentpl.py: New file. Python script to generate Autogen | |
10060 | template. | |
10061 | * grub-core/Makefile.am: New file. GRUB target modules' rules | |
10062 | that doesn't fit in Makefile.core.def file. | |
10063 | * grub-core/Makefile.core.def: New file. Autogen build | |
10064 | definitions file for GRUB target modules. | |
10065 | * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu | |
10066 | specific setjmp.S file. | |
10067 | * po/Makefile.am: New file. | |
10068 | ||
10069 | * .bzrignore: New ignores. | |
10070 | * INSTALL: New requirements, without Ruby. | |
10071 | * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead. | |
10072 | * autogen.sh: Updated to invoke autogen as necessary. | |
10073 | * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes, | |
10074 | and defines for Automake conditionals. | |
10075 | * geninit.sh: Refactoring. | |
10076 | ||
10077 | * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if | |
10078 | necessary. | |
10079 | * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root): | |
10080 | New prototype. | |
10081 | ||
10082 | * include/grub/test.h: Fix functional test modules' naming. | |
10083 | * grub-core/tests/example_functional_test.c: Fix test module name. | |
10084 | ||
10085 | * util/misc.c: Hosted versions' of grub functions for libgrub.a | |
10086 | * tests/lib/unit_test.c: Remove hosted versions of grub functions. | |
10087 | * util/grub-editenv.c: Likewise. | |
10088 | * util/grub-fstest.c: Likewise. | |
10089 | * util/grub-mkdevicemap.c: Likewise. | |
10090 | * util/grub-mkfont.c: Likewise. | |
10091 | * util/grub-mkimage.c: Likewise. | |
10092 | * util/grub-mkpasswd-pbkdf2.c: Likewise. | |
10093 | * util/grub-probe.c: Likewise. | |
10094 | * util/grub-script-check.c: Likewise. | |
10095 | * util/i386/pc/grub-setup.c: Likewise. | |
10096 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
10097 | ||
10098 | * tests/util/grub-shell.in: Fix override directory path. | |
10099 | * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files. | |
10100 | * util/import_gcry.py: Create Makefile.gcry.def file instead. | |
10101 | ||
10102 | * util/lvm.c: Update #includes. | |
10103 | * util/raid.c: Likewise. | |
10104 | * util/resolve.c: Likewise. | |
10105 | * grub-core/bus/emu/pci.c: Likewise. | |
10106 | * grub-core/lib/posix_wrap/stdlib.h: Likewise. | |
10107 | * grub-core/lib/posix_wrap/string.h: Likewise. | |
10108 | * grub-core/kern/emu/main.c: Likewise. | |
10109 | ||
10110 | * grub-core/gensymlist.sh: New file. Script for generating kernel | |
10111 | symbols file. | |
10112 | * grub-core/genmoddep.awk: Support new kernel_syms.lst format. | |
10113 | ||
10114 | * grub-core/gentrigtables.c: Fix unused variable warnings. | |
10115 | ||
10116 | * Makefile.in: Removed. | |
10117 | * conf/any-emu.rmk: Removed. | |
10118 | * conf/common.rmk: Removed. | |
10119 | * conf/i386-coreboot.rmk: Removed. | |
10120 | * conf/i386-efi.rmk: Removed. | |
10121 | * conf/i386-ieee1275.rmk: Removed. | |
10122 | * conf/i386-multiboot.rmk: Removed. | |
10123 | * conf/i386-pc.rmk: Removed. | |
10124 | * conf/i386-qemu.rmk: Removed. | |
10125 | * conf/i386.rmk: Removed. | |
10126 | * conf/mips-yeeloong.rmk: Removed. | |
10127 | * conf/mips.rmk: Removed. | |
10128 | * conf/powerpc-ieee1275.rmk: Removed. | |
10129 | * conf/sparc64-ieee1275.rmk: Removed. | |
10130 | * conf/tests.rmk: Removed. | |
10131 | * conf/x86-efi.rmk: Removed. | |
10132 | * conf/x86_64-efi.rmk: Removed. | |
10133 | * gendistlist.sh: Removed. | |
10134 | * geninitheader.sh: Removed. | |
10135 | * genkernsyms.sh.in: Removed. | |
10136 | * genmk.rb: Removed. | |
10137 | * gensymlist.sh.in: Removed. | |
10138 | * mkinstalldirs: Removed. | |
10139 | * boot: Moved ... | |
10140 | * grub-core/boot: ... to here. | |
10141 | * bus: Moved ... | |
10142 | * grub-core/bus: ... to here. | |
10143 | * commands: Moved ... | |
10144 | * grub-core/commands: ... to here. | |
10145 | * disk: Moved ... | |
10146 | * grub-core/disk: ... to here. | |
10147 | * efiemu: Moved ... | |
10148 | * grub-core/efiemu: ... to here. | |
10149 | * font: Moved ... | |
10150 | * grub-core/font: ... to here. | |
10151 | * fs: Moved ... | |
10152 | * grub-core/fs: ... to here. | |
10153 | * gencmdlist.sh: Moved ... | |
10154 | * grub-core/gencmdlist.sh: ... to here. | |
10155 | * genemuinit.sh: Moved ... | |
10156 | * grub-core/genemuinit.sh: ... to here. | |
10157 | * genemuinitheader.sh: Moved ... | |
10158 | * grub-core/genemuinitheader.sh: ... to here. | |
10159 | * genfslist.sh: Moved ... | |
10160 | * grub-core/genfslist.sh: ... to here. | |
10161 | * genhandlerlist.sh: Moved ... | |
10162 | * grub-core/genhandlerlist.sh: ... to here. | |
10163 | * genmoddep.awk: Moved ... | |
10164 | * grub-core/genmoddep.awk: ... to here. | |
10165 | * genmodsrc.sh: Moved ... | |
10166 | * grub-core/genmodsrc.sh: ... to here. | |
10167 | * genpartmaplist.sh: Moved ... | |
10168 | * grub-core/genpartmaplist.sh: ... to here. | |
10169 | * genparttoollist.sh: Moved ... | |
10170 | * grub-core/genparttoollist.sh: ... to here. | |
10171 | * genterminallist.sh: Moved ... | |
10172 | * grub-core/genterminallist.sh: ... to here. | |
10173 | * gentrigtables.c: Moved ... | |
10174 | * grub-core/gentrigtables.c: ... to here. | |
10175 | * genvideolist.sh: Moved ... | |
10176 | * grub-core/genvideolist.sh: ... to here. | |
10177 | * gettext: Moved ... | |
10178 | * grub-core/gettext: ... to here. | |
10179 | * gfxmenu: Moved ... | |
10180 | * grub-core/gfxmenu: ... to here. | |
10181 | * gnulib: Moved ... | |
10182 | * grub-core/gnulib: ... to here. | |
10183 | * hello: Moved ... | |
10184 | * grub-core/hello: ... to here. | |
10185 | * hook: Moved ... | |
10186 | * grub-core/hook: ... to here. | |
10187 | * io: Moved ... | |
10188 | * grub-core/io: ... to here. | |
10189 | * kern: Moved ... | |
10190 | * grub-core/kern: ... to here. | |
10191 | * lib: Moved ... | |
10192 | * grub-core/lib: ... to here. | |
10193 | * loader: Moved ... | |
10194 | * grub-core/loader: ... to here. | |
10195 | * mmap: Moved ... | |
10196 | * grub-core/mmap: ... to here. | |
10197 | * normal: Moved ... | |
10198 | * grub-core/normal: ... to here. | |
10199 | * partmap: Moved ... | |
10200 | * grub-core/partmap: ... to here. | |
10201 | * parttool: Moved ... | |
10202 | * grub-core/parttool: ... to here. | |
10203 | * script: Moved ... | |
10204 | * grub-core/script: ... to here. | |
10205 | * term: Moved ... | |
10206 | * grub-core/term: ... to here | |
10207 | * tests/example_functional_test.c: Moved ... | |
10208 | * grub-core/tests/example_functional_test.c: ... to here. | |
10209 | * tests/lib/functional_test.c: Moved ... | |
10210 | * grub-core/tests/lib/functional_test.c: ... to here. | |
10211 | * tests/lib/test.c: Moved ... | |
10212 | * grub-core/tests/lib/test.c: ... to here. | |
10213 | * video: Moved ... | |
10214 | * grub-core/video: ... to here. | |
10215 | ||
645586e6 BC |
10216 | 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com> |
10217 | ||
10218 | Replace --enable-grub-emu-modules with grub-emu-lite. | |
10219 | ||
10220 | * kern/emu/cache.S: New file. Wrapper for $target_cpu specific | |
10221 | cache.S. | |
10222 | ||
10223 | * include/grub/emu/misc.h (grub_emu_init): New prototype. | |
10224 | * kern/emu/full.c: New file. For grub-emu specific initialization. | |
10225 | * kern/emu/lite.c: New file. For grub-emu-lite initialization. | |
10226 | * kern/emu/main.c: Call initialization function grub_emu_init. | |
10227 | ||
10228 | * Makefile.in: Include grub-emu-lite in install. | |
10229 | * commands/parttool.c: Use grub_no_autoload to differentiate | |
10230 | between grub-emu and grub-emu-lite. | |
10231 | * include/grub/misc.h: New variable grub_no_autoload. | |
10232 | ||
10233 | * conf/any-emu.rmk: New rules for grub-emu-lite. | |
10234 | * configure.ac: Remove --enable-grub-emu-modules. | |
10235 | * genmk.rb: Cleanup unnecessary rules. | |
10236 | * include/grub/dl.h: Remove GRUB_NO_MODULES macro. | |
10237 | ||
10238 | * normal/main.c: Don't load list files on grub-emu-lite. | |
10239 | * util/misc.c (grub_arch_sync_caches): Removed. | |
10240 | ||
f86a4030 CW |
10241 | 2010-08-23 Colin Watson <cjwatson@ubuntu.com> |
10242 | ||
10243 | * kern/mips/startup.S (grub_prefix): Update comment to refer to | |
10244 | grub-mkimage rather than grub-mkelfimage. | |
10245 | * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise. | |
10246 | ||
06776944 VS |
10247 | 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com> |
10248 | ||
10249 | * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard | |
10250 | a key after CapsLock or NumLock. It's just a qemu bug. | |
10251 | ||
df262419 VS |
10252 | 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com> |
10253 | ||
10254 | * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's | |
10255 | needed by libusb wrapper. | |
10256 | ||
b40ea81b ST |
10257 | 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org> |
10258 | ||
10259 | * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd. | |
10260 | ||
dee50575 VS |
10261 | 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com> |
10262 | ||
10263 | * loader/multiboot.c (grub_cmd_module): Don't unzip module if | |
10264 | --nounzip is passed. | |
10265 | ||
fb1d7b79 VS |
10266 | 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com> |
10267 | ||
10268 | USB hotunplugging and USB serial support. | |
10269 | ||
10270 | * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout. | |
10271 | * bus/usb/uhci.c (grub_free_queue): Compute *actual. | |
10272 | (grub_uhci_transfer): Respect timeout and set *actual. | |
10273 | * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of | |
10274 | non-standard length. | |
10275 | (grub_usb_device_attach): Autoload modules. | |
10276 | (GRUB_MOD_INIT): Set grub_term_poll_usb. | |
10277 | (GRUB_MOD_FINI): Unset grub_term_poll_usb. | |
10278 | * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All | |
10279 | users updated. | |
10280 | (grub_usb_add_hub): Fill nports and children. | |
10281 | (attach_root_port): Receive hub instead of controller. | |
10282 | All users updated. Fill hub->devices. | |
10283 | (grub_usb_root_hub): Allocate hub->devices. | |
10284 | (detach_device): New function. | |
10285 | (poll_nonroot_hub): Fill children and detach devices. | |
10286 | * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and | |
10287 | actual arguments. All users updated. | |
10288 | (grub_usb_bulk_read_extended): New function. | |
10289 | * bus/usb/serial/common.c: New file. | |
10290 | * bus/usb/serial/ftdi.c: Likewise. | |
10291 | * bus/usb/serial/pl2303.c: Likewise. | |
10292 | * commands/terminal.c (handle_command): Support wildcard. | |
10293 | * commands/usbtest.c: Output "Unknown" instead of empty string. | |
10294 | * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod. | |
10295 | (usbserial_common_mod_SOURCES): New variable. | |
10296 | (usbserial_common_mod_CFLAGS): Likewise. | |
10297 | (usbserial_common_mod_LDFLAGS): Likewise. | |
10298 | (pkglib_MODULES): Add usbserial_pl2303.mod. | |
10299 | (usbserial_pl2303_mod_SOURCES): New variable. | |
10300 | (usbserial_pl2303_mod_CFLAGS): Likewise. | |
10301 | (usbserial_pl2303_mod_LDFLAGS): Likewise. | |
10302 | (pkglib_MODULES): Add usbserial_ftdi.mod. | |
10303 | (usbserial_ftdi_mod_SOURCES): New variable. | |
10304 | (usbserial_ftdi_mod_CFLAGS): Likewise. | |
10305 | (usbserial_ftdi_mod_LDFLAGS): Likewise. | |
10306 | (pkglib_MODULES): Add serial.mod. | |
10307 | (serial_mod_SOURCES): New variable. | |
10308 | (serial_mod_CFLAGS): Likewise. | |
10309 | (serial_mod_LDFLAGS): Likewise. | |
10310 | * conf/i386-pc.rmk: Likewise. | |
10311 | * conf/mips-yeeloong.rmk: Likewise. | |
10312 | * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c. | |
10313 | * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise. | |
10314 | * disk/usbms.c (first_available_slot): New variable. | |
10315 | (grub_usbms_attach): Don't reuse free slots due to potential cache | |
10316 | problems. | |
10317 | * include/grub/serial.h: Moved to .. | |
10318 | * include/grub/ns8250.h: ...this. | |
10319 | * include/grub/serial.h: New file. | |
10320 | * include/grub/term.h (grub_term_poll_usb): New variable. | |
10321 | * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to | |
10322 | readkey. All users updated. | |
10323 | (grub_terminfo_output_state): Pass term to put. | |
10324 | * include/grub/usb.h (GRUB_USB_REQTYPE): New enum. | |
10325 | (grub_usb_controller_dev): Add timeout and actual arguments to | |
10326 | transfer. All users updated. | |
10327 | (grub_usb_interface): New field detach_data. | |
10328 | (grub_usb_device): New fields children and nports. | |
10329 | (grub_usb_ep_type_t): New type. | |
10330 | (grub_usb_get_ep_type): New function. | |
10331 | (grub_usb_bulk_read_extended): Likewise. | |
10332 | * include/grub/usbdesc.h (grub_usb_desc): New type. | |
10333 | * include/grub/usbserial.h: New file. | |
10334 | * include/grub/usbtrans.h (grub_usb_transaction): New field preceding. | |
10335 | * kern/term.c (grub_term_poll_usb): New variable. | |
10336 | (grub_getkey): Call grub_term_poll_usb if set. | |
10337 | (grub_checkkey): Likewise. | |
10338 | (grub_getkeystatus): Likewise. | |
10339 | * term/serial.c: Moved controller-specific parts to ... | |
10340 | * term/ns8250.c: ... here. | |
10341 | * term/serial.c: Mostly rewritten. | |
10342 | * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching | |
10343 | according to spec. | |
10344 | ||
21a313de RM |
10345 | 2010-08-20 Robert Millan <rmh@gnu.org> |
10346 | ||
10347 | Make kFreeBSD code more generic to support ext2fs as root, ufs as | |
10348 | a separate module and maybe other interesting combinations. | |
10349 | ||
10350 | * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function. | |
10351 | (kfreebsd_entry): Use load_kfreebsd_module() to load modules. | |
10352 | (kfreebsd_entry): Add generic filesystem module load routine. | |
10353 | Map GRUB `ext2' to kFreeBSD `ext2fs'. | |
10354 | ||
63c734a6 CW |
10355 | 2010-08-20 Colin Watson <cjwatson@ubuntu.com> |
10356 | ||
10357 | * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to | |
10358 | "numcenter" (I misunderstood the purpose of this entry). | |
10359 | * docs/grub.texi (sendkey): Likewise. | |
10360 | ||
c4d16542 CW |
10361 | 2010-08-20 Colin Watson <cjwatson@ubuntu.com> |
10362 | ||
10363 | * commands/i386/pc/sendkey.c (options): Remove "keep" from all | |
10364 | status flag options; simply omitting the option is equivalent and | |
10365 | simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq". | |
10366 | (keysym_table): Rename "num5numlock" to "numlock". | |
10367 | (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we | |
10368 | can uniformly say that only the last of multiple `sendkey' | |
10369 | invocations has any effect. | |
10370 | * docs/grub.texi (sendkey): New section. | |
10371 | ||
93541d66 CW |
10372 | 2010-08-19 Colin Watson <cjwatson@ubuntu.com> |
10373 | ||
10374 | * commands/i386/pc/sendkey.c (options): Fix three typos. | |
10375 | ||
b4ece5e1 VS |
10376 | 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com> |
10377 | ||
10378 | Implement sendkey support. | |
10379 | ||
10380 | * commands/i386/pc/sendkey.c: New file. | |
10381 | * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod. | |
10382 | (sendkey_mod_SOURCES): New variable. | |
10383 | (sendkey_mod_CFLAGS): Likewise. | |
10384 | (sendkey_mod_LDFLAGS): Likewise. | |
10385 | ||
51f1f5af CW |
10386 | 2010-08-18 Colin Watson <cjwatson@ubuntu.com> |
10387 | ||
10388 | * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to | |
10389 | fix warnings from Autoconf. | |
10390 | ||
9da94e05 CW |
10391 | 2010-08-18 Colin Watson <cjwatson@ubuntu.com> |
10392 | ||
10393 | * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern, | |
10394 | to avoid false positives with some assemblers that output things | |
10395 | like "someprefix_func" as part of their output. | |
10396 | ||
729a0f2e RM |
10397 | 2010-08-15 Robert Millan <rmh@gnu.org> |
10398 | ||
10399 | * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init() | |
10400 | errors. | |
10401 | * kern/emu/getroot.c (find_root_device_from_libzfs): Handle | |
10402 | grub_get_libzfs_handle() errors. | |
10403 | ||
f3710e08 RM |
10404 | 2010-08-14 Robert Millan <rmh@gnu.org> |
10405 | ||
10406 | * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if | |
10407 | filesystem is not ZFS. | |
10408 | ||
7a3c13de BC |
10409 | 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com> |
10410 | ||
10411 | Fix for misspelled color names defaulting to black/black (bug | |
10412 | reported by Doug Nazar) | |
10413 | ||
10414 | * include/grub/normal.h (grub_parse_color_name_pair): Add return | |
10415 | status to prototype. | |
10416 | * normal/color.c (grub_parse_color_name_pair): Return failure | |
10417 | status. | |
10418 | (grub_env_write_color_normal): Ignore bad color names. | |
10419 | (grub_env_write_color_highlight): Likewise. | |
10420 | * normal/main.c (GRUB_MOD_INIT): Set default color names. | |
10421 | ||
ab8ba50d BC |
10422 | 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com> |
10423 | ||
10424 | "shift" command support to GRUB script. | |
10425 | ||
10426 | * include/grub/script_sh.h (grub_script_shift): New prototype. | |
10427 | * script/execute.c (grub_script_shift): New function. | |
10428 | * script/main.c (grub_script_init): Register shift command. | |
10429 | (grub_script_fini): Unregister shift command. | |
10430 | * util/grub-script-check.c (grub_script_cmd_shift): New function. | |
10431 | ||
10432 | * tests/grub_script_shift.in: New testcase. | |
10433 | * conf/tests.rmk: Rules for new testcase. | |
10434 | ||
4d61999e BC |
10435 | 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com> |
10436 | ||
10437 | "continue" command support to GRUB script. | |
10438 | ||
10439 | * script/execute.c (grub_script_execute_cmdwhile): Continue support. | |
10440 | (grub_script_break): Continue support. | |
10441 | * script/main.c (grub_script_init): Register continue command. | |
10442 | (grub_script_fini): Unregister continue command. | |
10443 | ||
10444 | * tests/grub_script_continue.in: New testcase. | |
10445 | * conf/tests.rmk: Rules for new testcase. | |
10446 | ||
4df51e00 BC |
10447 | 2010-08-12 BVK Chaitanya <bvk@dbook> |
10448 | ||
10449 | "break" command support to GRUB script. | |
10450 | ||
10451 | * conf/common.rmk: Rule updates to grub-script-check. | |
10452 | * include/grub/misc.h (grub_min): New function. | |
10453 | * include/grub/script_sh.h (grub_script_init): New prototype. | |
10454 | (grub_script_fini): New prototype. | |
10455 | (grub_script_break): New prototype. | |
10456 | * script/main.c (grub_script_init): New function. | |
10457 | (grub_script_fini): New function. | |
10458 | * script/execute.c (grub_script_break): New function. | |
10459 | * normal/main.c: Calls to grub_script_{init,fini}. | |
10460 | * util/grub-script-check.c (grub_script_break): New function. | |
10461 | ||
10462 | * tests/grub_script_break.in: New testcase. | |
10463 | * conf/tests.rmk: Rules for new test case. | |
10464 | ||
f12c8420 BC |
10465 | 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com> |
10466 | ||
10467 | Function parameters support to GRUB script. | |
10468 | ||
10469 | * script/yylex.l (VARIABLE): Regular expression update. | |
10470 | * script/function.c (grub_script_function_call): Moved ... | |
10471 | * script/execute.c (grub_script_function_call): ... to here. | |
10472 | (grub_script_execute_arglist_to_argv): Removed. | |
10473 | (grub_script_arglist_to_argv): New function. | |
10474 | * script/argv.c: New file. | |
10475 | (grub_script_argv_free): New function. | |
10476 | (grub_script_argv_next): Likewise. | |
10477 | (grub_script_argv_append): Likewise. | |
10478 | (grub_script_argv_split_append): Likewise. | |
10479 | * include/grub/script_sh.h (grub_script_argv): New struct. | |
10480 | (grub_script_argv_free): New function. | |
10481 | (grub_script_argv_next): Likewise. | |
10482 | (grub_script_argv_append): Likewise. | |
10483 | (grub_script_argv_split_append): Likewise. | |
10484 | ||
10485 | * conf/common.rmk (normal.mod): New source script/argv.c. | |
10486 | ||
10487 | * tests/grub_script_echo1.in: More tests. | |
10488 | * tests/grub_script_vars1.in: Likewise. | |
10489 | * tests/grub_script_functions.in: New test case. | |
10490 | * conf/tests.rmk: Rules for new testcase. | |
10491 | ||
8022b748 BC |
10492 | 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com> |
10493 | ||
10494 | Remove grub_script_cmdblock struct. | |
10495 | ||
10496 | * include/grub/script_sh.h: Remove grub_script_cmdblock. | |
10497 | * script/parser.y: Likewise. | |
10498 | * script/execute.c: Rename cmdblock suffix to cmdlist. | |
10499 | * script/script.c: Likewise. | |
10500 | * util/grub-script-check.c: Likewise. | |
10501 | ||
79a6ba61 YB |
10502 | 2010-08-11 Yves Blusseau <blusseau@zetam.org> |
10503 | ||
10504 | * .bzrignore: add grub-macho2img | |
10505 | ||
d04b9414 VS |
10506 | 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com> |
10507 | ||
10508 | * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error. | |
10509 | ||
f947ab49 VS |
10510 | 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com> |
10511 | ||
10512 | Remove the dump of sm712 initialisation sequence. | |
10513 | ||
10514 | * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const. | |
10515 | * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register. | |
10516 | (GRUB_VGA_IO_MISC_WRITE): Likewise. | |
10517 | (GRUB_VGA_CR_*): Added many registers. | |
10518 | (GRUB_VGA_SR_*): Likewise. | |
10519 | (GRUB_VGA_GR_*): Likewise. | |
10520 | (grub_vga_write_arx): New function. | |
10521 | (grub_video_hw_config): New struct. | |
10522 | (grub_vga_set_geometry): New function. | |
10523 | * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and | |
10524 | GRUB_PCI_CLASS_SUBCLASS_VGA. | |
10525 | * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry. | |
10526 | * video/sm712.c (grub_sm712_write_reg): New function | |
10527 | (grub_sm712_read_reg): Likewise. | |
10528 | (grub_sm712_sr_write): Likewise. | |
10529 | (grub_sm712_gr_write): Likewise. | |
10530 | (grub_sm712_cr_write): Likewise. | |
10531 | (grub_sm712_write_arx): Likewise. | |
10532 | (grub_sm712_cr_shadow_write): Likewise. | |
10533 | (grub_sm712_write_dda_lookup): Likewise. | |
10534 | (grub_video_sm712_setup): Initialise the video rather then | |
10535 | blindly replay the dump. | |
10536 | (main) [TEST]: Add a routine to be able to compile as standalone for | |
10537 | tests. | |
10538 | * video/sm712_init.c (sm712_init): Removed. | |
10539 | (sm712_sr_seq1): New array. | |
10540 | (sm712_sr_seq2): Likewise. | |
10541 | ||
f0206638 VS |
10542 | 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com> |
10543 | ||
10544 | * include/grub/vga.h: Add missing grub/pci.h include. | |
10545 | ||
2764da3b YB |
10546 | 2010-08-10 Yves Blusseau <blusseau@zetam.org> |
10547 | ||
10548 | * util/grub-macho2img.c (main): fix typo | |
10549 | ||
cf0c775e VS |
10550 | 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com> |
10551 | ||
10552 | * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE. | |
10553 | (grub_vga_gr_read): Likewise. | |
10554 | (grub_vga_cr_write): Likewise. | |
10555 | (grub_vga_cr_read): Likewise. | |
10556 | (grub_vga_sr_write): Likewise. | |
10557 | (grub_vga_sr_read): Likewise. | |
10558 | (grub_vga_palette_read): Likewise. | |
10559 | (grub_vga_palette_write): Likewise. | |
10560 | * video/sm712.c (GRUB_SM712_REG_BASE): New definition. | |
10561 | (grub_sm712_sr_read): New function. | |
10562 | (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read. | |
10563 | * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE. | |
10564 | ||
07f360e9 RM |
10565 | 2010-08-09 Robert Millan <rmh@gnu.org> |
10566 | ||
10567 | * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter | |
10568 | out unused variables on non-ZFS build. | |
10569 | ||
346c2072 RM |
10570 | 2010-08-08 Robert Millan <rmh@gnu.org> |
10571 | ||
10572 | Fix path generation for sub-filesystems in ZFS. | |
10573 | ||
10574 | * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add | |
10575 | missing slash. | |
10576 | ||
71175420 RM |
10577 | 2010-08-08 Robert Millan <rmh@gnu.org> |
10578 | ||
10579 | * util/grub-fstest.c (read_file, cmd_cmp): Improve error message. | |
10580 | ||
0d8286f3 RM |
10581 | 2010-08-08 Robert Millan <rmh@gnu.org> |
10582 | ||
10583 | * util/grub.d/10_kfreebsd.in: When files required for ZFS do not | |
10584 | exist, issue a proper error message (rely on `ls' for translated | |
10585 | strings). | |
10586 | ||
55dd2924 RM |
10587 | 2010-08-08 Robert Millan <rmh@gnu.org> |
10588 | ||
10589 | Fix grub-probe invocation. | |
10590 | ||
10591 | * util/grub.d/10_kfreebsd.in: s/label/fs_label/g. | |
10592 | ||
d3dd9e80 RM |
10593 | 2010-08-04 Robert Millan <rmh@gnu.org> |
10594 | ||
10595 | * configure.ac: Remove checks for getfsstat() and getmntany(). | |
10596 | Add checks for `<sys/param.h>' and `<sys/mount.h>'. | |
10597 | * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'. | |
10598 | [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'. | |
10599 | [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'. | |
10600 | [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove | |
10601 | function. | |
10602 | (grub_find_zpool_from_dir): Use statfs() instead of indirect matching | |
10603 | via find_mount_point_from_dir() and getfsstat() / getmntany(). | |
10604 | ||
0de22aa9 RM |
10605 | 2010-08-04 Robert Millan <rmh@gnu.org> |
10606 | ||
10607 | * include/grub/emu/misc.h (grub_find_mount_point_from_dir) | |
10608 | (grub_find_zpool_from_mount_point): Merge into ... | |
10609 | (grub_find_zpool_from_dir): ... this. | |
10610 | * kern/emu/misc.c: Likewise. | |
10611 | ||
10612 | * kern/emu/misc.c | |
10613 | (grub_make_system_path_relative_to_its_root): Replace | |
10614 | grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point() | |
10615 | with grub_find_zpool_from_dir(). | |
10616 | * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise. | |
10617 | ||
62858144 RM |
10618 | 2010-08-04 Robert Millan <rmh@gnu.org> |
10619 | ||
10620 | Support OpenSolaris in ZFS device resolution. | |
10621 | ||
10622 | * configure.ac: Check for getmntany(). | |
10623 | * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'. | |
10624 | [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris | |
10625 | support. | |
10626 | ||
9dd6fd50 RM |
10627 | 2010-08-03 Robert Millan <rmh@gnu.org> |
10628 | ||
10629 | Fix grub-emu build. | |
10630 | ||
10631 | * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ... | |
10632 | * include/grub/emu/misc.h: ... here. | |
10633 | ||
10634 | * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ... | |
10635 | * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here. | |
10636 | ||
10637 | * util/misc.c: Remove `<grub/util/libzfs.h>'. | |
10638 | [HAVE_LIBZFS] (libzfs_handle, fini_libzfs) | |
10639 | (grub_get_libzfs_handle): Move to ... | |
10640 | * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs) | |
10641 | (grub_get_libzfs_handle): ... here. | |
10642 | ||
c9f7ff97 BC |
10643 | 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com> |
10644 | ||
10645 | * script/execute.c (grub_script_execute_cmdline): Check for NULL | |
10646 | as command name case. | |
10647 | ||
a870a783 CW |
10648 | 2010-08-02 Colin Watson <cjwatson@ubuntu.com> |
10649 | ||
10650 | * disk/raid.c (insert_array): Select unique numbers for named arrays | |
10651 | as well, for use as keys in the disk cache. | |
10652 | ||
c7db243b RM |
10653 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10654 | ||
10655 | * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the | |
10656 | kFreeBSD device name, except on ZFS where the filesystem label is | |
10657 | used. | |
10658 | (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and | |
10659 | `/boot/zfs/zpool.cache'. | |
10660 | Set mountfrom kernel variable using ${kfreebsd_device}. | |
10661 | ||
f7abdefb RM |
10662 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10663 | ||
10664 | Make it even harder to use uninitialized `libzfs_handle' (and | |
10665 | make the interface a bit simpler). | |
10666 | ||
10667 | * include/grub/util/misc.h (grub_util_init_libzfs) | |
10668 | (libzfs_handle): Remove. | |
10669 | (grub_get_libzfs_handle): New prototype. | |
10670 | ||
10671 | * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static' | |
10672 | attribute. | |
10673 | (grub_util_init_libzfs): Remove. | |
10674 | (grub_get_libzfs_handle): New function. | |
10675 | ||
10676 | * kern/emu/getroot.c (find_root_device_from_libzfs): Use | |
10677 | grub_get_libzfs_handle() to obtain a libzfs handle instead of | |
10678 | accessing `libzfs_handle' directly. | |
10679 | ||
c882acc0 RM |
10680 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10681 | ||
10682 | * include/grub/emu/misc.h (grub_find_mount_point_from_dir) | |
10683 | (grub_find_zpool_from_mount_point): New function prototypes. | |
10684 | ||
10685 | * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ... | |
10686 | * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here. | |
10687 | ||
10688 | * kern/emu/getroot.c (find_mount_point_from_dir): Move to ... | |
10689 | * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove | |
10690 | `static' attribute. | |
10691 | ||
10692 | * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for | |
10693 | finding zpool from mount point into ... | |
10694 | * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this. | |
10695 | ||
10696 | * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When | |
10697 | requested path is part of a ZFS pool, use | |
10698 | grub_find_zpool_from_mount_point() to detect its filesystem name, | |
10699 | and generate a path with `/fsname@path' syntax. | |
10700 | ||
8bfe31d8 CW |
10701 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> |
10702 | ||
10703 | * include/grub/util/libzfs.h (libzfs_init): Set argument list to | |
10704 | (void) rather than () so that this is a proper prototype. | |
10705 | ||
553df63d VS |
10706 | 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
10707 | ||
10708 | * lib/arg.c (grub_arg_show_help): Add the necessary spacing. | |
10709 | ||
8687cf07 VS |
10710 | 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
10711 | ||
10712 | * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if | |
10713 | [HAVE_LIBZFS && HAVE_LIBNVPAIR] | |
10714 | ||
ea9be8ea CW |
10715 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> |
10716 | ||
10717 | * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img. | |
10718 | ||
6eea041a CW |
10719 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> |
10720 | ||
10721 | * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:]. | |
10722 | ||
2cfb45df CW |
10723 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> |
10724 | ||
10725 | * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN | |
10726 | and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting | |
10727 | GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to | |
10728 | disable gfxpayload. | |
10729 | (Shell-like scripting): Add real content. | |
10730 | (Serial terminal): Suggest `terminal_input serial; terminal_output | |
10731 | serial' rather than putting the two commands on separate lines, | |
10732 | since console input will be inoperative after the first command. | |
10733 | (menuentry): Document --class, --users, and --hotkey options. | |
10734 | (terminfo): Describe what `visually-ordered UTF-8' means (thanks, | |
10735 | Vladimir Serbinenko). | |
10736 | ||
7decd202 VS |
10737 | 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
10738 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> | |
10739 | ||
10740 | * kern/misc.c (grub_memset): Optimise to reduce cache stalls. | |
10741 | ||
c882acc0 RM |
10742 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10743 | ||
10744 | * include/grub/emu/misc.h (grub_find_mount_point_from_dir) | |
10745 | (grub_find_zpool_from_mount_point): New function prototypes. | |
10746 | ||
10747 | * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ... | |
10748 | * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here. | |
10749 | ||
10750 | * kern/emu/getroot.c (find_mount_point_from_dir): Move to ... | |
10751 | * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove | |
10752 | `static' attribute. | |
10753 | ||
10754 | * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for | |
10755 | finding zpool from mount point into ... | |
10756 | * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this. | |
10757 | ||
10758 | * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When | |
10759 | requested path is part of a ZFS pool, use | |
10760 | grub_find_zpool_from_mount_point() to detect its filesystem name, | |
10761 | and generate a path with `/fsname@path' syntax. | |
10762 | ||
deb0caa3 RM |
10763 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10764 | ||
10765 | Prevent accidental use of uninitialized libzfs_handle. | |
10766 | ||
10767 | * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ... | |
10768 | * kern/emu/getroot.c (find_root_device_from_libzfs): ... here. | |
10769 | * util/misc.c (grub_util_init_libzfs): Make this function idempotent. | |
10770 | ||
ce04ef47 CW |
10771 | 2010-08-01 Colin Watson <cjwatson@ubuntu.com> |
10772 | ||
10773 | * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching | |
10774 | util/grub.d/10_linux.in). Fixes Debian bug #591093. | |
10775 | ||
ebf53056 RM |
10776 | 2010-08-01 Robert Millan <rmh@gnu.org> |
10777 | ||
10778 | * kern/emu/getroot.c: Include `<grub/util/misc.h>'. | |
8687cf07 | 10779 | |
3710bb6b RM |
10780 | 2010-07-31 Robert Millan <rmh@gnu.org> |
10781 | ||
10782 | * util/grub.d/10_kfreebsd.in: Make module handling more generic. | |
10783 | ||
8072efeb RM |
10784 | 2010-07-31 Robert Millan <rmh@gnu.org> |
10785 | ||
10786 | * kern/emu/misc.c: Add missing license header. | |
10787 | ||
3169f4c7 RM |
10788 | 2010-07-31 Robert Millan <rmh@gnu.org> |
10789 | ||
10790 | * configure.ac: Check for `libzfs.h' and `libnvpair.h'. | |
10791 | ||
10792 | * include/grub/util/libnvpair.h: Include `<config.h>'. | |
10793 | [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of | |
10794 | declaring libnvpair prototypes ourselves. | |
10795 | * include/grub/util/libzfs.h: Include `<config.h>'. | |
10796 | [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of | |
10797 | declaring libzfs prototypes ourselves. | |
10798 | ||
10799 | (libzfs_handle): Moved to ... | |
10800 | * include/grub/util/misc.h (libzfs_handle): ... here. | |
10801 | Include `<grub/util/libzfs.h>'. | |
10802 | ||
c9a00aee RM |
10803 | 2010-07-30 Robert Millan <rmh@gnu.org> |
10804 | ||
10805 | * include/grub/emu/misc.h: Add missing license header. | |
10806 | ||
a184f9c8 RM |
10807 | 2010-07-30 Robert Millan <rmh@gnu.org> |
10808 | ||
10809 | Enable `grub-probe -t device' resolution on ZFS. | |
10810 | ||
10811 | * configure.ac: Check for getfsstat(), libzfs and libnvpair. | |
10812 | * include/grub/util/libnvpair.h: New file. | |
10813 | * include/grub/util/libzfs.h: New file. | |
10814 | ||
10815 | * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'. | |
10816 | [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and | |
10817 | `<grub/util/libnvpair.h>'. | |
10818 | [HAVE_GETFSSTAT]: Include `<sys/mount.h>'. | |
10819 | ||
10820 | (find_mount_point_from_dir): New static function. | |
10821 | [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New | |
10822 | function. | |
10823 | [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use | |
10824 | find_root_device_from_libzfs() before ressorting to find_root_device(). | |
10825 | ||
10826 | * include/grub/util/misc.h (grub_util_init_libzfs): New function | |
10827 | prototype. | |
10828 | * util/misc.c: Include `<grub/util/libzfs.h>'. | |
10829 | (grub_util_init_libzfs): New function. | |
10830 | [HAVE_LIBZFS] (libzfs_handle): New global variable. | |
10831 | [HAVE_LIBZFS] (fini_libzfs): New static function. | |
10832 | (grub_util_init_libzfs): New function. | |
10833 | * util/grub-probe.c (main): Call grub_util_init_libzfs(). | |
10834 | ||
f7790cdd RM |
10835 | 2010-07-30 Robert Millan <rmh@gnu.org> |
10836 | ||
10837 | * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root) | |
10838 | (xmalloc, xrealloc, xstrdup, xasprintf): Add | |
10839 | `warn_unused_result' attribute. | |
10840 | * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen) | |
10841 | (grub_xasprintf, grub_xvasprintf): Likewise. | |
10842 | * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype. | |
10843 | ||
0806b63c RM |
10844 | 2010-07-29 Robert Millan <rmh@gnu.org> |
10845 | ||
10846 | * util/grub-probe.c (PRINT_FS_LABEL): New enum value. | |
10847 | (probe): Handle `PRINT_FS_LABEL'. | |
10848 | (main): Handle `-t fs_label'. | |
10849 | ||
9f841f5c RM |
10850 | 2010-07-29 Robert Millan <rmh@gnu.org> |
10851 | ||
10852 | * configure.ac: Remove grub-mkisofs checks. | |
10853 | ||
46371121 VS |
10854 | 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com> |
10855 | ||
10856 | * util/ieee1275/grub-install.in: Don't use empty grub_device. | |
10857 | Reported by: Lennart Sorensen. | |
10858 | ||
10859 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> | |
10860 | ||
10861 | * util/grub.d/00_header.in: Remove compatibility with terminal.mod | |
10862 | prior to terminal_input/terminal_output separation. It's been over 1.5 | |
10863 | years and those versions weren't widely deployed. | |
10864 | ||
a9600892 CW |
10865 | 2010-07-22 Colin Watson <cjwatson@ubuntu.com> |
10866 | ||
10867 | * disk/raid.c (insert_array): Don't count named arrays when looking | |
10868 | for unused array numbers. | |
697e053c | 10869 | Reported and tested by: Michael Guntsche. |
a9600892 | 10870 | |
c03507df CW |
10871 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10872 | ||
10873 | * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy | |
10874 | implementation of this so that grub-emu links again, with a note | |
10875 | that this should support hotplugging in the future. | |
10876 | ||
b26f1c11 CW |
10877 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10878 | ||
10879 | * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf. | |
10880 | ||
efc9d7f1 CW |
10881 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10882 | ||
10883 | * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t | |
10884 | handle on failure. | |
10885 | (grub_loopback_close): Remove empty function. | |
10886 | (grub_loopback_dev): Remove close method. | |
10887 | ||
dd8ff5c9 CW |
10888 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10889 | ||
10890 | Disable EFI cursor when the EFI console becomes inactive. | |
10891 | ||
10892 | * term/efi/console.c (grub_efi_console_init): New function. | |
10893 | (grub_efi_console_fini): New function. | |
10894 | (grub_console_term_output): Register init and fini methods. | |
10895 | ||
5e3bec67 VS |
10896 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
10897 | ||
10898 | * tests/util/grub-shell-tester.in: Remove bashism and declare as | |
10899 | sh script. | |
10900 | ||
afaec079 VS |
10901 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
10902 | ||
10903 | * disk/loopback.c (grub_loopback): Replace filename with file. | |
10904 | (delete_loopback): Handle new semantics. | |
10905 | (grub_cmd_loopback): Likewise. | |
10906 | (grub_loopback_iterate): Likewise. | |
10907 | (grub_loopback_close): Likewise. | |
10908 | ||
a6a11f3c VS |
10909 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
10910 | ||
10911 | * util/i386/efi/grub-install.in: Revert to platform-specific behaviour | |
10912 | with -p "". | |
10913 | Reported by: Tito Keitel. | |
10914 | ||
64a638b0 VS |
10915 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
10916 | ||
10917 | * docs/grub.texi (Naming convention): Document new naming convention. | |
10918 | ||
ab8ba957 VS |
10919 | 2010-07-20 Vadim Solomin <vadic052@gmail.com> |
10920 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> | |
10921 | ||
10922 | Generate device.map in something closer to the old ordering. | |
10923 | ||
10924 | * util/deviceiter.c (struct device): New declaration. | |
10925 | (compare_file_names): Rename to ... | |
10926 | (compare_devices): ... this. Sort by kernel name in preference to | |
10927 | the stable by-id name, but keep the latter as a fallback comparison. | |
10928 | Update header comment. | |
10929 | (grub_util_iterate_devices) [__linux__]: Construct and sort an array | |
10930 | of `struct device' rather than of plain file names. | |
10931 | ||
a29d6a4b TF |
10932 | 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com> |
10933 | ||
10934 | * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64 | |
10935 | on i386. | |
10936 | ||
39d824e8 VS |
10937 | 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
10938 | ||
10939 | * commands/acpi.c (setup_common_tables): Use sizeof instead of | |
10940 | hardcoding size. | |
10941 | (setv1table): Likewise. | |
10942 | ||
f058276b FZ |
10943 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10944 | ||
10945 | * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices, | |
10946 | removing the homehost if present. | |
10947 | * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function. | |
10948 | (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices, | |
10949 | removing the homehost if present. | |
10950 | (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm | |
10951 | if possible. | |
10952 | * util/i386/pc/grub-setup.c (main): Handle md/* devices. | |
10953 | ||
10954 | * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector | |
10955 | parameter. Set its pointer target to 0. | |
10956 | * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector | |
10957 | parameter. Set its pointer target to 0 for 0.9 metadata, or to the | |
10958 | `data_offset' value from the superblock for 1.x metadata. | |
10959 | * disk/raid.c (grub_raid_read): Offset reads by the start sector of | |
10960 | data on the device. | |
10961 | (insert_array): Record the start sector of data on the device. | |
10962 | (grub_raid_register): Pass start_sector parameters to | |
10963 | grub_raid_list->detect and insert_array. | |
10964 | * include/grub/raid.h (struct grub_raid_array): Add start_sector | |
10965 | member. | |
10966 | (struct grub_raid): Add start_sector parameter to `detect'. | |
10967 | ||
10968 | * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove | |
10969 | __attribute__ ((packed)), leaving a comment. | |
10970 | (grub_mdraid_detect): Split out 0.9 and 1.x detection to ... | |
10971 | (grub_mdraid_detect_09): ... here and ... | |
10972 | (grub_mdraid_detect_1x): ... here. | |
10973 | ||
10974 | 2010-07-20 Peter Henn <peter.henn@web.de> | |
10975 | ||
10976 | * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x | |
10977 | chunk size and disk size, which are already given as sector counts | |
10978 | as distinct from the 0.90 units. Fetch the correct device number | |
10979 | from the role table instead of using the table index. | |
10980 | ||
10981 | 2010-07-20 Felix Zielcke <fzielcke@z-51.de> | |
10982 | ||
10983 | * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL. | |
10984 | * disk/mdraid_linux.c (grub_raid_super_1x): New structure. | |
10985 | (WriteMostly1): New macro. | |
10986 | Set array->name to NULL for metadata format 0.90. Add support for | |
10987 | metadata 1.x. Fix some comments. | |
10988 | * disk/raid.c (): Add support for name based RAID arrays. Fix a | |
10989 | few comments. | |
10990 | * util/getroot.c (grub_util_get_grub_dev): Add support for | |
10991 | /dev/md/name style devices. | |
10992 | ||
4b761da9 CW |
10993 | 2010-07-20 Colin Watson <cjwatson@ubuntu.com> |
10994 | ||
10995 | * .bzrignore: Ignore 20_linux_xen. | |
10996 | ||
5771289a CW |
10997 | 2010-07-17 Colin Watson <cjwatson@ubuntu.com> |
10998 | ||
10999 | * util/import_unicode.py: Remove unnecessary imports. | |
11000 | ||
5dab68df AN |
11001 | 2010-07-17 Aleš Nesrsta <starous@volny.cz> |
11002 | ||
11003 | Hotplugging and USB hub support. | |
11004 | ||
11005 | * bus/usb/ohci.c (grub_ohci_td): Add convenience fields. | |
11006 | (grub_ohci): Likewise. | |
11007 | (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition. | |
11008 | (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise. | |
11009 | (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise. | |
11010 | (GRUB_OHCI_CTRL_EDS): Likewise. | |
11011 | (GRUB_OHCI_BULK_EDS): Likewise. | |
11012 | (GRUB_OHCI_TDS): Likewise. | |
11013 | (GRUB_OHCI_ED_ADDR_MASK): Likewise. | |
11014 | (grub_ohci_ed_phys2virt): New function. | |
11015 | (grub_ohci_virt_to_phys): Likewise. | |
11016 | (grub_ohci_td_phys2virt): Likewise. | |
11017 | (grub_ohci_td_virt2phys): Likewise. | |
11018 | (grub_ohci_pci_iter): Allocate memory and don't wait for stable | |
11019 | attachment. | |
11020 | (grub_ohci_find_ed): New function. | |
11021 | (grub_ohci_alloc_td): Likewise. | |
11022 | (grub_ohci_free_td): Likewise. | |
11023 | (grub_ohci_free_tds): Likewise. | |
11024 | (grub_ohci_transfer): Use previously allocated memory. | |
11025 | (grub_ohci_portstatus): Reset status changed bit. | |
11026 | (grub_ohci_detect_dev): Supply status changed. | |
11027 | (grub_ohci_fini_hw): Free memory. | |
11028 | (grub_ohci_restore_hw): Reallocate memory. | |
11029 | * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable. | |
11030 | Reset status change. | |
11031 | (grub_uhci_detect_dev): Supply status_change. | |
11032 | * bus/usb/usb.c (attach_hooks): New var. | |
11033 | (grub_usb_device_attach): New function. | |
11034 | (grub_usb_register_attach_hook_class): Likewise. | |
11035 | (grub_usb_unregister_attach_hook_class): Likewise. | |
11036 | * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly. | |
11037 | (grub_usb_add_hub): Reset connection changed bit. | |
11038 | (attach_root_port): New function. | |
11039 | (grub_usb_root_hub): Likewise. | |
11040 | (poll_nonroot_hub): Likewise. | |
11041 | (grub_usb_poll_devices): Likewise. | |
11042 | * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing. | |
11043 | * disk/usbms.c (grub_usbms_open): Use device hooks. | |
11044 | (grub_usbms_iterate) :Poll devices. | |
11045 | (grub_usbms_finddevs): Split into ... | |
11046 | (grub_usbms_attach): ... this ... | |
11047 | (grub_usbms_attach): ... and this. | |
11048 | * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed | |
11049 | in detect_dev. | |
11050 | (grub_usb_interface): New fields attached and detach_hook. | |
11051 | (grub_usb_attach_hook_class): New type. | |
11052 | (grub_usb_attach_desc): New struct. | |
11053 | (grub_usb_register_attach_hook_class): New function. | |
11054 | (grub_usb_unregister_attach_hook_class): Likewise. | |
11055 | (grub_usb_poll_devices): Likewise. | |
11056 | (grub_usb_device_attach): Likewise. | |
11057 | * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const. | |
11058 | (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise. | |
11059 | ||
3222efaf VS |
11060 | 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com> |
11061 | ||
11062 | * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition. | |
11063 | * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD | |
11064 | delta determination style. Works with most NetBSD partitions too. | |
11065 | ||
139b714a VS |
11066 | 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com> |
11067 | ||
11068 | * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion. | |
11069 | * partmap/bsdlabel.c [GRUB_UTIL]: Likewise. | |
11070 | ||
986aad56 VS |
11071 | 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com> |
11072 | ||
11073 | * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference. | |
11074 | ||
99be513c AB |
11075 | 2010-07-14 Anton Blanchard <anton@samba.org> |
11076 | ||
11077 | * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject | |
11078 | ET_DYN files. | |
11079 | ||
18075f62 GS |
11080 | 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com> |
11081 | ||
11082 | * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS. | |
11083 | ||
8d9a5b15 GS |
11084 | 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com> |
11085 | ||
11086 | * kern/partition.c (grub_partition_check_containment): New function to | |
11087 | check that a partition is physically contained in a parent. Since | |
11088 | offsets are relative (and non-negative), this reduces to checking that | |
11089 | the partition ends before its parent. | |
11090 | (grub_partition_map_probe): Discard out-of-range sub-partitions. | |
11091 | (grub_partition_iterate): Likewise. | |
11092 | * include/grub/partition.h (grub_partition_map): Slightly more detailed | |
11093 | comments. | |
11094 | * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard | |
11095 | partitions that start before their parent, and add debug printfs. | |
11096 | ||
19563c25 CW |
11097 | 2010-07-13 Colin Watson <cjwatson@ubuntu.com> |
11098 | ||
11099 | * Makefile.in (.SUFFIX): Spell correctly, as ... | |
11100 | (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a | |
11101 | bare module name without `.mod', e.g. `test') tried to invoke a | |
11102 | Modula-2 compiler. | |
11103 | ||
1a1f1e67 CW |
11104 | 2010-07-13 Colin Watson <cjwatson@ubuntu.com> |
11105 | ||
11106 | * README: Point to the Info manual. | |
11107 | ||
811b0dca JS |
11108 | 2010-07-13 Jiro SEKIBA <jir@unicus.jp> |
11109 | ||
11110 | * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate | |
11111 | 2nd superblock position from partition size. | |
11112 | ||
e4f4eafc CW |
11113 | 2010-07-10 Colin Watson <cjwatson@ubuntu.com> |
11114 | ||
11115 | * Makefile.in (MAINTAINER_CLEANFILES): Remove | |
11116 | unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and | |
11117 | unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not | |
11118 | outputs. | |
11119 | ||
4274c30f VS |
11120 | 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
11121 | ||
11122 | Restructure SCSI .id handling. | |
11123 | Reported and tested by: Aleš Nesrsta. | |
11124 | ||
11125 | * disk/ata.c (grub_atapi_close): Removed. All users updated. | |
11126 | (grub_atapi_dev): Changed .name to "ata". New field .id. | |
11127 | * disk/usbms.c (grub_usbms_close): Removed. All users updated. | |
11128 | (grub_usbms_dev): New field .id. | |
11129 | * disk/scsi.c (grub_scsi_iterate): Generate name. | |
11130 | (grub_scsi_open): Parse name. | |
11131 | * include/grub/scsi.h (grub_make_scsi_id): New function. | |
11132 | (grub_scsi_dev): Change iterate and open to number instead of naming | |
11133 | busses. All users updated. | |
11134 | (grub_scsi): Remove name. Add .bus. | |
11135 | ||
5bc24388 VS |
11136 | 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
11137 | ||
11138 | * commands/help.c (grub_cmd_help): Fix a typo. | |
11139 | ||
249975ba VS |
11140 | 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
11141 | ||
11142 | * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting. | |
11143 | Reported and tested by: Colin Watson. | |
11144 | ||
3eaac1a1 VS |
11145 | 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com> |
11146 | ||
11147 | * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary | |
11148 | in this context. | |
11149 | ||
becce1b1 VS |
11150 | 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com> |
11151 | ||
11152 | * tests/util/grub-shell.in: Remove bashisms and declare as sh script. | |
11153 | ||
f7bf0918 CW |
11154 | 2010-07-07 Colin Watson <cjwatson@ubuntu.com> |
11155 | ||
11156 | * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix | |
11157 | indentation. | |
11158 | ||
0b0f9620 CW |
11159 | 2010-07-06 Colin Watson <cjwatson@ubuntu.com> |
11160 | ||
11161 | * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c | |
11162 | and disk/raid6_recover.c. | |
11163 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
11164 | * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise. | |
11165 | ||
1e545469 CW |
11166 | 2010-07-06 Colin Watson <cjwatson@ubuntu.com> |
11167 | ||
11168 | * term/gfxterm.c (repaint_schedulded): Rename to ... | |
11169 | (repaint_scheduled): ... this. Update all callers. | |
11170 | (repaint_was_schedulded): Rename to ... | |
11171 | (repaint_was_scheduled): ... this. Update all callers. | |
11172 | ||
5357687a CW |
11173 | 2010-07-06 Colin Watson <cjwatson@ubuntu.com> |
11174 | ||
11175 | * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices, | |
11176 | which we expect to be handled by upper layers. | |
11177 | ||
29d7e783 BC |
11178 | 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com> |
11179 | ||
11180 | * bus/usb/usbhub.c: #include time.h header. | |
11181 | ||
37582066 CW |
11182 | 2010-07-06 Colin Watson <cjwatson@ubuntu.com> |
11183 | ||
11184 | * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of | |
11185 | entry_name also for entries without stat blocks (e.g. ".."); fixes | |
11186 | corruption of the first entry in a directory. | |
11187 | ||
c8c06953 CW |
11188 | 2010-07-06 Colin Watson <cjwatson@ubuntu.com> |
11189 | ||
11190 | * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND | |
11191 | after setting gfxterm as the active terminal. GRUB_BACKGROUND | |
11192 | doesn't work otherwise. | |
11193 | ||
e75056f1 CW |
11194 | 2010-07-05 Colin Watson <cjwatson@ubuntu.com> |
11195 | ||
11196 | * docs/grub.texi (Features): Update list of supported file systems. | |
11197 | (GNU/Linux): Update for GRUB 2. | |
11198 | (Serial terminal): Remove mention of --disable-serial, which was a | |
11199 | GRUB Legacy configure option. Update instructions to use | |
11200 | `terminal_input' and `terminal_output' rather than `terminal'. | |
11201 | (Vendor power-on keys): Copy-edit. Add cross-references to `Simple | |
11202 | configuration' and `Installing GRUB using grub-install'. | |
11203 | (Menu entry editor): Update for GRUB 2. | |
11204 | (terminfo): Add vt100-color, ieee1275, and dumb terminal types. | |
11205 | Document new -a, -u, and -v options. | |
11206 | (initrd): New section. | |
11207 | (initrd16): New section. | |
11208 | (linux): New section. | |
11209 | (linux16): New section. | |
11210 | (search): The `var' argument to `--set' is optional. | |
11211 | (GRUB only offers a rescue shell): Go into a little more detail on | |
11212 | drive ordering. | |
11213 | ||
5cf69151 CW |
11214 | 2010-07-05 Colin Watson <cjwatson@ubuntu.com> |
11215 | ||
11216 | * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined. | |
11217 | ||
e3f90044 CW |
11218 | 2010-07-05 Colin Watson <cjwatson@ubuntu.com> |
11219 | ||
11220 | * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt, | |
11221 | unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c. | |
11222 | ||
38d8f4f3 CW |
11223 | 2010-07-05 Colin Watson <cjwatson@ubuntu.com> |
11224 | ||
11225 | * util/i386/pc/grub-setup.c (setup): Rename prefix to | |
11226 | install_prefix, in line with install_dos_part and install_bsd_part. | |
11227 | Add new prefix variable, which is copied to install_prefix after | |
11228 | comparing core.img in memory with the one read from disk in the | |
11229 | no-embedding case, and use that rather than overwriting | |
11230 | install_prefix immediately when installing to a partition. | |
11231 | Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa | |
11232 | Bicakci. | |
11233 | ||
57ebd41e GS |
11234 | 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com> |
11235 | ||
11236 | * configure.ac: Avoid == in test command, it's not portable. | |
11237 | * util/grub.d/30_os-prober.in: Likewise. | |
11238 | ||
cb7f64b2 CW |
11239 | 2010-07-04 Colin Watson <cjwatson@ubuntu.com> |
11240 | ||
11241 | * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap. | |
11242 | ||
6b654bb0 GS |
11243 | 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com> |
11244 | ||
11245 | * util/i386/pc/grub-setup.c (setup): Do not embed when there are | |
11246 | multiple (top-level) partmaps. | |
11247 | ||
72a2026d VS |
11248 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11249 | ||
11250 | * util/i386/efi/grub-install.in: Don't use empty grub_device. | |
fcda2a1f | 11251 | Reported by: Tino Keitel. |
72a2026d | 11252 | |
df3eb88f VS |
11253 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11254 | ||
11255 | Bidi and diacritics support. | |
11256 | ||
11257 | * Makefile.in (widthspec.bin): New target. | |
11258 | (widthspec.h): Likewise. | |
11259 | (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available. | |
11260 | * autogen.sh: Generate unidata.c. | |
11261 | * commands/cat.c (grub_cmd_cat): Don't use grub_putchar. | |
11262 | * commands/ls.c (grub_ls_list_devices): Likewise. | |
11263 | (grub_ls_list_files): Likewise. | |
11264 | * commands/minicmd.c (grub_mini_cmd_cat): Likewise. | |
11265 | (grub_mini_cmd_lsmod): Likewise. | |
11266 | * commands/read.c: Likewise. | |
11267 | * kern/corecmd.c (grub_core_cmd_ls): Likewise. | |
11268 | * kern/rescue_reader.c (grub_rescue_read_line): Likewise. | |
11269 | * lib/arg.c (grub_arg_show_help): Likewise. | |
11270 | * lib/crypto.c (grub_password_get): Likewise. | |
11271 | * normal/auth.c (grub_username_get): Likewise. | |
11272 | * normal/misc.c (grub_normal_print_device_info): Likewise. | |
11273 | * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb. | |
11274 | * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c. | |
11275 | (gfxmenu_mod_SOURCES): Add gfxmenu/font.c. | |
11276 | (normal/charset.c_DEPENDENCIES): New variable. | |
11277 | (normal_mod_SOURCES): Add normal/charset.c and unidata.c. | |
11278 | (pkglib_MODULES): Remove charset.mod. | |
11279 | (charset_mod_SOURCES): Removed. | |
11280 | (charset_mod_CFLAGS): Likewise. | |
11281 | (charset_mod_LDFLAGS): Likewise. | |
11282 | (pkglib_MODULES) [ieee1275]: Remove terminfo.mod. | |
11283 | * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c | |
11284 | and term/tparm.c. | |
11285 | * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise. | |
11286 | * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise. | |
11287 | (kernel_img_HEADERS): Add terminfo.h. | |
11288 | * font/font.c (ascii_glyph_lookup): Return NULL on failure. | |
11289 | Fill ->font. Reverse ascii bitmaps. | |
11290 | (grub_font_get_xheight): New function. | |
11291 | * font/font.c (grub_font_get_string_width): Moved from here ... | |
11292 | * gfxmenu/font.c (grub_font_get_string_width): ... here. | |
11293 | * font/font.c (grub_font_draw_string): Moved from here ... | |
11294 | * gfxmenu/font.c (grub_font_draw_string): ... here. | |
11295 | * font/font.c (grub_font_dup_glyph): New function. | |
11296 | (grub_font_blit_glyph): Likewise. | |
11297 | (grub_font_blit_glyph_mirror): Likewise. | |
11298 | (blit_comb): Likewise. | |
11299 | (grub_font_construct_dry_run): Likewise. | |
11300 | (grub_font_get_constructed_device_width): Likewise. | |
11301 | (grub_font_construct_glyph): Likewise. | |
11302 | * include/grub/charset.h (grub_ucs4_to_utf8): New proto. | |
11303 | * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ... | |
11304 | * include/grub/charset.h (grub_utf8_to_ucs4): ... here. | |
11305 | * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant. | |
11306 | (GRUB_FONT_CODE_RIGHT_JOINED): Likewise. | |
11307 | (GRUB_FONT_CODE_LEFT_JOINED): Likewise. | |
11308 | (grub_font_get_xheight): New proto. | |
11309 | (grub_font_get_constructed_device_width): Likewise. | |
11310 | (grub_font_construct_glyph): Likewise. | |
11311 | * include/grub/font.h (grub_font_get_string_width): Moved from here ... | |
11312 | * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here. | |
11313 | * include/grub/font.h (grub_font_draw_string): Moved from here ... | |
11314 | * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here. | |
11315 | * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here.. | |
11316 | * include/grub/i386/pc/console.h (grub_console_putchar): ... here. | |
11317 | * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed. | |
11318 | (grub_console_getcharwidth): Likewise. | |
11319 | * include/grub/misc.h (grub_xputs): New proto. | |
11320 | (grub_puts): Inlined. | |
11321 | * include/grub/normal.h (grub_print_ucs4): Add margin specification. | |
11322 | (grub_normal_get_line_counter): Removed. | |
11323 | (grub_install_newline_hook): Likewise. | |
11324 | (grub_normal_get_char_counter): New proto. | |
11325 | (grub_normal_reset_more): Likewise. | |
11326 | (grub_xputs_normal): Likewise. | |
11327 | * include/grub/powerpc/ieee1275/console.h: Removed. | |
11328 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
11329 | * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition. | |
11330 | (GRUB_TERM_CODE_TYPE_ASCII): Likewise. | |
11331 | (GRUB_TERM_CODE_TYPE_CP437): Likewise. | |
11332 | (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise. | |
11333 | (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise. | |
11334 | (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise. | |
11335 | (grub_term_input): Pass reference to self. All users updated. | |
11336 | (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth. | |
11337 | Pass reference to self. New fields normal_color, highlight_color and | |
11338 | data. All users updated. | |
11339 | (grub_putchar): Removed. | |
11340 | (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore. | |
11341 | (grub_unicode_estimate_width): New function. | |
11342 | (grub_term_getcharwidth): Add defaults. | |
11343 | (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition. | |
11344 | (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise. | |
11345 | (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise. | |
11346 | (grub_cls): Remove EXPORT_FUNC. | |
11347 | (grub_setcolorstate): Inline. | |
11348 | (grub_newline_hook): Removed. | |
11349 | * include/grub/terminfo.h: Rewritten. All users updated. | |
11350 | * include/grub/unicode.h: New file. | |
11351 | * include/grub/video.h (grub_video_signed_rect): New type. | |
11352 | * kern/emu/console.c (grub_console_highlight_color): Removed. | |
11353 | (grub_console_normal_color): Likewise. | |
11354 | (grub_console_standard_color): Made static. | |
11355 | (grub_ncurses_putchar): Remove mapping. | |
11356 | (grub_ncurses_getcharwidth): Removed. | |
11357 | (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII. | |
11358 | (grub_ncurses_setcolor): Removed. | |
11359 | (grub_ncurses_getcolor): Likewise. | |
11360 | * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ... | |
11361 | (grub_console_putchar): ... this. | |
11362 | (grub_console_putchar): Handle argument difference. | |
11363 | * kern/ieee1275/init.c (grub_machine_init): Split console_init into | |
11364 | console_init_early and console_init_lately. | |
11365 | * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise. | |
11366 | * kern/misc.c (grub_puts): Removed. | |
11367 | (grub_vprintf): Store UTF-8 string instead of outputting it directly. | |
11368 | (grub_vsnprintf_real): Remove str = NULL support. | |
11369 | * kern/misc.c (grub_utf8_to_ucs4): Move from here ... | |
11370 | * normal/charset.c (grub_utf8_to_ucs4): ... here. | |
11371 | * kern/term.c (grub_putcode): Renamed to ... | |
11372 | (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code. | |
11373 | (grub_putchar): Removed. | |
11374 | (grub_xputs_dumb): New function. | |
11375 | (grub_xputs): New variable. | |
11376 | * lib/charset.c: Move from here ... | |
11377 | * normal/charset.c: ... to here. | |
11378 | (grub_ucs4_to_utf8): New function. | |
11379 | (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8. | |
11380 | (join_types): New variable. | |
11381 | (unpack_join): New function. | |
11382 | (bidi_types): New variable. | |
11383 | (unpack_bidi): New function. | |
11384 | (get_bidi_type): Likewise. | |
11385 | (get_join_type): Likewise. | |
11386 | (is_mirrored): Likewise. | |
11387 | (grub_unicode_get_comb_type): Likewise. | |
11388 | (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise. | |
11389 | (is_type_after): Likewise. | |
11390 | (grub_unicode_aglomerate_comb): Likewise. | |
11391 | (bidi_line_wrap): Likewise. | |
11392 | (grub_bidi_line_logical_to_visual): Likewise. | |
11393 | (grub_bidi_logical_to_visual): Likewise. | |
11394 | (grub_unicode_mirror_code): Likewise. | |
11395 | (grub_unicode_shape_code): Likewise. | |
11396 | * normal/cmdline.c (grub_cmdline_get): Reset more counter. | |
11397 | Don't use grub_putchar. | |
11398 | * normal/main.c (grub_normal_init_page): Use grub_putcode. | |
11399 | (grub_normal_reader_init): Likewise. | |
11400 | (grub_xputs_saved): New variable. | |
11401 | (GRUB_MOD_INIT): Set grub_xputs. | |
11402 | (GRUB_MOD_FINI): Restore grub_xputs. | |
11403 | * normal/menu.c (grub_wait_after_message): Don't use grub_putchar. | |
11404 | (menu_init): Avoid printing gfxmenu error. | |
11405 | (show_menu): Use grub_normal_get_char_counter. | |
11406 | * normal/menu_entry.c (update_screen): Fix out-of-array. | |
11407 | (complete): Avoid NULL dereferencing. | |
11408 | * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar. | |
11409 | * normal/menu_text.c (print_spaces): Removed. | |
11410 | (grub_print_ucs4): Likewise. | |
11411 | (grub_print_message_indented): Use grub_print_ucs4. | |
11412 | (print_message): Use grub_putcode. | |
11413 | (print_entry): Hanlde diacritics. | |
11414 | * normal/term.c (term_state): New type. | |
11415 | (grub_more_lines): Removed. | |
11416 | (term_states): New variable. | |
11417 | (grub_normal_line_counter): Renamed to .. | |
11418 | (grub_normal_char_counter): ...this. All users updated. | |
11419 | (grub_normal_get_line_counter): Renamed to ... | |
11420 | (grub_normal_get_char_counter): ... this. | |
11421 | (grub_normal_reset_more): New function. | |
11422 | (process_newline): Removed. | |
11423 | (print_more): New function. | |
11424 | (grub_install_newline_hook): Removed. | |
11425 | (map_code): New function. | |
11426 | (grub_puts_terminal): Use grub_print_ucs4. | |
11427 | (putglyph): New function. | |
11428 | (putcode_real): Likewise. | |
11429 | (grub_putcode): Use putcode_real. | |
11430 | (get_maxwidth): New function. | |
11431 | (get_startwidth): Likewise. | |
11432 | (print_ucs4_terminal): Likewise. | |
11433 | (find_term_state): Likewise. | |
11434 | (put_glyphs_terminal): Likewise. | |
11435 | (print_backlog): Likewise. | |
11436 | (print_ucs4_real): Likewise. | |
11437 | (grub_print_ucs4): Likewise. | |
11438 | (grub_xputs_normal): Likewise. | |
11439 | * term/efi/console.c (grub_console_putchar): Output diacritics. | |
11440 | (grub_console_getcharwidth): Removed. | |
11441 | (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL. | |
11442 | * term/gfxterm.c (clear_char): Free chars. | |
11443 | (scroll_up): Avoid leaking memory. | |
11444 | (grub_gfxterm_putchar): Support diacritics. | |
11445 | (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL. | |
11446 | * term/i386/pc/console.c (grub_console_term_output): Declare as | |
11447 | GRUB_TERM_CODE_TYPE_VGA. | |
11448 | * term/i386/pc/vga.c (grub_vga_term): Declare as | |
11449 | GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS. | |
11450 | * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as | |
11451 | GRUB_TERM_CODE_TYPE_VGA. | |
11452 | * term/i386/vga_common.c (map_char): Removed. | |
11453 | (grub_console_putchar): Likewise. | |
11454 | (grub_console_getcharwidth): Likewise. | |
11455 | * term/ieee1275/ofconsole.c: Simplify using terminfo. | |
11456 | (colors): Reordered to match terminfo. | |
11457 | (grub_ofconsole_normal_color): Removed. | |
11458 | (grub_ofconsole_writeesc): Likewise. | |
11459 | (grub_ofconsole_highlight_color): Likewise. | |
11460 | (grub_ofconsole_getcharwidth): Likewise. | |
11461 | (grub_ofconsole_setcolorstate): Likewise. | |
11462 | (grub_ofconsole_setcolor): Likewise. | |
11463 | (grub_ofconsole_getcolor): Likewise. | |
11464 | (grub_ofconsole_readkey): Renamed to ... | |
11465 | (readkey): ... this. Remove escape sequence handling. Return -1 on no | |
11466 | key. | |
11467 | (grub_ofconsole_checkkey): Removed. | |
11468 | (grub_ofconsole_getkey): Likewise. | |
11469 | (grub_ofconsole_getxy): Likewise. | |
11470 | (grub_ofconsole_gotoxy): Likewise. | |
11471 | (grub_ofconsole_cls): Likewise. | |
11472 | (grub_ofconsole_refresh): Likewise. | |
11473 | (grub_ofconsole_terminfo_input): New struct. | |
11474 | (grub_ofconsole_terminfo_output): Likewise. | |
11475 | (grub_ofconsole_term_input): Use terminfo. | |
11476 | (grub_ofconsole_term_output): Likewise. | |
11477 | (grub_console_init): Split into ... | |
11478 | (grub_console_init_early): ...this and ... | |
11479 | (grub_console_init_lately): ...this. Use terminfo. | |
11480 | (grub_ofconsole_putchar): Renamed to ... | |
11481 | (put): ... this. Remove mapping. | |
11482 | (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII. | |
11483 | * term/serial.c: Simplify using terminfo. | |
11484 | (xpos): Removed. | |
11485 | (ypos): Likewise. | |
11486 | (keep_track): Likewise. | |
11487 | (registered): Likewise. | |
11488 | (input_buf): Likewise. | |
11489 | (npending): Likewise. | |
11490 | (serial_translate_key_sequence): Likewise. | |
11491 | (fill_input_buf): Likewise. | |
11492 | (grub_serial_checkkey): Likewise. | |
11493 | (grub_serial_getkey): Likewise. | |
11494 | (grub_serial_getxy): Likewise. | |
11495 | (grub_serial_gotoxy): Likewise. | |
11496 | (grub_serial_putchar): Likewise. | |
11497 | (grub_serial_cls): Likewise. | |
11498 | (grub_serial_setcolorstate): Likewise. | |
11499 | (grub_serial_setcursor): Likewise. | |
11500 | (serial_hw_init): Use serial_hw_fetch. | |
11501 | (grub_serial_terminfo_input): New variable. | |
11502 | (grub_serial_terminfo_output): Likewise. | |
11503 | (grub_serial_term_input): Use terminfo. | |
11504 | (grub_serial_term_output): Likewise. | |
11505 | * term/terminfo.c (putstr): Use put. | |
11506 | (grub_terminfo_all_free): New function | |
11507 | (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb. | |
11508 | (grub_terminfo_output_register): New function. | |
11509 | (grub_terminfo_output_unregister): Likewise. | |
11510 | (grub_terminfo_getxy): Likewise. | |
11511 | (grub_terminfo_readkey): Likewise. | |
11512 | (grub_terminfo_checkkey): Likewise. | |
11513 | (grub_terminfo_getkey): Likewise. | |
11514 | (grub_terminfo_input_init): Likewise. | |
11515 | (print_terminfo): Likewise. | |
11516 | (grub_cmd_terminfo): Handle encoding. | |
11517 | (grub_terminfo_gotoxy): Track position. | |
11518 | (grub_terminfo_cls): Likewise. | |
11519 | (grub_terminfo_putchar): Likewise. | |
11520 | (grub_terminfo_setcolorstate): Handle colors | |
11521 | (grub_terminfo_cursor_on): This ... | |
11522 | (grub_terminfo_cursor_off): ... and this merged into ... | |
11523 | (grub_terminfo_setcursor): ... this. | |
11524 | * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing. | |
11525 | * unicode/ArabicShaping.txt: New file (imported from Unicode). | |
11526 | * unicode/BidiMirroring.txt: Likewise. | |
11527 | * unicode/UnicodeData.txt: Likewise. | |
11528 | * unicode/COPYING: Likewise. | |
11529 | * util/grub-editenv.c (grub_putchar): Removed. | |
11530 | (grub_xputs_real): New function. | |
11531 | (grub_xputs): New variable. | |
11532 | * util/grub-fstest.c (grub_putchar): Removed. | |
11533 | (grub_xputs_real): New function. | |
11534 | (grub_xputs): New variable. | |
11535 | * util/grub-mkdevicemap.c (grub_putchar): Removed. | |
11536 | (grub_xputs_real): New function. | |
11537 | (grub_xputs): New variable. | |
11538 | * util/grub-probe.c (grub_putchar): Removed. | |
11539 | (grub_xputs_real): New function. | |
11540 | (grub_xputs): New variable. | |
11541 | * util/grub-script-check.c (grub_putchar): Removed. | |
11542 | (grub_xputs_real): New function. | |
11543 | (grub_xputs): New variable. | |
11544 | * util/i386/pc/grub-setup.c (grub_putchar): Removed. | |
11545 | (grub_xputs_real): New function. | |
11546 | (grub_xputs): New variable. | |
11547 | * util/import_unicode.py: New file. | |
11548 | * util/grub-mkfont.c (ft_errmsgs): New array. | |
11549 | (grub_glyph_info): Make bitmap a pointer. | |
11550 | (file_formats): New type WIDTH_SPEC. | |
11551 | (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs. | |
11552 | (options): Add width-spec. | |
11553 | (help): Likewise. | |
11554 | (add_char): Renamed to ... | |
11555 | (add_glyph): ... this. | |
11556 | (add_glyph): Use index. Show freetype errors. Cut blank space at borders. | |
11557 | (glyph_replace): New type. | |
11558 | (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables. | |
11559 | (add_char): New function. | |
11560 | (add_subst): Likewise. | |
11561 | (process_cursive): Likewise. | |
11562 | (add_font): Handle GSUB. | |
11563 | (write_font_width_spec): New function. | |
11564 | (main): Sort glyphs. | |
11565 | * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ... | |
11566 | * normal/main.c (grub_mini_cmd_clear): ..here. All users updated. | |
11567 | * kern/term.c (grub_cls): Moved from here... | |
11568 | * normal/term.c (grub_cls): ... here. | |
11569 | ||
50f0bcda CW |
11570 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11571 | ||
11572 | * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro, | |
11573 | suitable for using within the format argument of printf when | |
11574 | converting grub_size_t. | |
11575 | * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than | |
11576 | "x" to convert grub_size_t arguments. | |
11577 | ||
40372103 VS |
11578 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11579 | ||
11580 | * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix | |
11581 | too long captions. | |
11582 | (list_get_minimal_size): Take selection box into account. | |
11583 | ||
942a10c7 VS |
11584 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11585 | ||
11586 | * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing | |
11587 | NULL font. | |
11588 | ||
2bdb2892 CW |
11589 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11590 | ||
11591 | * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper | |
11592 | devices when iterating over /dev/disk/by-id; they will be handled | |
11593 | later if appropriate, which they aren't always (e.g. LVM). | |
11594 | ||
e03ed6c1 CW |
11595 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11596 | ||
11597 | * include/grub/misc.h (grub_reboot): Declare as noreturn. | |
11598 | * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system | |
11599 | fails. | |
11600 | (grub_halt): Likewise. | |
11601 | * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if | |
11602 | reset-all fails. | |
11603 | (grub_halt): Don't return, even if all of shut-down, power-off, and | |
11604 | poweroff fail. | |
11605 | ||
47695765 CW |
11606 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11607 | ||
11608 | * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four | |
11609 | arguments, not three. | |
11610 | ||
507736c8 CW |
11611 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11612 | ||
11613 | * util/grub-mkconfig_lib.in (uses_abstraction): New function. | |
11614 | * util/grub.d/10_linux.in: Use it to check for LVM, so that | |
11615 | LVM-on-RAID is handled correctly. | |
11616 | ||
e3c8cd37 CW |
11617 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11618 | ||
11619 | * docs/grub.texi (Changes from GRUB Legacy): New section. | |
11620 | (Future): Fix typo. | |
11621 | ||
8d4a2fec CW |
11622 | 2010-07-02 Colin Watson <cjwatson@ubuntu.com> |
11623 | ||
11624 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes | |
11625 | grub.d/README accidentally ends up executable for one reason or | |
11626 | another. Ignore it. | |
11627 | ||
1c4827be VS |
11628 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11629 | ||
11630 | * partmap/gpt.c (MAX_SECTOR_LOG): New definition. | |
11631 | (gpt_partition_map_iterate): Support non-512B sectors. | |
11632 | ||
d9a0c941 VS |
11633 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11634 | ||
11635 | * kern/efi/init.c (grub_efi_init): Disable watchdog. | |
11636 | Tested by: Seth Goldberg. | |
11637 | ||
48f27e87 VS |
11638 | 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> |
11639 | ||
11640 | * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]: | |
11641 | Properly align mbi. | |
11642 | Reported by: Seth Goldberg. | |
11643 | ||
b0c4f956 VS |
11644 | 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com> |
11645 | ||
11646 | * util/grub-mkrescue.in: Avoid module duplication. | |
11647 | ||
105a2e8c SF |
11648 | 2010-07-01 Sean Finney <seanius@seanius.net> |
11649 | ||
11650 | * util/grub.d/10_linux.in: Don't use UUID for LVM root. | |
11651 | ||
5944958c SF |
11652 | 2010-07-01 Sean Finney <seanius@seanius.net> |
11653 | ||
11654 | * disk/lvm.c (grub_lvm_scan_device): Skip snapshots. | |
11655 | ||
11656 | 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com> | |
11657 | ||
11658 | * disk/lvm.c (grub_lvm_checkvalue): New function. | |
11659 | (grub_lvm_check_flag): Likewise. | |
11660 | ||
b79889ba RM |
11661 | 2010-07-01 Robert Millan <rmh@gnu.org> |
11662 | ||
11663 | * kern/emu/hostdisk.c (convert_system_partition_to_system_disk): | |
11664 | Support 'p' as partition separator on kernel of FreeBSD (used | |
11665 | with GPT labels). | |
11666 | (grub_util_biosdisk_get_grub_dev): Likewise. | |
11667 | ||
ec1d04f1 VS |
11668 | 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com> |
11669 | ||
11670 | Yeeloong firmware port. | |
11671 | ||
11672 | * boot/mips/yeeloong/fwstart.S: New file. | |
11673 | * bus/cs5536.c (gpiodump): New const. | |
11674 | (set_io_space): New function. | |
11675 | (set_iod): Likewise. | |
11676 | (set_p2d): Likewise. | |
11677 | (grub_cs5536_init_geode): Likewise. | |
11678 | * commands/mips/yeeloong/lsspd.c: New file. | |
11679 | * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod. | |
11680 | (serial_mod_SOURCES): New variable. | |
11681 | (serial_mod_CFLAGS): Likewise. | |
11682 | (serial_mod_LDFLAGS): Likewise. | |
11683 | * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c, | |
11684 | term/terminfo.c and term/tparm.c. | |
11685 | (pkglib_IMAGES): Add fwstart.img. | |
11686 | (fwstart_img_SOURCES): New variable. | |
11687 | (fwstart_img_CFLAGS): Likewise. | |
11688 | (fwstart_img_ASFLAGS): Likewise. | |
11689 | (fwstart_img_LDFLAGS): Likewise. | |
11690 | (fwstart_img_FORMAT): Likewise. | |
11691 | (pkglib_MODULES): Add lsspd.mod. | |
11692 | (lsspd_mod_SOURCES): New variable. | |
11693 | (lsspd_mod_CFLAGS): Likewise. | |
11694 | (lsspd_mod_LDFLAGS): Likewise. | |
11695 | (pkglib_MODULES): Add halt.mod. | |
11696 | (halt_mod_SOURCES): New variable. | |
11697 | (halt_mod_CFLAGS): Likewise. | |
11698 | (halt_mod_LDFLAGS): Likewise. | |
11699 | * conf/mips.rmk (pkglib_MODULES): Remove serial.mod. | |
11700 | (serial_mod_SOURCES): Removed. | |
11701 | (serial_mod_CFLAGS): Likewise. | |
11702 | (serial_mod_LDFLAGS): Likewise. | |
11703 | * disk/ata.c (check_device): New function. | |
11704 | (grub_ata_device_initialize): Use check_device. | |
11705 | (grub_ata_iterate): Recheck devices. | |
11706 | (grub_ata_open): Likewise. | |
11707 | (grub_atapi_iterate): Likewise. | |
11708 | (grub_atapi_open): Likewise. | |
11709 | * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro. | |
11710 | (GRUB_ATA_CH1_PORT1): Likewise. | |
11711 | (GRUB_ATA_CH0_PORT2): Likewise. | |
11712 | (GRUB_ATA_CH1_PORT2): Likewise. | |
11713 | * include/grub/mips/loongson.h: New file. | |
11714 | * include/grub/mips/yeeloong/ec.h: Likewise. | |
11715 | * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition. | |
11716 | (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise. | |
11717 | (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove. | |
11718 | * include/grub/misc.h (grub_halt): Declare as noreturn. | |
11719 | * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ... | |
11720 | (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated. | |
11721 | (UART_ENABLE_FIFO_TRIGGER1): New definition. | |
11722 | (UART_ENABLE_DTRRTS): Likewise. | |
11723 | (UART_ENABLE_MODEM): Removed. | |
11724 | (UART_ENABLE_OUT2): New const. | |
11725 | * include/grub/term.h (grub_term_register_input_active): New function. | |
11726 | (grub_term_register_output_active): Likewise. | |
11727 | * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff | |
11728 | argument. | |
11729 | * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify. | |
11730 | (init_pci): New function. | |
11731 | (grub_machine_init): Execute platform init when firmware. Init serial. | |
11732 | (grub_halt): Implement. | |
11733 | (grub_exit): Likewise. | |
11734 | (grub_reboot): Likewise. | |
11735 | * term/serial.c (serial_hw_init): Update macros. | |
11736 | [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup. | |
11737 | * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH. | |
11738 | (image_targets): New target mipsel-yeeloong-flash. | |
11739 | (generate_image): Support IMAGE_YEELOONG_FLASH. | |
11740 | * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition. | |
11741 | (grub_video_sm712_setup): Init card. | |
11742 | (grub_video_sm712_set_palette): Removed. | |
11743 | * video/sm712_init.c: New file. | |
11744 | ||
ff4a70d2 CW |
11745 | 2010-06-30 Colin Watson <cjwatson@ubuntu.com> |
11746 | ||
11747 | * Makefile.in (install-local): Temporarily prepend $(builddir) to | |
11748 | PATH when running help2man and then run it on the unadorned | |
11749 | executable names, rather than passing $(builddir)/* paths to | |
11750 | help2man. This avoids the build directory ending up in generated | |
11751 | manual pages. | |
11752 | ||
1246efeb CW |
11753 | 2010-06-29 Colin Watson <cjwatson@ubuntu.com> |
11754 | ||
11755 | * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e', | |
11756 | to avoid accidents when debugging with 'sh -x'. | |
11757 | * util/grub-mkrescue.in: Likewise. | |
11758 | * util/grub.d/00_header.in: Likewise. | |
11759 | * util/grub.d/10_hurd.in: Likewise. | |
11760 | * util/grub.d/10_kfreebsd.in: Likewise. | |
11761 | * util/grub.d/10_linux.in: Likewise. | |
11762 | * util/grub.d/10_netbsd.in: Likewise. | |
11763 | * util/grub.d/10_windows.in: Likewise. | |
11764 | * util/grub.d/20_linux_xen.in: Likewise. | |
11765 | * util/grub.d/30_os-prober.in: Likewise. | |
11766 | * util/powerpc/ieee1275/grub-mkrescue.in: Likewise. | |
11767 | ||
1ba9b889 CW |
11768 | 2010-06-29 Colin Watson <cjwatson@ubuntu.com> |
11769 | ||
11770 | * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the | |
11771 | last character in the buffer. | |
11772 | Reported by: Vladimir Serbinenko. | |
11773 | ||
dccaf99d RM |
11774 | 2010-06-29 Robert Millan <rmh@gnu.org> |
11775 | ||
11776 | * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}. | |
11777 | (Command-line and menu entry commands): Document `badram' command. | |
11778 | ||
d500ed12 RM |
11779 | 2010-06-28 Robert Millan <rmh@gnu.org> |
11780 | ||
11781 | * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable. | |
11782 | * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram | |
11783 | command using ${GRUB_BADRAM} as parameter. | |
11784 | ||
20bc84a6 CW |
11785 | 2010-06-28 Colin Watson <cjwatson@ubuntu.com> |
11786 | ||
11787 | * docs/grub.texi (Device map): New section. | |
11788 | (Themes): New section (stub). | |
11789 | * Makefile.in (docs/grub.info): The info documentation now builds | |
11790 | without errors. Make sure it stays that way. | |
11791 | ||
4045dee1 VS |
11792 | 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com> |
11793 | ||
11794 | Use normal parser for menu entries. | |
11795 | Reported by: Thomas Frauendorfer | |
11796 | ||
11797 | * include/grub/parser.h (grub_parser_execute): Don't export. | |
11798 | * normal/menu.c (grub_menu_execute_entry_real): New function. | |
11799 | (grub_menu_execute_entry): Use grub_menu_execute_entry_real. | |
11800 | ||
bca58c7b CW |
11801 | 2010-06-28 Colin Watson <cjwatson@ubuntu.com> |
11802 | ||
11803 | * docs/grub.texi (Embedded configuration): New section (replacing | |
11804 | old "Preset Menu" stub). | |
11805 | (Images): New section. | |
11806 | (configfile): Note that any menu entries defined in `file' are shown | |
11807 | immediately. | |
11808 | ||
dec53e63 JT |
11809 | 2010-06-28 Josh Triplett <josh@joshtriplett.org> |
11810 | ||
11811 | * mmap/i386/pc/mmap_helper.S: Set CF on return. | |
11812 | ||
c06e40f7 CW |
11813 | 2010-06-28 Colin Watson <cjwatson@ubuntu.com> |
11814 | ||
11815 | * util/grub-install.in: Add --debug-image= option. | |
11816 | ||
cb88052b CW |
11817 | 2010-06-28 Colin Watson <cjwatson@ubuntu.com> |
11818 | ||
11819 | Change grub-mkdevicemap to emit /dev/disk/by-id/ names where | |
11820 | possible on Linux. | |
11821 | ||
11822 | * util/deviceiter.c (check_device): Rename to ... | |
11823 | (check_device_readable_unique): ... this. Update all callers. | |
11824 | Maintain and check a list of which devices (by canonicalized name) | |
11825 | have already been seen. | |
11826 | (clear_seen_devices): New function. | |
11827 | (compare_file_names) [__linux__]: New function. | |
11828 | (grub_util_iterate_devices): Clear the list of seen devices on exit | |
11829 | and (just in case) on entry. | |
11830 | (grub_util_iterate_devices) [__linux__]: Iterate over non-partition | |
11831 | devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID | |
11832 | seen-devices list, superseded by general code in check_device. | |
11833 | ||
bbe34652 CW |
11834 | 2010-06-28 Colin Watson <cjwatson@ubuntu.com> |
11835 | ||
11836 | * commands/cat.c (options): New variable. | |
11837 | (grub_cmd_cat): Parse options. If the --dos option is given, print | |
11838 | DOS-style "\r\n" line endings as simple newlines (Debian bug | |
11839 | #586358). | |
11840 | (GRUB_MOD_INIT): Use extcmd. | |
11841 | (GRUB_MOD_FINI): Likewise. | |
11842 | * docs/grub.texi (cat): Document --dos. | |
11843 | ||
412e09f3 VS |
11844 | 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com> |
11845 | ||
11846 | XEN with Linux grub-mkconfig support. | |
11847 | ||
11848 | * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen. | |
11849 | * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and | |
11850 | GRUB_CMDLINE_XEN_DEFAULT. | |
11851 | * util/grub.d/20_linux_xen.in: New file. | |
11852 | ||
53f3ef38 | 11853 | 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com> |
994b0c27 VS |
11854 | |
11855 | Initialise VGA video on qemu ourselves. | |
11856 | ||
11857 | * boot/i386/qemu/boot.S: Don't call 0xc000. | |
11858 | * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable. | |
11859 | (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c. | |
11860 | (kernel_img_HEADERS): Add pci.h. | |
11861 | * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod. | |
11862 | * configure.ac: Force unifont on qemu and yeeloong. | |
11863 | * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto. | |
11864 | (grub_vga_palette_write): Use correct register. | |
11865 | * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]: | |
11866 | Call grub_qemu_init_cirrus. | |
11867 | * kern/i386/qemu/init.c: New file. | |
11868 | * term/i386/pc/vga_text.c (inc_y): Never read outside the screen. | |
11869 | ||
11870 | * commands/videotest.c (grub_cmd_videotest): Handle double buffering. | |
11871 | ||
c75be4fb PR |
11872 | 2010-06-26 Pavel Roskin <proski@gnu.org> |
11873 | ||
11874 | * util/grub.d/10_linux.in: Add support for initrd images on Fedora | |
11875 | 13. | |
11876 | ||
d8034603 CW |
11877 | 2010-06-26 Colin Watson <cjwatson@ubuntu.com> |
11878 | ||
11879 | * docs/grub.texi (Simple configuration): Explain that | |
11880 | GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be | |
11881 | set to `true' to disable their respective recovery entries, not | |
11882 | merely set. | |
11883 | ||
3fa06487 CW |
11884 | 2010-06-26 Colin Watson <cjwatson@ubuntu.com> |
11885 | ||
11886 | Make the `source' command slightly faster. | |
11887 | ||
11888 | * normal/main.c (grub_normal_execute): Don't re-read list files when | |
11889 | nested. | |
11890 | ||
e9b29642 CW |
11891 | 2010-06-23 Colin Watson <cjwatson@ubuntu.com> |
11892 | ||
11893 | * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red | |
11894 | field position and mask size to red fields from mode_info, not | |
11895 | green. | |
11896 | * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise. | |
11897 | Remove redundant tag->common.framebuffer_type assignment. | |
11898 | Reported by: Seth Goldberg. | |
11899 | ||
e726542f CW |
11900 | 2010-06-23 Colin Watson <cjwatson@ubuntu.com> |
11901 | ||
11902 | Sync up other versions of the Linux loader with Robert Millan's | |
11903 | change of 2010-01-09, "Make loader output a bit more user-friendly". | |
11904 | ||
11905 | * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to | |
11906 | grub_dprintf(). | |
11907 | (grub_cmd_linux): Likewise. | |
11908 | (grub_cmd_initrd): Likewise. | |
11909 | * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise. | |
11910 | * loader/i386/pc/linux.c (grub_cmd_linux): Likewise. | |
11911 | ||
d6e98a17 CW |
11912 | 2010-06-21 Colin Watson <cjwatson@ubuntu.com> |
11913 | ||
11914 | * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps | |
11915 | larger than MEMORY_MAP_SIZE. | |
11916 | ||
14d3f08e BC |
11917 | 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com> |
11918 | ||
11919 | Fix parallel build. | |
11920 | ||
11921 | * conf/common.rmk: Add grub_script.tab.h as a grub-script-check | |
11922 | dependency. | |
11923 | * script/parser.y: #include grub_script.tab.h header. | |
11924 | ||
4f9613a3 VS |
11925 | 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com> |
11926 | ||
11927 | Support >3GiB and <16MiB RAM in i386-qemu. | |
11928 | ||
11929 | * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const. | |
11930 | (QEMU_CMOS_MEMSIZE2_LOW): Likewise. | |
11931 | (grub_lower_mem): Removed. | |
11932 | (grub_upper_mem): Likewise. | |
11933 | (mem_size): Made static. | |
11934 | (above_4g): New variable. | |
11935 | (grub_machine_mmap_init): Detect small mem_size and above_4g. | |
11936 | (grub_machine_mmap_iterate): Order in ascending order and add above_4g | |
11937 | support. | |
11938 | ||
05e51879 VS |
11939 | 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com> |
11940 | ||
11941 | Cirrus 5446 and Bochs video cards support. | |
11942 | ||
11943 | * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and | |
11944 | video_bochs.mod | |
11945 | (video_cirrus_mod_SOURCES): New variable. | |
11946 | (video_cirrus_mod_CFLAGS): Likewise. | |
11947 | (video_cirrus_mod_LDFLAGS): Likewise. | |
11948 | (video_bochs_mod_SOURCES): Likewise. | |
11949 | (video_bochs_mod_CFLAGS): Likewise. | |
11950 | (video_bochs_mod_LDFLAGS): Likewise. | |
11951 | * include/grub/vga.h: New file. | |
11952 | * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed. | |
11953 | (grub_video_fb_set_page_t): New type. | |
11954 | (grub_video_fb_setup): New prototype. | |
11955 | (grub_video_fb_swap_buffers): Likewise. | |
11956 | (grub_video_fb_get_info_and_fini): Likewise. | |
11957 | * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h. | |
11958 | (CRTC_DATA_PORT): Likewise. | |
11959 | (CRTC_CURSOR): Likewise. | |
11960 | (CRTC_CURSOR_ADDR_HIGH): Likewise. | |
11961 | (CRTC_CURSOR_ADDR_LOW): Likewise. | |
11962 | (CRTC_CURSOR_DISABLE): Likewise. | |
11963 | (update_cursor): Use grub_vga_cr_write. | |
11964 | (grub_vga_text_setcursor): Likewise. | |
11965 | * video/bochs.c: New file. | |
11966 | * video/fb/video_fb.c (render_target): Moved into framebuffer variable. | |
11967 | (palette): Likewise. | |
11968 | (palette_size): Likewise. | |
11969 | (framebuffer): New variable. | |
11970 | (grub_video_fb_init): Use 'framebuffer'. | |
11971 | (grub_video_fb_fini): Likewise. | |
11972 | (grub_video_fb_get_info): Likewise. | |
11973 | (grub_video_fb_get_palette): Likewise. | |
11974 | (grub_video_fb_set_palette): Likewise. | |
11975 | (grub_video_fb_set_viewport): Likewise. | |
11976 | (grub_video_fb_get_viewport): Likewise. | |
11977 | (grub_video_fb_map_color): Likewise. | |
11978 | (grub_video_fb_map_rgb): Likewise. | |
11979 | (grub_video_fb_map_rgba): Likewise. | |
11980 | (grub_video_fb_unmap_color): Likewise. | |
11981 | (grub_video_fb_unmap_color_int): Likewise. | |
11982 | (grub_video_fb_fill_rect): Likewise. | |
11983 | (grub_video_fb_blit_bitmap): Likewise. | |
11984 | (grub_video_fb_blit_render_target): Likewise. | |
11985 | (grub_video_fb_scroll): Likewise. | |
11986 | (grub_video_fb_create_render_target): Likewise. | |
11987 | (grub_video_fb_doublebuf_blit_init): Likewise. | |
11988 | (grub_video_fb_set_active_render_target): Handle doublebuffering. | |
11989 | (doublebuf_pageflipping_update_screen): New function. | |
11990 | (doublebuf_pageflipping_init): Likewise. | |
11991 | (grub_video_fb_setup): Likewise. | |
11992 | (grub_video_fb_swap_buffers): Likewise. | |
11993 | (grub_video_fb_get_info_and_fini): Likewise. | |
11994 | * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields. | |
11995 | All users updated. | |
11996 | (doublebuf_pageflipping_commit): Restructured into ... | |
11997 | (doublebuf_pageflipping_set_page): ... this. | |
11998 | (doublebuf_pageflipping_update_screen): Removed. | |
11999 | (doublebuf_pageflipping_init): Likewise. | |
12000 | (double_buffering_init): Likewise. | |
12001 | (grub_video_vbe_setup): Use grub_video_fb_setup. | |
12002 | (grub_video_vbe_swap_buffers): Removed. | |
12003 | (grub_video_vbe_set_active_render_target): Likewise. | |
12004 | (grub_video_vbe_get_active_render_target): Likewise. | |
12005 | (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini. | |
12006 | (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers, | |
12007 | grub_video_fb_set_active_render_target and | |
12008 | grub_video_fb_get_active_render_target. | |
12009 | * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h. | |
12010 | (SEQUENCER_DATA_PORT): Likewise. | |
12011 | (MAP_MASK_REGISTER): Likewise. | |
12012 | (CRTC_ADDR_PORT): Likewise. | |
12013 | (CRTC_DATA_PORT): Likewise. | |
12014 | (START_ADDR_HIGH_REGISTER): Likewise. | |
12015 | (START_ADDR_LOW_REGISTER): Likewise. | |
12016 | (GRAPHICS_ADDR_PORT): Likewise. | |
12017 | (GRAPHICS_DATA_PORT): Likewise. | |
12018 | (READ_MAP_REGISTER): Likewise. | |
12019 | (INPUT_STATUS1_REGISTER): Likewise. | |
12020 | (INPUT_STATUS1_VERTR_BIT): Likewise. | |
12021 | (get_map_mask): Use grub_vga_sr_read. | |
12022 | (set_map_mask): Use grub_vga_sr_write. | |
12023 | (set_read_map): Use grub_vga_gr_write. | |
12024 | (set_start_address): Use grub_vga_cr_write. | |
12025 | * video/sm712.c (framebuffer): Remove leftover fields. | |
12026 | ||
4321c64a CW |
12027 | 2010-06-20 Colin Watson <cjwatson@ubuntu.com> |
12028 | ||
12029 | * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop | |
12030 | setting GRUB_VIDEO_BACKEND. Make it available as a user override | |
12031 | instead. Replace the gfxterm backend check with a check that | |
12032 | ${GRUB_PREFIX}/video.lst is non-empty. | |
12033 | * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it | |
12034 | again. | |
12035 | (load_video): New generated function. Call it before loading | |
12036 | gfxterm rather than loading ${GRUB_VIDEO_BACKEND}. | |
12037 | * util/grub.d/10_linux.in (linux_entry): Call load_video. | |
12038 | * util/grub.d/30_os-prober.in (osx_entry): Likewise. | |
12039 | * docs/grub.texi (Simple configuration): Document | |
12040 | GRUB_VIDEO_BACKEND. | |
12041 | ||
12042 | 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com> | |
12043 | ||
12044 | Use video functions in linux and xnu loaders. | |
12045 | ||
12046 | * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c. | |
12047 | * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c. | |
12048 | * include/grub/i386/xnu.h (grub_xnu_set_video): Removed. | |
12049 | * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from | |
12050 | loader/i386/pc/linux.c. | |
12051 | (grub_linux_boot): Resynced with loader/i386/pc/linux.c. | |
12052 | (find_line_len): Removed. | |
12053 | (find_framebuf): Likewise. | |
12054 | (grub_cmd_linux): Declare grub_linux_boot as possibly returning. | |
12055 | * loader/i386/efi/xnu.c: Removed. | |
12056 | * loader/i386/pc/xnu.c: Moved from here... | |
12057 | * loader/i386/xnu.c: ...here. | |
12058 | ||
12059 | Enable priorities in video drivers. | |
12060 | ||
12061 | * include/grub/video.h (grub_video_adapter_prio_t): New type. | |
12062 | (grub_video_adapter): New field prio. | |
12063 | (grub_video_register): Respect prio when inserting. | |
12064 | * video/efi_gop.c (grub_video_gop_adapter): Add prio. | |
12065 | * video/efi_uga.c (grub_video_uga_adapter): Likewise. | |
12066 | * video/emu/sdl.c (grub_video_sdl_adapter): Likewise. | |
12067 | * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise. | |
12068 | * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise. | |
12069 | * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise. | |
12070 | * video/sm712.c (grub_video_sm712_adapter): Likewise. | |
12071 | ||
12072 | Fix SDL driver ID. | |
12073 | ||
12074 | * include/grub/video.h (grub_video_driver_id_t): New value | |
12075 | GRUB_VIDEO_DRIVER_SDL. | |
12076 | * video/emu/sdl.c (grub_video_sdl_adapter): Add id. | |
12077 | ||
7d24e434 CW |
12078 | 2010-06-17 Colin Watson <cjwatson@ubuntu.com> |
12079 | ||
12080 | * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name' | |
12081 | argument to printf. | |
12082 | * util/sparc64/ieee1275/grub-setup.c (usage): Likewise. | |
12083 | ||
c88a83f6 CW |
12084 | 2010-06-17 Colin Watson <cjwatson@ubuntu.com> |
12085 | ||
12086 | * util/i386/pc/grub-setup.c (usage): Fix syntax error. | |
12087 | * util/sparc64/ieee1275/grub-setup.c (usage): Likewise. | |
12088 | ||
094dfb69 CW |
12089 | 2010-06-17 Colin Watson <cjwatson@ubuntu.com> |
12090 | ||
12091 | * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup | |
12092 | directly, and recommend grub-install instead. | |
12093 | * util/sparc64/ieee1275/grub-setup.c (usage): Likewise. | |
12094 | ||
2164da6b CW |
12095 | 2010-06-17 Colin Watson <cjwatson@ubuntu.com> |
12096 | ||
12097 | Fix i386-pc prefix handling with nested partitions (Debian bug | |
12098 | #585068). Note that the case where the core image is booted using | |
12099 | multiboot and relocated from its original location still requires | |
12100 | more work. | |
12101 | ||
12102 | * kern/i386/pc/init.c (make_install_device): If the prefix starts | |
12103 | with "(,", fill the boot drive in between those two characters, but | |
12104 | expect that a full partition specification including partition map | |
12105 | names will follow. | |
12106 | * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was | |
12107 | specified, write a prefix without the drive name but including a | |
12108 | full partition specification. | |
12109 | ||
044e2e60 CW |
12110 | 2010-06-16 Colin Watson <cjwatson@ubuntu.com> |
12111 | ||
12112 | * util/grub-mkconfig.in: Ignore non-option arguments, for | |
12113 | compatibility with older versions (before 2010-06-12) which did the | |
12114 | same. In particular, this makes it easier to ship an update-grub | |
12115 | wrapper which is compatible with that used with GRUB Legacy (Debian | |
12116 | bug #586056). | |
12117 | ||
5591324f GS |
12118 | 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com> |
12119 | ||
12120 | * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m | |
12121 | for manual page generation. | |
12122 | ||
662e24d5 GS |
12123 | 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com> |
12124 | ||
12125 | * po/POTFILES: Remove leftover commands/handler.c. | |
12126 | ||
8d70754e CW |
12127 | 2010-06-14 Colin Watson <cjwatson@ubuntu.com> |
12128 | ||
12129 | * util/grub-mkconfig.in: Remove vestige of old argument parsing that | |
12130 | left this script non-functional. | |
12131 | ||
41160e2e CW |
12132 | 2010-06-14 Colin Watson <cjwatson@ubuntu.com> |
12133 | ||
12134 | * docs/man/grub-emu.h2m: New file. | |
12135 | ||
b5309cc1 CW |
12136 | 2010-06-13 Colin Watson <cjwatson@ubuntu.com> |
12137 | ||
12138 | * docs/grub.texi (Commands): Document reduced command set in rescue | |
12139 | mode. | |
12140 | (cpuid): New section. | |
12141 | ||
fcb2d090 GS |
12142 | 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com> |
12143 | ||
12144 | * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the | |
12145 | new partition naming style. | |
12146 | * util/grub-install.in: Adapt sed subtitutions in grub-probe calls. | |
12147 | ||
96e5c556 BC |
12148 | 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com> |
12149 | ||
12150 | Add "-o grub.iso" like cmdline options support. | |
12151 | ||
12152 | * util/grub-install.in: Improve cmdline option parsing. | |
12153 | * util/grub-mkconfig.in: Likewise. | |
12154 | * util/grub-mkrescue.in: Likewise. | |
12155 | * util/grub-reboot.in: Likewise. | |
12156 | * util/grub-set-default.in: Likewise. | |
12157 | * util/i386/efi/grub-install.in: Likewise. | |
12158 | * util/ieee1275/grub-install.in: Likewise. | |
12159 | * util/powerpc/ieee1275/grub-mkrescue.in: Likewise. | |
12160 | ||
c16be99b CW |
12161 | 2010-06-12 Colin Watson <cjwatson@ubuntu.com> |
12162 | ||
12163 | * .bzrignore: Ignore 41_custom. | |
12164 | ||
ce08a9fb TS |
12165 | 2010-06-12 Thomas Schmitt <scdbackup@gmx.net> |
12166 | ||
12167 | * util/grub-mkrescue.in: Pass unrecognized options to xorriso. | |
12168 | ||
7beac90c CW |
12169 | 2010-06-12 Colin Watson <cjwatson@ubuntu.com> |
12170 | ||
12171 | Avoid false positives in fs.lst, partmap.lst, and video.lst due to | |
12172 | prototype declarations. | |
12173 | ||
12174 | * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when | |
12175 | generating fs, partmap, and video lists. | |
12176 | * include/grub/fs.h (grub_fs_register): Omit prototype if | |
12177 | GRUB_LST_GENERATOR is defined. | |
12178 | * include/grub/partition.h (grub_partition_map_register): Likewise. | |
12179 | * include/grub/video.h (grub_video_register): Likewise. | |
12180 | ||
1c8f0f8d JM |
12181 | 2010-06-12 Javier Martín <lordhabbit@gmail.com> |
12182 | ||
12183 | * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate. | |
12184 | ||
a6085973 TS |
12185 | 2010-06-12 Thomas Schmitt <scdbackup@gmx.net> |
12186 | ||
12187 | * util/grub-mkrescue.in: Support --xorriso argument. | |
12188 | ||
25c56d29 VS |
12189 | 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com> |
12190 | ||
12191 | * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs. | |
12192 | Suggested by: Thomas Schmitt. | |
12193 | ||
e03e4b24 VS |
12194 | 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com> |
12195 | ||
12196 | * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso. | |
12197 | Suggested by: Thomas Schmitt. | |
12198 | ||
57711df6 VS |
12199 | 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com> |
12200 | ||
12201 | custom.cfg support. | |
12202 | ||
12203 | * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom. | |
12204 | * util/grub.d/41_custom.in: New file. | |
12205 | ||
ee62c427 CW |
12206 | 2010-06-12 Colin Watson <cjwatson@ubuntu.com> |
12207 | ||
12208 | * util/grub-mkrescue.in (make_image): Remove sh module, which has | |
12209 | been merged back into normal. | |
12210 | ||
283af07a CW |
12211 | 2010-06-11 Colin Watson <cjwatson@ubuntu.com> |
12212 | ||
12213 | * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ... | |
12214 | (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix). | |
12215 | ||
56a0d956 CW |
12216 | 2010-06-11 Colin Watson <cjwatson@ubuntu.com> |
12217 | ||
12218 | * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m | |
12219 | when generating manual pages. | |
12220 | * docs/man/grub-bin2h.h2m: New file. | |
12221 | * docs/man/grub-editenv.h2m: New file. | |
12222 | * docs/man/grub-fstest.h2m: New file. | |
12223 | * docs/man/grub-install.h2m: New file. | |
12224 | * docs/man/grub-macho2img.h2m: New file. | |
12225 | * docs/man/grub-mkconfig.h2m: New file. | |
12226 | * docs/man/grub-mkdevicemap.h2m: New file. | |
12227 | * docs/man/grub-mkfont.h2m: New file. | |
12228 | * docs/man/grub-mkimage.h2m: New file. | |
12229 | * docs/man/grub-mkpasswd-pbkdf2.h2m: New file. | |
12230 | * docs/man/grub-mkrelpath.h2m: New file. | |
12231 | * docs/man/grub-mkrescue.h2m: New file. | |
12232 | * docs/man/grub-ofpathname.h2m: New file. | |
12233 | * docs/man/grub-pe2elf.h2m: New file. | |
12234 | * docs/man/grub-probe.h2m: New file. | |
12235 | * docs/man/grub-reboot.h2m: New file. | |
12236 | * docs/man/grub-script-check.h2m: New file. | |
12237 | * docs/man/grub-set-default.h2m: New file. | |
12238 | * docs/man/grub-setup.h2m: New file. | |
12239 | ||
3a37e322 VS |
12240 | 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com> |
12241 | ||
12242 | Use FOR_* macros instead of *_iterate whenever possible. | |
12243 | ||
12244 | * commands/handler.c: Removed. | |
12245 | * commands/help.c (grub_cmd_help): Use FOR_COMMANDS. | |
12246 | * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES. | |
12247 | * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c. | |
12248 | * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h. | |
12249 | (grub_probe_SOURCES): Remove kern/parser.c. | |
12250 | (util/grub-script-check.c_DEPENDENCIES): Removed. | |
12251 | (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c | |
12252 | and grub_script_check_init.c. | |
12253 | (grub_script_check_init.lst): Removed. | |
12254 | (grub_script_check_init.h): Likewise. | |
12255 | (grub_script_check_init.c): Likewise. | |
12256 | (pkglib_MODULES): Remove handler.mod and sh.mod. | |
12257 | (handler_mod_SOURCES): Removed. | |
12258 | (handler_mod_CFLAGS): Likewise. | |
12259 | (handler_mod_LDFLAGS): Likewise. | |
12260 | (normal_mod_SOURCES): Remove normal/handler.c. | |
12261 | Add script/main.c, script/script.c, script/execute.c, | |
12262 | script/function.c, script/lexer.c, grub_script.tab.c | |
12263 | and grub_script.yy.c. | |
12264 | * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c. | |
12265 | * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise. | |
12266 | * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise. | |
12267 | (grub_setup_SOURCES): Remove kern/parser.c. | |
12268 | * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c. | |
12269 | * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise. | |
12270 | * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise. | |
12271 | * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise. | |
12272 | * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise. | |
12273 | (grub_setup_SOURCES): Remove kern/parser.c. | |
12274 | * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c. | |
12275 | * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop. | |
12276 | * include/grub/command.h (grub_command_iterate): Removed. | |
12277 | (FOR_COMMANDS): New macro. | |
12278 | * include/grub/dl.h (grub_dl): New member next. | |
12279 | (grub_dl_iterate): Removed. | |
12280 | (grub_dl_head): New variable declaration. | |
12281 | (FOR_DL_MODULES): New macro. | |
12282 | * include/grub/fs.h: Include list.h. | |
12283 | (grub_fs): Make next first element. | |
12284 | (grub_fs_list): New variable declaration. | |
12285 | (grub_fs_register): Make inline. | |
12286 | (grub_fs_unregister): Likewise. | |
12287 | (grub_fs_iterate): Removed. | |
12288 | (FOR_FILESYSTEMS): New macro. | |
12289 | * include/grub/handler.h: Removed. | |
12290 | * include/grub/list.h (grub_list_hook_t): Removed. | |
12291 | (grub_list_test_t): Likewise. | |
12292 | (grub_list_pop): Likewise. | |
12293 | (grub_list_iterate): Likewise. | |
12294 | (grub_list_insert): Likewise. | |
12295 | (FOR_LIST_ELEMENTS): New macro. | |
12296 | * include/grub/parser.h (grub_parser_class): Removed. | |
12297 | (grub_parser_register): Likewise. | |
12298 | (grub_parser_unregister): Likewise. | |
12299 | (grub_parser_get_current): Likewise. | |
12300 | (grub_parser_set_current): Likewise. | |
12301 | (grub_register_rescue_parser): Likewise. | |
12302 | (grub_rescue_parse_line): New function. | |
12303 | * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS. | |
12304 | * include/grub/script_sh.h (grub_script_function_list): New variable | |
12305 | declaration. | |
12306 | (FOR_SCRIPT_FUNCTIONS): New macro. | |
12307 | (grub_script_function_iterate): Removed. | |
12308 | (grub_normal_parse_line): New prototype. | |
12309 | * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS. | |
12310 | (FOR_DISABLED_TERM_INPUTS): Likewise. | |
12311 | (FOR_ACTIVE_TERM_OUTPUTS): Likewise. | |
12312 | (FOR_DISABLED_TERM_OUTPUTS): Likewise. | |
12313 | * include/grub/video.h (grub_video_adapter): Move 'next' to first | |
12314 | element. | |
12315 | (grub_video_register): Inline. | |
12316 | (grub_video_unregister): Likewise. | |
12317 | (grub_video_adapter_list): New variable declaration. | |
12318 | (grub_video_iterate): Removed. | |
12319 | (FOR_VIDEO_ADAPTERS): New macro. | |
12320 | * kern/dl.c (grub_dl_list): Removed. All users updated. | |
12321 | (grub_dl_iterate): Removed. | |
12322 | * kern/fs.c (grub_fs_list): Make global. | |
12323 | (grub_fs_register): Removed. | |
12324 | (grub_fs_unregister): Likewise. | |
12325 | (grub_fs_iterate): Likewise. | |
12326 | * kern/handler.c: Removed. | |
12327 | * kern/list.c (grub_list_pop): Removed. | |
12328 | (grub_list_iterate): Likewise. | |
12329 | (grub_list_insert): Likewise. | |
12330 | (grub_named_list_find): Use FOR_LIST_ELEMENTS. | |
12331 | (grub_prio_list_insert): Don't use grub_list_insert. | |
12332 | * kern/main.c (grub_register_rescue_parser): Don't call | |
12333 | grub_register_rescue_parser. | |
12334 | * kern/parser.c (grub_parser_class): Removed. | |
12335 | (grub_parser_execute): Use grub_rescue_parse_line. | |
12336 | * kern/rescue_parser.c (grub_rescue_parse_line): Make global. | |
12337 | (grub_rescue_parser): Removed. | |
12338 | (grub_register_rescue_parser): Likewise. | |
12339 | * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line. | |
12340 | * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS. | |
12341 | (grub_auth_check_authentication): Likewise. | |
12342 | * normal/completion.c (iterate_command): Removed. | |
12343 | (grub_normal_do_completion): Use FOR_COMMANDS. | |
12344 | * normal/handler.c: Removed. | |
12345 | * normal/main.c (read_config_file): Remove parser changing. | |
12346 | (grub_normal_execute): Don't call read_handler_list. | |
12347 | (grub_normal_read_line_real): Statically allocate prompt. | |
12348 | (grub_cmdline_run): Use grub_normal_parse_line. | |
12349 | (GRUB_MOD_FINI): Don't call free_handler_list. | |
12350 | * normal/menu_entry.c (run): Likewise. | |
12351 | * script/function.c (grub_script_function_list): Make global. | |
12352 | (grub_script_function_iterate): Removed. | |
12353 | * script/main.c (grub_normal_parse_line): Make global. | |
12354 | (grub_sh_parser): Removed. | |
12355 | (GRUB_MOD_INIT): Likewise. | |
12356 | (GRUB_MOD_FINI): Likewise. | |
12357 | * tests/lib/functional_test.c (grub_functional_test): Use | |
12358 | FOR_LIST_ELEMENTS. | |
12359 | * tests/lib/test.c (free_failures): Don't use grub_list_pop. | |
12360 | (grub_test_run): Use FOR_LIST_ELEMENTS. | |
12361 | * tests/lib/unit_test.c (main): Likewise. | |
12362 | * util/deviceiter.c (grub_util_iterate_devices): Don't use | |
12363 | grub_list_pop. | |
12364 | * util/grub-fstest.c (grub_term_input_class): Removed. | |
12365 | (grub_term_output_class): Likewise. | |
12366 | * util/grub-probe.c: Likewise. | |
12367 | * util/i386/pc/grub-setup.c: Likewise. | |
12368 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
12369 | * util/grub-script-check.c (main): Don't call grub_init_all and | |
12370 | grub_fini_all. | |
12371 | * video/video.c (grub_video_adapter_list): Make global. | |
12372 | (grub_video_register): Removed. | |
12373 | (grub_video_unregister): Likewise. | |
12374 | (grub_video_iterate): Likewise. | |
12375 | ||
6289c3a7 VS |
12376 | 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com> |
12377 | ||
12378 | * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as | |
12379 | reported by Henrique Ferreiro. | |
12380 | ||
91460247 RM |
12381 | 2010-06-09 Robert Millan <rmh@gnu.org> |
12382 | ||
12383 | * util/grub.d/10_linux.in: Prefer compressed images over non-compressed | |
12384 | ones, when both are available. | |
12385 | ||
0ea7c4f9 GS |
12386 | 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com> |
12387 | ||
12388 | Make --version uniform and avoid hard-coded program name. | |
12389 | ||
12390 | * util/grub-mkimage.c (main): Use `program_name' instead of | |
12391 | hard-coded string. | |
12392 | * util/i386/pc/grub-setup.c (main): Likewise. | |
12393 | * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise. | |
12394 | * util/grub-install.in: Save the basename of $0 in $self, and use the | |
12395 | latter in informational messages. Use the same format for --version | |
12396 | as the binary programs. | |
12397 | * util/grub-mkconfig.in: Likewise. | |
12398 | * util/grub-mkrescue.in: Likewise. | |
12399 | * util/grub-reboot.in: Likewise. | |
12400 | * util/grub-set-default.in: Likewise. | |
12401 | * util/i386/efi/grub-install.in: Likewise. | |
12402 | * util/ieee1275/grub-install.in: Likewise. | |
12403 | * util/powerpc/ieee1275/grub-mkrescue.in: Likewise. | |
12404 | ||
e8a6f3b6 GS |
12405 | 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com> |
12406 | ||
12407 | * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of | |
12408 | embedding area. Use <= instead of == when checking for non-emptiness. | |
12409 | ||
f4d095d7 GS |
12410 | 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com> |
12411 | ||
12412 | * configure.ac: Add `.' to the directories searched for unifont. | |
12413 | ||
50e532ca CW |
12414 | 2010-06-08 Colin Watson <cjwatson@ubuntu.com> |
12415 | ||
12416 | * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and | |
12417 | grub_script.yy.h. | |
12418 | ||
d39f3dec CW |
12419 | 2010-06-08 Colin Watson <cjwatson@ubuntu.com> |
12420 | ||
12421 | * docs/grub.texi (History): Expand to cover GRUB 2. | |
12422 | (Serial terminal): Refer to `terminal_input' and `terminal_output' | |
12423 | commands, not `terminal'. | |
12424 | (serial): Likewise. | |
12425 | (terminal_input): New section. | |
12426 | (terminal_output): New section. | |
12427 | (uppermem): New section (stub). | |
12428 | (Obtaining and Building GRUB): Refer to Bazaar, not Subversion. | |
12429 | ||
6ef0ddb4 CW |
12430 | 2010-06-08 Colin Watson <cjwatson@ubuntu.com> |
12431 | ||
12432 | * docs/grub.texi (Security): Menu entries are unrestricted by | |
12433 | default, not restricted to superusers as I had previously thought. | |
12434 | Reword to account for this. | |
12435 | ||
e0f4c438 CW |
12436 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12437 | ||
12438 | * kern/emu/misc.c (device_mapper_null_log): New function. | |
12439 | (grub_device_mapper_supported): New function. | |
12440 | * include/grub/emu/misc.h (grub_device_mapper_supported): Add | |
12441 | prototype. | |
12442 | * kern/emu/hostdisk.c (find_partition_start): Check whether | |
12443 | device-mapper is supported before trying to use it. | |
12444 | * util/deviceiter.c (grub_util_iterate_devices): Likewise. | |
12445 | ||
da908200 CW |
12446 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12447 | ||
12448 | * docs/grub.texi (Naming convention): Use GRUB 2 syntax. | |
12449 | (File name syntax): Likewise. | |
12450 | (help): --all is no longer supported in GRUB 2. Be more precise | |
12451 | about pattern matching. | |
12452 | ||
fb55c3ac CW |
12453 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12454 | ||
12455 | * normal/completion.c (grub_normal_do_completion): When completing | |
12456 | arguments to "set" and the current word contains an equals sign, | |
12457 | skip to after the equals sign before starting completion. | |
12458 | ||
258c2573 CW |
12459 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12460 | ||
12461 | * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip. | |
12462 | ||
ee75515e CW |
12463 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12464 | ||
12465 | * docs/grub.texi (Network): New section. | |
12466 | (Device syntax): The network device is called `(pxe)' in GRUB 2, not | |
12467 | `(nd)' as in GRUB Legacy. | |
12468 | (pxe_unload): New section. | |
12469 | ||
a6a700aa CW |
12470 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12471 | ||
12472 | * docs/grub.texi (Troubleshooting): `echo' is not usually available | |
12473 | in the rescue shell, so recommend using `set' instead. Thanks, | |
12474 | Jordan Uggla. | |
12475 | ||
4003dd38 CW |
12476 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12477 | ||
12478 | * docs/grub.texi (Filesystem): Refer to `search' instead of `find'. | |
12479 | (password): New section. | |
12480 | (password_pbkdf2): New section. | |
12481 | (search): New section. | |
12482 | (Security): New section. | |
12483 | (Troubleshooting): New section, currently very incomplete. | |
12484 | (Invoking grub-mkpasswd-pbkdf2): New section. | |
12485 | (Internals): New section, currently very incomplete. | |
12486 | ||
e1cbcc40 CW |
12487 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12488 | ||
12489 | * util/grub.d/00_header.in: Add some more quoting (of | |
12490 | "${prev_saved_entry}" and "${boot_once}") needed to make savedefault | |
12491 | work again. | |
12492 | Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812). | |
12493 | ||
db8fa1ad CW |
12494 | 2010-06-07 Colin Watson <cjwatson@ubuntu.com> |
12495 | ||
12496 | * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable | |
12497 | to `count', fixing variable shadowing that broke the -c option. | |
12498 | ||
12499 | 2010-06-05 Colin Watson <cjwatson@ubuntu.com> | |
71c38098 CW |
12500 | |
12501 | * util/grub.d/00_header.in: Quote values assigned to `saved_entry', | |
12502 | in case they contain spaces. | |
12503 | ||
f28a9212 CW |
12504 | 2010-06-04 Colin Watson <cjwatson@ubuntu.com> |
12505 | ||
12506 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend | |
12507 | "part_" to partmap module names, in line with grub-install. | |
12508 | Reported by: Jindřich Makovička (Debian bug #584426). | |
12509 | ||
9cdfe32f CW |
12510 | 2010-06-04 Colin Watson <cjwatson@ubuntu.com> |
12511 | ||
12512 | * util/grub-mkimage.c: Make target-related error messages slightly | |
12513 | more helpful; -O talks about "format". Explicitly point to the use | |
12514 | of -O if no target is specified. | |
12515 | Reported by: Didier Raboud (Debian bug #584415). | |
12516 | ||
795b593a CW |
12517 | 2010-06-03 Colin Watson <cjwatson@ubuntu.com> |
12518 | ||
12519 | * INSTALL: Document several build requirements for optional features | |
12520 | (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont). | |
12521 | ||
9d9b5833 GS |
12522 | 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com> |
12523 | ||
12524 | * kern/emu/hostdisk.c (convert_system_partition_to_system_disk) | |
12525 | [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z]. | |
12526 | (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD. | |
12527 | ||
0819fec8 CW |
12528 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12529 | ||
12530 | * docs/grub.texi (Simple configuration): Fix copy-and-paste typo. | |
12531 | Thanks to Jordan Uggla for spotting this. | |
12532 | ||
49396b4f VS |
12533 | 2010-06-02 Aleš Nesrsta <starous@volny.cz> |
12534 | ||
12535 | Finally make USB usable. | |
12536 | ||
12537 | * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values. | |
12538 | (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro. | |
12539 | (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise. | |
12540 | (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise. | |
12541 | (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise. | |
12542 | (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise. | |
12543 | (GRUB_OHCI_FSMPS): Likewise. | |
12544 | (GRUB_OHCI_PERIODIC_START): Likewise. | |
12545 | (GRUB_OHCI_FRAME_INTERVAL): Likewise. | |
12546 | (GRUB_OHCI_SET_PORT_ENABLE): Likewise. | |
12547 | (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise. | |
12548 | (GRUB_OHCI_SET_PORT_RESET): Likewise. | |
12549 | (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise. | |
12550 | * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups. | |
12551 | (grub_ohci_transaction): Likewise. | |
12552 | (grub_ohci_transfer): Improve condition detection algorithms. | |
12553 | Handle toggle property. Program the transactions correctly. | |
12554 | Improve error handling. Various important fixups. | |
12555 | (grub_ohci_portstatus): Put register writes in right order. | |
12556 | * bus/usb/uhci.c (grub_free_queue): Compute last_trans. | |
12557 | (grub_uhci_transfer): Don't show "failed" message on success. | |
12558 | * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle" | |
12559 | array. | |
12560 | (grub_usb_device_initialize): Read first 8 bytes of descriptor to | |
12561 | determine its size. | |
12562 | * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even | |
12563 | before initialization is completed. Use IN direction for empty | |
12564 | transfers. Use last_trans and compute toggle. | |
12565 | * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans. | |
12566 | (GRUB_USB_FEATURE_ENDP_HALT): Correct the value. | |
12567 | (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise. | |
12568 | (GRUB_USB_FEATURE_TEST_MODE): Likewise. | |
12569 | * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE. | |
12570 | (grub_usb_device): Increase toggle to 256. | |
12571 | (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC, | |
12572 | GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and | |
12573 | GRUB_USBMS_SUBCLASS_SFF8070. | |
12574 | * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure. | |
12575 | (grub_scsi_inquiry): New member page and alloc_length. | |
12576 | (grub_scsi_request_sense): New structure. | |
12577 | (grub_scsi_request_sense_data): Likewise. | |
12578 | (grub_scsi_read_capacity): New fields logical_block_addr, PMI and | |
12579 | control. | |
12580 | * disk/scsi.c (grub_scsi_request_sense): New function. | |
12581 | (grub_scsi_test_unit_ready): Likewise. | |
12582 | (grub_scsi_inquiry): Fill new fields. | |
12583 | (grub_scsi_read_capacity): Likewise. | |
12584 | (grub_scsi_read10): Add request sense at the end. | |
12585 | (grub_scsi_read12): Likewise. | |
12586 | (grub_scsi_write10): Likewise. | |
12587 | (grub_scsi_write12): Likewise. | |
12588 | (grub_scsi_open): Add Test Unit Ready. | |
12589 | * disk/usbms.c (grub_usbms_finddevs): Check configcnt. | |
12590 | Support additional subclasses. Con't clear halt yet. Activate the | |
12591 | proper config. Calculate LUNs correctly. | |
12592 | (grub_usbms_transfer): Various important fixups. | |
12593 | ||
12594 | 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com> | |
12595 | ||
12596 | * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts. | |
12597 | * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly. | |
12598 | (grub_ohci_fini_hw): New function. | |
12599 | (grub_ohci_restore_hw): Likewise. | |
12600 | (GRUB_MOD_INIT(ohci)): Register preboot hook. | |
12601 | (GRUB_MOD_FINI(ohci)): Shutdown OHCI. | |
12602 | * term/usb_keyboard.c: Remove include of grub/machine/console.h. | |
12603 | ||
12604 | 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com> | |
12605 | ||
12606 | Dedicated DMA allocations. | |
12607 | ||
12608 | * bus/pci.c (grub_memalign_dma32): New function | |
12609 | (grub_dma_free): Likewise. | |
12610 | (grub_dma_get_virt): Likewise. | |
12611 | (grub_dma_get_phys): Likewise. | |
12612 | * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk. | |
12613 | (grub_ohci_pci_iter): Use dma32_alloc. | |
12614 | (grub_ohci_transfer): Likewise. | |
12615 | * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise. | |
12616 | (grub_usb_bulk_readwrite): Likewise. | |
12617 | * include/grub/pci.h: Add declarations. | |
12618 | ||
12619 | 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com> | |
12620 | ||
12621 | CS5536 support. | |
12622 | ||
12623 | * bus/cs5536.c: New file. | |
12624 | * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536. | |
12625 | * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod. | |
12626 | (cs5536_mod_SOURCES): New variable. | |
12627 | (cs5536_mod_CFLAGS): Likewise. | |
12628 | (cs5536_mod_LDFLAGS): Likewise. | |
12629 | * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and | |
12630 | machine/pci.h. | |
12631 | (kernel_img_SOURCES): Add bus/cs5536.c. | |
12632 | (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and | |
12633 | usb_keyboard.mod. | |
12634 | (usb_mod_SOURCES): New variable. | |
12635 | (usb_mod_CFLAGS): New variable. | |
12636 | (usb_mod_LDFLAGS): New variable. | |
12637 | (usbtest_mod_SOURCES): New variable. | |
12638 | (usbtest_mod_CFLAGS): New variable. | |
12639 | (usbtest_mod_LDFLAGS): New variable. | |
12640 | (ohci_mod_SOURCES): New variable. | |
12641 | (ohci_mod_CFLAGS): New variable. | |
12642 | (ohci_mod_LDFLAGS): New variable. | |
12643 | (usbms_mod_SOURCES): New variable. | |
12644 | (usbms_mod_CFLAGS): New variable. | |
12645 | (usbms_mod_LDFLAGS): New variable. | |
12646 | (usb_keyboard_mod_SOURCES): New variable. | |
12647 | (usb_keyboard_mod_CFLAGS): New variable. | |
12648 | (usb_keyboard_mod_LDFLAGS): New variable. | |
12649 | * include/grub/smbus.h: New file. | |
12650 | * include/grub/cs5536.h: New file. | |
12651 | ||
0b35b2a9 CW |
12652 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12653 | ||
12654 | * util/grub.d/00_header.in: Add safety check to make sure that | |
12655 | ${locale_dir} exists before trying to probe it. | |
12656 | ||
ca0afd5b CW |
12657 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12658 | ||
12659 | * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and | |
12660 | per the GNU Coding Standards; this is now too obscure to be worth | |
12661 | documenting. | |
12662 | (QNX): Likewise. | |
12663 | (chainloader): Remove cross-reference to `SCO UnixWare'. | |
12664 | ||
1c41aa78 CW |
12665 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12666 | ||
12667 | * docs/grub.texi (Chain-loading): New section. | |
12668 | (DOS/Windows): New section, borrowed from GRUB Legacy with details | |
12669 | adjusted for GRUB 2. | |
12670 | (SCO UnixWare): Likewise. | |
12671 | (QNX): Likewise. | |
12672 | (chainloader): Add reference to `Block list syntax'. | |
12673 | (drivemap): New section. | |
12674 | (parttool): New section. | |
12675 | ||
bb8ea0f5 CW |
12676 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12677 | ||
12678 | * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking | |
12679 | the grub shell'. | |
12680 | (Installation): Add reference to `Making a GRUB bootable CD-ROM'. | |
12681 | (Installing GRUB using grub-install): Remove reference to the grub | |
12682 | shell; mention `grub-mkimage' and `grub-setup' instead. | |
12683 | (Invoking grub-install): Likewise. | |
12684 | (Interface): Add reference to `Menu entry editor'. | |
12685 | (serial): Remove `--device' option. | |
12686 | ||
288dd6ed CW |
12687 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12688 | ||
12689 | * docs/grub.texi (Configuration): New section, documenting | |
12690 | configuration file generation using grub-mkconfig. I've left a slot | |
12691 | for documenting the full shell scripting format but have not yet | |
12692 | started on writing that up. | |
12693 | (Invoking grub-mkconfig): New section. | |
12694 | ||
34c9f0e9 CW |
12695 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12696 | ||
12697 | * docs/grub.texi (direntry): Remove grub-terminfo reference. | |
12698 | (GNU GRUB manual): Likewise. | |
12699 | (General commands): Update description of `terminfo' for GRUB 2. | |
12700 | ||
9121567e CW |
12701 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12702 | ||
12703 | * commands/gptsync.c (grub_cmd_gptsync): Fix typos. | |
12704 | (GRUB_MOD_INIT): Fix capitalisation. | |
12705 | * docs/grub.texi (Command-line and menu entry commands): Document | |
12706 | gettext and gptsync commands. | |
12707 | ||
ab631611 CW |
12708 | 2010-06-02 Colin Watson <cjwatson@ubuntu.com> |
12709 | ||
12710 | * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include | |
12711 | kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes. | |
12712 | ||
bde4a9ac CW |
12713 | 2010-06-01 Colin Watson <cjwatson@ubuntu.com> |
12714 | ||
12715 | Add btrfs probing support, currently only in the single-device case. | |
12716 | ||
12717 | * kern/emu/getroot.c (find_root_device_from_mountinfo): New | |
12718 | function. | |
12719 | (grub_guess_root_device): Call find_root_device_from_mountinfo | |
12720 | before looking in /dev. | |
12721 | ||
b1d17e10 VS |
12722 | 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com> |
12723 | ||
12724 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use | |
12725 | GRUB_DISK_SIZE_UNKNOWN. | |
12726 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise. | |
12727 | ||
dfbfe004 JS |
12728 | 2010-05-31 Jiro SEKIBA <jir@unicus.jp> |
12729 | ||
12730 | * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro. | |
12731 | * fs/nilfs.c: Support 2nd super block in case 1st one is accidently | |
12732 | corrupted or not synced properly. | |
12733 | ||
c2ffc8e9 VS |
12734 | 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com> |
12735 | ||
12736 | * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args. | |
12737 | Reported by: Seth Goldberg. | |
12738 | ||
56293166 VS |
12739 | 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com> |
12740 | ||
12741 | * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect | |
12742 | addition of dest. | |
12743 | Reported by: Seth Goldberg. | |
12744 | ||
7620e7de VS |
12745 | 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com> |
12746 | ||
12747 | * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check. | |
12748 | Reported by: Seth Goldberg. | |
12749 | ||
c837af3f VS |
12750 | 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com> |
12751 | ||
12752 | * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check | |
12753 | 64-bit address as signed on MIPS. | |
12754 | ||
c7c75cf4 CW |
12755 | 2010-05-28 Colin Watson <cjwatson@ubuntu.com> |
12756 | ||
12757 | * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not | |
12758 | to the empty string. | |
12759 | ||
fa4b8490 BC |
12760 | 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com> |
12761 | ||
12762 | Fix grub-emu issues on NetBSD, with gcc 4.1.3. | |
12763 | ||
12764 | * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS. | |
12765 | * include/grub/emu/misc.h (canonicalize_file_name): New Prototype. | |
12766 | * kern/misc.c (__enable_execute_stack): Disable on | |
12767 | GRUB_MACHINE_EMU. | |
12768 | ||
a33075b9 CW |
12769 | 2010-05-28 Colin Watson <cjwatson@ubuntu.com> |
12770 | ||
12771 | Make grub-probe work with symbolic links under /dev/mapper as well | |
12772 | as with real block devices. The Linux world seems to be (at best) | |
12773 | in transition here, and GRUB shouldn't get caught in the middle. | |
12774 | ||
12775 | * kern/emu/getroot.c (find_root_device): Follow symbolic links under | |
12776 | /dev/mapper. | |
12777 | ||
d8708134 CW |
12778 | 2010-05-27 Colin Watson <cjwatson@ubuntu.com> |
12779 | ||
12780 | * util/grub-script-check.c (main): Ensure defined behaviour on empty | |
12781 | input files (in which case exit zero). | |
12782 | ||
db2102a0 CW |
12783 | 2010-05-27 Colin Watson <cjwatson@ubuntu.com> |
12784 | ||
12785 | * kern/emu/misc.c (canonicalize_file_name): realpath can still | |
12786 | return NULL for various reasons even if it has a maximum-length | |
12787 | buffer: for example, there might be a symlink loop, or the path | |
12788 | might exceed PATH_MAX. If this happens, return NULL. | |
12789 | ||
5fdba519 RM |
12790 | 2010-05-27 Robert Millan <rmh@gnu.org> |
12791 | ||
12792 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert | |
12793 | partmap module to handle cross-partmap setups. | |
12794 | Reported by Orestes Mas. Gràcies! | |
12795 | ||
d1d368e4 CW |
12796 | 2010-05-27 Colin Watson <cjwatson@ubuntu.com> |
12797 | ||
12798 | * util/grub-mkrescue.in: Initialise override_dir rather than | |
12799 | assuming that it's unset or empty in the environment. | |
12800 | ||
95ac3c73 GS |
12801 | 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com> |
12802 | ||
12803 | * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed | |
12804 | variable index into p_index to suppress a warning with -Wshadow. | |
12805 | ||
7d8c0213 BC |
12806 | 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com> |
12807 | ||
12808 | * INSTALL: Added flex >= 2.5.35 requirement. | |
12809 | ||
db4d5813 VS |
12810 | 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com> |
12811 | ||
12812 | * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16. | |
12813 | ||
f24f4300 VS |
12814 | 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com> |
12815 | ||
12816 | cmostest support. | |
12817 | ||
12818 | * commands/i386/cmostest.c: New file. | |
12819 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod. | |
12820 | (cmostest_mod_SOURCES): New variable. | |
12821 | (cmostest_mod_CFLAGS): Likewise. | |
12822 | (cmostest_mod_LDFLAGS): Likewise. | |
12823 | * conf/i386-pc.rmk: Likewise. | |
12824 | * docs/grub.texi (Vendor power-on keys): New section. | |
12825 | * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON, | |
12826 | GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON | |
12827 | and GRUB_BUTTON_CMOS_ADDRESS. | |
12828 | * util/grub.d/00_header.in: Handle powering-on by separate button. | |
12829 | ||
ad603f61 VS |
12830 | 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com> |
12831 | ||
12832 | * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding. | |
12833 | Removed drawing_scrollbar argument. All users updated | |
12834 | Fixes #29792. | |
12835 | Reported by Jo Shields | |
12836 | ||
3ecb080a VS |
12837 | 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com> |
12838 | ||
12839 | * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current | |
12840 | buffer since gfxterm handles double repaint. | |
12841 | ||
5f2316c1 VS |
12842 | 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com> |
12843 | ||
12844 | * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers. | |
12845 | * term/gfxterm.c (real_scroll): Likewise. | |
12846 | ||
9a25f885 VS |
12847 | 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com> |
12848 | ||
12849 | * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry | |
12850 | before calling BIOS. | |
12851 | ||
39fbb79a VS |
12852 | 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com> |
12853 | ||
12854 | * include/grub/i18n.h: Always enable grub_gettext. | |
12855 | ||
228cfa97 VS |
12856 | 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com> |
12857 | ||
12858 | * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old | |
12859 | partition naming style. | |
12860 | ||
21717c8f CW |
12861 | 2010-05-21 Colin Watson <cjwatson@ubuntu.com> |
12862 | ||
12863 | * util/grub-mkconfig.in: Fix handling of -o so that it works when | |
12864 | not the first option. | |
12865 | ||
c0f48e65 CW |
12866 | 2010-05-20 Colin Watson <cjwatson@ubuntu.com> |
12867 | ||
12868 | * util/grub-mkrelpath.c (usage): Remove excess apostrophe. | |
12869 | ||
96779aec CW |
12870 | 2010-05-20 Colin Watson <cjwatson@ubuntu.com> |
12871 | ||
12872 | * util/misc.c: Move inclusion of <limits.h> to ... | |
12873 | * kern/emu/misc.c: ... here. Needed for canonicalize_file_name. | |
12874 | ||
fa9d256e GS |
12875 | 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com> |
12876 | ||
12877 | * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]: | |
12878 | Fix merge error in NetBSD code. | |
12879 | (find_partition_start) [__NetBSD__]: Likewise. | |
12880 | ||
123b7a85 BC |
12881 | 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com> |
12882 | ||
12883 | Fix grub-mkrescue usage unit testing. | |
12884 | ||
12885 | * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue. | |
12886 | ||
74276c0d CF |
12887 | 2010-05-18 Christian Franke <franke@computer.org> |
12888 | ||
12889 | * util/grub.d/10_windows.in: Use path names instead of | |
12890 | drive letters to prevent warning from Cygwin 1.7. | |
12891 | Add drivemap command to menuentry if needed. | |
12892 | ||
c4f7b523 ST |
12893 | 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de> |
12894 | ||
12895 | * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only | |
12896 | gnumach and gnumach.gz. | |
12897 | ||
95b97950 VS |
12898 | 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
12899 | ||
12900 | * include/grub/i18n.h (gettext): Inline instead of using #define. | |
12901 | (grub_gettext): Likewise. | |
12902 | (_): Likewise. | |
12903 | ||
01b8d2d7 VS |
12904 | 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
12905 | ||
12906 | * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with | |
12907 | -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated. | |
12908 | * util/grub-mkimage.c (image_targets): Add i386-multiboot. | |
12909 | (main): Add a slash after pkglibdirroot. | |
12910 | ||
654e1d1e VS |
12911 | 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
12912 | ||
12913 | * util/grub-install.in: Add missing "in" keyword. | |
12914 | ||
26966aeb VS |
12915 | 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
12916 | ||
12917 | * util/grub-mkrescue.in: Remove -O i386-pc duplication. | |
12918 | Reported by: Seth Goldberg. | |
12919 | ||
75006747 VS |
12920 | 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com> |
12921 | ||
12922 | * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c. | |
12923 | ||
74cbf5bd CW |
12924 | 2010-05-18 Colin Watson <cjwatson@ubuntu.com> |
12925 | ||
12926 | * configure.ac: Check for Linux device-mapper support. | |
12927 | ||
12928 | * util/hostdisk.c (device_is_mapped): New function. | |
12929 | (find_partition_start): New function, partly broken out from | |
12930 | linux_find_partition and grub_util_biosdisk_get_grub_dev but with | |
12931 | device-mapper support added. | |
12932 | (linux_find_partition): Use find_partition_start. | |
12933 | (convert_system_partition_to_system_disk): Add `st' argument. | |
12934 | Support Linux /dev/mapper/* devices if device-mapper support is | |
12935 | available; only DM-RAID devices are understood at present. | |
12936 | (find_system_device): Add `st' argument. Pass it to | |
12937 | convert_system_partition_to_system_disk. | |
12938 | (grub_util_biosdisk_get_grub_dev): Pass stat result to | |
12939 | find_system_device and convert_system_partition_to_system_disk. Use | |
12940 | find_partition_start. | |
12941 | ||
12942 | * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c, | |
12943 | kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c. | |
12944 | * util/deviceiter.c [__linux__]: Define MINOR. | |
12945 | (grub_util_iterate_devices): Add support for DM-RAID disk devices. | |
12946 | * util/mkdevicemap.c (grub_putchar): New function. | |
12947 | (grub_getkey): New function. | |
12948 | (grub_refresh): New function. | |
12949 | (main): Set debug=all if -v -v is used. | |
12950 | ||
355b51e9 CW |
12951 | 2010-05-18 Colin Watson <cjwatson@ubuntu.com> |
12952 | ||
12953 | Fix build with non-GNU libcs. | |
12954 | ||
12955 | * util/misc.c (canonicalize_file_name): Move to ... | |
12956 | * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by | |
12957 | grub_make_system_path_relative_to_its_root. | |
12958 | ||
7fb5c25f CW |
12959 | 2010-05-18 Colin Watson <cjwatson@ubuntu.com> |
12960 | ||
12961 | * util/grub-mkrescue.in: Sync up with grub-install in terms of how | |
12962 | we handle finding grub-mkimage. Default to finding grub-mkimage in | |
12963 | ${bindir} with program_transform_name applied, and provide a | |
12964 | --grub-mkimage option to override this. | |
12965 | ||
1d3293d6 VS |
12966 | 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
12967 | ||
12968 | Remove grub-mkisofs. | |
12969 | ||
12970 | * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs. | |
12971 | (grub_mkisofs_SOURCES): Removed. | |
12972 | (grub_mkisofs_CFLAGS): Removed. | |
12973 | * util/mkisofs/defaults.h: Removed. | |
12974 | * util/mkisofs/eltorito.c: Likewise. | |
12975 | * util/mkisofs/exclude.h: Likewise. | |
12976 | * util/mkisofs/hash.c: Likewise. | |
12977 | * util/mkisofs/include/: Likewise. | |
12978 | * util/mkisofs/include/fctldefs.h: Likewise. | |
12979 | * util/mkisofs/include/mconfig.h: Likewise. | |
12980 | * util/mkisofs/include/prototyp.h: Likewise. | |
12981 | * util/mkisofs/include/statdefs.h: Likewise. | |
12982 | * util/mkisofs/iso9660.h: Likewise. | |
12983 | * util/mkisofs/joliet.c: Likewise. | |
12984 | * util/mkisofs/match.c: Likewise. | |
12985 | * util/mkisofs/match.h: Likewise. | |
12986 | * util/mkisofs/mkisofs.c: Likewise. | |
12987 | * util/mkisofs/mkisofs.h: Likewise. | |
12988 | * util/mkisofs/msdos_partition.h: Likewise. | |
12989 | * util/mkisofs/multi.c: Likewise. | |
12990 | * util/mkisofs/name.c: Likewise. | |
12991 | * util/mkisofs/rock.c: Likewise. | |
12992 | * util/mkisofs/tree.c: Likewise. | |
12993 | * util/mkisofs/write.c: Likewise. | |
12994 | ||
5dde9afe VS |
12995 | 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
12996 | ||
12997 | Unify grub-mkimage accross platforms. | |
12998 | ||
12999 | * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir). | |
13000 | * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage. | |
13001 | (grub_mkelfimage_SOURCES): Removed. | |
13002 | (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to .. | |
13003 | (util/grub-mkimage.c_DEPENDENCIES): .. this. | |
13004 | (bin_UTILITIES): Add grub-mkimage. | |
13005 | (grub_mkimage_SOURCES): New variable. | |
13006 | (kernel_img_HEADERS): Remove machine/kernel.h. | |
13007 | * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img. | |
13008 | (pkglib_PROGRAMS): Add kernel.img. | |
13009 | (kernel_img_HEADERS): Add machine/kernel.h. | |
13010 | (kernel_img_FORMAT): Removed. | |
13011 | (bin_UTILITIES): Remove grub-mkimage. | |
13012 | (grub_mkimage_SOURCES): Removed. | |
13013 | (grub_mkimage_CFLAGS): Likewise. | |
13014 | (util/grub-mkrawimage.c_DEPENDENCIES): Likewise. | |
13015 | * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img. | |
13016 | (pkglib_PROGRAMS): Add kernel.img. | |
13017 | (bin_UTILITIES): Remove grub-mkimage. | |
13018 | (grub_mkimage_SOURCES): Removed. | |
13019 | (grub_mkimage_CFLAGS): Likewise. | |
13020 | (util/grub-mkrawimage.c_DEPENDENCIES): Likewise. | |
13021 | * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img. | |
13022 | (pkglib_PROGRAMS): Add kernel.img. | |
13023 | * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img. | |
13024 | (pkglib_PROGRAMS): Add kernel.img. | |
13025 | * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage. | |
13026 | (grub_mkimage_SOURCES): Removed. | |
13027 | (grub_mkimage_CFLAGS): Likewise. | |
13028 | (util/grub-mkrawimage.c_DEPENDENCIES): Likewise. | |
13029 | * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img. | |
13030 | (pkglib_PROGRAMS): Add kernel.img. | |
13031 | (bin_UTILITIES): Remove grub-mkimage. | |
13032 | (grub_mkimage_SOURCES): Removed. | |
13033 | (grub_mkimage_CFLAGS): Likewise. | |
13034 | (util/grub-mkrawimage.c_DEPENDENCIES): Likewise. | |
13035 | * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage. | |
13036 | (grub_mkimage_SOURCES): Removed. | |
13037 | (grub_mkimage_CFLAGS): Likewise. | |
13038 | (util/grub-mkrawimage.c_DEPENDENCIES): Likewise. | |
13039 | * configure.ac (machine_CFLAGS): Add "-DMACHINE". | |
13040 | * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ... | |
13041 | (grub_pe32_optional_header): ... this. | |
13042 | (grub_pe64_optional_header): ... and this. All users updated. | |
13043 | (GRUB_PE32_PE32_MAGIC): Split into .. | |
13044 | (GRUB_PE32_PE32_MAGIC): .. this. | |
13045 | (GRUB_PE32_PE64_MAGIC): .. and this. | |
13046 | (GRUB_PE32_SIGNATURE_SIZE): New definition. | |
13047 | * include/grub/elf.h (PT_GNU_STACK): New definition. | |
13048 | * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated. | |
13049 | * include/grub/i386/efi/kernel.h: Likewise. | |
13050 | * include/grub/i386/kernel.h: Likewise. | |
13051 | * include/grub/i386/pc/kernel.h: Likewise. | |
13052 | * include/grub/i386/qemu/boot.h: Likewise. | |
13053 | * include/grub/mips/kernel.h: Likewise. | |
13054 | * include/grub/mips/qemu-mips/kernel.h: Likewise. | |
13055 | * include/grub/powerpc/ieee1275/kernel.h: Likewise. | |
13056 | * include/grub/powerpc/kernel.h: Likewise. | |
13057 | * include/grub/sparc64/ieee1275/boot.h: Likewise. | |
13058 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
13059 | * include/grub/sparc64/kernel.h: Likewise. | |
13060 | * include/grub/x86_64/efi/kernel.h: Likewise. | |
13061 | * include/grub/x86_64/kernel.h: Likewise. | |
13062 | * include/grub/offsets.h: New file. | |
13063 | * include/grub/kernel.h (grub_module_info): Split into ... | |
13064 | (grub_module_info32): ... this. | |
13065 | (grub_module_info64): ... and this. | |
13066 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ... | |
13067 | * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here. | |
13068 | (grub_boot_blocklist): Moved from here ... | |
13069 | * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here. | |
13070 | * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here. | |
13071 | * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here. | |
13072 | * include/grub/types.h (grub_target_to_host16): Removed. | |
13073 | (grub_target_to_host32): Likewise. | |
13074 | (grub_target_to_host64): Likewise. | |
13075 | (grub_host_to_target16): Likewise. | |
13076 | (grub_host_to_target32): Likewise. | |
13077 | (grub_host_to_target64): Likewise. | |
13078 | (grub_host_to_target_addr): Likewise. | |
13079 | ||
13080 | Support grub-mkrescue for efi, coreboot and qemu. | |
13081 | ||
13082 | * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue. | |
13083 | * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix. | |
13084 | * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c. | |
13085 | * util/grub-mkrawimage.c: Moved from here ... | |
13086 | * util/grub-mkimage.c: ... here. All users updated. | |
13087 | (ALIGN_ADDR): Use image_target. | |
13088 | (TARGET_NO_FIELD): New const. | |
13089 | (image_target_desc): New type. | |
13090 | (image_targets): New array. | |
13091 | (grub_target_to_host64): Use image_target. | |
13092 | (grub_target_to_host32): Likewise. | |
13093 | (grub_target_to_host16): Likewise. | |
13094 | (grub_host_to_target64): Likewise. | |
13095 | (grub_host_to_target32): Likewise. | |
13096 | (grub_host_to_target16): Likewise. | |
13097 | (grub_host_to_target_addr): Likewise. | |
13098 | (generate_image): Handle multiimage. | |
13099 | (main): Require -O parameter. All users updated. | |
13100 | * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and | |
13101 | util/efi/grub-mkimage.c | |
13102 | * util/grub-mkrescue.in: Handle coreboot, efi and qemu. | |
13103 | New option --rom-directory. | |
13104 | Use xorriso. | |
13105 | * util/i386/efi/grub-mkimage.c: Removed. | |
13106 | * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition. | |
13107 | (grub_target_to_host32): Likewise. | |
13108 | (grub_target_to_host64): Likewise. | |
13109 | (grub_host_to_target16): Likewise. | |
13110 | (grub_host_to_target32): Likewise. | |
13111 | (grub_host_to_target64): Likewise. | |
13112 | * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition. | |
13113 | (grub_target_to_host32): Likewise. | |
13114 | (grub_target_to_host64): Likewise. | |
13115 | (grub_host_to_target16): Likewise. | |
13116 | (grub_host_to_target32): Likewise. | |
13117 | (grub_host_to_target64): Likewise. | |
13118 | ||
f4fc97d0 BC |
13119 | 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com> |
13120 | ||
13121 | Source tree is reorganized for emu build. | |
13122 | ||
13123 | * include/grub/util/console.h: Move from here... | |
13124 | * include/grub/emu/console.h: ...to here. | |
13125 | * include/grub/util/getroot.h: Move from here... | |
13126 | * include/grub/emu/getroot.h: ...to here. | |
13127 | * include/grub/util/hostdisk.h: Move from here... | |
13128 | * include/grub/emu/hostdisk.h: ...to here. | |
13129 | * util/console.c: Move from here... | |
13130 | * kern/emu/console.c: ...to here. | |
13131 | * util/getroot.c: Move from here... | |
13132 | * kern/emu/getroot.c: ...to here. | |
13133 | * util/grub-emu.c: Move from here... | |
13134 | * kern/emu/main.c: ...to here. | |
13135 | * util/hostdisk.c: Move from here... | |
13136 | * kern/emu/hostdisk.c: ...to here. | |
13137 | * util/hostfs.c: Move from here... | |
13138 | * kern/emu/hostfs.c: ...to here. | |
13139 | * util/mm.c: Move from here... | |
13140 | * kern/emu/mm.c: ...to here. | |
13141 | * util/pci.c: Move from here... | |
13142 | * bus/emu/pci.c: ...to here. | |
13143 | * util/sdl.c: Move from here... | |
13144 | * video/emu/sdl.c: ...to here. | |
13145 | * util/time.c: Move from here... | |
13146 | * kern/emu/time.c: ...to here. | |
13147 | * util/usb.c: Move from here... | |
13148 | * bus/usb/emu/usb.c: ...to here. | |
13149 | ||
13150 | * include/grub/emu/misc.h: New header for grub-emu functions. | |
13151 | * kern/emu/misc.c: grub-emu functions separated from util/misc.c | |
13152 | ||
13153 | * conf/any-emu.rmk: Rule updates for above renames. | |
13154 | * conf/common.rmk: Likewise. | |
13155 | * conf/i386-pc.rmk: Likewise. | |
13156 | * conf/i386-qemu.rmk: Likewise. | |
13157 | * conf/mips.rmk: Likewise. | |
13158 | * conf/sparc64-ieee1275.rmk: Likewise. | |
13159 | * conf/x86-efi.rmk: Likewise. | |
13160 | ||
13161 | * disk/lvm.h: #include updates for above renames. | |
13162 | * util/grub-mkrelpath.c: Likewise. | |
13163 | * util/grub-probe.c: Likewise. | |
13164 | * util/i386/pc/grub-setup.c: Likewise. | |
13165 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
13166 | * kern/emu/console.c: Likewise. | |
13167 | * kern/emu/getroot.c: Likewise. | |
13168 | * kern/emu/hostdisk.c: Likewise. | |
13169 | * kern/emu/main.c: Likewise. (was grub-emu.c earlier) | |
13170 | ||
13171 | * include/grub/dl.h: Remove grub_dl_{ref,unref}. | |
13172 | * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h. | |
13173 | * kern/dl.c: Handle null mod in grub_dl_{ref,unref}. | |
13174 | * util/misc.c: Remove grub-emu functions. | |
13175 | ||
cced9145 VS |
13176 | 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com> |
13177 | ||
13178 | Fix gfxmenu crash. | |
13179 | Reported by: Thorsten Grützmacher. | |
13180 | ||
13181 | * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister | |
13182 | timeout hook. | |
13183 | (circprog_set_property): Register and unregister timeout hook. | |
13184 | * gfxmenu/gui_label.c (grub_gui_label): New fields template and value. | |
13185 | (label_destroy): Free template. and unregister hook. | |
13186 | (label_set_state): New function. | |
13187 | (label_set_property): Handle templates and hooks. | |
13188 | * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister | |
13189 | timeout hook. | |
13190 | (progress_bar_set_property): Register and unregister timeout hook. | |
13191 | * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ... | |
13192 | * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here | |
13193 | * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable. | |
13194 | (update_timeout_visit): Removed. | |
13195 | (update_timeouts): New function. | |
13196 | (redraw_timeouts): Likewise. | |
13197 | (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts. | |
13198 | (grub_gfxmenu_clear_timeout): Likewise. | |
13199 | * include/grub/gui.h (grub_gfxmenu_set_state_t): New type. | |
13200 | (grub_gfxmenu_timeout_notify): Likewise. | |
13201 | (grub_gfxmenu_timeout_notifications): New external variable. | |
13202 | (grub_gfxmenu_timeout_register): New function. | |
13203 | (grub_gfxmenu_timeout_unregister): Likewise. | |
13204 | ||
c6e5caab VS |
13205 | 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
13206 | ||
13207 | Transform (broken) vga terminal into (working) vga video driver. | |
13208 | ||
13209 | * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to | |
13210 | video/i386/pc/vga.c. | |
13211 | * include/grub/video.h (grub_video_driver_id): | |
13212 | Add GRUB_VIDEO_DRIVER_VGA. | |
13213 | * term/i386/pc/vga.c: Renamed to ... | |
13214 | * video/i386/pc/vga.c: ...this | |
13215 | (DEBUG_VGA): Removed. | |
13216 | (CHAR_WIDTH): Likewise. | |
13217 | (CHAR_HEIGHT): Likewise. | |
13218 | (TEXT_WIDTH): Likewise. | |
13219 | (TEXT_HEIGHT): Likewise. | |
13220 | (DEFAULT_FG_COLOR): Likewise. | |
13221 | (DEFAULT_BG_COLOR): Likewise. | |
13222 | (colored_char): Likewise. | |
13223 | (xpos): Likewise. | |
13224 | (ypos): Likewise. | |
13225 | (cursor_state): Likewise. | |
13226 | (fg_color): Likewise. | |
13227 | (bg_color): Likewise. | |
13228 | (text_buf): Likewise. | |
13229 | (page): Likewise. | |
13230 | (font): Likewise. | |
13231 | (framebuffer): New variable. | |
13232 | (set_read_map): Disabled. | |
13233 | (setup): New variable. | |
13234 | (is_target): Likewise. | |
13235 | (grub_vga_mod_init): Likewise. | |
13236 | (grub_vga_mod_fini): Likewise. | |
13237 | (check_vga_mem): Likewise. | |
13238 | (write_char): Likewise. | |
13239 | (write_cursor): Likewise. | |
13240 | (scroll_up): Likewise. | |
13241 | (grub_vga_putchar): Likewise. | |
13242 | (grub_vga_getcharwidth): Likewise. | |
13243 | (grub_vga_getwh): Likewise. | |
13244 | (grub_vga_getxy): Likewise. | |
13245 | (grub_vga_gotoxy): Likewise. | |
13246 | (grub_vga_cls): Likewise. | |
13247 | (grub_vga_setcolorstate): Likewise. | |
13248 | (grub_vga_setcursor): Likewise. | |
13249 | (grub_video_vga_init): New function. | |
13250 | (grub_video_vga_setup): Likewise. | |
13251 | (grub_video_vga_fini): Likewise. | |
13252 | (update_target): Likewise. | |
13253 | (grub_video_vga_blit_bitmap): Likewise. | |
13254 | (grub_video_vga_blit_render_target): Likewise. | |
13255 | (grub_video_vga_set_active_render_target): Likewise. | |
13256 | (grub_video_vga_get_active_render_target): Likewise. | |
13257 | (grub_video_vga_swap_buffers): Likewise. | |
13258 | (grub_video_vga_set_palette): Likewise. | |
13259 | (grub_video_vga_get_info_and_fini): Likewise. | |
13260 | (grub_vga_term): Removed. | |
13261 | (grub_video_vga_adapter): New variable. | |
13262 | (GRUB_MOD_INIT): Register a video driver instead of terminal. | |
13263 | (GRUB_MOD_FINI): Unrefister a video driver instead of terminal. | |
13264 | ||
2bf61a98 VS |
13265 | 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
13266 | ||
13267 | * video/readers/jpeg.c: Indented. | |
13268 | ||
09ddcd11 VS |
13269 | 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
13270 | ||
13271 | Various jpeg cleanups. | |
13272 | ||
13273 | * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE. | |
13274 | (grub_jpeg_decode_quan_table): Use sizeof. | |
13275 | (grub_jpeg_decode_du): Use ARRAY_SIZE. | |
13276 | ||
e5507505 PH |
13277 | 2010-05-05 Peter Hurley <No e-mail available> (tiny change) |
13278 | ||
13279 | * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all | |
13280 | tables. Ignore non-last ac bit. | |
13281 | (grub_jpeg_decode_quan_table): Likewise. | |
13282 | ||
7e720a9b VS |
13283 | 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
13284 | ||
13285 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value | |
13286 | GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM. | |
13287 | * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
13288 | GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu. | |
13289 | * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below | |
13290 | 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set. | |
13291 | ||
a7fc080b VS |
13292 | 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
13293 | ||
13294 | * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one | |
13295 | error. | |
13296 | ||
2bf6012d VS |
13297 | 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com> |
13298 | ||
13299 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code. | |
13300 | ||
265d68cd VS |
13301 | 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com> |
13302 | ||
13303 | * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES | |
13304 | condition. | |
13305 | ||
13306 | 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com> | |
7dd5a111 VS |
13307 | |
13308 | * kern/mm.c (grub_real_malloc): Put magic and size assignment in common | |
13309 | part. | |
13310 | ||
265d68cd | 13311 | 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com> |
9b058d52 VS |
13312 | |
13313 | * kern/mm.c (grub_mm_init_region): Check for region size after aligning | |
13314 | pointers. | |
13315 | ||
265d68cd | 13316 | 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com> |
25893831 VS |
13317 | |
13318 | * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0. | |
13319 | ||
d1b61374 CF |
13320 | 2010-05-01 Christian Franke <franke@computer.org> |
13321 | ||
13322 | * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root): | |
13323 | Remove broken Cygwin path conversion. | |
13324 | * util/misc.c: [__CYGWIN__] Add include and define. | |
13325 | [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify | |
13326 | for Cygwin 1.7. | |
13327 | (make_system_path_relative_to_its_root): Simplify loop, replace early | |
13328 | return by break. | |
13329 | [__CYGWIN__] Add conversion to win32 path. | |
13330 | Include "/" case in trailing slash removal. | |
13331 | ||
3558c6e9 VS |
13332 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13333 | ||
13334 | * kern/main.c (grub_load_config): Fix copy-pasted comment. | |
13335 | Reported by: Seth Goldberg | |
13336 | ||
f5f3ff93 VS |
13337 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13338 | ||
13339 | * commands/help.c (grub_cmd_help): Fix a typo. | |
13340 | Reported by: Seth Goldberg | |
13341 | ||
d8b5cd40 VS |
13342 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13343 | ||
13344 | * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command | |
13345 | name and add N_. | |
13346 | * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise. | |
13347 | * commands/iorw.c (GRUB_MOD_INIT): Likewise. | |
13348 | * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise. | |
13349 | * commands/regexp.c (GRUB_MOD_INIT): Likewise. | |
13350 | * commands/setpci.c (GRUB_MOD_INIT): Likewise. | |
13351 | * commands/terminal.c (GRUB_MOD_INIT): Likewise. | |
13352 | * efiemu/main.c (GRUB_MOD_INIT): Likewise. | |
13353 | * font/font_cmd.c (GRUB_MOD_INIT): Likewise. | |
13354 | * kern/corecmd.c (GRUB_MOD_INIT): Likewise. | |
13355 | * mmap/mmap.c (GRUB_MOD_INIT): Likewise. | |
13356 | * normal/context.c (GRUB_MOD_INIT): Likewise. | |
13357 | * normal/main.c (GRUB_MOD_INIT): Likewise. | |
13358 | * term/gfxterm.c (GRUB_MOD_INIT): Likewise. | |
13359 | * term/serial.c (GRUB_MOD_INIT): Likewise. | |
13360 | * term/terminfo.c (GRUB_MOD_INIT): Likewise. | |
13361 | ||
88c14915 VS |
13362 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13363 | ||
13364 | * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when | |
13365 | extra == 0. | |
13366 | ||
165134bc VS |
13367 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13368 | ||
13369 | * commands/iorw.c: New file. | |
13370 | * conf/i386.rmk (pkglib_MODULES): Add iorw.mod. | |
13371 | (iorw_mod_SOURCES): New variable. | |
13372 | (iorw_mod_CFLAGS): Likewise. | |
13373 | (iorw_mod_LDFLAGS): Likewise. | |
13374 | ||
c5ac9b32 VS |
13375 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13376 | ||
13377 | Hotkey support | |
13378 | ||
13379 | * include/grub/menu.h (grub_menu_entry): New field 'hotkey'. | |
13380 | * normal/main.c (hotkey_aliases): New variable. | |
13381 | (grub_normal_add_menu_entry): Parse "--hotkey". | |
13382 | * normal/menu_text.c (run_menu): Handle hotkeys. | |
13383 | ||
ce60689c VS |
13384 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13385 | ||
13386 | * kern/i386/coreboot/init.c (grub_machine_init): Call | |
13387 | grub_machine_mmap_init on qemu. | |
13388 | ||
0359d006 VS |
13389 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13390 | ||
13391 | * boot/i386/qemu/boot.S: Add a missing .code16. | |
13392 | ||
7819a456 VS |
13393 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13394 | ||
13395 | Use LBIO on coreboot. | |
13396 | ||
13397 | * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change | |
13398 | kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c. | |
13399 | * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK): | |
13400 | New declaration. | |
13401 | * kern/i386/coreboot/init.c (grub_machine_init): Don't call | |
13402 | grub_machine_mmap_init on coreboot. | |
13403 | * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle | |
13404 | GRUB_LINUXBIOS_MEMBER_LINK. | |
13405 | (grub_machine_mmap_iterate): Fix declaration. | |
13406 | * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot. | |
13407 | ||
7210dca9 VS |
13408 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13409 | ||
13410 | Split coreboot and multiboot ports. | |
13411 | ||
13412 | * conf/i386-multiboot.rmk: New file. | |
13413 | * configure.ac: Add multiboot port. | |
13414 | * include/grub/i386/multiboot/boot.h: New file. | |
13415 | * include/grub/i386/multiboot/console.h: Likewise. | |
13416 | * include/grub/i386/multiboot/init.h: Likewise. | |
13417 | * include/grub/i386/multiboot/kernel.h: Likewise. | |
13418 | * include/grub/i386/multiboot/loader.h: Likewise. | |
13419 | * include/grub/i386/multiboot/memory.h: Likewise. | |
13420 | * include/grub/i386/multiboot/serial.h: Likewise. | |
13421 | * include/grub/i386/multiboot/time.h: Likewise. | |
13422 | * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef. | |
13423 | * loader/multiboot.c: Likewise. | |
13424 | * loader/multiboot_mbi2.c: Likewise. | |
13425 | * util/grub-mkrescue.in: Generate multiboot rescue. | |
13426 | ||
6f8aaf68 VS |
13427 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> |
13428 | ||
3080f7a7 VS |
13429 | * kern/parser.c (grub_parser_execute): Cope with read-only config. |
13430 | ||
13431 | 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com> | |
13432 | ||
13433 | Merge handling of input and output terminals. Fix a hang. | |
6f8aaf68 VS |
13434 | |
13435 | * commands/terminal.c (abstract_terminal): New struct. | |
13436 | (handle_command): New function. Based on grub_cmd_terminal_input. | |
13437 | (grub_cmd_terminal_input): Use handle_command. | |
13438 | (grub_cmd_terminal_output): Use handle_command. | |
13439 | ||
a8ebb841 BC |
13440 | 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com> |
13441 | ||
13442 | Fix comment handling. | |
13443 | ||
13444 | * tests/grub_script_comments.in: New testcase. | |
13445 | * conf/tests.rmk: Rules for new testcase. | |
13446 | * script/yylex.l: Updated flex rules. | |
13447 | ||
bb06ba08 ST |
13448 | 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org> |
13449 | ||
13450 | * docs/grub.texi (play): Document that zero pitches produce rests. | |
c76a1838 ST |
13451 | * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only |
13452 | if argc is 1. | |
bb06ba08 | 13453 | |
cc9d2425 VS |
13454 | 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com> |
13455 | ||
13456 | * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid | |
13457 | autogen issues. | |
13458 | ||
460d8402 CF |
13459 | 2010-04-26 Christian Franke <franke@computer.org> |
13460 | ||
13461 | * include/grub/util/getroot.h (grub_get_prefix): Remove prototype. | |
13462 | * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function. | |
13463 | (grub_get_prefix): Remove function. | |
13464 | * util/grub-emu.c (main): Replace grub_get_prefix () call by | |
13465 | make_system_path_relative_to_its_root (). | |
13466 | * util/sparc64/ieee1275/grub-setup.c (main): Likewise. | |
13467 | ||
553c01f9 CF |
13468 | 2010-04-24 Christian Franke <franke@computer.org> |
13469 | ||
13470 | * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc. | |
13471 | (kernel_img_LDFLAGS): Remove -static-libgcc. | |
13472 | ||
2aec1692 CF |
13473 | 2010-04-24 Christian Franke <franke@computer.org> |
13474 | ||
13475 | * configure.ac: Do not CHECK_BSS_START_SYMBOL | |
13476 | and CHECK_END_SYMBOL if grub-emu is built. | |
13477 | Unset TARGET_OBJ2ELF if grub-emu is built | |
13478 | without module support. | |
13479 | ||
f67dc308 JS |
13480 | 2010-04-24 Jiro SEKIBA <jir@unicus.jp> |
13481 | ||
13482 | Nilfs2 support. | |
13483 | ||
13484 | * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c. | |
13485 | (grub_fstest_SOURCES): Likewise. | |
13486 | (pkglib_MODULES): Add nilfs2.mod. | |
13487 | (nilfs2_mod_SOURCES): New variable. | |
13488 | (nilfs2_mod_CFLAGS): Likewise. | |
13489 | (nilfs2_mod_LDFLAGS): Likewise. | |
13490 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c. | |
13491 | * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c. | |
13492 | * fs/nilfs2.c: New file. | |
13493 | ||
4ba8d354 VS |
13494 | 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com> |
13495 | ||
13496 | * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large | |
13497 | is not supported. | |
13498 | ||
0d2c20c6 GS |
13499 | 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com> |
13500 | ||
13501 | Add grub-mkconfig support for NetBSD. | |
13502 | ||
13503 | * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD. | |
13504 | * util/grub-mkconfig.in: export new NetBSD specific variables. | |
13505 | * po/POTFILES-shell: added 10_netbsd.in. | |
13506 | * util/grub-mkconfig_lib.in: check for gettext binary, default to echo. | |
13507 | ||
bc4a2d83 BC |
13508 | 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com> |
13509 | ||
13510 | Fix emu build with grub-emu-pci and grub-emu-modules. | |
13511 | ||
13512 | * include/grub/util/misc.h: Export grub_util_{info,error,warn} | |
13513 | functions. | |
13514 | * include/grub/libpciaccess.h: New file. | |
13515 | * conf/any-emu.rmk: Update kernel headers for emu build. | |
13516 | ||
f48c87aa VS |
13517 | 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
13518 | ||
13519 | * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning. | |
13520 | ||
18959385 VS |
13521 | 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
13522 | ||
13523 | * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames. | |
13524 | ||
0037de3f VS |
13525 | 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
13526 | ||
13527 | * boot/sparc64/ieee1275/boot.S: Various size-reducing changes. | |
13528 | Retrieve chosen/bootpath if bootpath isn't hardcoded. | |
13529 | * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add | |
13530 | util/ieee1275/ofpath.c. | |
13531 | * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ... | |
13532 | * util/ieee1275/grub-ofpathname.c: ... this. All users updated | |
13533 | * include/grub/sparc64/ieee1275/boot.h | |
13534 | (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ... | |
13535 | (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower. | |
13536 | * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function. | |
13537 | * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument | |
13538 | const char *. | |
13539 | * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed. | |
13540 | (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR. | |
13541 | Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk | |
13542 | install. | |
13543 | ||
38e55e90 GS |
13544 | 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com> |
13545 | ||
13546 | * util/grub-mkconfig.in: Corrected two == equality tests. | |
13547 | Set grub_prefix as in grub-install for NetBSD and OpenBSD. | |
13548 | * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now | |
13549 | expect a number appended to it. | |
13550 | * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC} | |
13551 | expects a number appended to it. | |
13552 | ||
a9e6ff28 VS |
13553 | 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
13554 | ||
13555 | * po/POTFILES: Renamed multiboot_loader.c to multiboot.c | |
13556 | ||
0b830b8f VS |
13557 | 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com> |
13558 | ||
13559 | * util/hostdisk.c (make_device_name): Change to new partition naming. | |
13560 | ||
0973daeb VS |
13561 | 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com> |
13562 | ||
13563 | * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0. | |
13564 | ||
460d8402 | 13565 | 2010-04-17 Christian Franke <franke@computer.org> |
ebfe7eb4 CF |
13566 | |
13567 | * Makefile.in: Add missing localedir setting. | |
13568 | ||
0b456309 CW |
13569 | 2010-04-14 Colin Watson <cjwatson@ubuntu.com> |
13570 | ||
13571 | Restore TEXTDOMAINDIR correction from r1889, lost apparently by | |
13572 | mistake in r2156. Noticed by Anthony Fok. | |
13573 | ||
13574 | * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased | |
13575 | @localedir@. | |
13576 | * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise. | |
13577 | ||
08f46d62 BC |
13578 | 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com> |
13579 | ||
13580 | Fix a spurious, uninitialized variable warning. | |
13581 | ||
13582 | * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj): | |
13583 | Initialize variable, shdr. | |
13584 | (grub_freebsd_load_elfmodule): Likewise. | |
13585 | (grub_freebsd_load_elf_meta): Likewise. | |
13586 | ||
8c4a72d4 BC |
13587 | 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com> |
13588 | ||
13589 | Fix for escaped dollar in double quoted strings. | |
13590 | ||
13591 | * script/yylex.l: Updated flex rules. | |
13592 | * conf/tests.rmk: Rule for new testcase. | |
13593 | * tests/grub_script_dollar.in: New testcase. | |
13594 | ||
ce44826e CPE |
13595 | 2010-04-13 Carles Pina i Estany <carles@pina.cat> |
13596 | 2010-04-13 Colin Watson <cjwatson@ubuntu.com> | |
13597 | ||
13598 | Enclose all translated strings in grub.cfg in single quotes, and | |
13599 | escape them appropriately (Ubuntu bug #552921). | |
13600 | ||
13601 | * util/grub-mkconfig_lib.in (gettext_quoted): New function. | |
13602 | * util/grub.d/10_hurd.in: Use it. | |
13603 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise. | |
13604 | * util/grub.d/10_linux.in (linux_entry): Likewise. | |
13605 | ||
4b0cd8f8 VS |
13606 | 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
13607 | ||
13608 | Fix cygwin compilation. | |
13609 | ||
13610 | * configure.ac: Define NEED_REGISTER_FRAME_INFO. | |
13611 | * include/grub/misc.h (__register_frame_info) | |
13612 | [NEED_REGISTER_FRAME_INFO && !UTIL]: New export. | |
13613 | (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise. | |
13614 | * kern/misc.c (__register_frame_info) | |
13615 | [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function. | |
13616 | (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise. | |
13617 | ||
01fcf061 VS |
13618 | 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
13619 | ||
13620 | * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols. | |
13621 | ||
5d04b11e VS |
13622 | 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com> |
13623 | ||
13624 | Unify libgcc processing. | |
13625 | ||
13626 | * Makefile.in (kernel_img_LDFLAGS): New variable. | |
13627 | * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h. | |
13628 | * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of | |
13629 | overwriting. | |
13630 | * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise. | |
13631 | * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise. | |
13632 | * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise. | |
13633 | * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise. | |
13634 | * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of | |
13635 | overwriting. Remove -lgcc and -static-libgcc | |
13636 | * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise. | |
13637 | * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h | |
13638 | * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h | |
13639 | (kernel_img_LDFLAGS): Append instead of overwriting. | |
13640 | Remove -lgcc and -static-libgcc | |
13641 | * conf/sparc64-ieee1275.rmk: Likewise. | |
13642 | * include/grub/powerpc/libgcc.h: Move to ... | |
13643 | * include/grub/libgcc.h: .. this. | |
13644 | * include/grub/libgcc.h: Don't export most of the function on x86. | |
13645 | (__bswapsi2): New export. | |
13646 | (__bswapdi2): Likewise. | |
13647 | * include/grub/mips/libgcc.h: Removed. | |
13648 | * include/grub/sparc64/libgcc.h: Likewise. | |
13649 | ||
b7f3ac29 VS |
13650 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13651 | ||
13652 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove | |
13653 | disk_info_msg (conflicts with gettexting into languages with cases). | |
13654 | ||
2c7031b1 GS |
13655 | 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com> |
13656 | ||
13657 | Add grub-probe support for NetBSD. | |
13658 | ||
13659 | * util/getroot.c (find_root_device): Convert block device to | |
13660 | character device on NetBSD. | |
13661 | * util/probe.c (probe): Require character device on NetBSD. | |
13662 | * util/hostdisk.c: NetBSD specific headers. | |
13663 | (configure_device_driver): new function to tune device driver | |
13664 | parameters (currently only for NetBSD floppy driver). | |
13665 | (grub_util_biosdisk_open): NetBSD specific code (get disk size | |
13666 | via disklabel ioctl). | |
13667 | (open_device): call configure_device_driver on NetBSD. | |
13668 | (convert_system_partition_to_system_disk): NetBSD specific code. | |
13669 | (device_is_wholedisk): Likewise. | |
13670 | (grub_util_biosdisk_get_grub_dev): Likewise. | |
13671 | (make_device_name): Fixed a typo in bsd_part_str. | |
13672 | * configure.ac: check for opendisk() and getrawpartition() on | |
13673 | NetBSD and set LIBUTIL. | |
13674 | * Makefile.in: add LIBUTIL to LIBS. | |
13675 | ||
f516290c BC |
13676 | 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com> |
13677 | ||
13678 | Documentation fix. | |
13679 | ||
13680 | * util/grub-script-check.c: Better help message. | |
13681 | ||
d8dcc0df BC |
13682 | 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com> |
13683 | ||
13684 | Fix FreeBSD build. | |
13685 | ||
13686 | * configure.ac: Flex version check. | |
13687 | * conf/common.rmk: Add -Wno-error to sh.mod. | |
13688 | * script/yylex.l: Remove all #pragma. | |
13689 | ||
6734334a VS |
13690 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13691 | ||
13692 | * include/grub/util/misc.h (canonicalise_file_name): Add missing | |
13693 | prototype. | |
13694 | Reported by: Seth Goldberg. | |
13695 | ||
daea6abd VS |
13696 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13697 | ||
13698 | * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]: | |
13699 | Rename "module" to "module2". | |
13700 | Reported by: Seth Goldberg. | |
13701 | ||
f2fd9d2b VS |
13702 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13703 | ||
13704 | * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove | |
13705 | EXPORT_FUNC. | |
13706 | Reported by: Seth Goldberg. | |
13707 | ||
be124579 VS |
13708 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13709 | ||
13710 | * lib/posix_wrap/locale.h: Add missing file. | |
13711 | Reported by: Seth Goldberg. | |
13712 | ||
ef5da797 VS |
13713 | 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
13714 | ||
13715 | grub-emu module load support. | |
13716 | ||
13717 | * Makefile.in (TARGET_NO_MODULES): New variable. All users of | |
13718 | NO_DYNAMIC_MODULES switched to this. | |
13719 | (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable. | |
13720 | (CFLAGS): Likewise. | |
13721 | * conf/any-emu.rmk: Generate symlist. | |
13722 | (kernel_img_HEADERS): Add util/datetime.h. | |
13723 | (kernel_img_HEADERS) [sdl]: Add sdl.h. | |
13724 | (kernel_img_HEADERS) [libusb]: Add libusb.h. | |
13725 | (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add | |
13726 | kern/$(target_cpu)/cache.S. | |
13727 | * configure.ac (grub-emu-modules): New option. | |
13728 | * genmk.rb: Handle multiple source lists. | |
13729 | * include/grub/sdl.h: New file. | |
13730 | * include/grub/libusb.h: Likewise. | |
13731 | * util/grub-emu.c (main): Hanle (host) root. | |
13732 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with | |
13733 | GRUB_ERR_UNKNOWN_DEVICE. | |
13734 | * util/misc.c: Move mm functions to ... | |
13735 | * util/mm.c: ... here. All users updated. | |
13736 | ||
47822096 VS |
13737 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13738 | ||
13739 | * Makefile.in (RMKFILES): Search in srcdir and not current directory. | |
13740 | (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few | |
13741 | missing files. | |
13742 | (maintainer-clean): Remove libgcrypt-grub. | |
13743 | ||
5d7e7445 VS |
13744 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13745 | ||
13746 | * term/efi/console.c (grub_console_checkkey): Macroify key contants. | |
13747 | ||
25f4e252 EC |
13748 | 2010-04-09 EFI Coder <eficoder@hotmail.com> |
13749 | ||
13750 | * normal/menu_text.c (print_message): Clean up the message and show | |
13751 | the Fn information when on EFI | |
13752 | * term/efi/console.c (grub_console_checkkey): Add F4 support. | |
13753 | ||
027de555 VS |
13754 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13755 | ||
13756 | * normal/autofs.c (read_fs_list): New parameter 'prefix'. | |
13757 | All users updated. | |
13758 | * normal/crypto.c (read_crypto_list): Likewise. | |
13759 | * normal/dyncmd.c (read_command_list): Likewise. | |
13760 | * normal/term.c (read_terminal_list): Likewise. | |
13761 | * normal/main.c (read_lists): Use explicit prefix. | |
13762 | (read_lists_hook): Use read_lists. | |
13763 | (grub_normal_execute): Likewise. | |
13764 | ||
47779711 VS |
13765 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13766 | ||
13767 | * util/grub-mkrescue.in: Fix incorrect path in coreboot part. | |
13768 | Reported by: Thomas Schmitt. | |
13769 | Add -no-emul-boot to grub-mkisofs parameters. | |
13770 | ||
1118c32e VS |
13771 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13772 | ||
13773 | * font/font.c: Indented. | |
13774 | ||
7d652447 BC |
13775 | 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com> |
13776 | ||
13777 | Elif support to GRUB script (by Deepak Vankadaru). | |
13778 | ||
13779 | * tests/grub_script_if.in: New testcase. | |
13780 | * conf/tests.rmk: Rule for new testcase. | |
13781 | * script/parser.y: Grammar rules for elif. | |
13782 | ||
34bb22df BC |
13783 | 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com> |
13784 | ||
13785 | While and until loops support to GRUB script. | |
13786 | ||
13787 | * include/grub/script_sh.h (grub_script_cmdwhile): New struct. | |
13788 | (grub_script_create_cmdwhile): New function prototype. | |
13789 | (grub_script_execute_cmdwhile): New function prototype. | |
13790 | * script/execute.c (grub_script_execute_cmdwhile): New function. | |
13791 | * script/parser.y (command): New commands. | |
13792 | (whilecmd): New grammar rule. | |
13793 | (untilcmd): New grammar rule. | |
13794 | * script/script.c (grub_script_create_cmdwhile): New function. | |
13795 | * util/grub-script-check.c (grub_script_execute_cmdwhile): New | |
13796 | function. | |
13797 | ||
13798 | * tests/grub_script_while1.in: New testcase. | |
13799 | * conf/tests.rmk: Rule for new testcase. | |
13800 | ||
e215d8e0 VS |
13801 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13802 | ||
13803 | * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg | |
13804 | as *.jpg. | |
13805 | ||
d7c43ba1 MV |
13806 | 2010-04-09 Mario Vazquez <mariovazq@gmail.com> |
13807 | ||
13808 | GRUB_BACKGROUND support. | |
13809 | ||
13810 | * util/grub-mkconfig.in: Export GRUB_BACKGROUND. | |
13811 | * util/grub.d/00_header.in: Parse GRUB_BACKGROUND. | |
13812 | ||
d64795c0 VS |
13813 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13814 | ||
13815 | Load fonts and modules for gfxmenu in grub-mkconfig. | |
d7c43ba1 | 13816 | Idea by: Mario Vazquez |
d64795c0 VS |
13817 | |
13818 | * util/grub.d/00_header.in: Load pf2 and image modules. | |
13819 | ||
f267f83a VS |
13820 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13821 | ||
13822 | grub-mkconfig multiple terminal support. | |
13823 | ||
13824 | * util/grub-mkconfig.in: Handle multiple terminals correctly. | |
13825 | * util/grub.d/00_header.in: Likewise. | |
13826 | ||
b7841ceb VS |
13827 | 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com> |
13828 | ||
13829 | * Makefile.in: Specify files explicitly instead of using $< and $@ since | |
13830 | we use cd $(srcdir). | |
13831 | ||
df60998c CW |
13832 | 2010-04-08 Colin Watson <cjwatson@ubuntu.com> |
13833 | ||
13834 | * util/grub.d/10_linux.in: Only use the first word of | |
13835 | GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts | |
13836 | spaces in GRUB_DISTRIBUTOR. | |
13837 | * util/grub.d/10_kfreebsd.in: Likewise. | |
13838 | * util/grub.d/10_hurd.in: Likewise. | |
13839 | ||
fa09c82e BC |
13840 | 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com> |
13841 | ||
14e18ae3 | 13842 | Fix unit testing framework for Qemu 0.12. |
fa09c82e BC |
13843 | |
13844 | * tests/util/grub-shell.in: Remove -serial stdio option. | |
13845 | ||
daf892b3 BC |
13846 | 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
13847 | ||
13848 | POSIX header file wrappers. | |
13849 | ||
13850 | * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX | |
13851 | equivalents. | |
13852 | * lib/posix_wrap/ctype.h: Likewise. | |
13853 | * lib/posix_wrap/errno.h: Likewise. | |
13854 | * lib/posix_wrap/langinfo.h: Likewise. | |
13855 | * lib/posix_wrap/limits.h: Likewise. | |
13856 | * lib/posix_wrap/localcharset.h: Likewise. | |
13857 | * lib/posix_wrap/stdint.h: Likewise. | |
13858 | * lib/posix_wrap/stdio.h: Likewise. | |
13859 | * lib/posix_wrap/stdlib.h: Likewise. | |
13860 | * lib/posix_wrap/string.h: Likewise. | |
13861 | * lib/posix_wrap/sys/types.h: Likewise. | |
13862 | * lib/posix_wrap/unistd.h: Likewise. | |
13863 | * lib/posix_wrap/wchar.h: Likewise. | |
13864 | * lib/posix_wrap/wctype.h: Likewise. | |
13865 | * conf/common.rmk (grub_script.yy.c): Remove #include elimination. | |
13866 | (grub_script.yy.h): Likewise. | |
13867 | * script/yylex.l: Remove POSIX emulation #defines. | |
13868 | * Makefile.in (POSIX_CFLAGS): New variable. | |
13869 | (GNULIB_UTIL_CFLAGS): Likewise. | |
13870 | ||
13871 | Regexp support. | |
13872 | ||
13873 | * conf/common.rmk (pkglib_MODULES): Add regexp.mod. | |
13874 | (regexp_mod_SOURCES): New variable. | |
13875 | (regexp_mod_CFLAGS): Likewise. | |
13876 | (regexp_mod_LDFLAGS): Likewise. | |
13877 | * commands/regexp.c: New file. | |
13878 | * gnulib/regcomp.c: New file. Imported from gnulib. | |
13879 | * gnulib/regex.c: Likewise. | |
13880 | * gnulib/regex_internal.c: Likewise. | |
13881 | * gnulib/regex_internal.h: Likewise. | |
13882 | * gnulib/regexec.c: Likewise. | |
13883 | * gnulib/regex.h: Likewise. | |
13884 | ||
974ac4f7 VS |
13885 | 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
13886 | ||
13887 | * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report | |
13888 | unsupported video mode types. | |
13889 | ||
2622c3ff VS |
13890 | 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
13891 | ||
13892 | * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code). | |
13893 | ||
064cb524 VS |
13894 | 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
13895 | ||
13896 | * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export. | |
13897 | * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h. | |
13898 | ||
a8c3b552 VS |
13899 | 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com> |
13900 | ||
13901 | Remove unused grub_vga_get_font. | |
13902 | ||
13903 | * kern/i386/pc/startup.S (grub_vga_get_font): Removed. | |
13904 | * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise. | |
13905 | ||
187bbe3d GS |
13906 | 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com> |
13907 | ||
13908 | * kern/misc.c: Disable the __enable_execute_stack hack for utilities. | |
13909 | * include/grub/misc.h: Likewise. | |
13910 | ||
b9396631 GS |
13911 | 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com> |
13912 | ||
13913 | * util/grub-install.in: Add `|| exit 1' to all grub-probe calls | |
13914 | for which failure is fatal. | |
13915 | ||
50479feb GS |
13916 | 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com> |
13917 | ||
13918 | * util/grub-install.in: Use mkdir -p to create grub directory. | |
13919 | * util/i386/efi/grub-install.in: Likewise. | |
13920 | * util/ieee1275/grub-install.in: Likewise. | |
13921 | ||
b1654fdf GS |
13922 | 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com> |
13923 | ||
13924 | * Makefile.in (LEX): new variable. | |
13925 | ||
bd5a6415 GS |
13926 | 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com> |
13927 | ||
13928 | * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by | |
13929 | `=' and added double quotes on operands of this equality test. | |
13930 | ||
3db3a82b VS |
13931 | 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com> |
13932 | ||
13933 | * Makefile.in (uninstall): Remove a leftover debug echo. | |
13934 | Reported by: Grégoire Sutre | |
13935 | ||
38023412 VS |
13936 | 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com> |
13937 | ||
13938 | MIPS multiboot2 support. | |
13939 | ||
13940 | * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod. | |
13941 | (multiboot2_mod_SOURCES): New variable. | |
13942 | (multiboot2_mod_CFLAGS): Likewise. | |
13943 | (multiboot2_mod_LDFLAGS): Likewise. | |
13944 | (multiboot2_mod_ASFLAGS): Likewise. | |
13945 | * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New | |
13946 | definition. | |
13947 | (MULTIBOOT_ENTRY_REGISTER): Likewise. | |
13948 | (MULTIBOOT_MBI_REGISTER): Likewise. | |
13949 | (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise. | |
13950 | (MULTIBOOT_ELF32_MACHINE): Likewise. | |
13951 | (MULTIBOOT_ELF64_MACHINE): Likewise. | |
13952 | * include/grub/mips/multiboot.h: New file. | |
13953 | * include/grub/video.h (grub_video_driver_id): New type | |
13954 | GRUB_VIDEO_DRIVER_SM712. | |
13955 | (grub_video_get_info_and_fini): Export. | |
13956 | (grub_video_get_palette): Likewise. | |
13957 | (grub_video_get_driver_id): Likewise. | |
13958 | * include/multiboot2.h: Resynced with spec. | |
13959 | * loader/i386/multiboot.c: Moved from here ... | |
13960 | * loader/multiboot.c: ... here. All users updated. | |
13961 | (grub_multiboot_boot): Use platform-specific macros. | |
13962 | * loader/i386/multiboot_elfxx.c: Moved from here ... | |
13963 | * loader/multiboot_elfxx.c: ... here. All users updated. | |
13964 | (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE. | |
13965 | * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture. | |
13966 | * video/sm712.c (grub_video_sm712_adapter): Add missing id field. | |
13967 | ||
47674667 VS |
13968 | 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com> |
13969 | ||
13970 | Import gnulib argp module. | |
13971 | ||
13972 | * gnulib/argp-ba.c: New file. | |
13973 | * gnulib/argp-eexst.c: Likewise. | |
13974 | * gnulib/argp-fmtstream.c: Likewise. | |
13975 | * gnulib/argp-fmtstream.h: Likewise. | |
13976 | * gnulib/argp-fs-xinl.c: Likewise. | |
13977 | * gnulib/argp-help.c: Likewise. | |
13978 | * gnulib/argp-namefrob.h: Likewise. | |
13979 | * gnulib/argp-parse.c: Likewise. | |
13980 | * gnulib/argp-pin.c: Likewise. | |
13981 | * gnulib/argp-pv.c: Likewise. | |
13982 | * gnulib/argp-pvh.c: Likewise. | |
13983 | * gnulib/argp-version-etc.c: Likewise. | |
13984 | * gnulib/argp-version-etc.h: Likewise. | |
13985 | * gnulib/argp-xinl.c: Likewise. | |
13986 | * gnulib/argp.h: Likewise. | |
13987 | ||
495442ed VS |
13988 | 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com> |
13989 | ||
13990 | * kern/device.c (grub_device_iterate): Clear errors after failed | |
13991 | opening device. | |
13992 | ||
f9fd65df VS |
13993 | 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com> |
13994 | ||
13995 | * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if | |
13996 | returned by firmware. | |
13997 | ||
af09641e VS |
13998 | 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com> |
13999 | ||
14000 | * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix | |
14001 | compilation on coreboot and qemu | |
14002 | ||
016883a5 VS |
14003 | 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com> |
14004 | ||
14005 | * include/multiboot2.h: Resync with spec. | |
14006 | ||
f97e1f7d VS |
14007 | 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com> |
14008 | ||
14009 | Multiboot2 tag support | |
14010 | ||
14011 | * conf/i386.rmk (multiboot2_mod_SOURCES): Replace | |
14012 | loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c. | |
14013 | Remove loader/multiboot_loader.c. | |
14014 | * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed. | |
14015 | (grub_multiboot2_real_boot): Likewise. | |
14016 | * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed. | |
14017 | (grub_get_multiboot_mmap_count): New proto. | |
14018 | (grub_fill_multiboot_mmap): Likewise. | |
14019 | (grub_multiboot_set_video_mode): Likewise. | |
14020 | (grub_multiboot_set_console): Likewise. | |
14021 | (grub_multiboot_load): Likewise. | |
14022 | (grub_multiboot_load_elf): Likewise. | |
14023 | (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition. | |
14024 | (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise. | |
14025 | * include/multiboot.h: Resynced with specification. | |
14026 | * include/multiboot2.h: Resynced with specification. | |
14027 | * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here... | |
14028 | * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here. | |
14029 | * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here .. | |
14030 | * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All | |
14031 | users updated. | |
14032 | * loader/i386/multiboot_mbi.c (accepts_video): Moved from here... | |
14033 | * loader/i386/multiboot.c (accepts_video): ... here. All users updated. | |
14034 | * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video): | |
14035 | Removed. | |
14036 | * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len): | |
14037 | Moved from here... | |
14038 | * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here. | |
14039 | * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): | |
14040 | Moved from here... | |
14041 | * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here. | |
14042 | * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here... | |
14043 | * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here. | |
14044 | All users updated. | |
14045 | * loader/i386/multiboot_mbi2.c: New file. | |
14046 | ||
3506b90b VS |
14047 | 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com> |
14048 | ||
14049 | Resync with gnulib. | |
14050 | ||
14051 | * Makefile.in (GNULIB_CFLAGS): New variable. | |
14052 | * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS. | |
14053 | (grub_script_check_CFLAGS): New variable. | |
14054 | * gnulib/alloca.h: Resync with gnulib. | |
14055 | * gnulib/error.c: Likewise. | |
14056 | * gnulib/error.h: Likewise. | |
14057 | * gnulib/fnmatch.c: Likewise. | |
14058 | * gnulib/fnmatch_loop.c: Likewise. | |
14059 | * gnulib/getdelim.c: Likewise. | |
14060 | * gnulib/getline.c: Likewise. | |
14061 | * gnulib/getopt.c: Likewise. | |
14062 | * gnulib/getopt1.c: Likewise. | |
14063 | * gnulib/getopt_int.h: Likewise. | |
14064 | * gnulib/gettext.h: Likewise. | |
14065 | * gnulib/progname.c: Likewise. | |
14066 | * gnulib/progname.h: Likewise. | |
14067 | ||
394a3120 GS |
14068 | 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com> |
14069 | ||
14070 | Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined, | |
14071 | which is the case with --disabled-nls. | |
14072 | ||
14073 | * include/grub/i18n.h: Use (defined(ENABLE_NLS) | |
14074 | && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros. | |
14075 | * util/misc.c: Likewise. | |
14076 | * util/mkisofs/mkisofs.c: Likewise. | |
14077 | * util/mkisofs/mkisofs.h: Likewise. | |
14078 | ||
969d1c78 VS |
14079 | 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com> |
14080 | ||
14081 | Simplify Apple CC support. | |
14082 | ||
14083 | * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible. | |
14084 | Add 0 byte at the end not to have a symbol with empty target. | |
14085 | * mmap/i386/pc/mmap_helper.S: Likewise. | |
14086 | * genmk.rb: Ignore errors 2030 and 2050. | |
14087 | * kern/i386/pc/startup.S: Use LOCAL when possible. | |
14088 | ||
8d2977bb BC |
14089 | 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com> |
14090 | ||
14091 | Testcase and the fix for final semicolon on cmdline. | |
14092 | ||
14093 | * tests/grub_script_final_semicolon.in: New testcase. | |
14094 | * conf/tests.rmk: Rules for the new testcase. | |
14095 | * script/parser.y: Grammar fix. | |
14096 | ||
a7bd6915 BC |
14097 | 2010-03-26 BVK Chaitanya <bvk@localhost> |
14098 | ||
14099 | Blank lines testcase for GRUB script. | |
14100 | ||
14101 | * tests/grub_script_blanklines.in: New testcase. | |
14102 | * conf/tests.rmk: Rules for the new testcase. | |
14103 | ||
e4ff6628 VS |
14104 | 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
14105 | ||
14106 | Don't use __FILE__. | |
14107 | ||
14108 | * genmk.rb: Add -DGRUB_FILE to all C targets. | |
14109 | * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE. | |
14110 | * include/grub/list.h: Likewise. | |
14111 | * include/grub/misc.h: Likewise. | |
14112 | * include/grub/mm.h: Likewise. | |
14113 | * include/grub/test.h: Likewise. | |
14114 | * kern/mm.c: Likewise. | |
14115 | * lib/libgcrypt_wrap/cipher_wrap.h: Likewise. | |
14116 | ||
6a5cf6b6 VS |
14117 | 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
14118 | ||
14119 | Sunpc partitions support. | |
14120 | ||
14121 | * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c. | |
14122 | (grub_fstest_SOURCES): Likewise. | |
14123 | (pkglib_MODULES): Add part_sunpc.mod. | |
14124 | (part_sunpc_mod_SOURCES): New variable. | |
14125 | (part_sunpc_mod_CFLAGS): Likewise. | |
14126 | (part_sunpc_mod_LDFLAGS): Likewise. | |
14127 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c. | |
14128 | * partmap/sunpc.c: New file. | |
14129 | ||
746d9045 BC |
14130 | 2010-03-26 BVK Chaitanya <bvk@localhost> |
14131 | ||
14132 | For loop support to GRUB script. | |
14133 | ||
14134 | * include/grub/script_sh.h (grub_script_cmdfor): New struct. | |
14135 | (grub_script_create_cmdfor): New function prototype. | |
14136 | (grub_script_execute_cmdfor): New function prototype. | |
14137 | * script/execute.c (grub_script_execute_cmdfor): New function. | |
14138 | * script/parser.y (command): New for command. | |
14139 | (forcmd): New grammar rule. | |
14140 | * script/script.c (grub_script_create_cmdfor): New function. | |
14141 | * util/grub-script-check.c (grub_script_execute_cmdfor): New | |
14142 | function. | |
14143 | * tests/grub_script_for1.in: New testcase. | |
14144 | * conf/tests.rmk: Rules for new testcase. | |
14145 | ||
18486b18 VS |
14146 | 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com> |
14147 | ||
14148 | Nested partitions | |
14149 | ||
14150 | * commands/blocklist.c (grub_cmd_blocklist): Don't check whether | |
14151 | 'partition' is NULL, grub_partition_get_start already does that. | |
14152 | * commands/loadenv.c (check_blocklists): Likewise. | |
14153 | (write_blocklists): Likewise. | |
14154 | * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c. | |
14155 | (grub_fstest_SOURCES): Likewise. | |
14156 | (pkglib_MODULES): Add part_bsd.mod. | |
14157 | (part_bsd_mod_SOURCES): New variable. | |
14158 | (part_bsd_mod_CFLAGS): Likewise. | |
14159 | (part_bsd_mod_LDFLAGS): Likewise. | |
14160 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c. | |
14161 | (grub_emu_SOURCES): Likewise. | |
14162 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
14163 | * include/grub/bsdlabel.h: New file. | |
14164 | * include/grub/partition.h (grub_partition_map): Remove 'probe' and | |
14165 | 'get_name'. | |
14166 | (grub_partition): Add 'parent' and 'number'. Remove 'data'. | |
14167 | (grub_partition_map_list): New variable. | |
14168 | (grub_partition_map_register): Inline. | |
14169 | (grub_partition_map_unregister): Likewise. | |
14170 | (FOR_PARTITION_MAPS): New macro. | |
14171 | (grub_partition_map_iterate): Removed. | |
14172 | (grub_partition_get_start): Handle nested partitions. | |
14173 | * include/grub/msdos_partition.h: Remove bsd-related entries. | |
14174 | (grub_pc_partition): Remove. | |
14175 | * kern/disk.c (grub_disk_close): Free partition data. | |
14176 | (grub_disk_adjust_range): Handle nested partitions. | |
14177 | * kern/partition.c (grub_partition_map_probe): New function. | |
14178 | (grub_partition_probe): Parse name to number, handle subpartitions. | |
14179 | (get_partmap): New function. | |
14180 | (grub_partition_iterate): Handle subpartitions. | |
14181 | (grub_partition_get_name): Likewise. | |
14182 | * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise. | |
14183 | * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise. | |
14184 | * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise. | |
14185 | * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access. | |
14186 | Set 'number'. | |
14187 | (acorn_partition_map_probe): Remove. | |
14188 | (acorn_partition_map_get_name): Likewise. | |
14189 | * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access. | |
14190 | Set 'number'. | |
14191 | Set 'index' to 0 since there can be only one partition entry per sector. | |
14192 | (amiga_partition_map_probe): Remove. | |
14193 | (amiga_partition_map_get_name): Likewise. | |
14194 | * partmap/apple.c (apple_partition_map_iterate): Don't force raw access. | |
14195 | Set 'number'. | |
14196 | Set 'offset' and 'index' to real positions of partitions. | |
14197 | (apple_partition_map_probe): Remove. | |
14198 | (apple_partition_map_get_name): Likewise. | |
14199 | * partmap/bsdlabel.c: New file. | |
14200 | * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access. | |
14201 | Set 'number'. | |
14202 | Allocate 'data' so it can be correctly freed. | |
14203 | Set 'index' to offset inside sector. | |
14204 | (gpt_partition_map_probe): Remove. | |
14205 | (gpt_partition_map_get_name): Likewise. | |
14206 | * partmap/msdos.c (grub_partition_parse): Remove. | |
14207 | (pc_partition_map_iterate): Don't force raw access. | |
14208 | Set 'number'. | |
14209 | Make 'ext_offset' a local variable. | |
14210 | (pc_partition_map_probe): Remove. | |
14211 | (pc_partition_map_get_name): Remove. | |
14212 | * partmap/sun.c (sun_partition_map_iterate): Don't force raw access. | |
14213 | Set 'number'. | |
14214 | (sun_partition_map_probe): Remove. | |
14215 | (sun_partition_map_get_name): Likewise. | |
14216 | * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions. | |
14217 | (grub_pcpart_type): Likewise. | |
14218 | * util/hostdisk.c (open_device): Handle new numbering scheme. | |
14219 | (grub_util_biosdisk_get_grub_dev): Handle nested partitions. | |
14220 | * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme. | |
14221 | * util/grub-probe.c (probe_partmap): Handle nested paritions. | |
14222 | * util/grub-install.in: Insert all subpartition modules. | |
14223 | * util/ieee1275/grub-install.in: Likewise. | |
14224 | ||
a3940f88 AG |
14225 | 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de> |
14226 | ||
14227 | * kern/dl.c (grub_dl_resolve_symbols): Improve error message | |
14228 | grammar. | |
14229 | ||
21b99926 | 14230 | 2010-03-24 Colin Watson <cjwatson@ubuntu.com> |
14231 | ||
14232 | * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default. | |
14233 | ||
bed1d352 CW |
14234 | 2010-03-21 Colin Watson <cjwatson@ubuntu.com> |
14235 | ||
14236 | * util/grub-install.in: Copy .mo files from @datadir@/locale, to | |
14237 | match where 'make install' puts them. | |
14238 | * util/i386/efi/grub-install.in: Likewise. | |
14239 | ||
c9f58427 CW |
14240 | 2010-03-19 Colin Watson <cjwatson@ubuntu.com> |
14241 | ||
14242 | * .bzrignore: Add gentrigtables, grub-script-check, | |
14243 | grub_script_check_init.c, grub_script_check_init.h, and | |
14244 | trigtables.c. | |
14245 | ||
f84afb27 VS |
14246 | 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com> |
14247 | ||
14248 | * kern/parser.c: Indented. | |
14249 | ||
ed0e3d30 VS |
14250 | 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com> |
14251 | ||
14252 | * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken). | |
14253 | ||
0ea81d98 VS |
14254 | 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com> |
14255 | ||
14256 | * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle | |
14257 | alpha_mask_size == 0 case. | |
14258 | ||
0cdc2a09 BC |
14259 | 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com> |
14260 | ||
14261 | GRUB shell lexer and parser improvements. | |
14262 | ||
14263 | * conf/any-emu.rmk: Build rule updates. | |
14264 | * conf/common.rmk: Likewise. | |
14265 | * conf/i386-coreboot.rmk: Likewise. | |
14266 | * conf/i386-efi.rmk: Likewise. | |
14267 | * conf/i386-ieee1275.rmk: Likewise. | |
14268 | * conf/i386-pc.rmk: Likewise. | |
14269 | * conf/powerpc-ieee1275.rmk: Likewise. | |
14270 | * conf/x86_64-efi.rmk: Likewise. | |
14271 | ||
14272 | * configure.ac: Configure check for flex. | |
14273 | ||
14274 | * include/grub/script_sh.h (grub_script_arg_type_t): More argument | |
14275 | types. | |
14276 | (grub_lexer_param): Struct member updates. | |
14277 | (grub_parser_param): Likewise. | |
14278 | (GRUB_LEXER_TOKEN_MAX): Maximum token size. | |
14279 | (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size. | |
14280 | (grub_script_lexer_init): Prototype update. | |
14281 | (grub_script_lexer_record_start): Likewise. | |
14282 | (grub_script_lexer_record_stop): Likewise. | |
14283 | (grub_script_lexer_yywrap): New function prototype. | |
14284 | (grub_script_lexer_fini): Likewise. | |
14285 | (grub_script_execute_argument_to_string): Removed by... | |
14286 | (grub_script_execute_argument_to_argv): ...better version. | |
14287 | ||
14288 | * script/execute.c (ROUND_UPTO): New macro. | |
14289 | (grub_script_execute_cmdline): Out of memory fixes. | |
14290 | (grub_script_execute_menuentry): Likewise. | |
14291 | (grub_script_execute_argument_to_string): Removed. Update all | |
14292 | users by... | |
14293 | (grub_script_execute_argument_to_argv): ...better version. | |
14294 | * script/function.c (grub_script_function_create): Use | |
14295 | grub_script_execute_argument_to_argv instead of | |
14296 | grub_script_execute_argument_to_string. | |
14297 | ||
14298 | * script/lexer.c (check_varstate): Removed. | |
14299 | (check_textstate): Removed. | |
14300 | (grub_script_lexer_record_start): Likewise. | |
14301 | (grub_script_lexer_record_stop): Likewise. | |
14302 | (recordchar): Replaced with... | |
14303 | (grub_script_lexer_record): ...new function. | |
14304 | (nextchar): Removed. | |
14305 | (grub_script_lexer_init): Rewritten. | |
14306 | (grub_script_yylex): Rewritten. | |
14307 | (append_newline): New function. | |
14308 | (grub_script_lexer_yywrap): New function. | |
14309 | (grub_script_lexer_fini): New function. | |
14310 | (grub_script_yyerror): Sets error flag. | |
14311 | ||
14312 | * script/yylex.l: New file. | |
14313 | (grub_lexer_yyfree): Wrapper for flex yyffre. | |
14314 | (grub_lexer_yyalloc): Likewise. | |
14315 | (grub_lexer_yyrealloc): Likewise. | |
14316 | * script/parser.y: Refactored. | |
14317 | ||
14318 | * script/script.c (grub_script_arg_add): Out of memory fixes. | |
14319 | (grub_script_add_arglist): Likewise. | |
14320 | (grub_script_create_cmdline): Likewise. | |
14321 | (grub_script_create_cmdmenu): Likewise. | |
14322 | (grub_script_add_cmd): Likewise. | |
14323 | (grub_script_parse): Use grub_script_lexer_fini to deallocated. | |
14324 | * util/grub-script-check.c (grub_script_execute_menuentry): Remove | |
14325 | unnecessary code. | |
14326 | ||
14327 | * tests/grub_script_echo1.in: New testcase. | |
14328 | * tests/grub_script_vars1.in: New testcase. | |
14329 | * tests/grub_script_echo_keywords.in: New testcase. | |
14330 | ||
1d63a066 VS |
14331 | 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com> |
14332 | ||
14333 | Remove some redundancy in build system. | |
14334 | ||
14335 | * Makefile.in (TARGET_CFLAGS): Add -ffreestanding. | |
14336 | (TARGET_ASFLAGS): Add -nostdinc -fno-builtin. | |
14337 | (TARGET_LDFLAGS): Add -nostdlib. | |
14338 | (TARGET_IMG_LDFLAGS): Likewise. | |
14339 | * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do | |
14340 | anything since mmap isn't available. | |
14341 | * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c. | |
14342 | Add util/time.c. | |
14343 | (pkglib_MODULES): Remove reboot.mod. | |
14344 | (reboot_mod_SOURCES): Removed. | |
14345 | (reboot_mod_CFLAGS): Likewise. | |
14346 | (reboot_mod_LDFLAGS): Likewise. | |
14347 | * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable. | |
14348 | (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst. | |
14349 | (DEFSYMFILES): Add kernel_syms.lst. | |
14350 | (kernel_img_HEADERS): Add common headers. | |
14351 | (symlist.c): New target. | |
14352 | (kernel_syms.lst): Likewise. | |
14353 | (pkglib_MODULES): Add memdisk.mod. | |
14354 | (memdisk_mod_SOURCES): New variable. | |
14355 | (memdisk_mod_CFLAGS): Likewise. | |
14356 | (memdisk_mod_LDFLAGS): Likewise. | |
14357 | (pkglib_MODULES): Add reboot.mod. | |
14358 | (reboot_mod_SOURCES): New variable. | |
14359 | (reboot_mod_CFLAGS): Likewise. | |
14360 | (reboot_mod_LDFLAGS): Likewise. | |
14361 | (pkglib_MODULES): Add date.mod. | |
14362 | (date_mod_SOURCES): New variable. | |
14363 | (date_mod_CFLAGS): Likewise. | |
14364 | (date_mod_LDFLAGS): Likewise. | |
14365 | (pkglib_MODULES): Add datehook.mod. | |
14366 | (datehook_mod_SOURCES): New variable. | |
14367 | (datehook_mod_CFLAGS): Likewise. | |
14368 | (datehook_mod_LDFLAGS): Likewise. | |
14369 | (pkglib_MODULES): Add lsmmap.mod. | |
14370 | (lsmmap_mod_SOURCES): New variable. | |
14371 | (lsmmap_mod_CFLAGS): Likewise. | |
14372 | (lsmmap_mod_LDFLAGS): Likewise. | |
14373 | (pkglib_MODULES): Add boot.mod. | |
14374 | (boot_mod_SOURCES): New variable. | |
14375 | (boot_mod_CFLAGS): Likewise. | |
14376 | (boot_mod_LDFLAGS): Likewise. | |
14377 | * conf/i386-coreboot.rmk: Removed redundant parts. | |
14378 | * conf/i386-ieee1275.rmk: Likewise. | |
14379 | * conf/i386-pc.rmk: Likewise. | |
14380 | * conf/mips-yeeloong.rmk: Likewise. | |
14381 | * conf/mips.rmk: Likewise. | |
14382 | * conf/powerpc-ieee1275.rmk: Likewise. | |
14383 | * conf/sparc64-ieee1275.rmk: Likewise. | |
14384 | * conf/x86_64-efi.rmk: Likewise. | |
14385 | * conf/i386-coreboot.rmk: Moved qemu parts .. | |
14386 | * conf/i386-qemu.rmk: ... here | |
14387 | * conf/i386-efi.rmk: Moved common parts to... | |
14388 | * conf/x86-efi.rmk: ... here. | |
14389 | * conf/i386.rmk: Added modules common to all x86 variants. | |
14390 | * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS. | |
14391 | * disk/memdisk.c: Remove grub/machine/kernel.h. | |
14392 | * gensymlist.sh.in: Include symbol.h. | |
14393 | * hook/datehook.c: Correct module name. | |
14394 | * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export. | |
14395 | (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise. | |
14396 | * include/grub/i386/efi/serial.h: New file. | |
14397 | * include/grub/x86_64/efi/serial.h: Likewise. | |
14398 | * util/time.c: Likewise. | |
14399 | * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *. | |
14400 | ||
463ac55f CK |
14401 | 2010-03-14 Colin King <colin.king@ubuntu.com> |
14402 | 2010-03-14 Colin Watson <cjwatson@ubuntu.com> | |
14403 | ||
14404 | Shrink the pre-partition-table part of boot.img by eight bytes. | |
14405 | ||
14406 | * boot/i386/pc/boot.S (ERR): New macro. | |
14407 | (chs_mode): Use ERR. | |
14408 | (geometry_error): Likewise. | |
14409 | (hd_probe_error): Remove. This is only used once, so we wrwite | |
14410 | it inline instead. | |
14411 | (read_error): Instead of printing read_error_string, just set up | |
14412 | %si and fall through to ... | |
14413 | (error_message): ... this new function, also used by ERR. | |
14414 | ||
08e46ede CW |
14415 | 2010-03-14 Colin Watson <cjwatson@ubuntu.com> |
14416 | ||
14417 | Speed up consecutive hostdisk operations on the same device. | |
14418 | ||
14419 | * util/hostdisk.c (struct grub_util_biosdisk_data): New structure. | |
14420 | (grub_util_biosdisk_open): Initialise disk->data. | |
14421 | (struct linux_partition_cache): New structure. | |
14422 | (linux_find_partition): Cache partition start positions; these are | |
14423 | expensive to compute on every read and write. | |
14424 | (open_device): Cache open file descriptor in disk->data, so that we | |
14425 | don't have to reopen it and flush the buffer cache for consecutive | |
14426 | operations on the same device. | |
14427 | (grub_util_biosdisk_close): New function. | |
14428 | (grub_util_biosdisk_dev): Set `close' member. | |
14429 | ||
14430 | * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c. | |
14431 | * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise. | |
14432 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
14433 | * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise. | |
14434 | * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise. | |
14435 | ||
4a6d2d06 VS |
14436 | 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com> |
14437 | ||
14438 | Compile parts of grub-emu as modules. | |
14439 | ||
14440 | * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem. | |
14441 | (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst | |
14442 | partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst. | |
14443 | (all-local): Add $(GRUB_EMU). | |
14444 | (install-local): Install $(GRUB_EMU). | |
14445 | (uninstall): Uninstall $(GRUB_EMU). | |
14446 | * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES. | |
14447 | * kern/dl.c: Likewise. | |
14448 | * commands/sleep.c: Not include machine/time.h. | |
14449 | * conf/any-emu.rmk (COMMON_LDFLAGS): New variable. | |
14450 | (COMMON_CFLAGS): Likewise. | |
14451 | (sbin_UTILITIES): Remove grub-emu. | |
14452 | (grub_emu_SOURCES): Removed. | |
14453 | (kernel_img_RELOCATABLE): New variable. | |
14454 | (pkglib_PROGRAMS): Add kernel.img. | |
14455 | (kernel_img_SOURCES): New variable | |
14456 | (kernel_img_CFLAGS): Likewise. | |
14457 | (kernel_img_LDFLAGS): Likewise. | |
14458 | (TARGET_NO_STRIP): Likewise. | |
14459 | (TARGET_NO_DYNAMIC_MODULES): Likewise. | |
14460 | (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod, | |
14461 | halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod. | |
14462 | (grub-emu): New target. | |
14463 | (GRUB_EMU): New variable. | |
14464 | * configure.ac: Whitelist -emu as possible x86_64 architecture. | |
14465 | * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU. | |
14466 | * loader/xnu.c: Likewise. | |
14467 | * include/grub/pci.h: Likewise. | |
14468 | * genemuinit.sh: New file. | |
14469 | * genemuinitheader.sh: Likewise. | |
14470 | * genmk.rb: Don't strip if TARGET_NO_STRIP is yes. | |
14471 | Support TARGET_NO_DYNAMIC_MODULES. | |
14472 | * include/grub/dl.h (GRUB_NO_MODULES): New variable. | |
14473 | * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments. | |
14474 | * disk/loopback.c: Likewise. | |
14475 | * font/font_cmd.c: Likewise. | |
14476 | * partmap/acorn.c: Likewise. | |
14477 | * partmap/amiga.c: Likewise. | |
14478 | * partmap/apple.c: Likewise. | |
14479 | * partmap/gpt.c: Likewise. | |
14480 | * partmap/msdos.c: Likewise. | |
14481 | * partmap/sun.c: Likewise. | |
14482 | * parttool/msdospart.c: Likewise. | |
14483 | * term/gfxterm.c: Likewise. | |
14484 | * video/bitmap.c: Likewise. | |
14485 | * video/readers/jpeg.c: Likewise. | |
14486 | * video/readers/png.c: Likewise. | |
14487 | * video/readers/tga.c: Likewise. | |
14488 | * video/video.c: Likewise. | |
14489 | * util/grub-emu.c (read_command_list): Removed. | |
14490 | (main): Don't call util_init_nls. | |
14491 | * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed. | |
14492 | (grub_util_init_nls) [!GRUB_UTIL]: Likewise. | |
14493 | ||
91fdd2ed VS |
14494 | 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com> |
14495 | ||
14496 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, | |
14497 | date.mod, datehook.mod. | |
14498 | (datetime_mod_SOURCES): New variable. | |
14499 | (datetime_mod_CFLAGS): Likewise. | |
14500 | (datetime_mod_LDFLAGS): Likewise. | |
14501 | (date_mod_SOURCES): Likewise. | |
14502 | (date_mod_CFLAGS): Likewise. | |
14503 | (date_mod_LDFLAGS): Likewise. | |
14504 | (datehook_mod_SOURCES): Likewise. | |
14505 | (datehook_mod_CFLAGS): Likewise. | |
14506 | (datehook_mod_LDFLAGS): Likewise. | |
14507 | * conf/sparc64-ieee1275.rmk: Likewise. | |
14508 | * lib/ieee1275/datetime.c: New file. | |
14509 | ||
873ccae6 VS |
14510 | 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com> |
14511 | ||
14512 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod. | |
14513 | (ieee1275_fb_mod_SOURCES): New variable. | |
14514 | (ieee1275_fb_mod_CFLAGS): Likewise. | |
14515 | (ieee1275_fb_mod_LDFLAGS): Likewise. | |
14516 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate): | |
14517 | New proto. | |
14518 | * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased. | |
14519 | (HEAP_MAX_ADDR): Likewise. | |
14520 | * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty | |
14521 | type. | |
14522 | Correct stop condition. | |
14523 | (grub_ieee1275_devices_iterate): New function. | |
14524 | * video/ieee1275.c: New file. | |
14525 | ||
601c97c0 VS |
14526 | 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com> |
14527 | ||
14528 | Merge sparc grub-mkimage into generic grub-mkimage and a.out support. | |
14529 | ||
14530 | * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT | |
14531 | as scratch. | |
14532 | * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use | |
14533 | SCRATCH_PAD_DISKBOOT as scratch. | |
14534 | (bootit): Pass Openfirmware pointer in %o4. | |
14535 | * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead | |
14536 | of 0x200000. | |
14537 | (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c | |
14538 | with util/grub-mkrawimage.c. | |
14539 | * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS. | |
14540 | * include/grub/aout.h (AOUT_MID_SUN): New definition. | |
14541 | (grub_aout_get_type) [GRUB_UTIL]: Removed. | |
14542 | (grub_aout_load) [GRUB_UTIL]: Likewise. | |
14543 | * include/grub/kernel.h (grub_modules_get_end): New proto. | |
14544 | * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed. | |
14545 | (SCRATCH_PAD_BOOT): New definition. | |
14546 | (SCRATCH_PAD_DISKBOOT): Likewise. | |
14547 | (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400. | |
14548 | * include/grub/sparc64/ieee1275/ieee1275.h | |
14549 | (grub_ieee1275_original_stack): New variable | |
14550 | * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
14551 | New definition | |
14552 | (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise. | |
14553 | (GRUB_PLATFORM_IMAGE_FORMATS): Likewise. | |
14554 | (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise. | |
14555 | (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise. | |
14556 | (GRUB_PLATFORM_IMAGE_RAW): Likewise. | |
14557 | (GRUB_PLATFORM_IMAGE_AOUT): Likewise. | |
14558 | (grub_platform_image_format_t): New type. | |
14559 | * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ... | |
14560 | * kern/main.c (grub_modules_get_end) | |
14561 | [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here. | |
14562 | * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0. | |
14563 | (codestart): Switch stacks. | |
14564 | * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New | |
14565 | variable. | |
14566 | (grub_heap_init): Use grub_modules_get_end. | |
14567 | * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original | |
14568 | stack. | |
14569 | * util/grub-mkrawimage.c (generate_image): Support sparc64. | |
14570 | (main): Likewise. | |
14571 | * util/sparc64/ieee1275/grub-mkimage.c: Removed. | |
14572 | ||
d68b491e TG |
14573 | 2010-03-14 Thorsten Glaser <tg@mirbsd.org> |
14574 | ||
14575 | * util/grub-mkrescue.in: Base ISO UUID on UTC. | |
14576 | ||
4e02ed50 MK |
14577 | 2010-03-08 Matt Kraai <kraai@ftbfs.org> |
14578 | ||
14579 | * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian | |
14580 | bug #559005). | |
14581 | ||
1f15fc1e VS |
14582 | 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com> |
14583 | ||
14584 | * genmoddep.awk: Output all missing symbols and not only first. | |
14585 | ||
fce5d8ff VS |
14586 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14587 | ||
14588 | * NEWS: Put the date of 1.98 release. | |
14589 | ||
d1e8a02f VS |
14590 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14591 | ||
14592 | * configure.ac: Update CPPFLAGS and not CFLAGS when checking for | |
14593 | ft2build.h. | |
14594 | ||
696fd607 VS |
14595 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14596 | ||
14597 | * normal/cmdline.c (grub_cmdline_get): Fix gabled line after | |
14598 | completition in the middle of string. | |
14599 | ||
33e2e6f3 VS |
14600 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14601 | ||
14602 | * util/grub-mkrescue.in: Use mktemp with explicit template. | |
14603 | ||
b1f6d291 VS |
14604 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14605 | ||
14606 | * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak. | |
14607 | ||
2ac227c7 VS |
14608 | 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com> |
14609 | ||
14610 | * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the | |
14611 | right pointer. | |
14612 | ||
8f9a632b VS |
14613 | 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com> |
14614 | ||
14615 | Fix FreeBSD compilation. | |
14616 | ||
14617 | * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem. | |
14618 | * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works. | |
14619 | ||
60b03859 VS |
14620 | 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com> |
14621 | ||
14622 | * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES. | |
14623 | ||
48a5a769 VS |
14624 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14625 | ||
14626 | * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak. | |
14627 | ||
3ab4bd77 VS |
14628 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14629 | ||
14630 | * disk/scsi.c (grub_scsi_iterate): Fix a memory leak. | |
14631 | ||
d116e0d8 RM |
14632 | 2010-03-04 Robert Millan <rmh.grub@aybabtu.com> |
14633 | ||
14634 | Support relative image path in theme file. | |
14635 | ||
14636 | * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir. | |
14637 | (image_set_property): Handle theme_dir and relative path. | |
14638 | ||
c7ef54aa VS |
14639 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14640 | ||
14641 | * configure.ac: Alias amd64 to x86_64. | |
14642 | ||
fcee14ed VS |
14643 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14644 | ||
14645 | * NEWS: mention multiboot on EFI. | |
14646 | ||
d0780363 VS |
14647 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14648 | ||
14649 | * kern/main.c (grub_load_modules): Handle errors from init functions of | |
14650 | embeded modules. | |
14651 | ||
41168ea4 VS |
14652 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14653 | ||
14654 | * normal/autofs.c (autoload_fs_module): Handle errors. | |
14655 | ||
b54d93ac VS |
14656 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14657 | ||
14658 | Disable linux.mod on qemu-mips since it's not functional and leads | |
14659 | to compilation failure. | |
14660 | ||
14661 | * conf/mips.rmk (pkglib_MODULES): Remove linux.mod. | |
14662 | * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod. | |
14663 | * conf/mips.rmk (linux_mod_SOURCES): Move from here ... | |
14664 | * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here | |
14665 | * conf/mips.rmk (linux_mod_CFLAGS): Move from here ... | |
14666 | * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here | |
14667 | * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ... | |
14668 | * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here | |
14669 | * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ... | |
14670 | * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here | |
14671 | Reported by: BVK Chaitanya | |
14672 | ||
fc8345da JU |
14673 | 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com> |
14674 | ||
14675 | * INSTALL: Add gettext as a dependency and add qemu to a new section | |
14676 | "Prerequisites for make-check". | |
14677 | ||
4760f979 CF |
14678 | 2010-03-04 Christian Franke <franke@computer.org> |
14679 | ||
14680 | * util/grub-pe2elf.c: Add missing include "progname.h". | |
14681 | ||
f209b5b2 VS |
14682 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14683 | ||
14684 | * normal/crypto.c (read_crypto_list): Fix a typo. | |
14685 | Reported by: Seth Goldberg. | |
14686 | ||
b4b7be98 VS |
14687 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14688 | ||
14689 | * Makefile.in (DISTCLEANFILES): Add stamp-h1. | |
f209b5b2 | 14690 | Reported by: Seth Goldberg. |
b4b7be98 | 14691 | |
c0ee0385 VS |
14692 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14693 | ||
14694 | * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add | |
14695 | ascii.bitmaps. | |
14696 | ||
a8efbf64 VS |
14697 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14698 | ||
14699 | * genmk.rb: Remove terminal*.lst in make clean. | |
f209b5b2 | 14700 | Reported by: Seth Goldberg. |
a8efbf64 | 14701 | |
08dcd913 VS |
14702 | 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com> |
14703 | ||
14704 | * util/i386/efi/grub-install.in: Copy gettext files. | |
14705 | ||
c4d0b332 VS |
14706 | 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> |
14707 | ||
14708 | * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow. | |
14709 | ||
c6f2fe52 VS |
14710 | 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> |
14711 | ||
14712 | Wait for user entry basing on presence of output rather than on errors. | |
14713 | ||
14714 | * include/grub/normal.h (grub_normal_get_line_counter): New proto. | |
14715 | (grub_install_newline_hook): Likewise. | |
14716 | * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook. | |
14717 | * normal/menu.c (show_menu): Check line_counter to determine presence | |
14718 | of output. | |
14719 | * normal/term.c (grub_normal_line_counter): New variable. | |
14720 | (grub_normal_get_line_counter): New function. | |
14721 | (grub_install_newline_hook): Likewise. | |
14722 | ||
5382b1e4 VS |
14723 | 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> |
14724 | ||
14725 | * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error. | |
14726 | ||
5519963b VS |
14727 | 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> |
14728 | ||
14729 | * configure.ac: Update version to 1.98. | |
14730 | ||
72b28631 VS |
14731 | 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com> |
14732 | ||
14733 | * util/grub.d/10_linux.in (linux_entry): Don't default to | |
14734 | gfxpayload=keep if Linux doesn't support video handover. | |
14735 | ||
c140a180 VS |
14736 | 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com> |
14737 | ||
14738 | Don't compile video modules on yeeloong since video subsystem is part | |
14739 | of kernel. | |
14740 | ||
14741 | * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod, | |
14742 | video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod | |
14743 | * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h, | |
14744 | video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h. | |
14745 | * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting. | |
14746 | * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR. | |
14747 | * include/grub/bitmap_scale.h: Likewise. | |
14748 | * include/grub/bufio.h: Likewise. | |
14749 | * include/grub/font.h: Likewise. | |
14750 | * include/grub/gfxterm.h: Likewise. | |
14751 | * include/grub/video.h: Likewise. | |
14752 | * include/grub/vbe.h: Don't include video_fb.h. | |
14753 | * video/i386/pc/vbe.c: Include video_fb.h. | |
14754 | * commands/i386/pc/vbetest.c: Include video.h. | |
14755 | ||
a0ca21c2 CW |
14756 | 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com> |
14757 | ||
14758 | * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable. | |
14759 | * util/grub-mkconfig_lib.in (save_default_entry): Only save a new | |
14760 | default entry if GRUB_SAVEDEFAULT=true. This allows using | |
14761 | GRUB_DEFAULT=saved on its own to let grub-reboot work, without | |
14762 | saving a new default on every boot. | |
14763 | ||
4a8a763c VS |
14764 | 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com> |
14765 | ||
14766 | * normal/crypto.c (read_crypto_list): Fix a memory leak. | |
14767 | * normal/term.c (read_terminal_list): Likewise. | |
14768 | * normal/main.c (grub_normal_init_page): Likewise. | |
14769 | (grub_normal_read_line_real): Likewise. | |
14770 | ||
607ffde2 VS |
14771 | 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com> |
14772 | ||
14773 | * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a | |
14774 | memory leak. | |
14775 | Reported by: Seth Goldberg. | |
14776 | ||
2b8fa975 CW |
14777 | 2010-02-24 Joey Korkames <joey+lists@kidfixit.com> |
14778 | ||
14779 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove | |
14780 | duplicate declaration of `start'. | |
14781 | ||
618307dd VS |
14782 | 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com> |
14783 | ||
14784 | * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet | |
14785 | filename. | |
14786 | Reported by: Georgy Buranov | |
14787 | ||
7dd05b96 | 14788 | 2010-02-20 Carles Pina i Estany <carles@pina.cat> |
14789 | ||
14790 | * util/grub-mkrawimage.c (usage): Change string formatting to | |
14791 | improve gettext. | |
14792 | ||
d1484a42 MRA |
14793 | 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com> |
14794 | ||
14795 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and | |
14796 | backspace keys. | |
14797 | ||
42b1d186 VS |
14798 | 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com> |
14799 | ||
14800 | * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug. | |
14801 | Reported by: Michael Suchanek. | |
14802 | ||
14803 | 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org> | |
0a39de87 ST |
14804 | |
14805 | * util/grub-mkconfig.in: Export GRUB_INIT_TUNE. | |
14806 | * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE. | |
14807 | ||
d9f31a41 VS |
14808 | 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com> |
14809 | ||
14810 | Remove any reference to non-free fonts. | |
14811 | ||
14812 | * commands/videotest.c (grub_cmd_videotest): Use unifont by default. | |
14813 | * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and | |
14814 | uses non-free components. | |
14815 | * font/font.c (grub_font_get_name): Remove example name. | |
14816 | * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default. | |
14817 | * gfxmenu/gui_list.c (grub_gui_list_new): Likewise. | |
14818 | * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise. | |
14819 | * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise. | |
14820 | ||
2793c71e GB |
14821 | 2010-02-16 Georgy Buranov <gburanov@gmail.com> |
14822 | ||
14823 | * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo. | |
14824 | ||
402e3779 VS |
14825 | 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com> |
14826 | ||
14827 | * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]: | |
14828 | Double divisor. | |
14829 | (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced | |
14830 | features. | |
14831 | (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200. | |
14832 | ||
0dd1e0dd VS |
14833 | 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com> |
14834 | ||
14835 | * gensymlist.sh.in: Use TARGET_CC instead of CC. | |
14836 | ||
6fa7cfce ST |
14837 | 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org> |
14838 | ||
14839 | * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help. | |
14840 | * docs/grub.texi (Command-line and menu entry commands): Document play | |
14841 | command. | |
14842 | ||
37c8483b ST |
14843 | 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org> |
14844 | ||
14845 | * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails, | |
14846 | parse arguments as inline tempo and notes. Move code for playing notes | |
14847 | to... | |
14848 | (play): ... new function. | |
14849 | ||
14da0fb7 ST |
14850 | 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org> |
14851 | ||
14852 | * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use | |
14853 | grub_uint16_t instead of short. | |
14854 | (grub_cmd_play): Use grub_uint32_t instead of int, convert data from | |
14855 | disk from little endian to cpu endianness. | |
14856 | ||
04459e70 ST |
14857 | 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org> |
14858 | ||
14859 | * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 * | |
14860 | GRUB_TICKS_PER_SECOND instead of 120. | |
14861 | ||
a0876943 VS |
14862 | 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
14863 | ||
14864 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible | |
14865 | escape sequence after \e. | |
14866 | ||
e29f95dc VS |
14867 | 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
14868 | ||
14869 | * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output | |
14870 | non-ASCII characters. | |
14871 | ||
d27859b2 VS |
14872 | 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
14873 | ||
14874 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose | |
14875 | set root in single quotes to prevent \, from being unescaped. | |
14876 | ||
bc028f2f VS |
14877 | 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
14878 | ||
14879 | Prevent unknown commands from stopping menuentry execution. | |
14880 | ||
14881 | * script/execute.c (grub_script_execute_cmdline): Print error after | |
14882 | unknown command. | |
14883 | ||
095f5f82 VS |
14884 | 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
14885 | ||
14886 | * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo. | |
14887 | Reported by: Pavel Pisa. | |
14888 | ||
8c717950 VS |
14889 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14890 | ||
14891 | * io/gzio.c (grub_gzio_open): Use grub_zalloc. | |
14892 | ||
904935c3 VS |
14893 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14894 | ||
14895 | Merge grub_ieee1275_map_physical into grub_map and rename to | |
14896 | grub_ieee1275_map | |
14897 | ||
14898 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto. | |
14899 | * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical): | |
14900 | Remove. | |
14901 | * kern/ieee1275/openfw.c (grub_map): Rename to ... | |
14902 | (grub_ieee1275_map): ... this. All users updated. Add phys_lo when | |
14903 | necessary. | |
14904 | * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove. | |
14905 | ||
5b59a4e3 VS |
14906 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14907 | ||
14908 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before | |
14909 | opening and not after. | |
14910 | ||
69e137e8 VS |
14911 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14912 | ||
14913 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify | |
14914 | constants. | |
14915 | ||
2c0fcc36 VS |
14916 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14917 | ||
14918 | * loader/sparc64/ieee1275/linux.c (align_addr): Remove. | |
14919 | (alloc_phys): Use ALIGN_UP instead of align_addr. | |
14920 | ||
8c6052ce VS |
14921 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14922 | ||
14923 | * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking. | |
14924 | ||
17cec782 VS |
14925 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14926 | ||
14927 | * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards. | |
14928 | ||
e0128bbd VS |
14929 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14930 | ||
14931 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively | |
14932 | verbose dprintf. | |
14933 | ||
ca62070b VS |
14934 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14935 | ||
14936 | Fix over-4GiB seek on sparc64. | |
14937 | ||
14938 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek): | |
14939 | Replace pos_i and pos_lo with pos. All users updated. | |
14940 | * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF): | |
14941 | New constant. | |
14942 | * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF): | |
14943 | Likewise. | |
14944 | * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi | |
14945 | and pos_lo. | |
14946 | ||
bdca2607 VS |
14947 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14948 | ||
14949 | * util/grub-mkrawimage.c (main): Call set_program_name. | |
14950 | ||
da278c4d VS |
14951 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14952 | ||
14953 | Properly align 64-bit targets. | |
14954 | ||
14955 | * util/grub-mkrawimage.c (ALIGN_ADDR): New macro. | |
14956 | (generate_image): Use ALIGN_ADDR. | |
14957 | ||
b274d734 VS |
14958 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14959 | ||
14960 | Properly create cross-endian images. | |
14961 | ||
14962 | * include/grub/types.h (grub_host_to_target_addr): New macro | |
14963 | * util/grub-mkrawimage.c (generate_image): Add missing host_to_target. | |
14964 | ||
82da2062 VS |
14965 | 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> |
14966 | ||
14967 | * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP. | |
14968 | ||
7cae4377 VS |
14969 | 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com> |
14970 | ||
14971 | Pass SIMPLE framebuffer size in bytes and not 64K blocks. | |
14972 | ||
14973 | * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K. | |
14974 | * loader/i386/linux.c (grub_linux_setup_video): Likewise. | |
14975 | (grub_linux_boot): Divide by 64K when on VESA. | |
14976 | ||
65a533e7 VS |
14977 | 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com> |
14978 | ||
14979 | Support GRUB_GFXPAYLOAD_LINUX. | |
14980 | ||
14981 | * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX. | |
14982 | * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX. | |
14983 | ||
dd01d397 VS |
14984 | 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com> |
14985 | ||
14986 | * script/execute.c (grub_script_execute_cmdline): Use grub_print_error | |
14987 | to show messages instead of discarding them. | |
14988 | Process errors after executing command and not before. Keep old method | |
14989 | too as precaution. | |
14990 | ||
660960d6 VS |
14991 | 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com> |
14992 | ||
14993 | * configure.ac: Check for ft2build.h. | |
14994 | ||
62509f04 VS |
14995 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
14996 | ||
14997 | * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff". | |
14998 | ||
473df63d VS |
14999 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15000 | ||
15001 | * genkernsyms.sh.in: Use TARGET_CC. | |
15002 | ||
c98d2a13 CW |
15003 | 2010-02-07 Colin Watson <cjwatson@ubuntu.com> |
15004 | ||
15005 | * NEWS: Update. | |
15006 | ||
6e14234c VS |
15007 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15008 | ||
15009 | * include/grub/multiboot2.h: Remove leftover file. | |
e28e32ae VS |
15010 | * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations. |
15011 | * include/grub/partition.h [GRUB_UTIL]: Likewise. | |
6e14234c | 15012 | |
b255e9cf YB |
15013 | 2010-02-07 Yves Blusseau <blusseau@zetam.org> |
15014 | ||
6e14234c | 15015 | * gnulib/getdelim.c: add missing header (type ssize_t must be defined). |
b255e9cf | 15016 | |
98e6959d VS |
15017 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15018 | ||
15019 | Fix warnings in grub-emu when compiling with maximum warning options. | |
15020 | ||
15021 | * util/grub-emu.c (ENABLE_RELOCATABLE): New definition. | |
15022 | (grub_arch_modules_addr): Return 0 and not NULL. | |
15023 | * util/misc.c (ENABLE_RELOCATABLE): New definition. | |
74e4934e | 15024 | (xstrdup): Use newstr instead of dup. |
f88d801b VS |
15025 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance |
15026 | of disk to dsk to avoid shadowing. | |
74e4934e VS |
15027 | (find_free_slot): Fix prototype. |
15028 | * util/getroot.c (grub_util_is_dmraid): Make static. | |
15029 | * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]: | |
15030 | Add missing prototype. | |
15031 | * util/sdl.c (grub_video_sdl_set_viewport): Remove. | |
98e6959d | 15032 | |
74e31b5c VS |
15033 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15034 | ||
15035 | * loader/i386/linux.c (grub_linux_setup_video): Handle error | |
15036 | appropriately. | |
15037 | ||
6b2ad14b VS |
15038 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15039 | ||
15040 | * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting | |
15041 | code out. | |
15042 | ||
8f891adc VS |
15043 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15044 | ||
15045 | * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline. | |
15046 | * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove. | |
15047 | * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise. | |
15048 | * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise. | |
15049 | * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise. | |
15050 | * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise. | |
15051 | ||
74b45184 VS |
15052 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15053 | ||
15054 | * include/grub/err.h (grub_err_printf): Don't export. | |
15055 | ||
a4bced77 VS |
15056 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15057 | ||
15058 | * include/grub/dl.h (grub_dl_register_symbol): Don't export. | |
15059 | ||
007d0695 VS |
15060 | 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com> |
15061 | ||
15062 | * include/grub/i18n.h (grub_gettext_dummy): Removed. | |
15063 | * kern/misc.c (grub_gettext_dummy): Make static. | |
15064 | ||
b6c0d9c2 VS |
15065 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15066 | ||
15067 | * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded | |
15068 | by non-valid ones. | |
15069 | * kern/term.c (grub_putchar): Likewise. | |
15070 | ||
f51a90d0 VS |
15071 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15072 | ||
15073 | * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix | |
15074 | buggy hook call and memory leak. | |
15075 | ||
6846cec5 VS |
15076 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15077 | ||
15078 | * commands/ls.c (grub_ls_list_files): Free pathname on exit. | |
15079 | ||
468d69fe VS |
15080 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15081 | ||
15082 | * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit. | |
15083 | ||
51906b8c VS |
15084 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15085 | ||
15086 | * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to | |
15087 | modevar. | |
15088 | Return grub_errno on allocation error. | |
15089 | ||
09706ce5 VS |
15090 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15091 | ||
15092 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling. | |
15093 | ||
911df80c YB |
15094 | 2010-02-06 Yves Blusseau <blusseau@zetam.org> |
15095 | ||
15096 | * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies. | |
15097 | (grub_mkpasswd_pbkdf2_SOURCES): Likewise. | |
15098 | ||
3746a6bc VS |
15099 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15100 | ||
15101 | * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on | |
15102 | non-pxe disk. | |
15103 | (grub_pxefs_open): Likewise. | |
15104 | ||
09706ce5 VS |
15105 | 2010-02-06 Robert Millan <rmh.grub@aybabtu.com> |
15106 | ||
15107 | * util/grub.d/10_hurd.in: Add --class information to menuentries. | |
15108 | * util/grub.d/10_kfreebsd.in: Likewise. | |
15109 | * util/grub.d/10_linux.in: Likewise. | |
15110 | ||
7cc192d9 VS |
15111 | 2010-02-06 Colin D Bennett <colin@gibibit.com> |
15112 | ||
15113 | * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod. | |
15114 | (gfxmenu_mod_SOURCES): New variable. | |
15115 | (gfxmenu_mod_CFLAGS): Likewise. | |
15116 | (gfxmenu_mod_LDFLAGS): Likewise. | |
15117 | * include/grub/term.h (grub_term_set_current_output): Declare | |
15118 | argument as const. | |
15119 | * docs/gfxmenu-theme-example.txt: New file. | |
15120 | * gfxmenu/gfxmenu.c: Likewise. | |
15121 | * gfxmenu/gui_box.c: Likewise. | |
15122 | * gfxmenu/gui_canvas.c: Likewise. | |
15123 | * gfxmenu/gui_circular_progress.c: Likewise. | |
15124 | * gfxmenu/gui_image.c: Likewise. | |
15125 | * gfxmenu/gui_label.c: Likewise. | |
15126 | * gfxmenu/gui_list.c: Likewise. | |
15127 | * gfxmenu/gui_progress_bar.c: Likewise. | |
15128 | * gfxmenu/gui_string_util.c: Likewise. | |
15129 | * gfxmenu/gui_util.c: Likewise. | |
15130 | * gfxmenu/icon_manager.c: Likewise. | |
15131 | * gfxmenu/model.c: Likewise. | |
15132 | * gfxmenu/named_colors.c: Likewise. | |
15133 | * gfxmenu/theme_loader.c: Likewise. | |
15134 | * gfxmenu/view.c: Likewise. | |
15135 | * gfxmenu/widget-box.c: Likewise. | |
15136 | * include/grub/gfxmenu_model.h: Likewise. | |
15137 | * include/grub/gfxmenu_view.h: Likewise. | |
15138 | * include/grub/gfxwidgets.h: Likewise. | |
15139 | * include/grub/gui.h: Likewise. | |
15140 | * include/grub/gui_string_util.h: Likewise. | |
15141 | * include/grub/icon_manager.h: Likewise. | |
15142 | ||
15143 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> | |
15144 | ||
15145 | Agglomerate scrolling in gfxterm. | |
15146 | ||
15147 | * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'. | |
15148 | (grub_virtual_screen_setup): Initialise 'total_screen'. | |
15149 | (write_char): Split to ... | |
15150 | (paint_char): ... this ... | |
15151 | (write_char): ... and this. | |
15152 | (paint_char): Handle delayed scrolling. | |
15153 | (draw_cursor): Likewise. | |
15154 | (scroll_up): Split to ... | |
15155 | (real_scroll): ... this ... | |
15156 | (scroll_up): ... and this. | |
15157 | (real_scroll): Handle multi-line scroll and draw below-the-bottom | |
15158 | characters. | |
15159 | (grub_gfxterm_refresh): Call real_scroll. | |
15160 | ||
15161 | 2010-02-06 Colin D Bennett <colin@gibibit.com> | |
15162 | ||
15163 | * include/grub/misc.h (grub_iscntrl): New inline function. | |
15164 | (grub_isalnum): Likewise. | |
15165 | (grub_strtol): Likewise. | |
15166 | ||
15167 | 2010-02-06 Colin D Bennett <colin@gibibit.com> | |
15168 | ||
15169 | * normal/menu_text.c (get_entry_number): Move from here ... | |
15170 | * normal/menu.c (get_entry_number): ... moved here. | |
15171 | * include/grub/menu.h (grub_menu_get_default_entry_index): | |
15172 | New prototype. | |
15173 | * normal/menu.c (grub_menu_get_default_entry_index): New function. | |
15174 | * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index. | |
15175 | * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype. | |
15176 | (grub_menu_viewer_should_return): Likewise. | |
15177 | * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init. | |
15178 | * normal/menu_text.c (run_menu): Enable menu switching. | |
15179 | * normal/menu_viewer.c (should_return): New variable. | |
15180 | (menu_viewer_changed): Likewise. | |
15181 | (grub_menu_viewer_show_menu): Handle menu viewer changes. | |
15182 | (grub_menu_viewer_should_return): New function. | |
15183 | (menuviewer_write_hook): Likewise. | |
15184 | (grub_menu_viewer_init): Likewise. | |
15185 | ||
15186 | 2010-02-06 Colin D Bennet <colin@gibibit.com> | |
15187 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> | |
15188 | ||
15189 | Support for gfxterm in a window. | |
15190 | ||
15191 | * include/grub/gfxterm.h: New file. | |
15192 | * include/grub/video.h (struct grub_video_rect): New declaration. | |
15193 | (grub_video_rect_t): Likewise. | |
15194 | * term/gfxterm.c (struct grub_gfxterm_window): New type. | |
15195 | (refcount): New variable. | |
15196 | (render_target): Likewise. | |
15197 | (window): Likewise. | |
15198 | (repaint_callback): Likewise. | |
15199 | (grub_virtual_screen_setup): Use 'render_target'. | |
15200 | (init_window): New function. | |
15201 | (grub_gfxterm_init_window): Likewise. | |
15202 | (grub_gfxterm_init): Check reference counter. | |
15203 | Use init_window. | |
15204 | (destroy_window): New function. | |
15205 | (grub_gfxterm_destroy_window): Likewise. | |
15206 | (grub_gfxterm_fini): Check reference counter. | |
15207 | Use destroy_window. | |
15208 | (redraw_screen_rect): Restore viewport. | |
15209 | Use 'render_target' and 'window'. | |
15210 | Call 'repaint_callback'. | |
15211 | (write_char): Use 'render_target'. | |
15212 | (draw_cursor): Likewise. | |
15213 | (scroll_up): Restore viewport. | |
15214 | Use 'render_target' and 'window'. | |
15215 | Call 'repaint_callback'. | |
15216 | (grub_gfxterm_cls): Likewise. | |
15217 | (grub_gfxterm_refresh): Use 'window'. | |
15218 | (grub_gfxterm_set_repaint_callback): New function. | |
15219 | (grub_gfxterm_background_image_cmd): Use 'window'. | |
15220 | (grub_gfxterm_get_term): New function. | |
15221 | (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0. | |
15222 | ||
15223 | 2010-02-06 Colin D Bennett <colin@gibibit.com> | |
15224 | ||
15225 | Bitmap scaling support. | |
15226 | ||
15227 | * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod. | |
15228 | (bitmap_scale_mod_SOURCES): New variable. | |
15229 | (bitmap_scale_mod_CFLAGS): Likewise. | |
15230 | (bitmap_scale_mod_LDFLAGS): Likewise. | |
15231 | * include/grub/bitmap_scale.h: New file. | |
15232 | * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton. | |
15233 | (background_image_cmd_options): New variable. | |
15234 | (grub_gfxterm_background_image_cmd): Support bitmap stretching. | |
15235 | (cmd): Rename and change type to ... | |
15236 | (background_image_cmd_handle): ... this. All users updated. | |
15237 | (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command. | |
15238 | * video/bitmap_scale.c: New file. | |
15239 | ||
15240 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> | |
15241 | ||
15242 | SDL support. | |
15243 | ||
15244 | * Makefile.in (LIBSDL): New variable. | |
15245 | (enable_grub_emu_sdl): Likewise. | |
15246 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files. | |
15247 | (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c. | |
15248 | (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL). | |
15249 | * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl | |
15250 | * util/sdl.c: New file. | |
15251 | ||
15252 | 2010-02-06 Colin D Bennett <colin@gibibit.com> | |
15253 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> | |
15254 | ||
15255 | Double buffering support. | |
15256 | ||
15257 | * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers. | |
15258 | * include/grub/video.h: Update comment. | |
15259 | * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t): | |
15260 | New type. | |
15261 | (grub_video_fb_doublebuf_blit_init): New prototype. | |
15262 | * term/gfxterm.c (scroll_up): Support double buffering. | |
15263 | (grub_gfxterm_refresh): Likewise. | |
15264 | * video/fb/video_fb.c (doublebuf_blit_update_screen): New function. | |
15265 | (grub_video_fb_doublebuf_blit_init): Likewise. | |
15266 | * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add | |
15267 | 'front_target', 'back_target', 'offscreen_buffer', 'page_size', | |
15268 | 'displayed_page', 'render_page' and 'update_screen'. | |
15269 | (grub_video_vbe_fini): Free offscreen buffer. | |
15270 | (doublebuf_pageflipping_commit): New function. | |
15271 | (doublebuf_pageflipping_update_screen): Likewise. | |
15272 | (doublebuf_pageflipping_init): Likewise. | |
15273 | (double_buffering_init): Likewise. | |
15274 | (grub_video_vbe_setup): Enable doublebuffering. | |
15275 | (grub_video_vbe_swap_buffers): Implement. | |
15276 | (grub_video_vbe_set_active_render_target): Handle double buffering. | |
15277 | (grub_video_vbe_get_active_render_target): Likewise. | |
15278 | (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer. | |
15279 | (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target. | |
15280 | (grub_video_vbe_enable_double_buffering): Likewise. | |
15281 | (grub_video_vbe_swap_buffers): Use update_screen. | |
15282 | (grub_video_set_mode): Use double buffering. | |
15283 | ||
15284 | 2010-02-06 Robert Millan <rmh.grub@aybabtu.com> | |
15285 | ||
15286 | * maintainance/gentrigtables.py: Remove. | |
15287 | * lib/trig.c: Likewise. | |
15288 | ||
15289 | * gentrigtables.c: New file. C rewrite of gentrigtables.py. | |
15290 | ||
15291 | * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with | |
15292 | `trigtables.c'. | |
15293 | (trigtables.c): New rule. | |
15294 | (gentrigtables): Likewise. | |
15295 | (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'. | |
15296 | ||
15297 | 2010-02-06 Robert Millan <rmh.grub@aybabtu.com> | |
15298 | ||
15299 | * maintainance/gentrigtables.py: Avoid duplicate hardcoding of | |
15300 | integer constants. | |
15301 | ||
15302 | 2010-02-06 Colin D Bennet <colin@gibibit.com> | |
15303 | ||
15304 | Trigonometry support. | |
15305 | ||
15306 | * include/grub/trig.h: New file. | |
15307 | * lib/trig.c: Likewise. | |
15308 | * maintainance/gentrigtables.py: Likewise. | |
15309 | * conf/common.rmk (pkglib_MODULES): Add trig.mod. | |
15310 | (trig_mod_SOURCES): New variable. | |
15311 | (trig_mod_CFLAGS): Likewise. | |
15312 | (trig_mod_LDFLAGS): Likewise. | |
15313 | ||
5562834e VS |
15314 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15315 | ||
15316 | * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole | |
15317 | disk devices. | |
15318 | ||
4f8528fc VS |
15319 | 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com> |
15320 | ||
15321 | * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on | |
15322 | error. | |
15323 | ||
2b4068e9 VS |
15324 | 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com> |
15325 | ||
15326 | * util/hostdisk.c (open_device): Don't use partition device when reading | |
15327 | before the partition. | |
15328 | (grub_util_biosdisk_read): Don't read from partition and before the | |
15329 | partition in single operation. | |
15330 | (grub_util_biosdisk_write): Don't write to partition and before the | |
15331 | partition in single operation. | |
15332 | ||
399f6e4d TL |
15333 | 2010-02-03 Torsten Landschoff <torsten@debian.org> |
15334 | ||
15335 | * kern/disk.c (grub_disk_read): Fix offset computation when reading | |
15336 | last sectors. | |
15337 | ||
996649b0 VS |
15338 | 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com> |
15339 | ||
15340 | * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned | |
15341 | CDROM reads. | |
15342 | (grub_biosdisk_write): Refuse to write to CDROM. | |
15343 | ||
3b205d4d VS |
15344 | 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com> |
15345 | ||
15346 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error. | |
15347 | ||
61e89d9d VS |
15348 | 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com> |
15349 | ||
15350 | * font/font.c (find_glyph): Check that bmp_idx is available before | |
15351 | using it. | |
15352 | (grub_font_get_string_width): Never call grub_font_get_glyph_internal | |
15353 | with (font == NULL). | |
15354 | ||
bf7fcba2 CS |
15355 | 2010-01-28 Christian Schmitt <chris@ilovelinux.de> |
15356 | ||
15357 | * util/ieee1275/grub-install.in: Fix nvsetenv arguments. | |
15358 | ||
f45d2663 BC |
15359 | 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com> |
15360 | ||
15361 | * include/grub/script_sh.h (sourcecode): Add const qualifier. | |
15362 | * util/grub-script-check.c (getline): Fix empty lines case. | |
15363 | ||
ec1444e6 RM |
15364 | 2010-01-28 Robert Millan <rmh.grub@aybabtu.com> |
15365 | ||
15366 | * Makefile.in (check): Exit with fail status when one of the tests | |
15367 | fails. | |
15368 | * tests/example_functional_test.c (example_test): Fix reversed assert. | |
15369 | * tests/example_unit_test.c (example_test): Likewise. | |
15370 | ||
2e1cb9bb CW |
15371 | 2010-01-28 Colin Watson <cjwatson@ubuntu.com> |
15372 | ||
15373 | * util/grub.d/10_linux.in: This script does not use any of the | |
15374 | contents of gettext.sh, only the external command `gettext', so stop | |
15375 | sourcing it. (Moreover, gettext.sh isn't necessarily installed in | |
15376 | the same prefix as GRUB.) | |
15377 | * util/grub.d/10_kfreebsd.in: Likewise. | |
15378 | ||
63533ab0 VS |
15379 | 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com> |
15380 | ||
15381 | * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle | |
15382 | of the line. | |
15383 | ||
989e1f93 VS |
15384 | 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com> |
15385 | ||
15386 | * kern/disk.c (grub_disk_read): Fix offset computation when reading | |
15387 | last sectors. | |
15388 | ||
e709ebe2 VS |
15389 | 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com> |
15390 | ||
15391 | * commands/hashsum.c (hash_file): Avoid possible stack overflow by | |
15392 | having a 4KiB and not 32KiB buffer size. | |
15393 | ||
27dea7ed RM |
15394 | 2010-01-27 Robert Millan <rmh.grub@aybabtu.com> |
15395 | ||
15396 | * util/hostfs.c: Include `<errno.h>'. | |
15397 | (grub_hostfs_read): Handle errors from fseeko() and fread(). | |
15398 | ||
67667b9c RM |
15399 | 2010-01-27 Robert Millan <rmh.grub@aybabtu.com> |
15400 | ||
15401 | * kern/disk.c (grub_disk_read): Fix bug that would cause infinite | |
15402 | loop when using read hooks on files whose size isn't sector-aligned. | |
15403 | ||
c294d9d8 RM |
15404 | 2010-01-27 Robert Millan <rmh.grub@aybabtu.com> |
15405 | ||
15406 | Remove unused parameter. | |
15407 | ||
15408 | * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter. | |
15409 | (grub_iso9660_open): Remove initialization of `data->length'. | |
15410 | ||
af75a9f1 RM |
15411 | 2010-01-27 Robert Millan <rmh.grub@aybabtu.com> |
15412 | ||
15413 | * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few | |
15414 | memleak conditions. | |
15415 | ||
254e2ce5 | 15416 | 2010-01-27 Carles Pina i Estany <carles@pina.cat> |
15417 | ||
15418 | * util/lvm.c: New macro LVM_DEV_MAPPER_STRING. | |
15419 | (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING. | |
15420 | ||
b510928c | 15421 | 2010-01-26 Carles Pina i Estany <carles@pina.cat> |
15422 | ||
15423 | * util/bin2h.c (usage): Fix warning (space after backslash). | |
15424 | ||
aa2f9dd2 | 15425 | 2010-01-26 Carles Pina i Estany <carles@pina.cat> |
de0b7a4e | 15426 | |
15427 | * font/font.c: Include `grub/fontformat.h. | |
15428 | Remove font file format constants. | |
15429 | (grub_font_load): Use the new macros. | |
15430 | * include/grub/fontformat.h: New file. | |
15431 | * util/grub-mkfont.c: Include `grub/fontformat.c'. | |
15432 | (write_font_pf2): Use the new macros. | |
15433 | ||
94e7e712 RM |
15434 | 2010-01-26 Robert Millan <rmh.grub@aybabtu.com> |
15435 | ||
15436 | * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h' | |
15437 | does. | |
15438 | ||
3973a59a RM |
15439 | 2010-01-26 Robert Millan <rmh.grub@aybabtu.com> |
15440 | ||
15441 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro. | |
15442 | ||
15443 | * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'. | |
15444 | (_start): Macroify `0x7F'. | |
15445 | ||
15446 | * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'. | |
15447 | (make_install_device): Use "(pxe)" as fallback prefix when booting | |
15448 | via PXE. | |
15449 | ||
42e0cba3 GS |
15450 | 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com> |
15451 | ||
15452 | * configure.ac: Reset LIBS after check for libgcc symbols. | |
15453 | ||
847effd8 CW |
15454 | 2010-01-25 Colin Watson <cjwatson@ubuntu.com> |
15455 | ||
15456 | * util/hostdisk.c (open_device): Add trailing newline to debug | |
15457 | message. | |
15458 | ||
ea4a7e35 GS |
15459 | 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com> |
15460 | ||
15461 | * configure.ac: Check for `limits.h'. | |
15462 | * util/misc.c: Include `<limits.h>' (for PATH_MAX). | |
15463 | ||
67951a53 RM |
15464 | 2010-01-24 Robert Millan <rmh.grub@aybabtu.com> |
15465 | ||
15466 | * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't | |
15467 | capitalize error strings. | |
15468 | ||
c273d4ce ST |
15469 | 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org> |
15470 | ||
15471 | * util/grub.d/10_hurd.in: Add a recovery mode. | |
15472 | ||
69be5b74 VS |
15473 | 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com> |
15474 | ||
15475 | * configure.ac: Check for libgcc symbols with -nostdlib. | |
15476 | ||
fc9e5810 BC |
15477 | 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com> |
15478 | ||
15479 | * acinclude.m4: Quote underquoted AC_DEFUN parameters. | |
15480 | ||
4b358c0a VS |
15481 | 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
15482 | ||
15483 | * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on | |
15484 | stack since heap may be unavailable at that point. | |
15485 | (grub_ofconsole_gotoxy): Likewise. | |
15486 | ||
454fcd1c VS |
15487 | 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
15488 | ||
15489 | * configure.ac: Check for _restgpr_14_x. | |
15490 | * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x | |
15491 | and _savegpr_* prototypes. | |
15492 | ||
566863ca RM |
15493 | 2010-01-22 Robert Millan <rmh.grub@aybabtu.com> |
15494 | ||
15495 | Use generic grub_reboot() for i386-efi. | |
15496 | ||
15497 | * kern/efi/efi.c [__i386__] (grub_reboot): Remove. | |
15498 | * kern/i386/efi/startup.S: Include `"../realmode.S"'. | |
15499 | * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'. | |
15500 | ||
bf86e59a VS |
15501 | 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com> |
15502 | ||
15503 | * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for | |
15504 | presence of "prefix" variable as it breaks when normal.mod is | |
15505 | embedded. | |
15506 | ||
d645e0f8 VS |
15507 | 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com> |
15508 | ||
15509 | * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on | |
15510 | stack since heap is unavailable at that point. | |
15511 | ||
f9ab2e25 VS |
15512 | 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com> |
15513 | ||
15514 | * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed. | |
15515 | (grub_freebsd_bootinfo): Rewritten. | |
15516 | * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo. | |
15517 | ||
01fc7054 VS |
15518 | 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com> |
15519 | ||
15520 | * util/misc.c (make_system_path_relative_to_its_root): Fix typo. | |
15521 | ||
caab4fd6 RM |
15522 | 2010-01-21 Robert Millan <rmh.grub@aybabtu.com> |
15523 | ||
15524 | * po/POTFILES: Remove mkisofs-related files. They have their own TLP | |
15525 | domain now. | |
15526 | ||
67eb1427 FZ |
15527 | 2010-01-20 Felix Zielcke <fzielcke@z-51.de> |
15528 | ||
15529 | * util/misc.c (make_system_path_relative_to_its_root): Change the work | |
15530 | around for handling "/" to the correct fix. Fix a memory leak. Use | |
15531 | xstrdup instead of strdup. | |
15532 | ||
a9ed4ff3 VS |
15533 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15534 | ||
15535 | * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h | |
15536 | ||
15537 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> | |
bed35bda VS |
15538 | |
15539 | Optimise glyph lookup by Basic Multilingual Plane lookup array. | |
15540 | ||
15541 | * font/font.c (struct grub_font): New member 'bmp_idx'. | |
15542 | (font_init): Initialise 'bmp_idx'. | |
15543 | (load_font_index): Fill 'bmp_idx'. | |
15544 | (find_glyph): Make inline. Use bmp_idx for BMP characters. | |
15545 | ||
48209f4f VS |
15546 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15547 | ||
15548 | * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding | |
15549 | unnecessary calls. | |
15550 | ||
9f0a4bb7 VS |
15551 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15552 | ||
15553 | Move context handling out of the kernel. | |
15554 | ||
15555 | * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c. | |
15556 | * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c. | |
15557 | * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h. | |
15558 | * conf/i386-efi.rmk: Likewise. | |
15559 | * conf/i386-ieee1275.rmk: Likewise. | |
15560 | * conf/i386-pc.rmk: Likewise. | |
15561 | * conf/powerpc-ieee1275.rmk: Likewise. | |
15562 | * conf/sparc64-ieee1275.rmk: Likewise. | |
15563 | * conf/x86_64-efi.rmk: Likewise. | |
15564 | * include/grub/env.h: Include grub/menu.h. | |
15565 | (grub_env_var_type): Removed. | |
15566 | (grub_env_var): Replaced field 'type' with 'global'. | |
15567 | (grub_env_find): New prototype. | |
15568 | (grub_env_context_open): Remove EXPORT_FUNC. | |
15569 | (grub_env_context_close): Likewise. | |
15570 | (grub_env_export): Likewise. | |
15571 | (grub_env_set_data_slot): Removed. | |
15572 | (grub_env_get_data_slot): Likewise. | |
15573 | (grub_env_unset_data_slot): Likewise. | |
15574 | (grub_env_unset_menu): New prototype. | |
15575 | (grub_env_set_menu): Likewise. | |
15576 | (grub_env_get_menu): Likewise. | |
15577 | * include/grub/env_private.h: New file. | |
15578 | * include/grub/normal.h (grub_context_init): New prototype. | |
15579 | (grub_context_fini): Likewise. | |
15580 | * kern/corecmd.c (grub_core_cmd_export): Moved from here ... | |
15581 | * normal/context.c (grub_cmd_export): ... to here. | |
15582 | * kern/env.c: Include env_private.h. | |
15583 | (HASHSZ): Moved to include/grub/env_private.h. | |
15584 | (grub_env_context): Likewise. | |
15585 | (grub_env_sorted_var): Likewise. | |
15586 | (current_context): Renamed from this ... | |
15587 | (grub_current_context): ...to this. 'static' removed. All users updated. | |
15588 | (grub_env_find): Removed 'static'. | |
15589 | (grub_env_context_open): Moved to normal/context.c. | |
15590 | (grub_env_context_close): Likewise. | |
15591 | (grub_env_export): Likewise. | |
15592 | (mangle_data_slot_name): Removed. | |
15593 | (grub_env_set_data_slot): Likewise. | |
15594 | (grub_env_get_data_slot): Likewise. | |
15595 | (grub_env_unset_data_slot): Likewise. | |
15596 | * kern/main.c (grub_set_root_dev): Don't export root. | |
15597 | It will be done later. | |
15598 | (grub_main): Don't export prefix. | |
15599 | It will be done later. | |
15600 | * normal/context.c: New file. | |
15601 | * normal/main.c (free_menu): Use grub_env_unset_menu. | |
15602 | (grub_normal_add_menu_entry): Use grub_env_get_menu. | |
15603 | (read_config_file): Use grub_env_get_menu and grub_env_set_menu. | |
15604 | (GRUB_MOD_INIT(normal)): Call grub_context_init. | |
15605 | (GRUB_MOD_FINI(normal)): Call grub_context_fini. | |
15606 | ||
8dd35b8c VS |
15607 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15608 | ||
15609 | setpci support. | |
15610 | ||
15611 | * commands/setpci.c: New file. | |
15612 | * conf/i386.rmk (pkglib_MODULES): Add setpci.mod. | |
15613 | (setpci_mod_SOURCES): New variable. | |
15614 | (setpci_mod_CFLAGS): Likewise. | |
15615 | (setpci_mod_LDFLAGS): Likewise. | |
15616 | ||
449193d5 VS |
15617 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15618 | ||
15619 | Byte-addressable PCI configuration space. | |
15620 | ||
15621 | * bus/pci.c (grub_pci_make_address): Use byte address instead of | |
15622 | dword address. | |
15623 | (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and | |
15624 | GRUB_PCI_REG_CACHELINE. | |
15625 | * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses | |
15626 | GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0. | |
15627 | * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses | |
15628 | GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4. | |
15629 | * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS. | |
15630 | * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to | |
15631 | grub_pci_make_address. | |
15632 | (lock_rom_area): Likewise. | |
15633 | * commands/lspci.c (grub_lspci_iter): Use macroses | |
15634 | GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing | |
15635 | of grub_pci_make_address. | |
15636 | * disk/ata.c (grub_ata_pciinit): Likewise. | |
15637 | * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro. | |
15638 | (GRUB_PCI_REG_VENDOR): Likewise. | |
15639 | (GRUB_PCI_REG_DEVICE): Likewise. | |
15640 | (GRUB_PCI_REG_COMMAND): Likewise. | |
15641 | (GRUB_PCI_REG_STATUS): Likewise. | |
15642 | (GRUB_PCI_REG_REVISION): Likewise. | |
15643 | (GRUB_PCI_REG_CLASS): Likewise. | |
15644 | (GRUB_PCI_REG_CACHELINE): Likewise. | |
15645 | (GRUB_PCI_REG_LAT_TIMER): Likewise. | |
15646 | (GRUB_PCI_REG_HEADER_TYPE): Likewise. | |
15647 | (GRUB_PCI_REG_BIST): Likewise. | |
15648 | (GRUB_PCI_REG_ADDRESSES): Likewise. | |
15649 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15650 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15651 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15652 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15653 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15654 | (GRUB_PCI_REG_ADDRESS_REG): Likewise. | |
15655 | (GRUB_PCI_REG_CIS_POINTER): Likewise. | |
15656 | (GRUB_PCI_REG_SUBVENDOR): Likewise. | |
15657 | (GRUB_PCI_REG_SUBSYSTEM): Likewise. | |
15658 | (GRUB_PCI_REG_ROM_ADDRESS): Likewise. | |
15659 | (GRUB_PCI_REG_CAP_POINTER): Likewise. | |
15660 | (GRUB_PCI_REG_IRQ_LINE): Likewise. | |
15661 | (GRUB_PCI_REG_IRQ_PIN): Likewise. | |
15662 | (GRUB_PCI_REG_MIN_GNT): Likewise. | |
15663 | (GRUB_PCI_REG_MAX_LAT): Likewise. | |
15664 | * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS. | |
15665 | * loader/i386/efi/xnu.c (find_framebuf): Likewise. | |
15666 | * video/efi_uga.c (find_framebuf): Likewise. | |
fdb1b2ea | 15667 | * video/sm712.c (grub_video_sm712_setup): Likewise. |
449193d5 VS |
15668 | * util/pci.c (grub_pci_make_address): Use byte-addressed configuration |
15669 | space. | |
15670 | ||
96d73208 RM |
15671 | 2010-01-20 Robert Millan <rmh.grub@aybabtu.com> |
15672 | ||
15673 | * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it | |
15674 | can be reliably determined to be supported. | |
15675 | ||
d4484482 RM |
15676 | 2010-01-20 Robert Millan <rmh.grub@aybabtu.com> |
15677 | ||
15678 | * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down | |
15679 | that VESA is supported. | |
15680 | (grub_linux_boot): Use generic framebuffer unless VESA is known to be | |
15681 | supported. | |
15682 | ||
00308ecf VS |
15683 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15684 | ||
15685 | * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE. | |
15686 | ||
f66924a4 RM |
15687 | 2010-01-20 Robert Millan <rmh.grub@aybabtu.com> |
15688 | ||
15689 | * util/misc.c (make_system_path_relative_to_its_root): Work around | |
15690 | special-casing of "/", as previous incarnation of this routine did. | |
15691 | ||
cbca0ada VS |
15692 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15693 | ||
15694 | Fix any-emu compilation. | |
15695 | ||
15696 | * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h. | |
15697 | * grub_bin2h_SOURCES: New variable. | |
15698 | ||
34a66d99 RM |
15699 | 2010-01-20 Robert Millan <rmh.grub@aybabtu.com> |
15700 | ||
15701 | * util/grub.d/00_header.in: Fix stupid mistake from last commit. | |
15702 | ||
94fabf58 RM |
15703 | 2010-01-20 Robert Millan <rmh.grub@aybabtu.com> |
15704 | ||
15705 | * util/grub.d/00_header.in: Fix handling of locale_dir. | |
15706 | ||
02cf98ca VS |
15707 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15708 | ||
15709 | * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz | |
15710 | as possible unifont location (Gentoo). | |
15711 | Reported by: Alexander Brüning | |
15712 | ||
327dbcd7 VS |
15713 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15714 | ||
15715 | Don't try to generate lists for kernel.img. | |
15716 | ||
15717 | * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable. | |
15718 | (pkglib_MODULES): Remove kernel.img. | |
15719 | (kernel_img_EXPORTS): Removed. | |
15720 | (kernel_img_RELOCATABLE): New variable. | |
15721 | * conf/x86_64-efi.rmk: Likewise. | |
15722 | * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support. | |
15723 | ||
ca467290 VS |
15724 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15725 | ||
15726 | * include/grub/misc.h (grub_sprintf): Removed. All users switched to | |
15727 | grub_xasprintf or grub_snprintf. | |
15728 | (grub_vsprintf): Likewise. | |
15729 | (grub_snprintf): New proto. | |
15730 | (grub_vsnprintf): Likewise. | |
15731 | (grub_xasprintf): Likewise. | |
15732 | (grub_xvasprintf): Likewise. | |
15733 | * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real. | |
15734 | (grub_sprintf): Removed. | |
15735 | (grub_vsnprintf): New function. | |
15736 | (grub_snprintf): Likewise. | |
15737 | (grub_xvasprintf): Likewise. | |
15738 | (grub_xasprintf): Likewise. | |
15739 | (grub_vsprintf): Renamed to ... | |
15740 | (grub_vsnprintf_real): ...this. New argument max_len. | |
15741 | ||
aca655fd BC |
15742 | 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com> |
15743 | ||
15744 | * include/grub/script_sh.h (sourcecode): Remove const qualifier to | |
15745 | fix grub-script-check warning. | |
15746 | ||
7ee92c32 VS |
15747 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15748 | ||
15749 | * include/grub/font.h (grub_font_load): Fix prototype. | |
15750 | ||
f80927ca VS |
15751 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15752 | ||
15753 | * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h. | |
15754 | ||
119c50ea VS |
15755 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15756 | ||
15757 | * include/grub/x86_64/at_keyboard.h: New file. | |
15758 | ||
47d5f3c1 VS |
15759 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
15760 | ||
15761 | * loader/mips/linux.c: Include missing grub/i18n.h. | |
15762 | ||
55ff5266 RM |
15763 | 2009-12-20 Robert Millan <rmh.grub@aybabtu.com> |
15764 | ||
15765 | * normal/menu.c (notify_execution_failure): Clarify error message. | |
15766 | ||
c893cc87 RM |
15767 | 2009-12-20 Robert Millan <rmh.grub@aybabtu.com> |
15768 | ||
15769 | * commands/loadenv.c (check_blocklists): Use `grub_err_t' as | |
15770 | return value (and revert all return statements). Update users. | |
15771 | ||
917dd370 CW |
15772 | 2010-01-20 Dan Merillat <debian@dan.merillat.org> |
15773 | ||
15774 | * kern/device.c (grub_device_iterate): Allocate new part_ent | |
15775 | structure based on sizeof (*p) rather than sizeof (p->next), to | |
15776 | account for structure padding. | |
15777 | ||
15778 | * util/grub-probe.c (probe_raid_level): Return -1 immediately if | |
15779 | disk is NULL, which might happen for LVM physical volumes with no | |
15780 | LVM signature. | |
15781 | ||
d4a4ee57 RM |
15782 | 2009-12-20 Robert Millan <rmh.grub@aybabtu.com> |
15783 | ||
15784 | * loader/mips/linux.c (grub_cmd_initrd) | |
15785 | (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings. | |
15786 | ||
15787 | 2009-12-20 Robert Millan <rmh.grub@aybabtu.com> | |
15788 | ||
15789 | * kern/mips/yeeloong/init.c (grub_video_sm712_init) | |
15790 | (grub_video_video_init, grub_video_bitmap_init) | |
15791 | (grub_font_manager_init, grub_term_gfxterm_init) | |
15792 | (grub_at_keyboard_init): New extern declarations. | |
15793 | (grub_machine_init): Initialize gfxterm and at_keyboard. | |
15794 | ||
15795 | * kern/main.c (grub_main): Revert grub_printf delay kludge. | |
15796 | ||
15797 | * util/grub-install.in: Revert embed of `at_keyboard.mod' and | |
15798 | `gfxterm.mod' into core image. | |
15799 | ||
15800 | * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES) | |
15801 | (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS) | |
15802 | (kernel_img_FORMAT): Copy to ... | |
15803 | ||
15804 | * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES) | |
15805 | (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS) | |
15806 | (kernel_img_FORMAT): ... here, and ... | |
15807 | ||
15808 | * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES) | |
15809 | (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS) | |
15810 | (kernel_img_FORMAT): ... here. | |
15811 | ||
15812 | (kernel_img_SOURCES): Add files necessary for output (gfxterm) | |
15813 | and input (at_keyboard) terminals in kernel. | |
15814 | (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'. | |
15815 | ||
15816 | (pkglib_MODULES): Remove `pci.mod'. | |
15817 | (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS) | |
15818 | (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS) | |
15819 | (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS) | |
15820 | (at_keyboard_mod_LDFLAGS): Remove variables. | |
15821 | ||
15822 | 2010-01-11 Felix Zielcke <fzielcke@z-51.de> | |
15823 | ||
15824 | * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'. | |
15825 | ||
15826 | 2009-12-10 Robert Millan <rmh.grub@aybabtu.com> | |
15827 | ||
15828 | * include/grub/mips/libgcc.h: Only export symbols for functions | |
15829 | that libgcc provides. | |
15830 | ||
15831 | 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com> | |
15832 | ||
15833 | MIPS support. | |
15834 | ||
15835 | * bus/bonito.c: New file. | |
15836 | * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and | |
15837 | GRUB_PCI_NUM_DEVICES. | |
15838 | * term/i386/pc/serial.c: Move to ... | |
15839 | * term/serial.c: ... here. All users updated. | |
15840 | * util/i386/pc/grub-mkimage.c: Move to ... | |
15841 | * util/grub-mkrawimage.c: ... here. All users updated. | |
15842 | * term/i386/pc/at_keyboard.c: Move to ... | |
15843 | * term/at_keyboard.c: ... here. All users updated. | |
15844 | * conf/mips-qemu-mips.rmk: New file. | |
15845 | * conf/mips-yeeloong.rmk: Likewise. | |
15846 | * conf/mips.rmk: Likewise. | |
15847 | * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and | |
15848 | mipsel-qemu-mips. | |
15849 | * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE | |
15850 | to port addresses. | |
15851 | (grub_ata_pciinit): Support CS5536. | |
15852 | * font/font.c (grub_font_load): Use grub_file_t instead of filename. | |
15853 | * font/font_cmd.c (loadfont_command): Open file before passing it to | |
15854 | grub_font_load. | |
15855 | (pseudo_file_read): New function. | |
15856 | (pseudo_file_close): Likewise. | |
15857 | (pseudo_fs): New structure. | |
15858 | (load_font_module): New function. | |
15859 | (GRUB_MOD_INIT(font_manager)): Load embedded font. | |
15860 | * fs/cpio.c (grub_cpio_open): Handle partial matches correctly. | |
15861 | * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment. | |
15862 | * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker. | |
15863 | * include/grub/i386/at_keyboard.h: Split into ... | |
15864 | * include/grub/at_keyboard.h: ... this ... | |
15865 | * include/grub/i386/at_keyboard.h: ... and this. | |
15866 | * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]: | |
15867 | New prototype. | |
15868 | * include/grub/elfload.h (grub_elf32_size): New parameter. All users | |
15869 | updated. | |
15870 | (grub_elf64_size): Likewise. | |
15871 | * include/grub/font.h (grub_font_load): Use grub_file_t instead of | |
15872 | filename. | |
15873 | * include/grub/i386/io.h (grub_port_t): New type. All users updated. | |
15874 | * include/grub/i386/coreboot/serial.h: Rewritten. | |
15875 | * include/grub/i386/ieee1275/serial.h: Include | |
15876 | grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h. | |
15877 | * include/grub/i386/pc/serial.h: Moved from here ... | |
15878 | * include/grub/serial.h: ... to here. All users updated. | |
15879 | * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition. | |
15880 | (GRUB_PCI_NUM_BUS): Likewise. | |
15881 | (GRUB_PCI_NUM_DEVICES): Likewise. | |
15882 | (grub_pci_device_map_range): Add missing volatile keyword. | |
15883 | * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value. | |
15884 | * include/grub/mips/at_keyboard.h: New file. | |
15885 | * include/grub/mips/cache.h: Likewise. | |
15886 | * include/grub/mips/io.h: Likewise. | |
15887 | * include/grub/mips/kernel.h: Likewise. | |
15888 | * include/grub/mips/libgcc.h: Likewise. | |
15889 | * include/grub/mips/pci.h: Likewise. | |
15890 | * include/grub/mips/qemu-mips/boot.h: Likewise. | |
15891 | * include/grub/mips/qemu-mips/kernel.h: Likewise. | |
15892 | * include/grub/mips/qemu-mips/loader.h: Likewise. | |
15893 | * include/grub/mips/qemu-mips/memory.h: Likewise. | |
15894 | * include/grub/mips/qemu-mips/serial.h: Likewise. | |
15895 | * include/grub/mips/qemu-mips/time.h: Likewise. | |
15896 | * include/grub/mips/relocator.h: Likewise. | |
15897 | * include/grub/mips/time.h: Likewise. | |
15898 | * include/grub/mips/types.h: Likewise. | |
15899 | * include/grub/mips/yeeloong/at_keyboard.h: Likewise. | |
15900 | * include/grub/mips/yeeloong/boot.h: Likewise. | |
15901 | * include/grub/mips/yeeloong/kernel.h: Likewise. | |
15902 | * include/grub/mips/yeeloong/loader.h: Likewise. | |
15903 | * include/grub/mips/yeeloong/memory.h: Likewise. | |
15904 | * include/grub/mips/yeeloong/pci.h: Likewise. | |
15905 | * include/grub/mips/yeeloong/serial.h: Likewise. | |
15906 | * include/grub/mips/yeeloong/time.h: Likewise. | |
15907 | * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly. | |
15908 | * kern/elf.c (grub_elf32_size): New parameter. All users | |
15909 | updated. | |
15910 | (grub_elf64_size): Likewise. | |
15911 | * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary. | |
15912 | Load modules before saying "Welcome to GRUB!". | |
15913 | Call grub_refresh after saying "Welcome to GRUB!". | |
15914 | * kern/mips/cache.S: New file. | |
15915 | * kern/mips/cache_flush.S: Likewise. | |
15916 | * kern/mips/dl.c: Likewise. | |
15917 | * kern/mips/init.c: Likewise. | |
15918 | * kern/mips/qemu-mips/init.c: Likewise. | |
15919 | * kern/mips/startup.S: Likewise. | |
15920 | * kern/mips/yeeloong/init.c: Likewise. | |
15921 | * kern/term.c (grub_putcode): Handle NULL terminal. | |
15922 | (grub_getcharwidth): Likewise. | |
15923 | (grub_getkey): Likewise. | |
15924 | (grub_checkkey): Likewise. | |
15925 | (grub_getkeystatus): Likewise. | |
15926 | (grub_getxy): Likewise. | |
15927 | (grub_getwh): Likewise. | |
15928 | (grub_gotoxy): Likewise. | |
15929 | (grub_cls): Likewise. | |
15930 | (grub_setcolorstate): Likewise. | |
15931 | (grub_setcolor): Likewise. | |
15932 | (grub_getcolor): Likewise. | |
15933 | (grub_refresh): Likewise. | |
15934 | * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value. | |
15935 | (write_jump): Add hatch nop. | |
15936 | * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S. | |
15937 | * lib/mips/setjmp.S: New file. | |
15938 | * loader/mips/linux.c: Likewise. | |
15939 | * term/i386/pc/at_keyboard.c: Move from here ... | |
15940 | * term/at_keyboard.c: ... to here. | |
15941 | * term/i386/pc/serial.c: Moved from here ... | |
15942 | * term/serial.c: ... to here. All users updated. | |
15943 | (TEXT_HEIGHT): Set to 24 to fit linux terminal. | |
15944 | (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS. | |
15945 | (serial_translate_key_sequence): Avoid deadlock. | |
15946 | (grub_serial_getkey): Handle backspace. | |
15947 | (grub_serial_putchar): Fix newline handling. | |
15948 | * util/i386/pc/grub-mkimage.c: Move from here ... | |
15949 | * util/grub-mkrawimage.c: ... to here. All users updated. | |
15950 | (generate_image): New parameters 'font_path' and 'format'. | |
15951 | Support embedding font. | |
15952 | Use grub_host_to_target* instead of grub_cpu_to_le*. | |
15953 | (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation. | |
15954 | (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format". | |
15955 | (options): New option "--font". | |
15956 | (usage): Likewise. | |
15957 | (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format". | |
15958 | (main): Handle "--font". | |
15959 | * term/gfxterm.c (grub_virtual_screen): New member bg_color_display. | |
15960 | (grub_virtual_screen_setup): Set bg_color_display. | |
15961 | (redraw_screen_rect): Use bg_color_display instead of incorrect | |
15962 | bg_color. | |
15963 | (grub_gfxterm_cls): Likewise. | |
15964 | * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'. | |
15965 | Support embedding config file. | |
15966 | (add_segments): Likewise. | |
15967 | (options): New option "--config". | |
15968 | (main): Handle "--config". | |
15969 | * video/sm712.c: New file. | |
15970 | ||
25c2b5b3 RM |
15971 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
15972 | ||
15973 | Fix parallel builds. | |
15974 | ||
15975 | * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes | |
15976 | font.c depend on ascii.h). | |
15977 | ||
15978 | 2010-01-12 Carles Pina i Estany <carles@pina.cat> | |
15979 | ||
15980 | * Makefile.in (DUSE_ASCII_FAILBACK): New macro. | |
15981 | ||
15982 | 2010-01-11 Carles Pina i Estany <carles@pina.cat> | |
15983 | ||
15984 | * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK. | |
15985 | By default: disabled. | |
15986 | * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size | |
15987 | parameter. | |
15988 | ||
15989 | 2010-01-10 Carles Pina i Estany <carles@pina.cat> | |
15990 | ||
15991 | * font/font.c: Update copyright years. | |
15992 | * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format. | |
15993 | ||
15994 | 2010-01-10 Carles Pina i Estany <carles@pina.cat> | |
15995 | ||
15996 | * font/font.c: Include `ascii.h'. | |
15997 | (ASCII_BITMAP_SIZE): New macro. | |
15998 | (ascii_font_glyph): Define. | |
15999 | (ascii_glyph_lookup): New function. | |
16000 | (grub_font_get_string_width): Change comment. If glyph not found, use | |
16001 | ascii_glyph_lookup. | |
16002 | (grub_font_get_glyph_with_fallback): If glyph not available returns | |
16003 | ascii_glyph_lookup. | |
16004 | * util/grub-mkfont.c (file_formats): New enum. | |
16005 | (options): Add `ascii-bitmaps' new option. | |
16006 | (usage): Add `asii-bitmaps' new option. | |
16007 | (write_font_ascii_bitmap): New function. | |
16008 | (write_font): Rename to ... | |
16009 | (write_font_p2): ... this. Remove print_glyphs call. | |
16010 | (main): Use file_format. Implement code for ranges if ascii-bitmaps is | |
16011 | used. Call print_glyphs. | |
16012 | * Makefile.in (pkgdata_DATA): Add `ascii.h'. | |
16013 | ||
16014 | 2010-01-14 Robert Millan <rmh.grub@aybabtu.com> | |
16015 | ||
16016 | * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'. | |
16017 | (grub_bin2h_SOURCES): New variable. | |
16018 | * util/bin2h.c: New file. | |
16019 | ||
915fc1b8 VS |
16020 | 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com> |
16021 | ||
16022 | * include/multiboot.h: Resynced with spec. | |
16023 | * include/multiboot2.h: Likewise. | |
16024 | * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle | |
16025 | GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS. | |
16026 | ||
9444b678 RM |
16027 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16028 | ||
16029 | * include/grub/term.h (grub_term_register_input, | |
16030 | grub_term_register_output): Check return of terminal init() | |
16031 | routines, and abort if errors are raised. | |
16032 | ||
16033 | * commands/terminal.c: Update copyright year. | |
16034 | ||
cba98e8d RM |
16035 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16036 | ||
16037 | * commands/terminal.c (grub_cmd_terminal_input) | |
16038 | (grub_cmd_terminal_output): Check return of terminal init() | |
16039 | routines, and abort if errors are raised. | |
16040 | ||
6f7db5d6 VS |
16041 | 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> |
16042 | ||
16043 | * include/grub/i386/bsd.h: Fix include pathes. | |
16044 | ||
262bff8d VS |
16045 | 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com> |
16046 | ||
16047 | Add missing *BSD copyright headers. | |
16048 | ||
16049 | * include/grub/aout.h: Add BSD licence. | |
16050 | * include/grub/i386/bsd.h: Parts under different licences moved to ... | |
16051 | * include/grub/i386/freebsd_linker.h: ... here, | |
16052 | * include/grub/i386/freebsd_reboot.h: ... here, | |
16053 | * include/grub/i386/netbsd_bootinfo.h: ... here, | |
16054 | * include/grub/i386/netbsd_reboot.h: ... here, | |
16055 | * include/grub/i386/openbsd_bootarg.h: ... here, | |
16056 | * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate | |
16057 | licence to each file. | |
16058 | ||
b2cab848 RM |
16059 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16060 | ||
16061 | * acinclude.m4: Remove `nop' assembly instruction; it's not | |
16062 | implemented by all architectures. | |
16063 | ||
2cb6be4b RM |
16064 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16065 | ||
16066 | * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're | |
16067 | ELILO. This is no longer necessary. | |
16068 | ||
a2eaee15 BC |
16069 | 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com> |
16070 | ||
16071 | Added new tool, grub-scrit-check to verify grub.cfg syntax. | |
16072 | ||
16073 | * util/grub-script-check.c: grub-script-check tool. | |
16074 | * conf/common.rmk: Make rules for grub-script-check. | |
16075 | ||
88d17012 RM |
16076 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16077 | ||
16078 | Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for | |
16079 | spotting it back in 2008. Shame on me for forgetting he did. | |
16080 | ||
16081 | * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines. | |
16082 | ||
8040619d RM |
16083 | 2010-01-18 Robert Millan <rmh.grub@aybabtu.com> |
16084 | ||
16085 | * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ... | |
16086 | (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users. | |
16087 | (GRUB_VIDEO_TYPE_VLFB): Rename to ... | |
16088 | (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users. | |
16089 | (GRUB_VIDEO_TYPE_EFI): Rename to ... | |
16090 | (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users. | |
16091 | ||
a0c2a0f6 RM |
16092 | 2010-01-17 Robert Millan <rmh.grub@aybabtu.com> |
16093 | ||
16094 | * include/grub/test.h: Add license header. | |
16095 | * tests/example_functional_test.c: Likewise. | |
16096 | * tests/example_unit_test.c: Likewise. | |
16097 | * tests/lib/functional_test.c: Likewise. | |
16098 | * tests/lib/test.c: Likewise. | |
16099 | * tests/lib/unit_test.c: Likewise. | |
16100 | ||
b0b13907 VS |
16101 | 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com> |
16102 | ||
16103 | Use flag-based instead of hook-based video mode selection and "auto" | |
16104 | keyword. | |
16105 | ||
16106 | * include/grub/video.h (grub_video_adapter): Changed 'setup' member. | |
16107 | (grub_video_set_mode): Changed prototype. All users updated. | |
16108 | (grub_video_check_mode_flag): New inline function. | |
16109 | * video/video.c (parse_modespec): New function. | |
16110 | (grub_video_set_mode): Parse flags and keywords. | |
16111 | ||
ea379330 | 16112 | 2010-01-17 Carles Pina i Estany <carles@pina.cat> |
16113 | ||
16114 | * util/misc.c (grub_util_info): Fix the order of the parameters in a | |
16115 | fprintf call. | |
16116 | ||
e15c215e FZ |
16117 | 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com> |
16118 | ||
16119 | * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe. | |
16120 | ||
409ae1c9 | 16121 | 2010-01-16 Carles Pina i Estany <carles@pina.cat> |
16122 | ||
16123 | * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded | |
16124 | string. | |
16125 | * util/grub-emu.c (usage): Likewise. | |
16126 | * util/grub-mkpasswd-pbkdf2.c (usage): Likewise. | |
16127 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
16128 | * util/i386/pc/grub-mkimage.c (usage): Likewise. | |
16129 | * util/i386/pc/grub-setup.c (usage): Likewise. | |
16130 | ||
70a14d3d | 16131 | 2010-01-16 Carles Pina i Estany <carles@pina.cat> |
16132 | ||
16133 | * util/misc.c (grub_util_warn): Gettextizze, print full stop after | |
16134 | the message. | |
16135 | (grub_util_info): Likewise. | |
16136 | (grub_util_error): Likewise. | |
16137 | * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops | |
16138 | and/or new lines in `grub_util_warna', `grub_util_info', | |
16139 | `grub_util_error' calls. | |
16140 | * util/getroot.c: Likewise. | |
16141 | * util/grub-editenv.c: Likewise. | |
16142 | * util/grub-emu.c: Likewise. | |
16143 | * util/grub-fstest.c: Likewise. | |
16144 | * util/grub-mkdevicemap.c: Likewise. | |
16145 | * util/grub-mkfont.c: Likewise. | |
16146 | * util/grub-mkpasswd-pbkdf2.c: Likewise. | |
16147 | * util/grub-mkrelpath.c: Likewise. | |
16148 | * util/grub-pe2elf.c: Likewise. | |
16149 | * util/grub-probe.c: Likewise. | |
16150 | * util/hostdisk.c: Likewise. | |
16151 | * util/i386/efi/grub-mkimage.c: Likewise. | |
16152 | * util/i386/pc/grub-mkimage.c: Likewise. | |
16153 | * util/i386/pc/grub-setup.c: Likewise. | |
16154 | * util/ieee1275/ofpath.c: Likewise. | |
16155 | * util/mkisofs/eltorito.c: Likewise. | |
16156 | * util/mkisofs/rock.c: Likewise. | |
16157 | * util/mkisofs/write.c: Likewise. | |
16158 | * util/raid.c: Likewise. | |
16159 | * util/sparc64/ieee1275/grub-mkimage.c: Likewise. | |
16160 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
16161 | ||
a0b766fc VS |
16162 | 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com> |
16163 | ||
16164 | Enable multiboot on non-pc. | |
16165 | ||
16166 | * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move | |
16167 | multiboot.mod and multiboot2.mod to ... | |
16168 | * conf/i386.rmk (pkglib_MODULES): ... here. | |
16169 | * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES): | |
16170 | Moved to ... | |
16171 | * conf/i386.rmk (multiboot_mod_SOURCES): .. here. | |
16172 | * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS): | |
16173 | Moved to ... | |
16174 | * conf/i386.rmk (multiboot_mod_CFLAGS): .. here. | |
16175 | * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS): | |
16176 | Moved to ... | |
16177 | * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here. | |
16178 | * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS): | |
16179 | Moved to ... | |
16180 | * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here. | |
16181 | * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and | |
16182 | relocator.mod. | |
16183 | (ata_mod_SOURCES): Removed. | |
16184 | (ata_mod_CFLAGS): Likewise. | |
16185 | (ata_mod_LDFLAGS): Likewise. | |
16186 | (relocator_mod_SOURCES): Removed. | |
16187 | (relocator_mod_CFLAGS): Likewise. | |
16188 | (relocator_mod_ASFLAGS): Likewise. | |
16189 | (relocator_mod_LDFLAGS): Likewise. | |
16190 | Include i386.mk. | |
16191 | * include/grub/x86_64/multiboot.h: New file. | |
16192 | * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]: | |
16193 | Terminate EFI. | |
16194 | ||
884ade56 VS |
16195 | 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com> |
16196 | ||
16197 | Video multiboot support. | |
16198 | ||
16199 | * include/grub/multiboot.h (grub_multiboot_set_accepts_video): | |
16200 | New prototype. | |
16201 | * include/multiboot.h: Resynced with multiboot specification. | |
16202 | * include/multiboot2.h: Likewise. | |
16203 | * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags. | |
16204 | (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields. | |
16205 | * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant. | |
16206 | (HAS_VGA_TEXT): Likewise. | |
16207 | (accepts_video): New variable. | |
16208 | (grub_multiboot_set_accepts_video): New function. | |
16209 | (grub_multiboot_get_mbi_size): Account for video structures. | |
16210 | (set_video_mode): New function. | |
16211 | (retrieve_video_parameters): Likewise. | |
16212 | (grub_multiboot_make_mbi): Fill video fields. | |
16213 | ||
0d90e8a6 VS |
16214 | 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com> |
16215 | ||
16216 | Video driver ids. | |
16217 | ||
16218 | * include/grub/video.h (grub_video_driver_id): New type. | |
16219 | (grub_video_adapter): New member 'id'. All users updated. | |
16220 | (grub_video_get_driver_id): New proto. | |
16221 | * video/video.c (grub_video_get_driver_id): New function. | |
16222 | ||
5c71db1b | 16223 | 2010-01-14 Carles Pina i Estany <carles@pina.cat> |
16224 | ||
16225 | * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain | |
16226 | `var=val'. | |
16227 | ||
cca15b52 | 16228 | 2010-01-14 Carles Pina i Estany <carles@pina.cat> |
16229 | ||
16230 | * normal/cmdline.c (print_completion): Gettextizze. | |
16231 | ||
c586fbb2 | 16232 | 2001-01-14 Carles Pina i Estany <carles@pina.cat> |
16233 | ||
16234 | * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'. | |
16235 | ||
ba2f6848 | 16236 | 2010-01-14 Carles Pina i Estany <carles@pina.cat> |
16237 | ||
16238 | * gettext/gettext.c (grub_gettext_translate): Push and pop | |
16239 | grub_errno. | |
16240 | (grub_gettext_delete_list): Change comment style. | |
16241 | * kern/err.c (grub_error): Gettextizze. | |
16242 | (grub_fatal): Gettextizze. | |
16243 | ||
0a46429a RM |
16244 | 2010-01-14 Robert Millan <rmh.grub@aybabtu.com> |
16245 | ||
16246 | * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ... | |
16247 | (grub_linux16_real_boot): ... this. | |
16248 | * kern/i386/loader.S: Likewise. | |
16249 | * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'. | |
16250 | (grub_linux16_boot): New function. Switches to text mode and calls | |
16251 | grub_linux16_real_boot(). | |
16252 | ||
16253 | * loader/i386/bsd.c: Include `<grub/video.h>'. | |
16254 | (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to | |
16255 | text mode before calling grub_unix_real_boot(). | |
16256 | ||
16257 | * loader/i386/multiboot.c: Include `<grub/video.h>'. | |
16258 | (grub_multiboot_boot): Switch to text mode before calling | |
16259 | grub_relocator32_boot(). | |
16260 | ||
16261 | * loader/i386/pc/chainloader.c: Include `<grub/video.h>'. | |
16262 | (grub_chainloader_boot): Switch to text mode before calling | |
16263 | grub_chainloader_real_boot(). | |
16264 | ||
d6f93a66 RM |
16265 | 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com> |
16266 | 2010-01-05 Colin Watson <cjwatson@ubuntu.com> | |
16267 | ||
16268 | * util/grub-reboot.in: Make sure prev_saved_entry always gets a | |
16269 | non-empty value. | |
16270 | ||
16271 | 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com> | |
16272 | 2010-01-05 Colin Watson <cjwatson@ubuntu.com> | |
16273 | ||
16274 | * util/grub.d/00_header.in: Define a "savedefault" function for use | |
16275 | in menu entries. | |
16276 | * util/grub-mkconfig_lib.in (save_default_entry): Use it. | |
16277 | ||
16278 | 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com> | |
16279 | 2010-01-05 Colin Watson <cjwatson@ubuntu.com> | |
16280 | ||
16281 | * util/grub-mkconfig_lib.in (save_default_entry): Only set | |
16282 | saved_entry if boot_once is unset. | |
16283 | * util/grub.d/00_header.in: Set boot_once to "true" if there was a | |
16284 | previous saved entry (i.e. grub-reboot). | |
16285 | ||
16286 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16287 | ||
16288 | * util/grub.d/30_os-prober.in: Call save_default_entry for hurd. | |
16289 | ||
16290 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16291 | ||
16292 | * util/grub.d/00_header.in: Use `set var=val' rather than plain | |
16293 | `var=val'. | |
16294 | * util/grub-mkconfig_lib.in (save_default_entry): Likewise. | |
16295 | ||
16296 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16297 | ||
16298 | * util/grub-reboot.in: Fix --version output. | |
16299 | * util/grub-set-default.in: Likewise. | |
16300 | ||
16301 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16302 | ||
16303 | * util/grub.d/00_header.in: Silently ignore zero-sized environment | |
16304 | blocks. | |
16305 | ||
16306 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16307 | ||
16308 | * util/grub.d/00_header.in: Quote the value assigned to `default', | |
16309 | in case it contains spaces. | |
16310 | ||
16311 | 2009-12-08 Colin Watson <cjwatson@ubuntu.com> | |
16312 | ||
16313 | * util/grub.d/30_os-prober.in: Fix merge error that moved a | |
16314 | `save_default_entry' call from the macosx case to the linux case. | |
16315 | ||
16316 | 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com> | |
16317 | 2009-10-25 Colin Watson <cjwatson@ubuntu.com> | |
16318 | ||
16319 | * normal/menu.c (grub_menu_execute_entry): Save selected entry title | |
16320 | in `chosen' environment variable. | |
16321 | * normal/menu_text.c (get_entry_number): Check if the variable | |
16322 | matches the title of a menu entry. | |
16323 | (run_menu): Pass menu to get_entry_number. | |
16324 | ||
16325 | * util/grub-reboot.in: New file. | |
16326 | * util/grub-set-default.in: New file. | |
16327 | * conf/common.rmk (grub-reboot): New utility. | |
16328 | (grub-set-default): New utility. | |
16329 | ||
16330 | * util/grub-mkconfig_lib.in (save_default_entry): New function. | |
16331 | * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set | |
16332 | default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty, | |
16333 | move it to `saved_entry' for the next boot. Load environment on | |
16334 | initialisation. | |
16335 | * util/grub.d/10_kfreebsd.in: Call save_default_entry. | |
16336 | * util/grub.d/10_hurd.in: Likewise. | |
16337 | * util/grub.d/10_linux.in (linux_entry): Likewise. | |
16338 | * util/grub.d/10_windows.in: Likewise. | |
16339 | * util/grub.d/30_os-prober.in: Likewise. | |
16340 | ||
16341 | * util/grub-install.in: Create environment block. | |
16342 | * util/i386/efi/grub-install.in: Likewise. | |
16343 | * util/ieee1275/grub-install.in: Likewise. | |
16344 | * util/sparc64/ieee1275/grub-install.in: Likewise. | |
16345 | ||
0934d184 BC |
16346 | 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com> |
16347 | ||
16348 | Unit testing framework for GRUB. | |
16349 | ||
16350 | * Makefile.in: Test framework build rules for 'make check'. | |
16351 | * conf/tests.rmk: Build rules for individual tests and framework. | |
16352 | ||
16353 | * include/grub/test.h: Header file for whitebox tests. | |
16354 | * tests/lib/functional_test.c: Framework support for whitebox | |
16355 | functional tests. | |
16356 | * tests/lib/test.c: Common whitebox testing code for unit and | |
16357 | functional tests. | |
16358 | * tests/lib/unit_test.c: Framework support for whitebox unit | |
16359 | tests. | |
16360 | ||
16361 | * tests/util/grub-shell-tester.in: Support utility for grub-script | |
16362 | tests. | |
16363 | * tests/util/grub-shell.in: Utility to execute grub-script | |
16364 | commands in a Qemu instance. | |
16365 | ||
16366 | * tests/example_functional_test.c: Example whitebox functional | |
16367 | test. | |
16368 | * tests/example_grub_script_test.in: Example grub-script test. | |
16369 | * tests/example_scripted_test.in: Example scripted test. | |
16370 | * tests/example_unit_test.c: Example whitebox unit test. | |
16371 | ||
9c4ffeeb VS |
16372 | 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com> |
16373 | ||
16374 | * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): | |
16375 | Add loader/i386/multiboot_mbi.c. | |
16376 | (multiboot2_mod_SOURCES): Likewise. | |
16377 | * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise. | |
16378 | (multiboot2_mod_SOURCES): Likewise. | |
16379 | * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto. | |
16380 | (grub_multiboot_make_mbi): Likewise. | |
16381 | (grub_multiboot_free_mbi): Likewise. | |
16382 | (grub_multiboot_init_mbi): Likewise. | |
16383 | (grub_multiboot_add_module): Likewise. | |
16384 | (grub_multiboot_set_bootdev): Likewise. | |
16385 | * loader/i386/multiboot.c (mbi): Removed. | |
16386 | (mbi_dest): Likewise. | |
16387 | (alloc_mbi): New variable. | |
16388 | (grub_multiboot_payload_size): Removed. All users updated. | |
16389 | (grub_multiboot_pure_size): New variable. | |
16390 | (grub_multiboot_boot): Use grub_multiboot_make_mbi. | |
16391 | (grub_multiboot_unload): Use grub_multiboot_free_mbi. | |
16392 | (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c. | |
16393 | (grub_fill_multiboot_mmap): Likewise. | |
16394 | (grub_multiboot_get_bootdev): Likewise. | |
16395 | (grub_multiboot): Use multiboot_mbi functions. | |
16396 | * loader/i386/multiboot_mbi.c: New file. | |
16397 | ||
17383dfe VS |
16398 | 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com> |
16399 | ||
16400 | * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as | |
16401 | it would result in module crash. | |
16402 | ||
c1f28820 VS |
16403 | 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com> |
16404 | ||
16405 | * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'. | |
16406 | (grub_ofconsole_getwh): Split to ... | |
16407 | (grub_ofconsole_getwh): ... this. | |
16408 | (grub_ofconsole_dimensions): ...and this. | |
16409 | (grub_ofconsole_init_output): Call grub_ofconsole_dimensions. | |
16410 | ||
58655a16 RM |
16411 | 2010-01-13 Robert Millan <rmh.grub@aybabtu.com> |
16412 | ||
16413 | * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo. | |
16414 | ||
10891398 VS |
16415 | 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
16416 | ||
16417 | * loader/i386/pc/multiboot2.c: Removed stalled file. | |
16418 | ||
0b8a223c VS |
16419 | 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com> |
16420 | ||
16421 | * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls. | |
16422 | Reported by: Grégoire Sutre | |
16423 | ||
92ab12b0 RM |
16424 | 2010-01-11 Robert Millan <rmh.grub@aybabtu.com> |
16425 | ||
16426 | * util/misc.c (canonicalize_file_name): New function. | |
16427 | (make_system_path_relative_to_its_root): Use canonicalize_file_name() | |
16428 | instead of realpath(). | |
16429 | ||
a788afb6 CW |
16430 | 2010-01-11 Colin Watson <cjwatson@ubuntu.com> |
16431 | ||
16432 | * util/grub-install.in (usage): Clarify meaning of --root-directory, | |
16433 | and make it clearer that it's optional. Based on confusion | |
16434 | witnessed on IRC. | |
16435 | ||
ffa8e3d2 VS |
16436 | 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
16437 | ||
16438 | * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted | |
16439 | in premature implicit newline. | |
16440 | ||
e9060a9d VS |
16441 | 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com> |
16442 | ||
16443 | * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error | |
16444 | which resulted in garbled command line at the end of screen. | |
16445 | ||
f0d0c0b7 RM |
16446 | 2010-01-10 Robert Millan <rmh.grub@aybabtu.com> |
16447 | ||
16448 | * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position | |
16449 | initialization with similar approach as with other Linux loaders. | |
16450 | ||
0e60bae7 RM |
16451 | 2010-01-10 Robert Millan <rmh.grub@aybabtu.com> |
16452 | ||
16453 | Fix i386-ieee1275 build. | |
16454 | ||
16455 | * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width() | |
16456 | and grub_term_height() for video_{width,height} initialization. | |
16457 | ||
16458 | 2010-01-10 Robert Millan <rmh.grub@aybabtu.com> | |
cdec4d31 RM |
16459 | |
16460 | Fix grub-emu build. | |
16461 | ||
16462 | * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'. | |
16463 | ||
cdb3f378 RM |
16464 | 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com> |
16465 | 2010-01-09 Robert Millan <rmh.grub@aybabtu.com> | |
16466 | ||
16467 | Support for multiple terminals. | |
16468 | ||
16469 | * Makefile.in (pkglib_DATA): terminal.lst. | |
16470 | (terminal.lst): New target. | |
16471 | * commands/handler.c (grub_cmd_handler): Don't handle terminals. | |
16472 | (GRUB_MOD_INIT(handler)): Likewise. | |
16473 | (GRUB_MOD_FINI(handler)): Likewise. | |
16474 | * commands/help.c (grub_cmd_help): Handle multiple terminals. | |
16475 | * commands/keystatus.c (grub_cmd_keystatus): Likewise. | |
16476 | * commands/sleep.c (do_print): Use grub_term_restore_pos. | |
16477 | (grub_cmd_sleep): Use grub_term_save_pos. | |
16478 | * commands/terminal.c: New file. | |
16479 | * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c | |
16480 | commands/terminal.c and lib/charset.c. | |
16481 | * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c. | |
16482 | (pkglib_MODULES): Add terminal.mod. | |
16483 | (terminal_mod_SOURCES): New variable. | |
16484 | (terminal_mod_CFLAGS): Likewise. | |
16485 | (terminal_mod_LDFLAGS): Likewise. | |
16486 | * genhandlerlist.sh: Don't handle terminals. | |
16487 | * genmk.rb: Generate terminal-*.lst. | |
16488 | * genterminallist.sh: New file. | |
16489 | * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto. | |
16490 | (grub_is_valid_utf8): Likewise. | |
16491 | (grub_utf8_to_ucs4_alloc): Likewise. | |
16492 | * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten. | |
16493 | (grub_menu_register_viewer): Changed argument. | |
16494 | (grub_menu_try_text): New proto. | |
16495 | (grub_gfxmenu_try_hook): New declaration. | |
16496 | * include/grub/normal.h (grub_normal_exit_level): New declaration. | |
16497 | (grub_menu_init_page): Additional argument term. | |
16498 | (grub_normal_init_page): Likewise. | |
16499 | (grub_cmdline_get): Arguments simplified. | |
16500 | (grub_utf8_to_ucs4_alloc): Removed. | |
16501 | (grub_print_ucs4): Additional argument term. | |
16502 | (grub_getstringwidth): Likewise. | |
16503 | (grub_print_message_indented): Likewise. | |
16504 | (grub_menu_text_register_instances): New proto. | |
16505 | (grub_show_menu): Likewise. | |
16506 | (read_terminal_list): Likewise. | |
16507 | (grub_set_more): Likewise. | |
16508 | * include/grub/parser.h: Include handler.h. | |
16509 | * include/grub/reader.h: Rewritten. | |
16510 | * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed. | |
16511 | (GRUB_TERM_WIDTH): Changed to function. | |
16512 | (GRUB_TERM_HEIGHT): Likewise. | |
16513 | (GRUB_TERM_BORDER_WIDTH): Likewise. | |
16514 | (GRUB_TERM_BORDER_HEIGHT): Likewise. | |
16515 | (GRUB_TERM_NUM_ENTRIES): Likewise. | |
16516 | (GRUB_TERM_ENTRY_WIDTH): Likewise. | |
16517 | (GRUB_TERM_CURSOR_X): Likewise. | |
16518 | (grub_term_input_class): Likewise. | |
16519 | (grub_term_output_class): Likewise. | |
16520 | (grub_term_outputs_disabled): New declaration. | |
16521 | (grub_term_inputs_disabled): Likewise. | |
16522 | (grub_term_outputs): Likewise. | |
16523 | (grub_term_inputs): Likewise. | |
16524 | (grub_term_register_input): Rewritten. | |
16525 | (grub_term_register_output): Likewise. | |
16526 | (grub_term_unregister_input): Likewise. | |
16527 | (grub_term_unregister_output): Likewise. | |
16528 | (FOR_ACTIVE_TERM_INPUTS): New macro. | |
16529 | (FOR_DISABLED_TERM_INPUTS): Likewise. | |
16530 | (FOR_ACTIVE_TERM_OUTPUTS): Likewise. | |
16531 | (FOR_DISABLED_TERM_OUTPUTS): Likewise. | |
16532 | * include/grub/terminfo.h: Add oterm argument to all protypes. | |
16533 | * kern/main.c (grub_main): Don't call grub_register_rescue_reader. | |
16534 | Use grub_rescue_run. | |
16535 | * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters. | |
16536 | All users updated. | |
16537 | * kern/reader.c: Removed. All users updated. | |
16538 | * kern/rescue_reader.c (grub_rescue_init): Removed. | |
16539 | (grub_rescue_reader): Likewise. | |
16540 | (grub_register_rescue_reader): Likewise. | |
16541 | (grub_rescue_run): New function based on kern/reader.c. | |
16542 | * kern/term.c: Adapted for multiterm. | |
16543 | * lib/charset.c (grub_ucs4_to_utf8_alloc): New function. | |
16544 | (grub_is_valid_utf8): Likewise. | |
16545 | (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c. | |
16546 | * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of | |
16547 | right terminal. | |
16548 | * loader/i386/linux.c (grub_linux_boot): Likewise. | |
16549 | * normal/auth.c (grub_username_get): New function. | |
16550 | (grub_auth_check_authentication): Use grub_username_get. | |
16551 | * normal/cmdline.c: Changed to UCS4. Adapted for multiterm. | |
16552 | * normal/color.c: Adapt for multiterm. | |
16553 | * normal/main.c (read_config_file): Don't use grub_reader_loop. | |
16554 | (grub_normal_init_page): Additional argument term. | |
16555 | (read_lists): Call read_terminal_lists. | |
16556 | (grub_enter_normal_mode): Call grub_cmdline_run. | |
16557 | Handle grub_normal_exit_level. | |
16558 | (grub_cmd_normal): Make reentrant. | |
16559 | (grub_cmd_normal_exit): New function. | |
16560 | (grub_normal_reader_init): Additional argument nested. Handle multiterm. | |
16561 | * normal/menu.c: Adapt for multiterm. | |
16562 | * normal/menu_entry.c: Likewise. | |
16563 | * normal/menu_text.c: Likewise. | |
16564 | * normal/menu_viewer.c: Removed. All users updated. | |
16565 | * normal/term.c: New file. | |
16566 | * util/console.c: Change order of includes to workaround a bug in | |
16567 | ncurses headers. | |
16568 | * term/terminfo.c: New argument oterm on all exported functions. | |
16569 | All users updated. | |
16570 | * util/grub-editenv.c (grub_term_input_class): Removed. | |
16571 | (grub_term_output_class): Likewise. | |
16572 | ||
1a064917 RM |
16573 | 2010-01-09 Robert Millan <rmh.grub@aybabtu.com> |
16574 | ||
16575 | Make loader output a bit more user-friendly. | |
16576 | ||
16577 | * util/grub.d/10_hurd.in: Print message indicating that GNU Mach | |
16578 | is being loaded. Likewise for the Hurd. | |
16579 | ||
16580 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating | |
16581 | that kernel of FreeBSD ${version} is being loaded. | |
16582 | ||
16583 | * loader/i386/linux.c (grub_cmd_linux): Move debug info to | |
16584 | grub_dprintf(). | |
16585 | (grub_cmd_initrd): Likewise. | |
16586 | * util/grub.d/10_linux.in (linux_entry): Print message indicating | |
16587 | that Linux ${version} is being loaded. Likewise for initrd. | |
16588 | ||
5ce0a83a | 16589 | 2010-01-09 Carles Pina i Estany <carles@pina.cat> |
16590 | ||
16591 | * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze. | |
16592 | ||
809bbfeb | 16593 | 2010-01-08 Carles Pina i Estany <carles@pina.cat> |
16594 | ||
16595 | * loader/efi/appleloader.c: Include `<grub/i18n.h>'. | |
16596 | (GRUB_MOD_INIT): Gettextizze. | |
16597 | * loader/efi/chainloader.c: Include `<grub/i18n.h>'. | |
16598 | (GRUB_MOD_INIT): Gettextizze. | |
16599 | * loader/i386/efi/linux.c: Include `<grub/i18n.h>'. | |
16600 | (grub_cmd_linux): Capitalise Linux. | |
16601 | (GRUB_MOD_INIT): Gettextizze. | |
16602 | * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'. | |
16603 | (grub_cmd_linux): Capitalise Linux. | |
16604 | (GRUB_MOD_INIT): Gettextizze. | |
16605 | * loader/i386/linux.c: Include `<grub/i18n.h>'. | |
16606 | (grub_cmd_linux): Capitalise Linux. | |
16607 | (GRUB_MOD_INIT): Gettextizze. | |
16608 | * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'. | |
16609 | (GRUB_MOD_INIT): Gettextizze. | |
16610 | * loader/i386/pc/linux.c: Include `<grub/i18n.h>'. | |
16611 | (grub_cmd_linux): Capitalise Linux. | |
16612 | (GRUB_MOD_INIT): Gettextizze. | |
16613 | * loader/i386/xnu.c: Include `<grub/i18n.h>'. | |
16614 | (grub_cpu_xnu_init): Gettextizze. | |
16615 | * loader/multiboot_loader.c: Include `<grub/i18n.h>'. | |
16616 | (GRUB_MOD_INIT): Gettextizze. | |
16617 | * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'. | |
16618 | (GRUB_MOD_INIT): Gettextizze. | |
16619 | * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'. | |
16620 | (grub_linux_load64): Capitalise Linux. | |
16621 | (GRUB_MOD_INIT): Gettextizze. | |
16622 | * loader/xnu.c: Include `<grub/i18n.h>'. | |
16623 | (GRUB_MOD_INIT): Gettextizze. | |
16624 | * po/POTFILES: Add `loader/efi/appleloader.c', | |
16625 | `loader/efi/chainloader.c', `loader/i386/efi/linux.c', | |
16626 | `loader/i386/ieee1275/linux.c', `loader/i386/linux.c', | |
16627 | `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c', | |
16628 | `loader/i386/xnu.c', `loader/multiboot_loader.c', | |
16629 | `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c' | |
16630 | and `loader/xnu.c'. | |
16631 | ||
b394b2ca RM |
16632 | 2010-01-08 Robert Millan <rmh.grub@aybabtu.com> |
16633 | ||
16634 | * src/mkisofs.c: Remove `ifdef linux' portability kludge. | |
16635 | ||
16636 | 2010-01-08 Robert Millan <rmh.grub@aybabtu.com> | |
cd943b75 RM |
16637 | |
16638 | * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME. | |
16639 | (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally. | |
16640 | * util/mkisofs/mkisofs.c (main): Readjust --version output. | |
16641 | ||
bc8b32b3 RM |
16642 | 2010-01-07 Robert Millan <rmh.grub@aybabtu.com> |
16643 | ||
16644 | Reset Multiboot 2 support. New loader implements the draft in | |
16645 | /branches/multiboot2 and shares as much code as possible with the | |
16646 | production Multiboot 1 implementation. | |
16647 | ||
16648 | * loader/ieee1275/multiboot2.c: Remove file. Update all users. | |
16649 | * loader/multiboot2.c: Likewise. | |
16650 | * loader/i386/multiboot_helper.S: Likewise. | |
16651 | * include/multiboot2.h: Replace with latest version from the draft | |
16652 | in /branches/multiboot2. | |
16653 | ||
16654 | * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove | |
16655 | `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c' | |
16656 | and `loader/multiboot2.c'. | |
16657 | (pkglib_MODULES): Add `multiboot2.mod'. | |
16658 | (multiboot2_mod_SOURCES): New variable. | |
16659 | (multiboot2_mod_LDFLAGS): Likewise. | |
16660 | (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'. | |
16661 | ||
16662 | * conf/i386-pc.rmk: Likewise. | |
16663 | ||
16664 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'. | |
16665 | (multiboot_mod_SOURCES): Remove variable. | |
16666 | (multiboot_mod_LDFLAGS): Likewise. | |
16667 | (multiboot_mod_CFLAGS): Likewise. | |
16668 | ||
16669 | * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include | |
16670 | `<multiboot2.h>' instead of `<multiboot.h>'. | |
16671 | [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC) | |
16672 | (MULTIBOOT_HEADER_MAGIC): New macros. | |
16673 | ||
16674 | * loader/multiboot_loader.c (module_version_status): Remove variable. | |
16675 | (find_multi_boot2_header): Remove function. | |
16676 | (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection | |
16677 | logic. Always check for the Multiboot version we're compiling for. | |
16678 | (grub_cmd_module_loader): Likewise. | |
16679 | [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2' | |
16680 | command instead of `multiboot'. | |
16681 | ||
5d2c52b8 RM |
16682 | 2010-01-07 Robert Millan <rmh.grub@aybabtu.com> |
16683 | ||
16684 | * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ... | |
16685 | * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update | |
16686 | all users. | |
16687 | ||
53108d92 RM |
16688 | 2010-01-07 Robert Millan <rmh.grub@aybabtu.com> |
16689 | 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com> | |
16690 | ||
16691 | Fix breakage introduced with previous commit. | |
16692 | ||
16693 | * normal/dyncmd.c (read_command_list): Avoid unregistering kernel | |
16694 | commands. | |
16695 | * normal/handler.c (read_handler_list): Revert part of previous commit | |
16696 | affecting this file. | |
16697 | * normal/main.c (read_lists): Move read_handler_list() call back to ... | |
16698 | (grub_normal_execute): ... here. | |
16699 | ||
e2e936b2 RM |
16700 | 2010-01-07 Robert Millan <rmh.grub@aybabtu.com> |
16701 | ||
16702 | Merge prefix-redefinition-fix branch. | |
16703 | ||
16704 | * normal/autofs.c (read_fs_list): Make function capable of being | |
16705 | run multiple times, gracefuly replacing the previous data | |
16706 | structures. | |
16707 | * normal/dyncmd.c (read_command_list): Likewise. | |
16708 | * normal/handler.c (read_handler_list): Likewise. | |
16709 | * normal/main.c (read_lists): New function. Calls all the | |
16710 | list reading functions. | |
16711 | (grub_normal_execute): Use read_lists() instead of calling all | |
16712 | list reading functions explicitly. Register read_lists() as a | |
16713 | variable hook attached to ${prefix}. | |
16714 | ||
607a3701 VS |
16715 | 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com> |
16716 | ||
16717 | Merge crypto branch. | |
16718 | ||
16719 | * Makefile.in (pkglib_DATA): Add crypto.lst. | |
16720 | (crypto.lst): New target. | |
16721 | * commands/hashsum.c: New file. | |
16722 | * commands/password.c (check_password): Use grub_crypto_memcmp. | |
16723 | * commands/password_pbkdf2.c: New file. | |
16724 | * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5. | |
16725 | * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c, | |
16726 | normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c. | |
16727 | (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error | |
16728 | -I$(srcdir)/lib/libgcrypt_wrap. | |
16729 | * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c. | |
16730 | (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and | |
16731 | password_pbkdf2.mod. | |
16732 | (crypto_mod_SOURCES): New variable. | |
16733 | (crypto_mod_CFLAGS): Likewise. | |
16734 | (crypto_mod_LDFLAGS): Likewise. | |
16735 | (hashsum_mod_SOURCES): New variable. | |
16736 | (hashsum_mod_CFLAGS): Likewise. | |
16737 | (hashsum_mod_LDFLAGS): Likewise. | |
16738 | (pbkdf2_mod_SOURCES): New variable. | |
16739 | (pbkdf2_mod_CFLAGS): Likewise. | |
16740 | (pbkdf2_mod_LDFLAGS): Likewise. | |
16741 | (password_pbkdf2_mod_SOURCES): New variable. | |
16742 | (password_pbkdf2_mod_CFLAGS): Likewise. | |
16743 | (password_pbkdf2_mod_LDFLAGS): Likewise. | |
16744 | (bin_UTILITIES): Add grub-mkpasswd-pbkdf2. | |
16745 | (grub_mkpasswd_pbkdf2_SOURCES): New variable. | |
16746 | (grub_mkpasswd_pbkdf2_CFLAGS): Likewise. | |
16747 | Include conf/gcry.rmk. | |
16748 | * include/grub/auth.h: Rewritten. | |
16749 | * include/grub/crypto.h: New file. | |
16750 | * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID. | |
16751 | * include/grub/normal.h (read_crypto_list): New prototype. | |
16752 | * lib/crypto.c: New file. | |
16753 | * lib/libgcrypt_wrap/cipher_wrap.h: Likewise. | |
16754 | * lib/pbkdf2.c: Likewise. | |
16755 | * normal/auth.c (grub_auth_strcmp): Removed. | |
16756 | (grub_iswordseparator): Likewise. | |
16757 | (grub_auth_strword): Likewise. | |
16758 | (is_authenticated): Use grub_strword. | |
16759 | (grub_auth_check_authentication): Use grub_strcmp, grub_password_get | |
16760 | and grub_strword. Pass entered password to authentication callback. | |
16761 | * normal/crypto.c: New file. | |
16762 | * normal/main.c: Call read_crypto_list. | |
16763 | * util/grub-mkpasswd-pbkdf2.c: New file. | |
16764 | * util/import_gcry.py: Generate crypto.lst. Add hash blocklen. | |
16765 | ||
42841caa VS |
16766 | 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com> |
16767 | ||
16768 | Fix descent and ascent calculation. | |
16769 | ||
16770 | * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'. | |
16771 | (options): New option "asce". | |
16772 | (usage): Likewise. | |
16773 | (add_char): Ignore invalid glyphs for descent calculation. | |
16774 | Calculate ascent from actual content. | |
16775 | (print_glyphs): Use 'asce'. | |
16776 | (write_font): Likewise. Allow ascent override. | |
16777 | (main): Handle "asce" option. | |
16778 | ||
e7730de7 | 16779 | 2010-01-06 Carles Pina i Estany <carles@pina.cat> |
16780 | ||
16781 | * kern/err.c: Include `<grub/i18n.h>'. | |
16782 | (grub_print_error): Add full stop. Gettextizze. | |
16783 | * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description. | |
16784 | (grub_bsd_load_elf): Capitalise ELF. | |
16785 | (grub_cmd_freebsd_loadenv): Add `s' in error string. | |
16786 | (grub_cmd_freebsd_module): Likewise. | |
16787 | (grub_cmd_freebsd_module_elf): Likewise. | |
16788 | * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF. | |
16789 | ||
40e3a41f | 16790 | 2010-01-06 Carles Pina i Estany <carles@pina.cat> |
16791 | ||
16792 | * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE. | |
16793 | * commands/search_file.c (HELP_MESSAGE): New macro. | |
16794 | * commands/search_label.c (HELP_MESSAGE): Likewise. | |
16795 | * commands/search_uuid.c (HELP_MESSAGE): Likewise. | |
16796 | * po/POTFILES: Add `commands/search_file.c', | |
16797 | `commands/search_label.c', `commands_uuid.c'. Remove duplicate | |
16798 | `commands/search.c'. | |
16799 | ||
83507e68 RM |
16800 | 2010-01-05 Robert Millan <rmh.grub@aybabtu.com> |
16801 | ||
16802 | * config.rpath: Update from Gnulib. | |
16803 | ||
465c787b YB |
16804 | 2010-01-05 Yves Blusseau <blusseau@zetam.org> |
16805 | ||
16806 | * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message. | |
16807 | ||
6581dd3a YB |
16808 | 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org> |
16809 | ||
16810 | * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix. | |
16811 | ||
3bff18c5 CW |
16812 | 2010-01-05 Colin Watson <cjwatson@ubuntu.com> |
16813 | ||
16814 | * util/mkisofs/write.c (padblock_write): Switch size and nmemb | |
16815 | arguments to fread so that we get a return value in bytes, rather | |
16816 | than something that will normally be rounded down to 0. | |
16817 | Adjust error handling to avoid producing garbage when size_t is not | |
16818 | the same size as long long. | |
16819 | ||
a1368118 CW |
16820 | 2010-01-05 Colin Watson <cjwatson@ubuntu.com> |
16821 | ||
16822 | * util/mkisofs/write.c (padblock_write): Check return value of | |
16823 | fread. | |
16824 | ||
7c302978 RM |
16825 | 2010-01-05 Robert Millan <rmh.grub@aybabtu.com> |
16826 | ||
16827 | Remove grub-mkfloppy. Images produced by grub-mkrescue are valid | |
16828 | floppy images now. | |
16829 | ||
16830 | * util/i386/pc/grub-mkfloppy.in: Remove. Update all users. | |
16831 | ||
e33ace06 RM |
16832 | 2010-01-04 Robert Millan <rmh.grub@aybabtu.com> |
16833 | ||
16834 | * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro | |
16835 | instead of manual alignment. | |
16836 | * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively | |
16837 | verbose). Avoid attempts to read past end of the device | |
16838 | (grub_disk_adjust_range() guarantees that we can read `size' bytes, | |
16839 | but GRUB_DISK_CACHE_SIZE may exceed that). | |
16840 | ||
4b856776 RM |
16841 | 2010-01-04 Robert Millan <rmh.grub@aybabtu.com> |
16842 | ||
16843 | * commands/crc.c (grub_cmd_crc): Abort on read errors. | |
16844 | * fs/iso9660.c (grub_iso9660_read): Check for read error and pass | |
16845 | it to upper layer. | |
16846 | ||
52c2d97f VS |
16847 | 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
16848 | ||
16849 | * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE): | |
16850 | New constant. | |
16851 | (grub_efi_piwg_device_path): New structure | |
16852 | (grub_efi_piwg_device_path_t): New type. | |
16853 | * loader/efi/appleloader.c (piwg_full_device_path): New structure. | |
16854 | (devpath_1): Transform to a structure. All users updated. | |
16855 | (devpath_2): Likewise. | |
16856 | (devpath_3): Likewise. | |
16857 | (devpath_4): Likewise. | |
16858 | (devpath_5): Likewise. | |
16859 | ||
98ff6a54 VS |
16860 | 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com> |
16861 | ||
16862 | * loader/efi/appleloader.c: Restored. Update all users. | |
16863 | ||
3a73dcb6 RM |
16864 | 2010-01-03 Robert Millan <rmh.grub@aybabtu.com> |
16865 | ||
16866 | * boot/i386/pc/diskboot.S: Fix inaccurate comment. | |
16867 | ||
16868 | * util/i386/pc/grub-setup.c: Include `<assert.h>'. | |
16869 | (struct boot_blocklist): Move from here ... | |
16870 | * include/grub/i386/pc/boot.h [ASM_FILE] | |
16871 | (struct grub_boot_blocklist): ... to here. Update all users. | |
16872 | (setup): Only initialize `start' member of `first_block' | |
16873 | structure. Add assert() calls to verify the other members. | |
16874 | ||
16875 | * util/i386/pc/grub-mkimage.c: Include `<assert.h>'. | |
16876 | (generate_image): Fix broken blocklist length initialization. | |
16877 | Add assert() call to verify blocklist `segment' field. | |
16878 | ||
ab0eeb0c RM |
16879 | 2010-01-03 Robert Millan <rmh.grub@aybabtu.com> |
16880 | ||
16881 | * loader/efi/appleloader.c: Remove. Update all users. | |
16882 | ||
58bc8bd5 RM |
16883 | 2010-01-03 Robert Millan <rmh.grub@aybabtu.com> |
16884 | ||
16885 | * boot/i386/pc/boot.S: Update copyright year. | |
16886 | * boot/i386/pc/cdboot.S: Likewise. | |
16887 | * boot/i386/pc/diskboot.S: Likewise. | |
16888 | * boot/i386/pc/lnxboot.S: Likewise. | |
16889 | * boot/i386/pc/pxeboot.S: Likewise. | |
16890 | * bus/pci.c: Likewise. | |
16891 | * commands/cmp.c: Likewise. | |
16892 | * commands/help.c: Likewise. | |
16893 | * commands/hexdump.c: Likewise. | |
16894 | * commands/i386/pc/halt.c: Likewise. | |
16895 | * commands/i386/pc/play.c: Likewise. | |
16896 | * commands/i386/pc/vbeinfo.c: Likewise. | |
16897 | * commands/ls.c: Likewise. | |
16898 | * commands/test.c: Likewise. | |
16899 | * disk/dmraid_nvidia.c: Likewise. | |
16900 | * disk/i386/pc/biosdisk.c: Likewise. | |
16901 | * disk/ieee1275/nand.c: Likewise. | |
16902 | * disk/ieee1275/ofdisk.c: Likewise. | |
16903 | * disk/lvm.c: Likewise. | |
16904 | * disk/raid.c: Likewise. | |
16905 | * disk/raid6_recover.c: Likewise. | |
16906 | * disk/scsi.c: Likewise. | |
16907 | * fs/affs.c: Likewise. | |
16908 | * fs/cpio.c: Likewise. | |
16909 | * fs/ext2.c: Likewise. | |
16910 | * fs/hfs.c: Likewise. | |
16911 | * fs/iso9660.c: Likewise. | |
16912 | * fs/ntfs.c: Likewise. | |
16913 | * fs/sfs.c: Likewise. | |
16914 | * fs/udf.c: Likewise. | |
16915 | * fs/ufs.c: Likewise. | |
16916 | * fs/xfs.c: Likewise. | |
16917 | * gencmdlist.sh: Likewise. | |
16918 | * genmk.rb: Likewise. | |
16919 | * include/grub/disk.h: Likewise. | |
16920 | * include/grub/efi/api.h: Likewise. | |
16921 | * include/grub/efi/efi.h: Likewise. | |
16922 | * include/grub/efi/pe32.h: Likewise. | |
16923 | * include/grub/elf.h: Likewise. | |
16924 | * include/grub/fs.h: Likewise. | |
16925 | * include/grub/i386/at_keyboard.h: Likewise. | |
16926 | * include/grub/i386/pc/memory.h: Likewise. | |
16927 | * include/grub/i386/pc/vbe.h: Likewise. | |
16928 | * include/grub/i386/pci.h: Likewise. | |
16929 | * include/grub/i386/tsc.h: Likewise. | |
16930 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
16931 | * include/grub/ntfs.h: Likewise. | |
16932 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
16933 | * include/grub/sparc64/libgcc.h: Likewise. | |
16934 | * include/grub/symbol.h: Likewise. | |
16935 | * include/grub/types.h: Likewise. | |
16936 | * include/multiboot2.h: Likewise. | |
16937 | * io/gzio.c: Likewise. | |
16938 | * kern/device.c: Likewise. | |
16939 | * kern/disk.c: Likewise. | |
16940 | * kern/efi/efi.c: Likewise. | |
16941 | * kern/efi/mm.c: Likewise. | |
16942 | * kern/elf.c: Likewise. | |
16943 | * kern/file.c: Likewise. | |
16944 | * kern/i386/dl.c: Likewise. | |
16945 | * kern/i386/pc/init.c: Likewise. | |
16946 | * kern/i386/pc/startup.S: Likewise. | |
16947 | * kern/ieee1275/ieee1275.c: Likewise. | |
16948 | * kern/ieee1275/init.c: Likewise. | |
16949 | * kern/main.c: Likewise. | |
16950 | * kern/mm.c: Likewise. | |
16951 | * kern/powerpc/dl.c: Likewise. | |
16952 | * kern/sparc64/dl.c: Likewise. | |
16953 | * kern/x86_64/dl.c: Likewise. | |
16954 | * lib/hexdump.c: Likewise. | |
16955 | * loader/efi/appleloader.c: Likewise. | |
16956 | * loader/i386/ieee1275/linux.c: Likewise. | |
16957 | * loader/i386/pc/chainloader.c: Likewise. | |
16958 | * loader/i386/pc/linux.c: Likewise. | |
16959 | * loader/i386/pc/multiboot2.c: Likewise. | |
16960 | * loader/ieee1275/multiboot2.c: Likewise. | |
16961 | * loader/multiboot2.c: Likewise. | |
16962 | * loader/multiboot_loader.c: Likewise. | |
16963 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
16964 | * normal/completion.c: Likewise. | |
16965 | * normal/menu_entry.c: Likewise. | |
16966 | * partmap/apple.c: Likewise. | |
16967 | * util/grub.d/10_hurd.in: Likewise. | |
16968 | * util/hostfs.c: Likewise. | |
16969 | * video/readers/png.c: Likewise. | |
16970 | ||
e2d70b5c CW |
16971 | 2010-01-03 Colin Watson <cjwatson@ubuntu.com> |
16972 | ||
16973 | * include/grub/misc.h (GNUC_PREREQ): New macro. | |
16974 | (ATTRIBUTE_ERROR): New macro. | |
16975 | * include/grub/list.h (grub_bad_type_cast_real): Use | |
16976 | ATTRIBUTE_ERROR. | |
16977 | ||
a173283f | 16978 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
16979 | ||
16980 | * normal/menu_text.c (print_message): Change messages. | |
16981 | ||
7fa7ff74 | 16982 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
16983 | ||
16984 | * normal/menu_entry.c (store_completion): Gettextizze. | |
16985 | ||
136d24f6 | 16986 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
16987 | ||
16988 | * kern/env.c (grub_env_unset): Set the variable to "" if has hooks. | |
16989 | ||
f936862e | 16990 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
16991 | ||
16992 | * po/POTFILES: Sort correctly. | |
16993 | ||
29c44ad1 | 16994 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
16995 | ||
16996 | * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help. | |
16997 | * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS. | |
16998 | * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add | |
16999 | full stop. | |
17000 | * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from | |
17001 | summary. Gettextizze the strings. | |
17002 | * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS. | |
17003 | * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU. | |
17004 | * disk/loopback.c (grub_arg_options): Capitalise first letter. Add | |
17005 | full stop. | |
17006 | (GRUB_MOD_INIT): Remove command name from summary. | |
17007 | * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the | |
17008 | summary. | |
17009 | * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM. | |
17010 | * term/i386/pc/serial.c (options): Add full stops. | |
17011 | (GRUB_MOD_INIT): Remove command name from the summary. | |
17012 | ||
77a79592 | 17013 | 2010-01-03 Carles Pina i Estany <carles@pina.cat> |
17014 | ||
17015 | * commands/acpi.c: Gettextizze help strings and/or options. Include | |
17016 | `grub/i18n.h' if needed. | |
17017 | * commands/blocklist.c: Likewise. | |
17018 | * commands/boot.c: Likewise. | |
17019 | * commands/cat.c: Likewise. | |
17020 | * commands/cmp.c: Likewise. | |
17021 | * commands/configfile.c: Likewise. | |
17022 | * commands/crc.c: Likewise. | |
17023 | * commands/date.c: Likewise. | |
17024 | * commands/echo.c: Likewise. | |
17025 | * commands/efi/fixvideo.c: Likewise. | |
17026 | * commands/efi/loadbios.c: Likewise. | |
17027 | * commands/gptsync.c: Likewise. | |
17028 | * commands/halt.c: Likewise. | |
17029 | * commands/handler.c: Likewise. | |
17030 | * commands/hdparm.c: Likewise. | |
17031 | * commands/hexdump.c: Likewise. | |
17032 | * commands/i386/cpuid.c: Likewise. | |
17033 | * commands/i386/pc/drivemap.c: Likewise. | |
17034 | * commands/i386/pc/halt.c: Likewise. | |
17035 | * commands/i386/pc/pxecmd.c: Likewise. | |
17036 | * commands/i386/pc/vbeinfo.c: Likewise. | |
17037 | * commands/i386/pc/vbetest.c: Likewise. | |
17038 | * commands/ieee1275/suspend.c: Likewise. | |
17039 | * commands/keystatus.c: Likewise. | |
17040 | * commands/loadenv.c: Likewise. | |
17041 | * commands/ls.c: Likewise. | |
17042 | * commands/lsmmap.c: Likewise. | |
17043 | * commands/lspci.c: Likewise. | |
17044 | * commands/memrw.c: Likewise. | |
17045 | * commands/minicmd.c: Likewise. | |
17046 | * commands/parttool.c: Likewise. | |
17047 | * commands/password.c: Likewise. | |
17048 | * commands/probe.c: Likewise. | |
17049 | * commands/read.c: Likewise. | |
17050 | * commands/reboot.c: Likewise. | |
17051 | * commands/search.c: Likewise. | |
17052 | * commands/sleep.c: Likewise. | |
17053 | * commands/test.c: Likewise. | |
17054 | * commands/true.c: Likewise. | |
17055 | * commands/usbtest.c: Likewise. | |
17056 | * commands/videotest.c: Likewise. | |
17057 | * commands/xnu_uuid.c: Likewise. | |
17058 | * disk/loopback.c: Likewise. | |
17059 | * hello/hello.c: Likewise. | |
17060 | * loader/i386/bsd.c: Likewise. | |
17061 | * term/i386/pc/serial.c: Likewise. | |
17062 | * po/POTFILES: Add new files. | |
17063 | ||
da8d5c53 CW |
17064 | 2010-01-02 Colin Watson <cjwatson@ubuntu.com> |
17065 | ||
17066 | * term/i386/pc/at_keyboard.c | |
17067 | (keyboard_controller_wait_untill_ready): Rename to ... | |
17068 | (keyboard_controller_wait_until_ready): ... this. Update all users. | |
17069 | ||
33937904 | 17070 | 2010-01-01 Carles Pina i Estany <carles@pina.cat> |
17071 | ||
17072 | * commands/help.c: Include `grub/mm.h' and `grub/normal.h'. | |
17073 | (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the | |
17074 | string using string width. | |
17075 | * normal/menu_text.c (grub_print_message_indented): Use | |
17076 | grub_print_spaces and not print_spaces. | |
17077 | (print_timeout): Likewise. | |
17078 | (print_spaces): Move to... | |
17079 | * include/grub/term.h: ... here. Change the name to grub_print_spaces. | |
17080 | ||
3fd3b8d8 RM |
17081 | 2010-01-01 Robert Millan <rmh.grub@aybabtu.com> |
17082 | ||
17083 | Import from Gnulib. | |
17084 | ||
17085 | * gnulib/getdelim.c: New file. | |
17086 | * gnulib/getline.c: Likewise. | |
17087 | ||
33433555 VS |
17088 | 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com> |
17089 | ||
17090 | * include/grub/list.h (grub_assert_fail): Removed. | |
17091 | (grub_bad_type_cast_real): New function. | |
17092 | (grub_bad_type_cast): New macro. | |
17093 | (GRUB_AS_LIST): Use grub_bad_type_cast. | |
17094 | (GRUB_AS_LIST_P): Likewise. | |
e44721e8 | 17095 | (GRUB_AS_NAMED_LIST): Likewise. |
33433555 | 17096 | (GRUB_AS_NAMED_LIST_P): Likewise. |
e44721e8 | 17097 | (GRUB_AS_PRIO_LIST): Likewise. |
33433555 | 17098 | (GRUB_AS_PRIO_LIST_P): Likewise. |
e44721e8 | 17099 | * include/grub/handler.h (GRUB_AS_HANDLER): Likewise. |
33433555 | 17100 | |
f5a51306 VS |
17101 | 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com> |
17102 | ||
17103 | * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)): | |
17104 | Fix syntax error. | |
17105 | ||
90d1e879 RM |
17106 | 2009-12-29 Robert Millan <rmh.grub@aybabtu.com> |
17107 | ||
17108 | * configure.ac: Check for TARGET_CFLAGS initialization before we | |
17109 | initialize it ourselves (sigh). | |
17110 | Move a few modifications to TARGET_CFLAGS to be unconditional | |
17111 | (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4 | |
17112 | eh_frame) | |
17113 | ||
17114 | * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument. | |
17115 | * term/i386/pc/at_keyboard.c | |
17116 | (keyboard_controller_wait_untill_ready): Likewise. | |
17117 | (keyboard_controller_led): Rename `led_status' paramter to avoid | |
17118 | name conflict. | |
17119 | ||
465b5a81 | 17120 | 2009-12-28 Carles Pina i Estany <carles@pina.cat> |
17121 | ||
17122 | * normal/misc.c (grub_normal_print_device_info): Add spaces and double | |
17123 | quotes. | |
17124 | ||
c181849b VS |
17125 | 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
17126 | ||
17127 | * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL. | |
17128 | ||
9c8739a4 VS |
17129 | 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
17130 | ||
17131 | * normal/menu_text.c (grub_print_message_indented): Prevent | |
17132 | past-the-end-of-array dereference. | |
17133 | ||
3e74249c VS |
17134 | 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com> |
17135 | ||
17136 | * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to .. | |
17137 | (GRUB_MOD_FINI (video_reader_jpeg)): ...this | |
17138 | ||
64fd18ed | 17139 | 2009-12-27 Carles Pina i Estany <carles@pina.cat> |
17140 | ||
17141 | * normal/cmdline.c (grub_cmdline_get): Print a space after prompt. | |
17142 | * normal/main.c (grub_normal_read_line): Remove a space from the | |
17143 | default prompt. | |
17144 | ||
714af9b9 | 17145 | 2009-12-27 Carles Pina i Estany <carles@pina.cat> |
17146 | ||
17147 | * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary. | |
17148 | * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17149 | * loader/i386/linux.c (GRUB_MOD_INIT): Likewise. | |
17150 | * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise. | |
17151 | * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17152 | * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17153 | * loader/xnu.c (GRUB_MOD_INIT): Likewise. | |
17154 | ||
82f3e412 | 17155 | 2009-12-26 Carles Pina i Estany <carles@pina.cat> |
c541b01a | 17156 | |
17157 | * video/readers/jpeg.c (cmd): Declare. | |
17158 | (grub_cmd_jpegtest): Use `grub_command_t' type. | |
17159 | (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'. | |
17160 | Assign to `cmd'. | |
17161 | (GRUB_MOD_FINI): Use `cmd' to unregister. | |
17162 | * video/readers/png.c (cmd): Declare. | |
17163 | (grub_cmd_pngtest): Use `grub_command_t' type. | |
17164 | (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'. | |
17165 | Assign to `cmd'. | |
17166 | (GRUB_MOD_FINI): Use `cmd' to unregister. | |
17167 | * video/readers/tga.c (cmd): Declare. | |
17168 | (grub_cmd_tgatest): Use `grub_command_t' type. | |
17169 | (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'. | |
17170 | Assign to `cmd'. | |
17171 | (GRUB_MOD_FINI): Use `cmd' to unregister. | |
17172 | ||
82f3e412 | 17173 | 2009-12-26 Carles Pina i Estany <carles@pina.cat> |
864ba2bb | 17174 | |
17175 | * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full | |
17176 | stops. | |
17177 | * kern/corecmd.c (grub_register_core_commands): Likewise. | |
17178 | * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise. | |
17179 | * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise. | |
17180 | * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise. | |
17181 | * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17182 | * loader/i386/linux.c (GRUB_MOD_INIT): Likewise. | |
17183 | * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise. | |
17184 | * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise. | |
17185 | * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise. | |
17186 | * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17187 | * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise. | |
17188 | * loader/xnu.c (GRUB_MOD_INIT): Likewise. | |
17189 | * mmap/mmap.c (GRUB_MOD_INIT): Likewise. | |
17190 | * normal/handler.c (insert_handler): Likewise. | |
17191 | * normal/main.c (GRUB_MOD_INIT): Likewise. | |
17192 | * term/gfxterm.c (GRUB_MOD_INIT): Likewise. | |
17193 | ||
fdcdbb66 | 17194 | 2009-12-26 Carles Pina i Estany <carles@pina.cat> |
17195 | ||
17196 | * commands/help.c (grub_cmd_help): Print the command name before the | |
17197 | summary. | |
17198 | (GRUB_MOD_INIT): Remove command name from the summary. | |
17199 | * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty | |
82f3e412 | 17200 | string as summary. |
fdcdbb66 | 17201 | * lib/arg.c (find_long): Print the command name before the summary. |
17202 | * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the | |
17203 | summary. | |
17204 | * commands/blocklist.c (GRUB_MOD_INIT): Likewise. | |
17205 | * commands/cat.c (GRUB_MOD_INIT): Likewise. | |
17206 | * commands/cmp.c (GRUB_MOD_INIT): Likewise. | |
17207 | * commands/configfile.c (GRUB_MOD_INIT): Likewise. | |
17208 | * commands/crc.c (GRUB_MOD_INIT): Likewise. | |
17209 | * commands/date.c (GRUB_MOD_INIT): Likewise. | |
17210 | * commands/echo.c (GRUB_MOD_INIT): Likewise. | |
17211 | * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise. | |
17212 | * commands/gptsync.c (GRUB_MOD_INIT): Likewise. | |
17213 | * commands/handler.c (GRUB_MOD_INIT): Likewise. | |
17214 | * commands/hdparm.c (GRUB_MOD_INIT): Likewise. | |
17215 | * commands/hexdump.c (GRUB_MOD_INIT): Likewise. | |
17216 | * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise. | |
17217 | * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise. | |
17218 | * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise. | |
17219 | * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise. | |
17220 | * commands/keystatus.c (GRUB_MOD_INIT): Likewise. | |
17221 | * commands/loadenv.c (GRUB_MOD_INIT): Likewise. | |
17222 | * commands/ls.c (GRUB_MOD_INIT): Likewise. | |
17223 | * commands/lspci.c (GRUB_MOD_INIT): Likewise. | |
17224 | * commands/memrw.c (GRUB_MOD_INIT): Likewise. | |
17225 | * commands/minicmd.c (GRUB_MOD_INIT): Likewise. | |
17226 | * commands/parttool.c (GRUB_MOD_INIT): Likewise. | |
17227 | * commands/password.c (GRUB_MOD_INIT): Likewise. | |
17228 | * commands/probe.c (GRUB_MOD_INIT): Likewise. | |
17229 | * commands/read.c (GRUB_MOD_INIT): Likewise. | |
17230 | * commands/search.c (GRUB_MOD_INIT): Likewise. | |
17231 | * commands/sleep.c (GRUB_MOD_INIT): Likewise. | |
17232 | * commands/test.c (GRUB_MOD_INIT): Likewise. | |
17233 | * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise. | |
17234 | * efiemu/main.c (GRUB_MOD_INIT): Likewise. | |
17235 | * font/font_cmd.c (GRUB_MOD_INIT): Likewise. | |
17236 | * gettext/gettext.c (GRUB_MOD_INIT): Likewise. | |
17237 | * kern/corecmd.c (GRUB_MOD_INIT): Likewise. | |
17238 | * lib/arg.c (GRUB_MOD_INIT): Likewise. | |
17239 | * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise. | |
17240 | * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise. | |
17241 | * loader/xnu.c (GRUB_MOD_INIT): Likewise. | |
17242 | * mmap/mmap.c (GRUB_MOD_INIT): Likewise. | |
17243 | * term/terminfo.c (GRUB_MOD_INIT): Likewise. | |
17244 | * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise. | |
17245 | * video/readers/png.c (GRUB_MOD_INIT): Likewise. | |
17246 | * video/readers/tga.c (GRUB_MOD_INIT): Likewise. | |
17247 | ||
9c288be2 VS |
17248 | 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com> |
17249 | ||
17250 | Use search command for preliminar UUID search. | |
17251 | ||
17252 | * commands/search.c: Split into ... | |
17253 | * commands/search_wrap.c: ...this | |
17254 | * commands/search.c: ...and this. | |
17255 | * commands/search_file.c: New file. | |
17256 | * commands/search_label.c: New file. | |
17257 | * commands/search_uuid.c: New file. | |
17258 | * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c. | |
17259 | Add commands/search_wrap.c, commands/search_file.c, | |
17260 | commands/search_label.c and commands/search_uuid.c. | |
17261 | * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod. | |
17262 | (search_mod_SOURCES): Set to commands/search_wrap.c. | |
17263 | (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and | |
17264 | search_label.mod. | |
17265 | (search_fs_file_mod_SOURCES): New variable. | |
17266 | (search_fs_file_mod_CFLAGS): Likewise. | |
17267 | (search_fs_file_mod_LDFLAGS): Likewise. | |
17268 | (search_label_mod_SOURCES): Likewise. | |
17269 | (search_label_mod_CFLAGS): Likewise. | |
17270 | (search_label_mod_LDFLAGS): Likewise. | |
17271 | (search_fs_uuid_mod_SOURCES): New variable. | |
17272 | (search_fs_uuid_mod_CFLAGS): Likewise. | |
17273 | (search_fs_uuid_mod_LDFLAGS): Likewise. | |
17274 | (fs_file_mod_SOURCES): Removed. | |
17275 | (fs_file_mod_CFLAGS): Likewise. | |
17276 | (fs_file_mod_LDFLAGS): Likewise. | |
17277 | (fs_uuid_mod_SOURCES): Removed. | |
17278 | (fs_uuid_mod_CFLAGS): Likewise. | |
17279 | (fs_uuid_mod_LDFLAGS): Likewise. | |
17280 | * conf/sparc64-ieee1275.rmk (grub_install_SOURCES): | |
17281 | Set to util/grub-install.in. | |
17282 | * disk/fs_file.c: Removed. | |
17283 | * disk/fs_uuid.c: Likewise. | |
17284 | * include/grub/search.h: New file. | |
17285 | * util/grub-install.in: Handle sparc64. | |
17286 | Create and use load.cfg. | |
17287 | * util/sparc64/ieee1275/grub-install.in: Removed. | |
17288 | ||
db943399 VS |
17289 | 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com> |
17290 | ||
17291 | * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions): | |
17292 | Ignore return status if CF is cleared. | |
17293 | (grub_biosdisk_get_diskinfo_standard): Likewise. | |
17294 | ||
3fdae612 RM |
17295 | 2009-12-25 Robert Millan <rmh.grub@aybabtu.com> |
17296 | ||
17297 | * term/i386/pc/at_keyboard.c | |
17298 | (keyboard_controller_wait_untill_ready): New function. | |
17299 | (grub_keyboard_controller_write, grub_keyboard_controller_read) | |
17300 | (keyboard_controller_led): Use keyboard_controller_wait_untill_ready() | |
17301 | for keyboard polling, rather than duplicate the same loop. This | |
17302 | saves a few bytes in code size. | |
17303 | ||
7ebaa2b4 VS |
17304 | 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com> |
17305 | ||
17306 | Support for (pxe[:server[:gateway]]) syntax and | |
17307 | use environment variable for PXE. | |
17308 | ||
17309 | * commands/i386/pc/pxecmd.c (options): Removed. | |
17310 | (print_ip): Removed. | |
17311 | (grub_cmd_pxe): Removed | |
17312 | (grub_cmd_pxe_unload): New function. | |
17313 | * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure. | |
17314 | (grub_pxe_your_ip): Made static. | |
17315 | (grub_pxe_default_server_ip): Likewise. | |
17316 | (grub_pxe_default_gateway_ip): Likewise. | |
17317 | (grub_pxe_blksize): Likewise. | |
17318 | (parse_ip): New function. | |
17319 | (grub_pxe_open): Support server and gateway specification. | |
17320 | (grub_pxe_close): Free disk->data. | |
17321 | (grub_pxefs_open): Use disk->data. | |
17322 | (grub_pxefs_read): Likewise. | |
17323 | (grub_env_write_readonly): New function. | |
17324 | (set_mac_env): Likewise. | |
17325 | (set_env_limn_ro): Likewise. | |
17326 | (parse_dhcp_vendor): Likewise. | |
17327 | (grub_pxe_detect): Set the environment variables. | |
17328 | (set_ip_env): New function. | |
17329 | (write_ip_env): Likewise. | |
17330 | (grub_env_write_pxe_default_server): Likewise. | |
17331 | (grub_env_write_pxe_default_gateway): Likewise. | |
17332 | (grub_env_write_pxe_blocksize): Likewise. | |
17333 | (GRUB_MOD_INIT(pxe)): Set environment variables. | |
17334 | * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ... | |
17335 | (grub_pxe_mac_addr_t): ... this. All users updated. | |
17336 | (grub_pxe_your_ip): Removed. | |
17337 | (grub_pxe_server_ip): Likewise. | |
17338 | (grub_pxe_gateway_ip): Likewise. | |
17339 | (grub_pxe_blksize): Likewise. | |
17340 | ||
ec5f98ab | 17341 | 2009-12-25 Carles Pina i Estany <carles@pina.cat> |
17342 | ||
17343 | * commands/help.c: Include `<grub/i18n.h>'. | |
17344 | (grub_cmd_help): Gettextizze. | |
17345 | (GRUB_MOD_INIT): Likewise. | |
17346 | * commands/i386/pc/play.c: Include `<grub/i18n.h>'. | |
17347 | (GRUB_MOD_INIT): Gettextizze. | |
17348 | * commands/search.c: Include `<grub/i18n.h>'. | |
17349 | (options): Gettextizze. | |
17350 | (GRUB_MOD_INIT): Gettextizze. | |
17351 | * lib/arg.c: Include `<grub/i18n.h>'. | |
17352 | (help_options): Gettextizze. | |
17353 | (find_long): Likewise. | |
17354 | (grub_arg_show_help): Likewise. | |
17355 | * normal/dyncmd.c: Include `<grub/i18n.h>'. | |
17356 | (read_command_list): Gettextizze. | |
17357 | * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c', | |
7ebaa2b4 | 17358 | `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'. |
ec5f98ab | 17359 | |
22815526 RM |
17360 | 2009-12-25 Robert Millan <rmh.grub@aybabtu.com> |
17361 | ||
17362 | * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros. | |
17363 | * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK) | |
17364 | (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros. | |
17365 | (led_status): New variable. | |
17366 | (keyboard_controller_led): New function. | |
17367 | (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock, | |
17368 | update led status for caps lock, num lock and scroll lock. | |
17369 | ||
0ad46fd7 FZ |
17370 | 2009-12-25 Felix Zielcke <fzielcke@z-51.de> |
17371 | ||
17372 | * util/hostdisk.c (open_device): Fix a comment. | |
17373 | ||
d0e158c2 RM |
17374 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17375 | ||
17376 | * util/grub-install.in (host_os): New variable. | |
17377 | * util/i386/efi/grub-install.in (host_os): Likewise. | |
17378 | ||
401c0ad6 RM |
17379 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17380 | ||
17381 | * util/mkisofs/write.c (padblock_write): Abort when given an | |
17382 | excedingly large embed image, instead of silently truncating it. | |
17383 | ||
d14d3370 RM |
17384 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17385 | ||
17386 | * include/multiboot.h: Indentation fixes. | |
17387 | ||
eeed10b4 RM |
17388 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17389 | ||
17390 | * include/multiboot.h (struct multiboot_aout_symbol_table) | |
17391 | (struct multiboot_elf_section_header_table): New structure | |
17392 | declarations (stolen from GRUB Legacy). | |
17393 | (struct multiboot_info): Replace opaque `syms' with a.out and ELF | |
17394 | table information. | |
17395 | ||
17396 | (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t) | |
17397 | (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New | |
17398 | type aliases. | |
17399 | ||
681c70ab RM |
17400 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17401 | ||
17402 | * include/multiboot.h: Make comments src2texi-friendly. | |
17403 | ||
e4d47d8d RM |
17404 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17405 | ||
17406 | For consistency with [multiboot]/docs/boot.S. | |
17407 | ||
17408 | * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ... | |
17409 | (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users. | |
17410 | (MULTIBOOT_MAGIC2): Rename from this ... | |
17411 | (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users. | |
17412 | ||
a0b70bda RM |
17413 | 2009-12-24 Robert Millan <rmh.grub@aybabtu.com> |
17414 | ||
17415 | * include/multiboot.h: Remove `<grub/types.h>'. | |
17416 | (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New | |
17417 | types. Update all users. | |
17418 | ||
61ba42be | 17419 | 2009-12-25 Carles Pina i Estany <carles@pina.cat> |
17420 | ||
17421 | * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by | |
17422 | `couldn't' and `can not' by `cannot'. | |
17423 | * commands/i386/pc/drivemap.c: Likewise. | |
17424 | * disk/ata.c: Likewise. | |
17425 | * disk/ieee1275/nand.c: Likewise. | |
17426 | * fs/affs.c: Likewise. | |
17427 | * fs/fat.c: Likewise. | |
17428 | * fs/hfs.c: Likewise. | |
17429 | * fs/hfsplus.c: Likewise. | |
17430 | * fs/iso9660.c: Likewise. | |
17431 | * fs/jfs.c: Likewise. | |
17432 | * fs/minix.c: Likewise. | |
17433 | * fs/reiserfs.c: Likewise. | |
17434 | * fs/sfs.c: Likewise. | |
17435 | * fs/udf.c: Likewise. | |
17436 | * fs/ufs.c: Likewise. | |
17437 | * fs/xfs.c: Likewise. | |
17438 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
17439 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
17440 | * util/grub-probe.c: Likewise. | |
17441 | * util/misc.c: Likewise. | |
17442 | ||
7fd0baee | 17443 | 2009-12-24 Carles Pina i Estany <carles@pina.cat> |
17444 | ||
17445 | * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in | |
17446 | grub_errno calls. | |
17447 | * commands/acpi.c: Likewise. | |
17448 | * commands/blocklist.c: Likewise. | |
17449 | * commands/efi/loadbios.c: Likewise. | |
17450 | * commands/i386/pc/drivemap.c: Likewise. | |
17451 | * commands/loadenv.c: Likewise. | |
17452 | * commands/memrw.c: Likewise. | |
17453 | * commands/password.c: Likewise. | |
17454 | * commands/videotest.c: Likewise. | |
17455 | * disk/ata.c: Likewise. | |
17456 | * disk/ata_pthru.c: Likewise. | |
17457 | * disk/dmraid_nvidia.c: Likewise. | |
17458 | * disk/ieee1275/nand.c: Likewise. | |
17459 | * disk/ieee1275/ofdisk.c: Likewise. | |
17460 | * disk/loopback.c: Likewise. | |
17461 | * disk/lvm.c: Likewise. | |
17462 | * disk/mdraid_linux.c: Likewise. | |
17463 | * disk/raid.c: Likewise. | |
17464 | * disk/raid6_recover.c: Likewise. | |
17465 | * disk/scsi.c: Likewise. | |
17466 | * efiemu/main.c: Likewise. | |
17467 | * efiemu/mm.c: Likewise. | |
17468 | * efiemu/pnvram.c: Likewise. | |
17469 | * efiemu/symbols.c: Likewise. | |
17470 | * font/font.c: Likewise. | |
17471 | * fs/cpio.c: Likewise. | |
17472 | * fs/hfsplus.c: Likewise. | |
17473 | * fs/iso9660.c: Likewise. | |
17474 | * fs/jfs.c: Likewise. | |
17475 | * fs/minix.c: Likewise. | |
17476 | * fs/ntfs.c: Likewise. | |
17477 | * fs/ntfscomp.c: Likewise. | |
17478 | * fs/reiserfs.c: Likewise. | |
17479 | * fs/ufs.c: Likewise. | |
17480 | * fs/xfs.c: Likewise. | |
17481 | * gettext/gettext.c: Likewise. | |
17482 | * include/grub/auth.h: Likewise. | |
17483 | * kern/elf.c: Likewise. | |
17484 | * kern/file.c: Likewise. | |
17485 | * kern/ieee1275/init.c: Likewise. | |
17486 | * kern/ieee1275/mmap.c: Likewise. | |
17487 | * kern/ieee1275/openfw.c: Likewise. | |
17488 | * kern/powerpc/dl.c: Likewise. | |
17489 | * kern/sparc64/dl.c: Likewise. | |
17490 | * lib/arg.c: Likewise. | |
17491 | * loader/i386/bsd.c: Likewise. | |
17492 | * loader/i386/bsdXX.c: Likewise. | |
17493 | * loader/i386/efi/linux.c: Likewise. | |
17494 | * loader/i386/efi/xnu.c: Likewise. | |
17495 | * loader/i386/ieee1275/linux.c: Likewise. | |
17496 | * loader/i386/linux.c: Likewise. | |
17497 | * loader/i386/multiboot.c: Likewise. | |
17498 | * loader/i386/pc/linux.c: Likewise. | |
17499 | * loader/i386/pc/multiboot2.c: Likewise. | |
17500 | * loader/i386/xnu.c: Likewise. | |
17501 | * loader/ieee1275/multiboot2.c: Likewise. | |
17502 | * loader/macho.c: Likewise. | |
17503 | * loader/machoXX.c: Likewise. | |
17504 | * loader/multiboot2.c: Likewise. | |
17505 | * loader/multiboot_loader.c: Likewise. | |
17506 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
17507 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
17508 | * loader/xnu.c: Likewise. | |
17509 | * loader/xnu_resume.c: Likewise. | |
17510 | * mmap/i386/pc/mmap.c: Likewise. | |
17511 | * normal/menu_viewer.c: Likewise. | |
17512 | * partmap/acorn.c: Likewise. | |
17513 | * partmap/amiga.c: Likewise. | |
17514 | * partmap/apple.c: Likewise. | |
17515 | * script/lexer.c: Likewise. | |
17516 | * term/gfxterm.c: Likewise. | |
17517 | * term/i386/pc/serial.c: Likewise. | |
17518 | * term/i386/pc/vga.c: Likewise. | |
17519 | * term/ieee1275/ofconsole.c: Likewise. | |
17520 | * term/terminfo.c: Likewise. | |
17521 | * video/bitmap.c: Likewise. | |
17522 | * video/efi_gop.c: Likewise. | |
17523 | * video/efi_uga.c: Likewise. | |
17524 | * video/fb/video_fb.c: Likewise. | |
17525 | * video/i386/pc/vbe.c: Likewise. | |
17526 | * video/readers/tga.c: Likewise. | |
17527 | * video/video.c: Likewise. | |
17528 | ||
0ad46fd7 | 17529 | 2009-12-23 Felix Zielcke <fzielcke@z-51.de> |
a2c1332b FZ |
17530 | |
17531 | * commands/i386/pc/drivemap.c: Remove all trailing whitespace. | |
17532 | * commands/lspci.c: Likewise. | |
17533 | * commands/probe.c: Likewise. | |
17534 | * commands/xnu_uuid.c: Likewise. | |
17535 | * conf/i386-coreboot.rmk: Likewise. | |
17536 | * conf/i386-efi.rmk: Likewise. | |
17537 | * conf/i386-ieee1275.rmk: Likewise. | |
17538 | * conf/i386-pc.rmk: Likewise. | |
17539 | * conf/powerpc-ieee1275.rmk: Likewise. | |
17540 | * conf/sparc64-ieee1275.rmk: Likewise. | |
17541 | * conf/x86_64-efi.rmk: Likewise. | |
17542 | * fs/i386/pc/pxe.c: Likewise. | |
17543 | * gettext/gettext.c: Likewise. | |
17544 | * include/grub/efi/graphics_output.h: Likewise. | |
17545 | * include/grub/i386/pc/memory.h: Likewise. | |
17546 | * kern/env.c: Likewise. | |
17547 | * kern/i386/qemu/startup.S: Likewise. | |
17548 | * lib/i386/pc/biosnum.c: Likewise. | |
17549 | * lib/i386/relocator.c: Likewise. | |
17550 | * lib/i386/relocator_asm.S: Likewise. | |
17551 | * lib/relocator.c: Likewise. | |
17552 | * loader/i386/bsd.c: Likewise. | |
17553 | * loader/i386/multiboot.c: Likewise. | |
17554 | * loader/i386/pc/chainloader.c: Likewise. | |
17555 | * loader/i386/xnu.c: Likewise. | |
17556 | * loader/xnu.c: Likewise. | |
17557 | * normal/main.c: Likewise. | |
17558 | * normal/menu_text.c: Likewise. | |
17559 | * util/getroot.c: Likewise. | |
17560 | * util/grub-mkconfig_lib.in: Likewise. | |
17561 | * util/grub.d/00_header.in: Likewise. | |
17562 | * util/i386/pc/grub-mkimage.c: Likewise. | |
17563 | * util/mkisofs/eltorito.c: Likewise. | |
17564 | * util/mkisofs/exclude.h: Likewise. | |
17565 | * util/mkisofs/hash.c: Likewise. | |
17566 | * util/mkisofs/iso9660.h: Likewise. | |
17567 | * util/mkisofs/joliet.c: Likewise. | |
17568 | * util/mkisofs/mkisofs.c: Likewise. | |
17569 | * util/mkisofs/mkisofs.h: Likewise. | |
17570 | * util/mkisofs/multi.c: Likewise. | |
17571 | * util/mkisofs/name.c: Likewise. | |
17572 | * util/mkisofs/rock.c: Likewise. | |
17573 | * util/mkisofs/tree.c: Likewise. | |
17574 | * util/mkisofs/write.c: Likewise. | |
17575 | * video/efi_gop.c: Likewise. | |
17576 | ||
009ec743 VS |
17577 | 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com> |
17578 | ||
17579 | * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask | |
17580 | size counting. | |
17581 | ||
0ad46fd7 | 17582 | 2009-12-22 Felix Zielcke <fzielcke@z-51.de> |
990f3548 FZ |
17583 | |
17584 | * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@. | |
17585 | * genmk.rb (class SCRIPT): Modify the target file instead of source. | |
17586 | ||
d3d30ea0 VS |
17587 | 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com> |
17588 | ||
17589 | * commands/memrw.c (grub_cmd_write): Support for mask parameter. | |
17590 | (GRUB_MOD_INIT(memrw)): Update help line. | |
17591 | ||
a34f5c70 VS |
17592 | 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com> |
17593 | ||
17594 | * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword): | |
17595 | Use grub_extcmd_t. All users updated. | |
17596 | (options): New variable. | |
17597 | (grub_cmd_read): Restructure for readability. Support "-v" option. | |
17598 | (grub_cmd_write): Restructure for readability. | |
17599 | ||
0ad46fd7 | 17600 | 2009-12-22 Felix Zielcke <fzielcke@z-51.de> |
67618ea6 FZ |
17601 | |
17602 | * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir). | |
17603 | ||
0ad46fd7 | 17604 | 2009-12-22 Felix Zielcke <fzielcke@z-51.de> |
10a88797 FZ |
17605 | |
17606 | * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@ | |
17607 | with the actual contents of the correspondending make variable. | |
17608 | * util/grub-mkrescue.in (pkglib_DATA): New variable. | |
17609 | (process_input_dir): Copy all $pkglib_DATA files instead of explicitly | |
17610 | specifying `*.lst' and `efiemu??.o' | |
17611 | ||
0ad46fd7 | 17612 | 2009-12-22 Felix Zielcke <fzielcke@z-51.de> |
7e70dfff FZ |
17613 | |
17614 | * util/grub.d/30_os-prober.in (osx_entry): Add round brackets | |
17615 | after function name. | |
17616 | Noticed by Rene Engelhard <rene@debian.org>. | |
17617 | ||
dc77a799 VS |
17618 | 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com> |
17619 | ||
17620 | * commands/lspci.c (grub_pci_classes): Add "USB Controller". | |
17621 | (options): New variable. | |
17622 | (iospace): Likewise. | |
17623 | (grub_lspci_iter): List IO spaces if "-i" was given. | |
17624 | (grub_cmd_lspci): Parse options. | |
17625 | (GRUB_MOD_INIT(lspci)): Use extcmd. | |
17626 | (GRUB_MOD_FINI(lspci)): Likewise. | |
17627 | ||
0ad46fd7 | 17628 | 2009-12-22 Felix Zielcke <fzielcke@z-51.de> |
82000aa2 FZ |
17629 | |
17630 | * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant | |
17631 | `function' keyword. | |
17632 | Patch by Tony Mancill <tmancill@debian.org>. | |
17633 | ||
b5d5993b VS |
17634 | 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com> |
17635 | ||
17636 | * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time. | |
17637 | (grub_uhci_portstatus): Likewise. | |
17638 | (grub_uhci_portstatus): Add necessary delay. | |
11d18281 | 17639 | * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition. |
b5d5993b | 17640 | |
941903f2 | 17641 | 2009-12-21 Carles Pina i Estany <carles@pina.cat> |
b5d5993b | 17642 | |
941903f2 | 17643 | * commands/acpi.c (options): Fix capitalizations and/or full stops. |
17644 | (GRUB_MOD_INIT): Likewise. | |
17645 | * commands/boot.c (GRUB_MOD_INIT): Likewise. | |
cb04503e | 17646 | * commands/cmp.c (grub_cmd_cmp): Improve the help message. |
17647 | * commands/echo.c (options): Fix capitalizations and/or full stops. | |
941903f2 | 17648 | * commands/efi/loadbios.c (enable_rom_area): Likewise. |
17649 | (enable_rom_area): Likewise. | |
17650 | (GRUB_MOD_INIT): Likewise. | |
17651 | * commands/gptsync.c (GRUB_MOD_INIT): Likewise. | |
17652 | * commands/halt.c (GRUB_MOD_INIT): Improve the help message. | |
17653 | * commands/handler.c (GRUB_MOD_INIT): Likewise. | |
17654 | * commands/hdparm.c (options): Fix capitalizations and/or full stops. | |
17655 | * commands/hexdump.c (options): Likewise. | |
17656 | * commands/i386/cpuid.c (options): Likewise. | |
17657 | (GRUB_MOD_INIT): Likewise. | |
17658 | * commands/i386/pc/drivemap.c (options): Likewise. | |
17659 | (GRUB_MOD_INIT): Likewise. | |
17660 | * commands/i386/pc/halt (options): Likewise. | |
17661 | (GRUB_MOD_INIT): Likewise. | |
17662 | * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise. | |
17663 | * commands/i386/pc/pxecmd.c (options): Likewise. | |
17664 | * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise. | |
17665 | * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise. | |
17666 | * commands/keystatus.c (options): Likewise. | |
17667 | (GRUB_MOD_INIT): Likewise. | |
17668 | * commands/loadenv.c (options): Likewise. | |
17669 | * commands/ls.c (options): Likewise. | |
17670 | * commands/lspci.c (GRUB_MOD_INIT): Likewise. | |
17671 | * commands/memrw.c (GRUB_MOD_INIT): Likewise. | |
17672 | * commands/minicmd.c (GRUB_MOD_INIT): Likewise. | |
17673 | * commands/parttool.c (helpmsg): Likewise. | |
17674 | * commands/probe.c (options): Likewise. | |
17675 | * commands/read.c (GRUB_MOD_INIT): Likewise. | |
17676 | * commands/reboot.c (GRUB_MOD_INIT): Likewise. | |
17677 | * commands/search.c (options): Likewise. | |
17678 | * commands/sleep.c (options): Likewise. | |
17679 | * commands/test.c (GRUB_MOD_INIT): Likewise. | |
17680 | * commands/true.c (GRUB_MOD_INIT): Likewise. | |
17681 | * commands/usbtest.c (GRUB_MOD_INIT): Likewise. | |
17682 | * commands/videotest.c (GRUB_MOD_INIT): Likewise. | |
17683 | * lib/arg.c (help_options): Likewise. | |
e9bbb4e7 | 17684 | * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to |
17685 | `$(XGETTEXT)'. | |
98a50553 | 17686 | * po/POTFILES: Add `commands/loadenv.c'. |
941903f2 | 17687 | |
0ad46fd7 | 17688 | 2009-12-21 Felix Zielcke <fzielcke@z-51.de> |
4dd13225 | 17689 | |
ef3c2c3a | 17690 | * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files |
4dd13225 FZ |
17691 | instead of specifying them explicit. |
17692 | ||
7922f68b RM |
17693 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17694 | ||
17695 | * NEWS: Add grub-probe support for GNU/Hurd. | |
17696 | ||
537ce47f RM |
17697 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17698 | ||
17699 | * NEWS: gettext was added after 1.97. | |
17700 | ||
9b214e3a RM |
17701 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17702 | ||
17703 | * util/mkisofs/msdos_partition.h: New file (based on | |
17704 | include/grub/msdos_partition.h). | |
17705 | * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable. | |
17706 | (OPTION_PROTECTIVE_MSDOS_LABEL): New macro. | |
17707 | (ld_options, main): Recognize --protective-msdos-label. | |
17708 | * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration. | |
17709 | * util/mkisofs/write.c: Include `"msdos_partition.h"'. | |
17710 | (padblock_write): If `use_protective_msdos_label' is set, patch a | |
17711 | protective DOS-style label in the output image. | |
17712 | ||
17713 | * util/grub-mkrescue.in: Use --protective-msdos-label. | |
17714 | ||
e9309813 RM |
17715 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17716 | ||
17717 | * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk | |
17718 | boot. | |
17719 | ||
0ae56929 RM |
17720 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17721 | ||
17722 | * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New | |
17723 | variables. | |
17724 | (ld_options, main): Recognize `--embedded-boot'. | |
17725 | * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New | |
17726 | declarations. | |
17727 | * util/mkisofs/write.c (PADBLOCK_SIZE): New variable. | |
17728 | (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16. | |
17729 | (padblock_write): Likewise. Rewrite to support embedded boot image. | |
17730 | ||
17731 | * util/grub-mkrescue.in: When building i386-pc images, embed core.img | |
17732 | for BIOS-based disk boot instead of only ElTorito. | |
17733 | ||
b15937b1 RM |
17734 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17735 | ||
17736 | * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc | |
17737 | build (not needed for bootstrap). | |
17738 | ||
52cc3ce0 RM |
17739 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17740 | ||
17741 | * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules | |
17742 | from i386-pc build (not needed for bootstrap). | |
17743 | Rewrite a pair of strings. | |
17744 | ||
36f5ff04 RM |
17745 | 2009-12-21 Robert Millan <rmh.grub@aybabtu.com> |
17746 | ||
17747 | * normal/main.c (grub_normal_reader_init): Set left margin back to 3. | |
17748 | ||
973c6c85 | 17749 | 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com> |
b07e53f0 VS |
17750 | |
17751 | * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'. | |
17752 | ||
05d21547 AB |
17753 | 2009-12-21 Andreas Born <futur.andy@googlemail.com> |
17754 | ||
17755 | * kern/env.c (grub_env_context_open): Mark exported variable for | |
17756 | reexport. | |
17757 | ||
0175d51f AB |
17758 | 2009-12-21 Andreas Born <futur.andy@googlemail.com> |
17759 | ||
17760 | * kern/env.c (grub_env_export): Create nonexistent variables before | |
17761 | exporting. | |
17762 | ||
7f39d92f | 17763 | 2009-12-20 Carles Pina i Estany <carles@pina.cat> |
0175d51f | 17764 | |
7f39d92f | 17765 | * include/grub/auth.h: Include `<grub/i18n.h>'. |
17766 | (GRUB_GET_PASSWORD): Gettextizze string. | |
17767 | * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from | |
17768 | menu_text.c. | |
17769 | (grub_utf8_to_ucs4_alloc): Fix indentation. | |
17770 | (grub_print_ucs4): Likewise. | |
17771 | (grub_getstringwidth): Likewise. | |
17772 | (print_message_indented): New declaration. | |
17773 | * normal/auth.c: Include `<grub/i18n.h>'. | |
17774 | (grub_auth_check_authentication): Gettexttize string. | |
17775 | * normal/cmdline.c: Include `<grub/i18n.h>'. | |
17776 | (grub_cmdline_get): Gettextizze. | |
17777 | * normal/color.c: Include `<grub/i18n.h>'. | |
17778 | (grub_parse_color_name_pair): Gettexttize strings. | |
17779 | * normal/main.c (grub_normal_reader_init): Cleanup gettexttized | |
17780 | string (use `print_message_indented'). | |
17781 | * normal/menu_text.c (STANDARD_MARGIN): Moved from here to | |
17782 | `include/grub/normal.h'. | |
17783 | (print_message_indented): Renamed to ... | |
17784 | (grub_print_message_indented): ... this. Remove `static' qualifer (now | |
17785 | used in normal/main.c). | |
17786 | (print_message): Use `grub_print_message_indented' instead of | |
17787 | `print_message_indented'. | |
17788 | (print_timeout): Likewise. | |
17789 | * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'. | |
17790 | (grub_normal_print_device_info): Gettexttize strings. | |
17791 | * po/POTFILES: Add `auth.c', `color.c' and `misc.c'. | |
17792 | ||
3041d898 VS |
17793 | 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com> |
17794 | ||
17795 | * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting | |
17796 | of arguments. Return number of tokens and not arguments. All users | |
17797 | updated. | |
17798 | ||
de15bf8e VS |
17799 | 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com> |
17800 | ||
17801 | * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT, | |
17802 | non-MSDOS paritions. | |
17803 | ||
e0a6ca52 VS |
17804 | 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com> |
17805 | ||
17806 | * include/grub/types.h (UNUSED): Removed since it conflicts with | |
17807 | NetBSD headers. All users changed to direct __attribute__ ((unused)). | |
17808 | Reported by Grégoire Sutre. | |
17809 | ||
b99518d1 | 17810 | 2009-12-19 Carles Pina i Estany <carles@pina.cat> |
17811 | ||
17812 | * include/grub/normal.h (grub_utf8_to_ucs4): New declaration. | |
17813 | (grub_print_ucs4_alloc): Likewise. | |
17814 | (grub_getstringwidth): Likewise. | |
17815 | * normal/main.c (grub_normal_init_page): Gettextize version string. | |
17816 | * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition. | |
17817 | (getstringwidth): Renamed to ... | |
17818 | (grub_getstringwidth): ... this. Remove `static' qualifier (now used | |
17819 | in normal/main.c). Use `grub_utf8_to_ucs4_alloc'. | |
17820 | (grub_print_ucs4): Remove `static' qualifer (now used in | |
17821 | normal/main.c). | |
17822 | * po/POTFILES: Add normal/main.c. | |
17823 | ||
bfd5e52b | 17824 | 2009-12-19 Carles Pina i Estany <carles@pina.cat> |
17825 | ||
17826 | * normal/menu_text.c (STANDARD_MARGIN): New macro. | |
17827 | (print_message_indented): Add `margin_left' and `margin_right' | |
17828 | parameters. | |
17829 | (print_message): Update `print_message_indented' calls. Adds '\n' to the | |
17830 | strings. | |
17831 | (print_timeout): Use `print_message_indented' to print the message. | |
17832 | Deletes `second_stage' parameter. | |
17833 | (run_menu): Update `print_timeout' calls. | |
17834 | ||
5a1ad2b9 VS |
17835 | 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com> |
17836 | ||
17837 | Fix console palette on OpenFirmware. | |
17838 | ||
17839 | * term/ieee1275/ofconsole.c (MAX): Removed. | |
17840 | (colors): Redone based on VGA palette. | |
17841 | (grub_ofconsole_setcolor): Discard brightness bit since only 8 | |
17842 | colors are supported. | |
17843 | (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size. | |
17844 | ||
b045f00a VS |
17845 | 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com> |
17846 | ||
17847 | Fix potential EfiEmu double prepare. | |
17848 | ||
17849 | * efiemu/main.c (prepared): New variable | |
17850 | (grub_efiemu_unload): Set prepare to '0'. | |
17851 | (grub_efiemu_prepare): Return if already prepared. Set prepared. | |
17852 | ||
17853 | set_virtual_address_map support. | |
17854 | ||
17855 | * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New | |
17856 | prototype. | |
17857 | * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New | |
17858 | prototype. | |
17859 | (grub_efiemu_crc32): Likewise. | |
17860 | (grub_efiemu_crc64): Likewise. | |
17861 | (grub_efiemu_set_virtual_address_map): Likewise. | |
17862 | * include/grub/autoefi.h (grub_autoefi_exit_boot_services): | |
17863 | New definition. | |
17864 | (grub_autoefi_set_virtual_address_map): Likewise. | |
17865 | * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function. | |
17866 | * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map. | |
17867 | Restructure flow to accomodate it. | |
17868 | * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map. | |
17869 | (grub_efiemu_crc): Recompute CRC32. | |
17870 | * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ... | |
17871 | (efiemu_ptv_relocated): ... this. Made global. All users updated. | |
17872 | * efiemu/symbols.c (relocated_handle): New variable. | |
17873 | (grub_efiemu_free_syms): Free relocated_handle. | |
17874 | (grub_efiemu_alloc_syms): Allocate relocated_handle. | |
17875 | (grub_efiemu_write_sym_markers): New function. | |
17876 | (grub_efiemu_set_virtual_address_map): Likewise. | |
17877 | ||
17878 | Newer XNU parameters. | |
17879 | ||
17880 | * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5. | |
17881 | * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize. | |
17882 | (grub_xnu_fill_devicetree): New prototype. | |
17883 | (grub_xnu_heap_real_start): New variable. | |
17884 | * loader/xnu.c (get_name_ptr): New function. | |
17885 | (grub_xnu_load_driver): Fill namelen and name. | |
17886 | ||
17887 | 64-bit xnu support. | |
17888 | ||
17889 | * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c' | |
17890 | and 'loader/macho64.c'. | |
17891 | * conf/i386-pc.rmk: Likewise. | |
17892 | * conf/x86_64-efi.rmk: Likewise. | |
17893 | * include/grub/i386/macho.h (grub_macho_thread64): New structure. | |
17894 | * include/grub/xnu.h (grub_xnu_is_64bit): New variable. | |
17895 | * include/grub/macho.h (grub_macho_segment64): New structure. | |
17896 | * include/grub/machoload.h (grub_macho32_size): Renamed from ... | |
17897 | (grub_macho_size32): ... to this. | |
17898 | (grub_macho32_get_entry_point): Renamed from ... | |
17899 | (grub_macho_get_entry_point32): ... to this. | |
17900 | (grub_macho_contains_macho64): New prototype. | |
17901 | (grub_macho_size64): Likewise. | |
17902 | (grub_macho_get_entry_point64): Likewise. | |
17903 | (grub_macho32_load): Renamed from ... | |
17904 | (grub_macho_load32): ... to this. | |
17905 | (grub_macho32_filesize): Renamed from ... | |
17906 | (grub_macho_filesize32): ... to this. | |
17907 | (grub_macho32_readfile): Renamed from ... | |
17908 | (grub_macho_readfile32): ... to this. | |
17909 | (grub_macho_filesize64): New prototype. | |
17910 | (grub_macho_readfile64): Likewise. | |
17911 | (grub_macho_parse32): Likewise. | |
17912 | (grub_macho_parse64): Likewise. | |
17913 | * loader/macho.c: Split into ... | |
17914 | * loader/machoXX.c: ... and this. Replace 32 with XX. | |
17915 | * loader/macho32.c: New file. | |
17916 | * loader/macho64.c: Likewise. | |
17917 | * loader/xnu.c (grub_xnu_is_64bit): New variable. | |
17918 | (grub_cmd_xnu_kernel): Make 32-bit only. | |
17919 | (grub_cmd_xnu_kernel64): New function. | |
17920 | (grub_xnu_load_driver): Support Mach-O 64. | |
17921 | (grub_cmd_xnu_mkext): Likewise. | |
17922 | * util/grub.d/30_os-prober.in (osx_entry): New function. | |
17923 | Generate entries for 64-bit boot too. | |
17924 | ||
17925 | Eliminate ad-hoc tree format in XNU and EfiEmu. | |
17926 | ||
17927 | * efiemu/main.c (grub_efiemu_prepare): Update comment. | |
17928 | * efiemu/pnvram.c: Rewritten to use environment variables. | |
17929 | All users updated. | |
17930 | ||
17931 | Inline utf16_to_utf8. | |
17932 | ||
17933 | * kern/misc.c (grub_utf16_to_utf8): Move from here ... | |
17934 | * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined. | |
17935 | All users updated. | |
17936 | * include/grub/misc.h (grub_utf16_to_utf8): Removed. | |
17937 | ||
17938 | * bus/usb/usb.c (grub_usb_get_string): Move from here ... | |
17939 | * commands/usbtest.c (grub_usb_get_string): ... move here. | |
17940 | (usb_print_str): Fix error handling. | |
17941 | * include/grub/usb.h (grub_usb_get_string): Remove. | |
17942 | ||
17943 | UTF-8 to UTF-16 transformation. | |
17944 | ||
17945 | * conf/common.rmk (pkglib_MODULES): Add charset.mod | |
17946 | (charset_mod_SOURCES): New variable. | |
17947 | (charset_mod_CFLAGS): Likewise. | |
17948 | (charset_mod_LDFLAGS): Likewise. | |
17949 | * include/grub/utf.h: New file. | |
17950 | * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c) | |
17951 | ||
17952 | Support for device properties. | |
17953 | ||
17954 | * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure. | |
17955 | (grub_xnu_devprop_device_header): Likewise. | |
17956 | (grub_xnu_devprop_device_descriptor): Likewise. | |
17957 | (grub_xnu_devprop_add_device): New prototype. | |
17958 | (grub_xnu_devprop_remove_device): Likewise. | |
17959 | (grub_xnu_devprop_remove_property): Likewise. | |
17960 | (grub_xnu_devprop_add_property_utf8): Likewise. | |
17961 | (grub_xnu_devprop_add_property_utf16): Likewise. | |
17962 | (grub_cpu_xnu_init): Likewise. | |
17963 | (grub_cpu_xnu_fini): Likewise. | |
17964 | (grub_cpu_xnu_unload): Likewise. | |
17965 | * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure. | |
17966 | (property_descriptor): Likewise. | |
17967 | (devices): New variable. | |
17968 | (grub_xnu_devprop_remove_property): New function. | |
17969 | (grub_xnu_devprop_add_device): Likewise. | |
17970 | (grub_xnu_devprop_remove_device): Likewise. | |
17971 | (grub_xnu_devprop_add_property): Likewise. | |
17972 | (grub_xnu_devprop_add_property_utf8): Likewise. | |
17973 | (grub_xnu_devprop_add_property_utf16): Likewise. | |
17974 | (hextoval): Likewise. | |
17975 | (grub_cpu_xnu_fill_devprop): Likewise. | |
17976 | (grub_cmd_devprop_load): Likewise. | |
17977 | (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop, | |
17978 | grub_xnu_fill_devicetree, grub_xnu_fill_devicetree | |
17979 | (cmd_devprop_load): New variable. | |
17980 | (grub_cpu_xnu_init): New function. | |
17981 | (grub_cpu_xnu_fini): Likewise. | |
17982 | * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload. | |
17983 | * loader/xnu.c (grub_xnu_parse_devtree): Remove. | |
17984 | (grub_cmd_xnu_devtree): Likewise. | |
17985 | (hextoval): New function. | |
17986 | (unescape): Likewise. | |
17987 | (grub_xnu_fill_devicetree): Likewise. | |
17988 | ||
17989 | * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt. | |
17990 | * util/i386/efi/grub-dumpdevtree: Generate devprop.bin. | |
17991 | ||
0945f181 VS |
17992 | 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com> |
17993 | ||
17994 | Workaround for broken ATI VBE. | |
17995 | ||
17996 | * video/i386/pc/vbe.c (last_set_mode): New variable. | |
17997 | (grub_vbe_set_video_mode): Set 'last_set_mode'. | |
17998 | (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails. | |
17999 | (grub_video_vbe_setup): Don't check for reserved flag. | |
18000 | ||
0ad46fd7 | 18001 | 2009-12-17 Felix Zielcke <fzielcke@z-51.de> |
0297aafb FZ |
18002 | |
18003 | * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in | |
18004 | the `find' command. | |
18005 | ||
c179ebe4 VS |
18006 | 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com> |
18007 | ||
18008 | UUID support for HFS. | |
18009 | ||
18010 | * fs/hfs.c (grub_hfs_uuid): New function. | |
18011 | (grub_hfs_fs): New value .uuid. | |
18012 | * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'. | |
18013 | ||
0ad46fd7 | 18014 | 2009-12-14 Felix Zielcke <fzielcke@z-51.de> |
574cce0c FZ |
18015 | |
18016 | Fix a segfault with parsing unknown long options. | |
18017 | ||
18018 | * util/grub-mkrelpath.c (options): Zero terminate it. | |
18019 | ||
c4a3e41a CPE |
18020 | 2009-12-13 Carles Pina i Estany <carles@pina.cat> |
18021 | ||
18022 | * include/grub/misc.h (grub_puts): New declaration. | |
18023 | (grub_puts_): Likewise. | |
a22008a6 | 18024 | * kern/misc.c (grub_puts): New definition. |
c4a3e41a CPE |
18025 | (grub_puts_): Likewise. |
18026 | ||
2e8a7602 RM |
18027 | 2009-12-13 Robert Millan <rmh.grub@aybabtu.com> |
18028 | ||
18029 | * util/grub-probe.c (probe): Improve error message. | |
18030 | ||
b50b77b9 RM |
18031 | 2009-12-13 Robert Millan <rmh.grub@aybabtu.com> |
18032 | ||
18033 | * loader/i386/multiboot_elfxx.c | |
18034 | (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip' | |
18035 | initialization. | |
18036 | ||
18037 | 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com> | |
18038 | ||
18039 | Relocator framework | |
18040 | ||
18041 | * loader/i386/xnu_helper.S: Removed. All users updated. | |
18042 | * conf/i386.rmk (pkglib_MODULES): Add relocator.mod. | |
18043 | (relocator_mod_SOURCES): New variable. | |
18044 | (relocator_mod_CFLAGS): Likewise. | |
18045 | (relocator_mod_LDFLAGS): Likewise. | |
18046 | (relocator_mod_ASFLAGS): Likewise. | |
18047 | * conf/x86_64.rmk: Likewise. | |
18048 | * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed. | |
18049 | (grub_multiboot_payload_entry_offset): Likewise. | |
18050 | (grub_multiboot_forward_relocator): Likewise. | |
18051 | (grub_multiboot_forward_relocator_end): Likewise. | |
18052 | (grub_multiboot_backward_relocator): Likewise. | |
18053 | (grub_multiboot_backward_relocator_end): Likewise. | |
18054 | (grub_multiboot_payload_eip): New variable. | |
18055 | (grub_multiboot_payload_orig): Likewise. | |
18056 | * include/grub/i386/pc/memory.h: Include grub/i386/memory.h. | |
18057 | (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ... | |
18058 | * include/grub/i386/memory.h | |
18059 | (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here | |
18060 | (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition. | |
18061 | (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise. | |
18062 | (GRUB_MEMORY_CPU_AMD64_MSR): Likewise. | |
18063 | (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise. | |
18064 | * include/grub/i386/relocator.h: New file. | |
18065 | * include/grub/x86_64/relocator.h: Likewise. | |
18066 | * include/grub/i386/xnu.h: Include grub/cpu/relocator.h. | |
18067 | (XNU_RELOCATOR): New macro. | |
18068 | (grub_xnu_launcher_start): Remove. | |
18069 | (grub_xnu_launcher_end): Likewise. | |
18070 | * include/grub/xnu.h (grub_xnu_boot_resume): New prototype. | |
18071 | (grub_xnu_heap_real_start): Remove. | |
18072 | (grub_xnu_heap_start): Change to void *. All users updated. | |
18073 | * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON. | |
18074 | * lib/i386/relocator.c: New file. | |
18075 | * lib/i386/relocator_asm.S: Likewise. | |
18076 | * lib/i386/relocator_backward.S: Likewise. | |
18077 | * lib/mips/relocator.c: Likewise. | |
18078 | * lib/mips/relocator_asm.S: Likewise. | |
18079 | * lib/relocator.c: Likewise. | |
18080 | * loader/i386/multiboot.c: Include grub/i386/relocator.h. | |
18081 | (entry): Removed. | |
18082 | (playground): Likewise. | |
18083 | (grub_multiboot_payload_orig): New variable. | |
18084 | (grub_multiboot_payload_dest): Likewise. | |
18085 | (grub_multiboot_payload_size): Likewise. | |
18086 | (grub_multiboot_payload_eip): Likewise. | |
18087 | (grub_multiboot_payload_esp): Likewise. | |
18088 | (grub_multiboot_boot): Use grub_relocator32_boot. | |
18089 | (grub_multiboot_unload): Free relocators. | |
18090 | (grub_multiboot): Setup stack. Use relocators. | |
18091 | * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h. | |
18092 | (grub_multiboot_load_elfXX): Use relocators. | |
18093 | * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed. | |
18094 | (grub_multiboot_payload_size): Likewise. | |
18095 | (grub_multiboot_payload_dest): Likewise. | |
18096 | (grub_multiboot_payload_entry_offset): Likewise. | |
18097 | (grub_multiboot_forward_relocator): Likewise. | |
18098 | (grub_multiboot_backward_relocator): Likewise. | |
18099 | (grub_multiboot_real_boot): Likewise. | |
18100 | * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable. | |
18101 | (grub_xnu_entry_point): Likewise. | |
18102 | (grub_xnu_arg1): Likewise. | |
18103 | (grub_xnu_stack): Likewise. | |
18104 | (grub_xnu_launch): Removed. | |
18105 | (grub_xnu_boot_resume): New function. | |
18106 | (grub_xnu_boot): Use relocators. | |
18107 | * loader/i386/xnu_helper.S: Removed. | |
18108 | * loader/xnu.c (grub_xnu_heap_start): New variable. | |
18109 | (grub_xnu_heap_size): Likewise. | |
18110 | (grub_xnu_heap_malloc): Use relocators. | |
18111 | * loader/xnu_resume.c (grub_xnu_resume): Use relocators. | |
18112 | ||
29eb90c6 VS |
18113 | 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com> |
18114 | ||
18115 | * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling | |
18116 | anything. | |
18117 | ||
31027430 CPE |
18118 | 2009-12-13 Carles Pina i Estany <carles@pina.cat> |
18119 | ||
18120 | * script/execute.c (grub_script_execute_cmdline): Set grub_errno to | |
18121 | GRUB_ERR_NONE before calling grub_env_set. | |
18122 | ||
dc0c71d9 RM |
18123 | 2009-12-12 Robert Millan <rmh@aybabtu.com> |
18124 | ||
18125 | * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'. | |
18126 | * genmk.rb (video): New variable. | |
18127 | (CLEANFILES, VIDEOFILES): Add #{video}. | |
18128 | (#{video}): New target rule. | |
18129 | * genvideolist.sh: New file. | |
18130 | * Makefile.in (pkglib_DATA): Add video.lst. | |
18131 | (video.lst): New target rule. | |
18132 | * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using | |
18133 | `video.lst'. | |
18134 | * util/grub.d/30_os-prober.in: Replace `vbe' with | |
18135 | ${GRUB_VIDEO_BACKEND}. | |
18136 | ||
2a4bfcf0 RM |
18137 | 2009-12-11 Robert Millan <rmh.grub@aybabtu.com> |
18138 | ||
18139 | * THANKS: Add David Miller. | |
18140 | ||
2a3aa4d5 RM |
18141 | 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com> |
18142 | ||
18143 | libpciaccess support. | |
18144 | ||
18145 | * Makefile.in (LIBPCIACCESS): New variable. | |
18146 | (enable_grub_emu_pci): Likewise. | |
18147 | * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add | |
18148 | util/pci.c and commands/lspci.c. | |
18149 | (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS). | |
18150 | * configure.ac (grub-emu-pci): New option. | |
18151 | * include/grub/i386/pci.h (grub_pci_device_map_range): New function. | |
18152 | (grub_pci_device_unmap_range): Likewise. | |
18153 | * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h. | |
18154 | (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated. | |
18155 | (grub_pci_address_t) [!GRUB_UTIL]: New type. | |
18156 | (grub_pci_device_t) [!GRUB_UTIL]: Likewise. | |
18157 | (grub_pci_get_bus) [!GRUB_UTIL]: New function. | |
18158 | (grub_pci_get_device) [!GRUB_UTIL]: Likewise. | |
18159 | (grub_pci_get_function) [!GRUB_UTIL]: Likewise. | |
18160 | * include/grub/pciutils.h: New file. | |
18161 | * util/pci.c: Likewise. | |
18162 | ||
0ad46fd7 | 18163 | 2009-12-11 Felix Zielcke <fzielcke@z-51.de> |
8d0502d9 FZ |
18164 | |
18165 | * util/misc.c: Don't include <errno.h> twice. | |
18166 | ||
0ad46fd7 | 18167 | 2009-12-10 Felix Zielcke <fzielcke@z-51.de> |
0d56ed64 FZ |
18168 | |
18169 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk | |
18170 | name in an error message. | |
18171 | (grub_biosdisk_rw): Likewise. | |
18172 | ||
2e59983c VS |
18173 | 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com> |
18174 | ||
18175 | Eliminate NTFS 4Gib barrier. | |
18176 | ||
18177 | * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t. | |
18178 | (read_run_data): Likewise. | |
18179 | (grub_ntfs_read_run_list): Likewise. | |
18180 | (grub_ntfs_read_block): Likewise. | |
18181 | (grub_ntfs_iterate_dir): Likewise. | |
18182 | (read_mft): Likewise. | |
18183 | (read_data): Likewise. | |
18184 | Use COM_LOG_LEN. | |
18185 | * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned | |
18186 | to avoid 64-bit division | |
18187 | * include/grub/ntfs.h (COM_LOG_LEN): New definition. | |
18188 | (grub_ntfs_rlst): Use grub_disk_addr_t. | |
18189 | ||
71ee178a VS |
18190 | 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com> |
18191 | ||
18192 | Eliminate grub-fstest 4Gib barrier. | |
18193 | ||
18194 | * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t. | |
18195 | (read_file): Fix error reporting. | |
18196 | ||
2520d4b8 VS |
18197 | 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com> |
18198 | ||
18199 | Eliminate hexdump 4Gib barrier. | |
18200 | ||
18201 | * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t. | |
18202 | * lib/arg.c (grub_arg_parse): Use grub_strtoull. | |
18203 | ||
e1f27065 VS |
18204 | 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com> |
18205 | ||
18206 | * kern/device.c (grub_device_iterate): Ignore errors during first scan. | |
18207 | Fixes amarsh bug. | |
18208 | ||
1a0f7f45 RM |
18209 | 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com> |
18210 | ||
18211 | Remove miscellaneous files in distclean target. | |
18212 | ||
18213 | * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti} | |
18214 | ||
c631d9fb CW |
18215 | 2009-12-09 Colin Watson <cjwatson@ubuntu.com> |
18216 | ||
18217 | * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath | |
18218 | if they're already set. This resolves the conflict between my | |
18219 | grub-install change on 2009-10-06 and Felix' change on 2009-11-11, | |
18220 | fixing the --grub-probe option again. | |
18221 | * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my | |
18222 | change on 2009-10-06, so that we now once again source | |
18223 | `${libdir}/grub/grub-mkconfig_lib' after options have been parsed. | |
18224 | ||
7c7b6106 RM |
18225 | 2009-12-08 Robert Millan <rmh.grub@aybabtu.com> |
18226 | ||
18227 | * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use | |
18228 | `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of | |
18229 | `util/devicemap.c'. | |
18230 | ||
e3069ec1 CPE |
18231 | 2009-12-08 Carles Pina i Estany <carles@pina.cat> |
18232 | ||
18233 | * include/grub/misc.h (grub_printf_): New declaration. | |
18234 | * kern/misc.c (grub_printf_): New definition. | |
18235 | * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_' | |
18236 | instead of `grub_printf' and `_'. | |
18237 | * normal/menu_entry.c (store_completion): Likewise. | |
18238 | (run): Likewise. | |
18239 | (grub_menu_entry_run): Likewise. | |
18240 | * normal/menu_text.c (grub_wait_after_message): Likewise. | |
18241 | (notify_booting): Likewise. | |
18242 | (notify_fallback): Likewise. | |
18243 | (notify_execution_failure): Likewise. | |
18244 | ||
d6ceebf1 CW |
18245 | 2009-12-07 Colin Watson <cjwatson@ubuntu.com> |
18246 | ||
18247 | * configure.ac: Check for vasprintf. | |
18248 | * util/misc.c (asprintf): Move allocation from here ... | |
18249 | (vasprintf): ... to here. New function. | |
18250 | (xasprintf): New function. | |
18251 | * include/grub/util/misc.h (vasprintf, xasprintf): Add | |
18252 | prototypes. | |
18253 | * util/getroot.c (grub_util_get_grub_dev): Use xasprintf. | |
18254 | * util/grub-mkfont.c (write_font): Likewise. | |
18255 | * util/grub-probe.c (probe): Likewise. | |
18256 | * util/hostdisk.c (make_device_name): Likewise. | |
18257 | ||
de6daa8b DM |
18258 | 2009-12-06 David S. Miller <davem@sunset.davemloft.net> |
18259 | ||
18260 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize | |
18261 | anything even prefixed with 'cdrom' as a cdrom. | |
18262 | ||
0ad46fd7 | 18263 | 2009-12-06 Felix Zielcke <fzielcke@z-51.de> |
df91e679 FZ |
18264 | |
18265 | * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with | |
18266 | mount points. | |
18267 | ||
98d3dc02 CPE |
18268 | 2009-12-05 Carles Pina i Estany <carles@pina.cat> |
18269 | ||
18270 | * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg, | |
18271 | grub_gettext_msg_list. | |
18272 | (grub_gettext_gettranslation_from_position): Return const char * | |
18273 | and not char *. | |
a2c1332b | 18274 | (grub_gettext_translate): Add the translated strings into a list, |
98d3dc02 CPE |
18275 | returns from the list if existing there. |
18276 | (grub_gettext_init_ext): Add \n at the end of grub_dprintf string. | |
18277 | (grub_gettext_delete_list): Delete the list. | |
18278 | (grub_gettext_env_write_lang): Call grub_gettext_delete_list when | |
18279 | lang environment variable is changed. | |
18280 | (GRUB_MOD_FINI): Call grub_gettext_delete_list. | |
18281 | ||
b283f108 VS |
18282 | 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com> |
18283 | ||
18284 | Rename kernel.mod to kernel.img. | |
18285 | ||
18286 | * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img. | |
18287 | (kernel_mod_EXPORTS): Rename to ... | |
18288 | (kernel_img_EXPORTS): ... this. | |
18289 | (kernel_mod_SOURCES): Rename to ... | |
18290 | (kernel_img_SOURCES): ... this. | |
18291 | (kernel_mod_HEADERS): Rename to ... | |
18292 | (kernel_img_HEADERS): ... this. All users updated. | |
18293 | (kernel_mod_CFLAGS): Rename to ... | |
18294 | (kernel_img_CFLAGS): ... this. | |
18295 | (kernel_mod_ASFLAGS): Rename to ... | |
18296 | (kernel_img_ASFLAGS): ... this. | |
18297 | (kernel_mod_LDFLAGS): Rename to ... | |
18298 | (kernel_img_LDFLAGS): ... this. | |
18299 | * conf/x86_64-efi.rmk: Likewise. | |
18300 | * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ... | |
18301 | (read_kernel_image): ... this. All users updated. | |
18302 | (read_kernel_image): Read "kernel.img" instead of "kernel.mod". | |
18303 | ||
69055f8a CPE |
18304 | 2009-12-05 Carles Pina i Estany <carles@pina.cat> |
18305 | ||
18306 | * normal/menu_text.c (grub_color_menu_high): Gettexttize string. | |
18307 | (print_spaces): New function. | |
18308 | (grub_print_ucs4): New function. | |
18309 | (getstringwidth): New function. | |
18310 | (print_message_indented): New function. | |
18311 | (print_message): Gettexttize strings using print_message_indented. | |
18312 | (run_menu): Replaces grub_printf by print_spaces and dynamic terminal | |
18313 | width. | |
18314 | (get_entry_number): Gettextize and uses dynamic terminal width. | |
a2c1332b | 18315 | (notify_booting, notify_fallback, notify_execution_failure): |
69055f8a CPE |
18316 | Gettextize. |
18317 | * normal/menu_entry.c (store_completion): Cleanup the gettextized | |
18318 | string. | |
18319 | (run): Likewise. | |
18320 | (grub_menu_entry_run): Likewise. | |
18321 | * PO/POTFILES: Add normal/menu_entry.c. | |
18322 | ||
f616f51c VS |
18323 | 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com> |
18324 | ||
18325 | * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>". | |
18326 | ||
57bbe3be CPE |
18327 | 2009-12-05 Carles Pina i Estany <carles@pina.cat> |
18328 | ||
18329 | * util/grub-install.in: Install gettext .mo files. | |
18330 | * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files. | |
18331 | ||
013d67a1 CPE |
18332 | 2009-12-05 Carles Pina i Estany <carles@pina.cat> |
18333 | ||
18334 | * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with | |
18335 | grub_dprintf. | |
18336 | ||
fb954db0 RM |
18337 | 2009-12-05 Robert Millan <rmh.grub@aybabtu.com> |
18338 | ||
18339 | * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The | |
18340 | non-firmware-dependant one in realmode.S takes precedence. | |
18341 | ||
6b8474f8 RM |
18342 | 2009-12-04 Robert Millan <rmh.grub@aybabtu.com> |
18343 | ||
18344 | * commands/halt.c: Replace misc arch-specific headers with | |
18345 | `<grub/misc.h>'. | |
18346 | * commands/reboot.c: Likewise. | |
18347 | * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with | |
18348 | `<grub/misc.h>'. | |
18349 | * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'. | |
18350 | (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ... | |
18351 | (kernel_img_SOURCES): ... to here. | |
18352 | ||
18353 | * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes. | |
18354 | * include/grub/i386/pc/init.h: Likewise. | |
18355 | * include/grub/powerpc/ieee1275/kernel.h: Likewise. | |
18356 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
18357 | ||
18358 | * include/grub/misc.h (grub_reboot, grub_halt): New prototypes. | |
18359 | ||
18360 | * include/grub/i386/halt.h: Remove. | |
18361 | * include/grub/i386/reboot.h: Likewise. | |
18362 | ||
18363 | * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'. | |
18364 | ||
4b2e6ca2 DM |
18365 | 2009-12-03 David S. Miller <davem@sunset.davemloft.net> |
18366 | ||
18367 | * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES, | |
18368 | grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c | |
18369 | * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and | |
18370 | "progname.h" | |
18371 | * util/sparc64/ieee1275/grub-ofpathname.c: Likewise. | |
18372 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
18373 | (usage): Add missing comma in printf. | |
18374 | ||
5239348f RM |
18375 | 2009-12-02 Robert Millan <rmh.grub@aybabtu.com> |
18376 | ||
18377 | Use the same reboot approach on i386 coreboot and qemu as we do on | |
18378 | BIOS. | |
18379 | ||
18380 | * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'. | |
18381 | (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'. | |
18382 | * kern/i386/reboot.c: Remove. | |
18383 | * include/grub/i386/reboot.h (grub_reboot): Export function. | |
18384 | * kern/i386/pc/startup.S (grub_reboot): Move from here ... | |
18385 | * kern/i386/realmode.S (grub_reboot): ... to here. Jump to | |
18386 | 0xf000:0xfff0 instead of 0xffff:0x0000. | |
18387 | [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts. | |
18388 | * kern/i386/qemu/startup.S: Include `"../realmode.S"'. | |
18389 | ||
ef34cbd4 RM |
18390 | 2009-11-30 Robert Millan <rmh.grub@aybabtu.com> |
18391 | ||
18392 | Fix $srcdir != $objdir build. | |
18393 | ||
18394 | * Makefile.in (po/%.po): Rewrite as ... | |
18395 | ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this. | |
18396 | ||
dc9837ea ST |
18397 | 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org> |
18398 | ||
18399 | Fix GNU/Hurd grub-install crash. | |
18400 | * util/grub-probe.c (probe): Try to access `path' only when it is not | |
18401 | NULL. | |
18402 | ||
2f857f98 VS |
18403 | 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com> |
18404 | ||
18405 | Correct module naming. | |
18406 | ||
18407 | * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ... | |
18408 | (GRUB_MOD_INIT(efi_uga)): ... to this | |
18409 | (GRUB_MOD_FINI(efi_fb)): Renamed from this ... | |
18410 | (GRUB_MOD_FINI(efi_uga)): ... to this | |
18411 | * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ... | |
18412 | (GRUB_MOD_INIT(efi_gop)): ... to this | |
18413 | (GRUB_MOD_FINI(efi_fb)): Renamed from this ... | |
18414 | (GRUB_MOD_FINI(efi_gop)): ... to this | |
18415 | ||
c5448046 RM |
18416 | 2009-11-28 Robert Millan <rmh.grub@aybabtu.com> |
18417 | ||
18418 | * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as | |
18419 | translatable. | |
18420 | (usage): Translate `arg' strings using gettext(). | |
18421 | Thanks to Jordi Mallach for the suggestion. | |
18422 | ||
c85184ad VS |
18423 | 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com> |
18424 | ||
18425 | GOP support. Based on patch from Bean | |
18426 | (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html) | |
18427 | ||
18428 | * video/efi_gop.c: New file. | |
18429 | * include/grub/efi/graphics_output.h: Likewise. | |
18430 | * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'. | |
18431 | (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New | |
18432 | variables. | |
18433 | * conf/x86_64-efi.rmk: Likewise. | |
18434 | ||
8a4c48d8 VS |
18435 | 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com> |
18436 | ||
18437 | Rename efi_fb to efi_uga. | |
18438 | ||
18439 | * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to | |
18440 | 'efi_uga.mod'. | |
18441 | (efi_fb_mod_SOURCES): Rename this ... | |
18442 | (efi_uga_mod_SOURCES): ... to this. | |
18443 | (efi_fb_mod_CFLAGS): Rename this ... | |
18444 | (efi_uga_mod_CFLAGS): ... to this. | |
18445 | (efi_fb_mod_LDFLAGS): Rename this ... | |
18446 | (efi_uga_mod_LDFLAGS): ... to this. | |
18447 | * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to | |
18448 | 'efi_uga.mod'. | |
18449 | (efi_fb_mod_SOURCES): Rename this ... | |
18450 | (efi_uga_mod_SOURCES): ... to this. | |
18451 | (efi_fb_mod_CFLAGS): Rename this ... | |
18452 | (efi_uga_mod_CFLAGS): ... to this. | |
18453 | (efi_fb_mod_LDFLAGS): Rename this ... | |
18454 | (efi_uga_mod_LDFLAGS): ... to this. | |
18455 | * video/efi_fb.c: Move this ... | |
18456 | * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'. | |
18457 | ||
fb6c1a7b RM |
18458 | 2009-11-27 Robert Millan <rmh.grub@aybabtu.com> |
18459 | ||
18460 | * po/README: New file. Explain our PO file workflow. | |
18461 | ||
3bc7896c RM |
18462 | 2009-11-27 Robert Millan <rmh.grub@aybabtu.com> |
18463 | ||
18464 | * po/ChangeLog: Remove. Move relevant entries back to ... | |
18465 | * ChangeLog: ... here. | |
18466 | * po/ca.po: Remove (now handled by TLP). | |
18467 | * po/id.po: Likewise. | |
18468 | * po/zh_CN.po: Likewise. | |
18469 | * Makefile.in (LINGUAS): Initialize in a way that supports | |
18470 | empty set. | |
18471 | ||
9ed4841d RM |
18472 | 2009-11-27 Robert Millan <rmh.grub@aybabtu.com> |
18473 | ||
18474 | * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of | |
18475 | reliing on po/LINGUAS. | |
18476 | ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ... | |
18477 | (po/%.po): ... this. | |
18478 | ||
0ad46fd7 | 18479 | 2009-11-26 Felix Zielcke <fzielcke@z-51.de> |
242668a2 FZ |
18480 | |
18481 | * util/i386/efi/grub-mkimage.c: Include "progname.h". | |
18482 | (main): Use `program_name' instead of nonexistent `progname'. | |
18483 | ||
e30dd392 FZ |
18484 | 2009-11-26 Felix Zielcke <fzielcke@z-51.de> |
18485 | ||
18486 | * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'. | |
18487 | * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise. | |
18488 | ||
7656de4f RM |
18489 | 2009-11-26 Robert Millan <rmh.grub@aybabtu.com> |
18490 | ||
18491 | * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous | |
18492 | commit. | |
18493 | * conf/i386-efi.rmk: Likewise. | |
18494 | * conf/i386-ieee1275.rmk: Likewise. | |
18495 | * conf/powerpc-ieee1275.rmk: Likewise. | |
18496 | * conf/sparc64-ieee1275.rmk: Likewise. | |
18497 | * conf/x86_64-efi.rmk: Likewise. | |
18498 | ||
db77c4d4 FZ |
18499 | 2009-11-26 Felix Zielcke <fzielcke@z-51.de> |
18500 | ||
18501 | * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'. | |
18502 | ||
a755bb04 FZ |
18503 | 2009-11-26 Felix Zielcke <fzielcke@z-51.de> |
18504 | ||
18505 | * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'. | |
18506 | ||
8a4c07fd RM |
18507 | 2009-11-26 Robert Millan <rmh.grub@aybabtu.com> |
18508 | ||
18509 | * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'. | |
18510 | (grub_mkdevicemap_SOURCES): New variable. | |
18511 | (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES) | |
18512 | (grub_mkrelpath_SOURCES, grub_editenv_SOURCES) | |
18513 | (grub_pe2elf_SOURCES): Add `gnulib/progname.c'. | |
18514 | * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'. | |
18515 | (grub_mkdevicemap_SOURCES): Remove. | |
18516 | * conf/i386-efi.rmk: Likewise. | |
18517 | * conf/i386-ieee1275.rmk: Likewise. | |
18518 | * conf/i386-pc.rmk: Likewise. | |
18519 | * conf/powerpc-ieee1275.rmk: Likewise. | |
18520 | * conf/sparc64-ieee1275.rmk: Likewise. | |
18521 | * conf/x86_64-efi.rmk: Likewise. | |
18522 | * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'. | |
18523 | (usage): Fix strings to use `program_name'. | |
18524 | (main): Initialize gettext. | |
18525 | * util/grub-editenv.c: Likewise. | |
18526 | * util/grub-emu.c: Likewise. | |
18527 | * util/grub-fstest.c: Likewise. | |
18528 | * util/grub-mkdevicemap.c: Likewise. | |
18529 | * util/grub-mkfont.c: Likewise. | |
18530 | * util/grub-mkrelpath.c: Likewise. | |
18531 | * util/grub-pe2elf.c: Likewise. | |
18532 | * util/grub-probe.c: Likewise. | |
18533 | * util/sparc64/ieee1275/grub-mkimage.c: Likewise. | |
18534 | * util/sparc64/ieee1275/grub-ofpathname.c: Likewise. | |
18535 | * util/sparc64/ieee1275/grub-setup.c: Likewise. | |
18536 | ||
18537 | * util/misc.c: Include `"progname.h"'. | |
18538 | (progname): Remove variable. | |
18539 | (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'. | |
18540 | ||
6f61ed55 FZ |
18541 | 2009-11-25 Felix Zielcke <fzielcke@z-51.de> |
18542 | ||
18543 | * util/grub.d/10_linux.in (linux_entry): Quote the arguments to | |
18544 | printf and print a newline after the menuentry header line. | |
18545 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise. | |
18546 | ||
f022876b FZ |
18547 | 2009-11-25 Felix Zielcke <fzielcke@z-51.de> |
18548 | ||
18549 | autoconf >= 2.60 support $(localedir). | |
18550 | ||
18551 | * INSTALL: Note that autoconf 2.60 is required. | |
18552 | * configure.ac (AC_PREREQ): Bump to 2.60. | |
18553 | * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@. | |
18554 | * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise. | |
18555 | ||
6717926e YB |
18556 | 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org> |
18557 | ||
18558 | * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when | |
18559 | aclocal is run. | |
18560 | ||
08806a54 RM |
18561 | 2009-11-25 Robert Millan <rmh.grub@aybabtu.com> |
18562 | ||
18563 | * normal/main.c (grub_normal_read_line): Fix off-by-one | |
18564 | buffer overflow. | |
18565 | ||
13b33fba RM |
18566 | 2009-11-25 Robert Millan <rmh.grub@aybabtu.com> |
18567 | ||
18568 | * normal/main.c (grub_normal_execute): Replace "parser.sh" with | |
18569 | "parser.grub" in grub_command_execute() call. | |
18570 | ||
4a8572e9 CPE |
18571 | 2009-11-24 Carles Pina i Estany <carles@pina.cat> |
18572 | ||
18573 | * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h. | |
18574 | * conf/i386-efi.rmk: Likewise. | |
18575 | * conf/i386-ieee1275.rmk: Likewise. | |
18576 | * conf/i386-pc.rmk: Likewise. | |
18577 | * conf/powerpc-ieee1275.rmk: Likewise. | |
18578 | * conf/sparc64-ieee1275.rmk: Likewise. | |
18579 | * conf/x86_64-efi.rmk: Likewise. | |
18580 | * gettext/gettex.c: Include <grub/i18n.h>. | |
18581 | * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from | |
18582 | here ... | |
18583 | * include/grub/i18n.h: ... to here | |
18584 | * include/grub/i18n.h: ... to here. | |
18585 | * kern/misc.c: Include <grub/i18n.h> | |
a2c1332b | 18586 | (grub_gettext_dummy): Move above user. |
4a8572e9 | 18587 | |
bee48093 FZ |
18588 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18589 | ||
18590 | * util/Makefile.in (install-local): Convert a `for' into a normal | |
18591 | shell expansion. | |
18592 | ||
a031e91c RM |
18593 | 2009-11-24 Robert Millan <rmh.grub@aybabtu.com> |
18594 | ||
18595 | * autogen.sh: Add automake call. | |
18596 | * config.guess: Remove. | |
18597 | * config.sub: Likewise. | |
18598 | * install-sh: Likewise. | |
18599 | ||
26bec39d FZ |
18600 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18601 | ||
18602 | * util/Makefile.in (install-local): Fix the use of $lang shell variable. | |
18603 | ||
8e2532fd FZ |
18604 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18605 | ||
18606 | * util/Makefile.in (install-local): Convert a make `$(foreach)' | |
18607 | function to a normal shell `for'. | |
18608 | ||
fefa1b7d FZ |
18609 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18610 | ||
18611 | * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'. | |
18612 | ||
4501250b FZ |
18613 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18614 | ||
18615 | * util/grub-mkrelpath.c: New file. | |
18616 | * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath. | |
18617 | (grub_mkrelpath_SOURCES): New variable. | |
18618 | * include/grub/util/misc.h: New function prototype. | |
18619 | * util/misc.c (make_system_path_relative_to_its_root): New function. | |
18620 | ||
18621 | * util/grub-mkconfig_lib.in (bindir): New variable. | |
18622 | (grub_mkrelpath): Likewise. | |
18623 | (make_system_path_relative_to_its_root): Use grub-mkrelpath. | |
18624 | ||
18625 | * util/probe.c (probe): Make the file path relative to its root. | |
18626 | Change a info message to use the GRUB path. Enable again the | |
18627 | check if we can read the file with GRUB facilities. | |
18628 | ||
18629 | * util/i386/pc/grub-setup.c (setup): Make core.img path relative | |
18630 | to its root. | |
18631 | ||
11d9778b FZ |
18632 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18633 | ||
18634 | * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu | |
18635 | platform. | |
18636 | ||
4465287d FZ |
18637 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18638 | ||
18639 | * util/getroot.c (grub_util_get_dev_abstraction): Properly use | |
18640 | strncmp(). | |
18641 | ||
62b47f22 FZ |
18642 | 2009-11-24 Felix Zielcke <fzielcke@z-51.de> |
18643 | ||
18644 | * util/getroot.c (grub_util_is_dmraid): New function. | |
18645 | (grub_util_get_dev_abstraction): Treat dmraid and multipath | |
18646 | devices as normal ones, not as LVM. | |
18647 | ||
1eafb9b9 | 18648 | 2009-11-23 Carles Pina i Estany <carles@pina.cat> |
c3ea6bd4 CPE |
18649 | |
18650 | * conf/common.rmk: Add grub-gettext_lib target and updates | |
18651 | lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS, | |
18652 | LDFLAGS. | |
18653 | * gettext/gettext.c: New file. (Reads mo files). | |
18654 | * include/grub/file.h (grub_file_pread): New prototype. | |
18655 | * include/grub/i18n.h (_): New prototype. | |
18656 | * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New | |
18657 | prototypes. | |
18658 | * kern/misc.c (grub_gettext_dummy): New function. | |
18659 | * normal/menu_text.c: Include <grub/i18n.h>. | |
18660 | * normal/menu_text.c (print_timeout): Gettexttize string. | |
18661 | * normal/menu_text.c (print_message): Gettexttize string. | |
3bc7896c RM |
18662 | * po/POTFILES: Add `normal/menu_text.c'. |
18663 | * po/ca.po: Add new translations. | |
c3ea6bd4 CPE |
18664 | * util/grub.d/00_header.in: Define locale_dir and lang. insmod |
18665 | gettext module and defines locale_dir and lang in grub.cfg. | |
18666 | * NEWS: Add gettext support. | |
18667 | ||
0fdb2568 RM |
18668 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18669 | ||
18670 | * util/hostdisk.c: Include `<grub/i18n.h>'. | |
18671 | (find_grub_drive): Use ARRAY_SIZE for map size calculation. | |
18672 | (make_device_name): Rewrite using asprintf. | |
18673 | (convert_system_partition_to_system_disk): Replace 0 with NULL. | |
18674 | (find_system_device): If a device is not found, generate one just | |
18675 | by reusing the OS path name. | |
18676 | (read_device_map): Make it permissible for device.map not to exist. | |
18677 | ||
f515aa62 RM |
18678 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18679 | ||
18680 | * script/sh/execute.c: Move from here ... | |
18681 | * script/execute.c: ... to here. Update all users. | |
18682 | * script/sh/function.c: Move from here ... | |
18683 | * script/function.c: ... to here. Update all users. | |
18684 | * script/sh/lexer.c: Move from here ... | |
18685 | * script/lexer.c: ... to here. Update all users. | |
18686 | * script/sh/main.c: Move from here ... | |
18687 | * script/main.c: ... to here. Update all users. | |
18688 | * script/sh/parser.y: Move from here ... | |
18689 | * script/parser.y: ... to here. Update all users. | |
18690 | * script/sh/script.c: Move from here ... | |
18691 | * script/script.c: ... to here. Update all users. | |
18692 | ||
f84b481b RM |
18693 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18694 | ||
18695 | * configure.ac: Detect all `emu' platforms. Define | |
18696 | GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove | |
18697 | --enable-grub-emu logic. Disable include/grub/machine | |
18698 | symlink on `emu' platforms. | |
18699 | ||
18700 | * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation. | |
18701 | * gensymlist.sh.in: Likewise. | |
18702 | ||
18703 | * include/grub/i386/coreboot/machine.h: Remove file. | |
18704 | * include/grub/i386/efi/machine.h: Likewise. | |
18705 | * include/grub/i386/ieee1275/machine.h: Likewise. | |
18706 | * include/grub/i386/pc/machine.h: Likewise. | |
18707 | * include/grub/i386/qemu/machine.h: Likewise. | |
18708 | * include/grub/powerpc/ieee1275/machine.h: Likewise. | |
18709 | * include/grub/sparc64/ieee1275/machine.h: Likewise. | |
18710 | * include/grub/x86_64/efi/machine.h: Likewise. | |
18711 | ||
18712 | * commands/acpi.c: Remove `<grub/machine/machine.h>'. | |
18713 | * commands/halt.c: Likewise. | |
18714 | * commands/reboot.c: Likewise. | |
18715 | * include/grub/autoefi.h: Likewise. | |
18716 | * include/grub/i386/at_keyboard.h: Likewise. | |
18717 | * include/grub/i386/kernel.h: Likewise. | |
18718 | * include/grub/i386/loader.h: Likewise. | |
18719 | * include/grub/i386/pc/memory.h: Likewise. | |
18720 | * kern/dl.c: Likewise. | |
18721 | * kern/i386/coreboot/init.c: Likewise. | |
18722 | * loader/i386/bsd.c: Likewise. | |
18723 | * loader/i386/linux.c: Likewise. | |
18724 | * loader/multiboot_loader.c: Likewise. | |
18725 | * term/i386/pc/serial.c: Likewise. | |
18726 | * term/usb_keyboard.c: Likewise. | |
18727 | ||
18728 | * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove | |
18729 | `<grub/machine/machine.h>' | |
18730 | [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro. | |
18731 | * util/misc.c: Remove `<grub/machine/machine.h>' and | |
18732 | `<grub/machine/time.h>'. | |
18733 | ||
18734 | * Makefile.in (enable_grub_emu): Remove variable. | |
18735 | Include $(srcdir)/conf/any-emu.mk for the `emu' platform. | |
18736 | ||
18737 | * conf/any-emu.rmk: New file. | |
18738 | * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h) | |
18739 | (grub_emu_init.c): Move from here ... | |
18740 | * conf/any-emu.rmk: ... to here. | |
18741 | ||
18742 | * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'. | |
18743 | (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ... | |
18744 | * conf/any-emu.rmk: ... to here. | |
18745 | ||
4efeab03 RM |
18746 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18747 | ||
18748 | * include/grub/parser.h (grub_parser_register): Document need | |
18749 | of `name' parameter. | |
18750 | * normal/main.c (grub_normal_read_line): Simplify prompt string. | |
18751 | * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename | |
18752 | "sh" to "grub". | |
18753 | ||
ea1dd8bf RM |
18754 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18755 | ||
18756 | * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to | |
18757 | `$(XGETTEXT)'. | |
18758 | * include/grub/i18n.h (N_): New macro. | |
18759 | * util/mkisofs/mkisofs.h: Likewise. | |
18760 | * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings | |
18761 | around N_(). | |
18762 | (usage): Use gettext() to translate help strings when printing them. | |
18763 | ||
0c140626 RM |
18764 | 2009-11-23 Robert Millan <rmh.grub@aybabtu.com> |
18765 | ||
18766 | Based on patch from Bean | |
18767 | (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html) | |
18768 | ||
18769 | * video/efi_fb.c: New file. | |
18770 | * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'. | |
18771 | (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New | |
18772 | variables. | |
18773 | * conf/x86_64-efi.rmk: Likewise. | |
18774 | ||
87d58298 RM |
18775 | 2009-11-22 Robert Millan <rmh.grub@aybabtu.com> |
18776 | ||
18777 | * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings. | |
18778 | * util/i386/pc/grub-setup.c: Likewise. | |
18779 | ||
994cc3a3 ST |
18780 | 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org> |
18781 | ||
18782 | * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and | |
18783 | <hurd/fs.h> | |
18784 | [__GNU__] (grub_guess_root_device): Call file_name_lookup and | |
18785 | file_get_storage_info to implement grub_guess_root_device. | |
18786 | ||
26a61d6a FZ |
18787 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
18788 | ||
18789 | * Makefile.in (target): Use make's builtin $(shell) function | |
18790 | instead of calling directly $(SHELL) to create the locale directories, | |
18791 | inside the $(foreach) function. | |
18792 | ||
74ff1dd5 FZ |
18793 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
18794 | ||
18795 | * util/grub-mkrescue.in: Print an error and usage if output option | |
18796 | has not been given. | |
18797 | ||
0b787d0e FZ |
18798 | 2009-11-21 Felix Zielcke <fzielcke@z-51.de> |
18799 | ||
18800 | Patch from Loïc Minier <loic.minier@ubuntu.com>. | |
18801 | * util/grub.d/30_os-prober.in: Cope with Linux entries where | |
18802 | root and /boot are on different devices. | |
18803 | ||
1164b270 RM |
18804 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> |
18805 | ||
18806 | Fix build for srcdir != objdir. | |
18807 | ||
18808 | * Makefile.in (po/$(PACKAGE).pot): Rename to ... | |
18809 | ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from | |
18810 | $(srcdir). | |
18811 | ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ... | |
18812 | ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^ | |
18813 | reference for input. | |
18814 | ||
13774a2f RM |
18815 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> |
18816 | ||
18817 | * util/grub-mkrescue.in: Use source directory direcly (without copiing | |
18818 | or hardlinking it). Remove -J option, Joliet is not compatible with | |
18819 | multiple source directories. | |
18820 | ||
efda854e RM |
18821 | 2009-11-21 Carles Pina i Estany <carles@pina.cat> |
18822 | 2009-11-21 Robert Millan <rmh.grub@aybabtu.com> | |
18823 | ||
18824 | * util/grub-mkrescue.in: Recognize `--override-directory' option. | |
18825 | (process_input_dir): New function. Process an arbitrary input | |
18826 | directory. | |
18827 | Misc adjustments to support both "override mode" and system-wide mode. | |
18828 | ||
6c09890c FZ |
18829 | 2009-11-20 Felix Zielcke <fzielcke@z-51.de> |
18830 | ||
18831 | * configure.ac (UNIFONT_BDF): Rename to ... | |
18832 | (FONT_SOURCE): ... this. Update all users. | |
18833 | ||
a797824f FZ |
18834 | 2009-11-20 Felix Zielcke <fzielcke@z-51.de> |
18835 | ||
18836 | * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz' | |
18837 | to the list of unifont files to look for. | |
18838 | ||
cd4f42b0 RM |
18839 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
18840 | ||
18841 | Patch from Joe Auricchio <jauricchio@gmail.com> | |
18842 | * commands/minicmd.c (grub_mini_cmd_clear): New function. | |
18843 | (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear(). | |
18844 | (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear(). | |
18845 | ||
393c783d FZ |
18846 | 2009-11-19 Felix Zielcke <fzielcke@z-51.de> |
18847 | ||
18848 | * Makefile.in (install-local): Add a missing backslash. | |
18849 | ||
b2f1e327 FZ |
18850 | 2009-11-19 Felix Zielcke <fzielcke@z-51.de> |
18851 | ||
18852 | * include/grub/x86_64/io.h: New file. | |
18853 | ||
f577f7a0 RM |
18854 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
18855 | ||
18856 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'. | |
18857 | * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'. | |
18858 | Include `"progname.h"'. | |
18859 | (main): Initialize gettext. | |
18860 | * util/i386/pc/grub-setup.c: Gettexttize. | |
18861 | * util/i386/pc/grub-mkimage.c: Likewise. | |
18862 | ||
18863 | * Makefile.in (po/*.po): Redefine as ... | |
18864 | ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this. | |
18865 | ||
3bc7896c RM |
18866 | * po/POTFILES: Add `util/i386/pc/grub-setup.c'. |
18867 | ||
c37943b6 RM |
18868 | 2009-11-19 Robert Millan <rmh.grub@aybabtu.com> |
18869 | ||
18870 | * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'. | |
18871 | * util/mkisofs/mkisofs.c: Include `"progname.h"'. | |
18872 | (program_name): Remove. | |
18873 | (main): Initialize gettext support. | |
6323f705 RM |
18874 | * util/mkisofs/mkisofs.h: Include `<locale.h>'. |
18875 | Include `<libintl.h>'. | |
18876 | (_): New macro. | |
c37943b6 RM |
18877 | |
18878 | * util/mkisofs/eltorito.c: Gettexttize. | |
18879 | * util/mkisofs/joliet.c: Likewise. | |
18880 | * util/mkisofs/mkisofs.c: Likewise. | |
c37943b6 RM |
18881 | * util/mkisofs/multi.c: Likewise. |
18882 | * util/mkisofs/rock.c: Likewise. | |
18883 | * util/mkisofs/tree.c: Likewise. | |
18884 | * util/mkisofs/write.c: Likewise. | |
18885 | ||
3bc7896c RM |
18886 | * po/POTFILES: Update with new files. |
18887 | ||
5ce77c6e RM |
18888 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
18889 | ||
18890 | * util/mkisofs/eltorito.c: Fix minor mistake in license text. | |
18891 | * util/mkisofs/iso9660.h: Likewise. | |
18892 | * util/mkisofs/joliet.c: Likewise. | |
18893 | * util/mkisofs/mkisofs.c: Likewise. | |
18894 | * util/mkisofs/mkisofs.h: Likewise. | |
18895 | * util/mkisofs/rock.c: Likewise. | |
18896 | * util/mkisofs/tree.c: Likewise. | |
18897 | * util/mkisofs/write.c: Likewise. | |
18898 | ||
18899 | * util/mkisofs/eltorito.c (rcsid): Remove. | |
18900 | * util/mkisofs/hash.c: Likewise. | |
18901 | * util/mkisofs/joliet.c: Likewise. | |
18902 | * util/mkisofs/name.c: Likewise. | |
18903 | * util/mkisofs/rock.c: Likewise. | |
18904 | * util/mkisofs/tree.c: Likewise. | |
18905 | * util/mkisofs/write.c: Likewise. | |
18906 | ||
1dabbc77 RM |
18907 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
18908 | ||
18909 | * util/mkisofs/match.c: Rewrite from scratch, using a linked list | |
18910 | instead of static allocation. | |
18911 | * util/mkisofs/match.h: Likewise. | |
18912 | ||
633877cb RM |
18913 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
18914 | ||
3bc7896c RM |
18915 | * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in' |
18916 | and `util/grub.d/10_linux.in'. | |
633877cb RM |
18917 | * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for |
18918 | translatable Shell files. | |
18919 | ||
af1c0c85 RM |
18920 | 2009-11-18 Robert Millan <rmh.grub@aybabtu.com> |
18921 | ||
18922 | * Makefile.in ($(srcdir)/aclocal.m4): New target. | |
18923 | ||
769ae37b RM |
18924 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> |
18925 | ||
18926 | * INSTALL: Document Automake is needed for bootstrap. | |
3bc7896c | 18927 | * po/ca.po: Fix PO-Revision-Date and Language-Team fields. |
769ae37b RM |
18928 | * util/grub.d/10_kfreebsd.in (bindir): New variable. |
18929 | Add gettext initialization. | |
18930 | (kfreebsd_entry): Make menuentry output translatable. | |
18931 | ||
18932 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
18933 | ||
18934 | * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables. | |
18935 | (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'. | |
18936 | (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'. | |
18937 | (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'. | |
18938 | (LINGUAS): Auto-generate using `po/LINGUAS'. | |
3bc7896c | 18939 | * po/LINGUAS: New file. |
769ae37b RM |
18940 | |
18941 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
18942 | ||
18943 | * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among | |
18944 | other things). | |
18945 | * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'. | |
18946 | * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and | |
18947 | bindtextdomain() calls for gettext initialization. | |
18948 | ||
18949 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
18950 | ||
18951 | * gnulib/progname.c: New file (imported from Gnulib). | |
18952 | * gnulib/progname.h: Likewise. | |
18953 | * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'. | |
18954 | * util/i386/pc/grub-mkimage.c: Include `"progname.h"'. | |
18955 | (usage): Replace `progname' with `program_name'. | |
18956 | (main): Use set_program_name() for program name initialization. | |
18957 | ||
18958 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
18959 | ||
18960 | * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib' | |
18961 | from here ... | |
18962 | * Makefile.in (CPPFLAGS): ... to here. | |
18963 | ||
18964 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> | |
18965 | ||
18966 | * aclocal.m4: Move from here ... | |
18967 | * acinclude.m4: ... to here. | |
18968 | * autogen.sh: Add call to `aclocal'. | |
18969 | * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call. | |
18970 | ||
18971 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> | |
18972 | ||
18973 | * Makefile.in (CLEANFILES): Add `po/*.mo'. | |
18974 | (LINGUAS): New variable. | |
18975 | (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'. | |
18976 | (install-local): Install MO files. | |
18977 | (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules. | |
18978 | * include/grub/i18n.h: New file. | |
3bc7896c RM |
18979 | * po/POTFILES: New file. |
18980 | * po/ca.po: New file. | |
769ae37b RM |
18981 | * util/grub.d/10_linux.in (bindir): New variable. |
18982 | Add gettext initialization. | |
18983 | (linux_entry): Make menuentry output translatable. | |
18984 | * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'. | |
18985 | (usage): Make --help output translatable. | |
18986 | (main): Initialize gettext. | |
18987 | ||
02c0a6ad RM |
18988 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> |
18989 | ||
18990 | * import_gcry.py: New file (written by Vladimir with minor | |
18991 | adjustments). | |
18992 | * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified | |
18993 | ciphers. | |
18994 | * INSTALL: Document that Python is required for bootstrap. | |
18995 | ||
18996 | 2009-11-17 Robert Millan <rmh.grub@aybabtu.com> | |
18997 | ||
18998 | Import ciphers from libgcrypt 1.4.4. | |
18999 | ||
19000 | * lib/libgcrypt/cipher/ChangeLog | |
19001 | * lib/libgcrypt/cipher/ac.c | |
19002 | * lib/libgcrypt/cipher/arcfour.c | |
19003 | * lib/libgcrypt/cipher/bithelp.h | |
19004 | * lib/libgcrypt/cipher/blowfish.c | |
19005 | * lib/libgcrypt/cipher/camellia-glue.c | |
19006 | * lib/libgcrypt/cipher/camellia.c | |
19007 | * lib/libgcrypt/cipher/camellia.h | |
19008 | * lib/libgcrypt/cipher/cast5.c | |
19009 | * lib/libgcrypt/cipher/cipher.c | |
19010 | * lib/libgcrypt/cipher/crc.c | |
19011 | * lib/libgcrypt/cipher/des.c | |
19012 | * lib/libgcrypt/cipher/dsa.c | |
19013 | * lib/libgcrypt/cipher/ecc.c | |
19014 | * lib/libgcrypt/cipher/elgamal.c | |
19015 | * lib/libgcrypt/cipher/hash-common.c | |
19016 | * lib/libgcrypt/cipher/hash-common.h | |
19017 | * lib/libgcrypt/cipher/hmac-tests.c | |
19018 | * lib/libgcrypt/cipher/md.c | |
19019 | * lib/libgcrypt/cipher/md4.c | |
19020 | * lib/libgcrypt/cipher/md5.c | |
19021 | * lib/libgcrypt/cipher/primegen.c | |
19022 | * lib/libgcrypt/cipher/pubkey.c | |
19023 | * lib/libgcrypt/cipher/rfc2268.c | |
19024 | * lib/libgcrypt/cipher/rijndael-tables.h | |
19025 | * lib/libgcrypt/cipher/rijndael.c | |
19026 | * lib/libgcrypt/cipher/rmd.h | |
19027 | * lib/libgcrypt/cipher/rmd160.c | |
19028 | * lib/libgcrypt/cipher/rsa.c | |
19029 | * lib/libgcrypt/cipher/seed.c | |
19030 | * lib/libgcrypt/cipher/serpent.c | |
19031 | * lib/libgcrypt/cipher/sha1.c | |
19032 | * lib/libgcrypt/cipher/sha256.c | |
19033 | * lib/libgcrypt/cipher/sha512.c | |
19034 | * lib/libgcrypt/cipher/tiger.c | |
19035 | * lib/libgcrypt/cipher/twofish.c | |
19036 | * lib/libgcrypt/cipher/whirlpool.c | |
19037 | ||
af2f93ac RM |
19038 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> |
19039 | ||
19040 | Fix build for systems without error(). | |
19041 | ||
19042 | * gnulib/error.c: New file (imported from Gnulib). | |
19043 | * gnulib/error.h: Likewise. | |
19044 | * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'. | |
19045 | * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier | |
19046 | (this variable is now used by error()). | |
19047 | ||
73fb3dd5 FZ |
19048 | 2009-11-16 Felix Zielcke <fzielcke@z-51.de> |
19049 | ||
814f5e96 FZ |
19050 | * util/mkisofs/name.c (iso9660_file_length): Use isascii macro |
19051 | instead of relying that char is signed. | |
73fb3dd5 | 19052 | |
a691ca33 VS |
19053 | 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com> |
19054 | ||
19055 | * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing | |
19056 | blocksize different from specified. | |
19057 | (grub_pxefs_read): Likewise. | |
19058 | ||
2af8f0f4 FZ |
19059 | 2009-11-16 Felix Zielcke <fzielcke@z-51.de> |
19060 | ||
19061 | Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275. | |
19062 | ||
19063 | * disk/ata.c (grub_ata_dumpinfo): Add a cast. | |
19064 | (grub_ata_readwrite): Likewise. Update 2 format strings. | |
19065 | (grub_atapi_read): Likewise. | |
19066 | ||
19067 | * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ... | |
19068 | * conf/i386.rmk (pkglib_MODULES): ... to here ... | |
19069 | * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here. | |
19070 | * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS) | |
19071 | (ata_mod_LDFLAGS): Move from here ... | |
19072 | * conf/i386.rmk: ... to here ... | |
19073 | * conf/x86_64-efi.rmk: ... and here. | |
19074 | * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod' | |
19075 | (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove. | |
19076 | ||
83bdecaf RM |
19077 | 2009-11-16 Robert Millan <rmh.grub@aybabtu.com> |
19078 | ||
19079 | Relicense multiboot.h, with RMS' blessing. | |
19080 | ||
19081 | * include/multiboot.h: Change to X11 license. | |
19082 | ||
fd6fd3d7 RM |
19083 | 2009-11-15 Robert Millan <rmh.grub@aybabtu.com> |
19084 | ||
19085 | Support --version in grub-mkisofs. | |
19086 | ||
19087 | * util/mkisofs/mkisofs.c (rcsid): Remove variable. | |
19088 | (OPTION_VERSION): New macro. | |
19089 | (ld_options): Recognize --version. | |
19090 | (usage): Move `program_name' from here ... | |
19091 | (program_name): ... to here. Add `static' qualifier. | |
19092 | (main): Recognize `OPTION_VERSION'. | |
19093 | ||
16a88c49 FZ |
19094 | 2009-11-15 Felix Zielcke <fzielcke@z-51.de> |
19095 | ||
19096 | * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include' | |
19097 | with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'. | |
19098 | ||
a4158476 RM |
19099 | 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> |
19100 | ||
19101 | Fix help2man generation for mkisofs. | |
19102 | ||
19103 | * util/mkisofs/mkisofs.c (ld_options): Recognize --help. | |
19104 | (usage): Send output to stdout (rather than stderr). | |
19105 | ||
fc2208b0 RM |
19106 | 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> |
19107 | ||
19108 | * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace | |
19109 | `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'. | |
19110 | * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace | |
19111 | `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'. | |
19112 | (bin_SCRIPTS): Add `grub-mkfloppy'. | |
19113 | (grub_mkfloppy_SOURCES): New variable. | |
19114 | ||
19115 | * util/grub-mkrescue.in: New file. | |
19116 | * util/i386/pc/grub-mkfloppy.in: New file. | |
19117 | ||
19118 | * util/i386/coreboot/grub-mkrescue.in: Remove. | |
19119 | * util/i386/pc/grub-mkrescue.in: Remove. | |
19120 | ||
8d0edf4a RM |
19121 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
19122 | ||
19123 | * include/grub/multiboot.h (struct grub_multiboot_header): Move | |
19124 | from here ... | |
19125 | * include/multiboot.h (struct multiboot_header): ... to here. Update | |
19126 | all users. | |
19127 | * include/grub/multiboot.h (struct grub_multiboot_info): Move | |
19128 | from here ... | |
19129 | * include/multiboot.h (struct multiboot_info): ... to here. Update | |
19130 | all users. | |
19131 | * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move | |
19132 | from here ... | |
19133 | * include/multiboot.h (struct multiboot_mmap_entry): ... to here. | |
19134 | Update all users. | |
19135 | * include/grub/multiboot.h (struct grub_mod_list): Move | |
19136 | from here ... | |
19137 | * include/multiboot.h (struct multiboot_mod_list): ... to here. | |
19138 | Update all users. | |
19139 | ||
a73f5969 RM |
19140 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
19141 | ||
19142 | * include/multiboot2.h (multiboot_word): Rename from this ... | |
19143 | (multiboot2_word): ... to this. Update all users. | |
19144 | (multiboot_header): Rename from this ... | |
19145 | (multiboot2_header): ... to this. Update all users. | |
19146 | (multiboot_tag_header): Rename from this ... | |
19147 | (multiboot2_tag_header): ... to this. Update all users. | |
19148 | (multiboot_tag_start): Rename from this ... | |
19149 | (multiboot2_tag_start): ... to this. Update all users. | |
19150 | (multiboot_tag_name): Rename from this ... | |
19151 | (multiboot2_tag_name): ... to this. Update all users. | |
19152 | (multiboot_tag_module): Rename from this ... | |
19153 | (multiboot2_tag_module): ... to this. Update all users. | |
19154 | (multiboot_tag_memory): Rename from this ... | |
19155 | (multiboot2_tag_memory): ... to this. Update all users. | |
19156 | (multiboot_tag_unused): Rename from this ... | |
19157 | (multiboot2_tag_unused): ... to this. Update all users. | |
19158 | (multiboot_tag_end): Rename from this ... | |
19159 | (multiboot2_tag_end): ... to this. Update all users. | |
19160 | ||
1c8927f0 RM |
19161 | 2009-11-13 Robert Millan <rmh.grub@aybabtu.com> |
19162 | ||
19163 | Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on | |
19164 | this platform we should support Multiboot1 first. | |
19165 | ||
19166 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'. | |
19167 | (multiboot_mod_SOURCES, multiboot_mod_CFLAGS) | |
19168 | (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove. | |
19169 | ||
6e1e0d89 RM |
19170 | 2009-11-12 Robert Millan <rmh.grub@aybabtu.com> |
19171 | ||
19172 | * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code | |
19173 | of write calls (converting them to fwrite() if they aren't already). | |
19174 | (get_torito_desc): Likewise. | |
19175 | * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise. | |
19176 | ||
7f2b34d8 RM |
19177 | 2009-11-12 Robert Millan <rmh.grub@aybabtu.com> |
19178 | ||
19179 | * util/i386/pc/grub-install.in: Move from here ... | |
19180 | * util/grub-install.in: ... to here. Update all users. | |
19181 | ||
c0ef3311 CW |
19182 | 2009-11-11 Colin Watson <cjwatson@ubuntu.com> |
19183 | ||
19184 | * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output. | |
19185 | ||
e1f240ff RM |
19186 | 2009-11-11 Robert Millan <rmh.grub@aybabtu.com> |
19187 | ||
19188 | Support for El Torito without floppy emulation. | |
19189 | ||
19190 | * util/mkisofs/eltorito.c: Include `<errno.h>'. | |
19191 | (init_boot_catalog): Improve error handling. | |
19192 | (get_torito_desc): Don't use floppy emulation unless requested by | |
19193 | user. Patch boot information table when requested via | |
19194 | `-boot-info-table'. | |
19195 | * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct. | |
19196 | * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy) | |
19197 | (use_boot_info_table): New variables. | |
19198 | (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT) | |
19199 | (OPTION_ELTORITO_EMUL_FLOPPY): New macros. | |
19200 | (ld_options): Handle `-boot-info-table', `-no-emul-boot' and | |
19201 | `--eltorito-emul-floppy'. | |
19202 | (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT' | |
19203 | and `OPTION_ELTORITO_EMUL_FLOPPY'. | |
19204 | * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy) | |
19205 | (use_boot_info_table, get_731): New prototypes. | |
19206 | * util/mkisofs/write.c (get_731): New function. | |
19207 | ||
af7d4de5 FZ |
19208 | 2009-11-11 Felix Zielcke <fzielcke@z-51.de> |
19209 | ||
19210 | Fix the generation of the man page. | |
19211 | ||
19212 | * util/pc/i386/grub-install.in: Source | |
19213 | `${libdir}/grub/grub-mkconfig_lib' after options have been parsed. | |
19214 | ||
2c55dbc0 RM |
19215 | 2009-11-11 Robert Millan <rmh.grub@aybabtu.com> |
19216 | ||
19217 | Large file support for grub-mkisofs. | |
19218 | ||
19219 | * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'. | |
19220 | * util/mkisofs/mkisofs.c (next_extent, last_extent) | |
19221 | (session_start): Upgrade type to `uint64_t'. Update all users. | |
19222 | * util/mkisofs/mkisofs.h: Include `<stdint.h>'. | |
19223 | (struct directory_entry): Upgrade type of `starting_block' and | |
19224 | `size' to `uint64_t'. Update all users. | |
19225 | (struct deferred): Remove unused structure. | |
19226 | (xfwrite): Upgrade type of `count' and `size' to `uint64_t'. | |
19227 | Update all users. | |
19228 | * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when | |
19229 | file is larger than `UINT32_MAX'. | |
19230 | * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and | |
19231 | `size' to `uint64_t'. Update all users. Fix handling of fwrite() | |
19232 | return value. | |
19233 | (struct deferred_write): Upgrade type of `extent' and `size' to | |
19234 | `uint64_t'. Update all users. | |
19235 | (last_extent_written): Upgrade type to `uint64_t'. Update all | |
19236 | users. | |
19237 | (write_one_file): Upgrade type of `count' and `size' to `uint64_t'. | |
19238 | Update all users. Upgrade type of `remain' to `int64_t' and | |
19239 | `use' to `size_t'. Use error() to handle fread() errors. | |
19240 | (write_files): Rely on write_one_file() rather than calling | |
19241 | xfwrite() directly. | |
19242 | ||
6a9cead5 FZ |
19243 | 2009-11-09 Felix Zielcke <fzielcke@z-51.de> |
19244 | ||
19245 | * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake. | |
19246 | ||
4825d790 RM |
19247 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19248 | ||
19249 | * util/mkisofs/fnmatch.c: Remove. | |
19250 | * util/mkisofs/getopt1.c: Likewise. | |
19251 | * util/mkisofs/getopt.c: Likewise. | |
19252 | * conf/common.rmk (grub_mkisofs_SOURCES): Replace | |
19253 | `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and | |
19254 | `util/mkisofs/getopt.c' with `gnulib/fnmatch.c', | |
19255 | `gnulib/getopt1.c' and `gnulib/getopt.c'. | |
19256 | (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'. | |
19257 | ||
19258 | * configure.ac: Detect `mingw32msvc' host_os. | |
19259 | Check for lstat(), getuid() and getgid(). | |
19260 | ||
19261 | * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all | |
19262 | instances of `u_char' with `uint8_t'. | |
19263 | ||
19264 | * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'. | |
19265 | [!HAVE_GETUID] (getuid): New function (stub). | |
19266 | [!HAVE_GETGID] (getgid): Likewise. | |
19267 | [!HAVE_LSTAT] (lstat): Likewise. | |
19268 | [!S_IROTH] (S_IROTH): New macro (dummy). | |
19269 | [!S_IRGRP] (S_IRGRP): Likewise. | |
19270 | ||
84b860d8 RM |
19271 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19272 | ||
19273 | * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in | |
19274 | conditional expression). | |
19275 | ||
66e9b712 RM |
19276 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19277 | ||
19278 | Import from Gnulib. | |
19279 | ||
19280 | * gnulib/fnmatch.c: New file. | |
19281 | * gnulib/fnmatch.h: Likewise. | |
19282 | * gnulib/fnmatch_loop.c: Likewise. | |
19283 | * gnulib/getopt.c: Likewise. | |
19284 | * gnulib/getopt.h: Likewise. | |
19285 | * gnulib/getopt1.c: Likewise. | |
19286 | * gnulib/getopt_int.h: Likewise. | |
19287 | * gnulib/gettext.h: Likewise. | |
19288 | ||
34f4a5b0 RM |
19289 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19290 | ||
19291 | * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'. | |
19292 | * normal/handler.c (read_handler_list): Likewise. | |
19293 | ||
ac451143 RM |
19294 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19295 | ||
19296 | Misc cleanup. | |
19297 | ||
19298 | * kern/command.c (grub_register_command_prio): Use | |
19299 | grub_zalloc() instead of explicitly zeroing data. | |
19300 | * kern/list.c: Include `<grub/mm.h>'. | |
19301 | (grub_named_list_find): Replace `0' with `NULL'. | |
19302 | * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type. | |
19303 | (fs_module_list): Change type to `grub_named_list_t'. Update all | |
19304 | users. | |
19305 | * normal/dyncmd.c (read_command_list): Add space between function | |
19306 | call and parenthesis. | |
19307 | * normal/handler.c (read_handler_list): Likewise. | |
19308 | ||
4089b167 RM |
19309 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19310 | ||
19311 | * normal/auth.c (punishment_delay): Moved from here ... | |
19312 | (grub_auth_strcmp): ... to here (inside function). | |
19313 | ||
325f5037 RM |
19314 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19315 | ||
19316 | * include/grub/list.h (struct grub_named_list): Remove `const' | |
19317 | qualifier from `name'. | |
19318 | (struct grub_prio_list): Likewise. | |
19319 | ||
7aea29a3 RM |
19320 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19321 | ||
19322 | * normal/auth.c: Include `<grub/time.h>'. | |
19323 | (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'. | |
19324 | ||
3fd6f044 RM |
19325 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19326 | ||
19327 | * normal/auth.c (punishment_delay): New variable. | |
19328 | (grub_auth_strcmp): Rewrite using grub_get_time_ms (). | |
19329 | (grub_auth_check_authentication): Punish failed login attempts with | |
19330 | an incremental (2^N) delay. | |
19331 | ||
a4cd68e4 RM |
19332 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19333 | ||
19334 | * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include | |
19335 | path with $(srcdir). | |
19336 | ||
7ad12f43 VS |
19337 | 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
19338 | ||
19339 | * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage. | |
19340 | ||
c1129f03 RM |
19341 | 2009-11-09 Robert Millan <rmh.grub@aybabtu.com> |
19342 | ||
19343 | * util/i386/coreboot/grub-mkrescue.in: New file. | |
19344 | * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New | |
19345 | variables. | |
19346 | ||
19347 | * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'. | |
19348 | (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables. | |
19349 | * configure.ac: Add header and function checks to satisfy grub-mkisofs | |
19350 | requirements. | |
19351 | * util/mkisofs/defaults.h: New file. | |
19352 | * util/mkisofs/eltorito.c: Likewise. | |
19353 | * util/mkisofs/exclude.h: Likewise. | |
19354 | * util/mkisofs/fnmatch.c: Likewise. | |
19355 | * util/mkisofs/getopt.c: Likewise. | |
19356 | * util/mkisofs/getopt1.c: Likewise. | |
19357 | * util/mkisofs/hash.c: Likewise. | |
19358 | * util/mkisofs/include/fctldefs.h: Likewise. | |
19359 | * util/mkisofs/include/mconfig.h: Likewise. | |
19360 | * util/mkisofs/include/prototyp.h: Likewise. | |
19361 | * util/mkisofs/include/statdefs.h: Likewise. | |
19362 | * util/mkisofs/iso9660.h: Likewise. | |
19363 | * util/mkisofs/joliet.c: Likewise. | |
19364 | * util/mkisofs/match.c: Likewise. | |
19365 | * util/mkisofs/match.h: Likewise. | |
19366 | * util/mkisofs/mkisofs.c: Likewise. | |
19367 | * util/mkisofs/mkisofs.h: Likewise. | |
19368 | * util/mkisofs/multi.c: Likewise. | |
19369 | * util/mkisofs/name.c: Likewise. | |
19370 | * util/mkisofs/rock.c: Likewise. | |
19371 | * util/mkisofs/tree.c: Likewise. | |
19372 | * util/mkisofs/write.c: Likewise. | |
19373 | ||
ec8bb77d VS |
19374 | 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com> |
19375 | ||
19376 | * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function | |
19377 | being insecure. | |
19378 | ||
3716b12c RM |
19379 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
19380 | ||
19381 | * util/i386/pc/grub-mkrescue.in: Fix miss-identification as | |
19382 | `grub-mkimage' (and use $0 when possible). | |
19383 | ||
b97b7b91 RM |
19384 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
19385 | ||
19386 | * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve | |
19387 | error message for excessively large memory map. | |
19388 | ||
04114812 RM |
19389 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
19390 | ||
19391 | * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on | |
19392 | executable bit. | |
19393 | ||
e4eb2373 RM |
19394 | 2009-11-08 Robert Millan <rmh.grub@aybabtu.com> |
19395 | ||
19396 | * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error | |
19397 | message for coreboot users. | |
19398 | ||
c926e1d5 | 19399 | 2009-11-07 Robert Millan <rmh.grub@aybabtu.com> |
19400 | ||
19401 | Fix build with GNU gold. | |
19402 | ||
19403 | * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS) | |
19404 | (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS) | |
19405 | (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal | |
19406 | link addresses. | |
19407 | * aclocal.m4: Likewise. | |
19408 | ||
86e5b1db | 19409 | 2009-11-04 Felix Zielcke <fzielcke@z-51.de> |
19410 | ||
19411 | * configure.ac (AC_PREREQ): Bump to 2.59d. | |
19412 | * INSTALL: Make it more clear when Autoconf and Ruby are | |
19413 | needed and when to run `./autogen.sh'. | |
19414 | ||
246cd78f | 19415 | 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org> |
19416 | ||
19417 | * util/grub.d/30_os-prober.in: Restore default behavior for unsupported | |
19418 | OSes. | |
19419 | ||
4f9dfb37 | 19420 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
19421 | ||
19422 | * util/grub.d/30_os-prober.in: Add GNU/Hurd support | |
19423 | ||
b82bd5e1 | 19424 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
19425 | ||
19426 | * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before | |
19427 | giving it to GNU Mach. | |
19428 | ||
ff1a9bca | 19429 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
19430 | ||
19431 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from | |
19432 | GNU partition number to get internal GRUB partition number. | |
19433 | ||
61697d9c | 19434 | 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org> |
19435 | ||
19436 | * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device | |
19437 | ${GRUB_DEVICE_BOOT} before loading /boot kernel. | |
19438 | ||
a50569e1 | 19439 | 2009-11-01 Robert Millan <rmh.grub@aybabtu.com> |
19440 | ||
19441 | Based on patch from BVK Chaitanya <bvk.groups@gmail.com> | |
19442 | * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0' | |
19443 | case. | |
19444 | ||
5b153867 | 19445 | 2009-11-01 Felix Zielcke <fzielcke@z-51.de> |
19446 | ||
19447 | * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'. | |
19448 | ||
d9e2cd70 | 19449 | 2009-10-30 Robert Millan <rmh.grub@aybabtu.com> |
19450 | ||
19451 | Fix build problem. | |
19452 | ||
19453 | * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with | |
19454 | `-isystem=$(srcdir)/include'. | |
19455 | ||
805111a4 | 19456 | 2009-10-30 Robert Millan <rmh.grub@aybabtu.com> |
19457 | ||
19458 | * util/i386/pc/grub-install.in: Remove hint that device.map should be | |
19459 | checked (grub-install doesn't currently rely on it). | |
19460 | ||
fa6e945f | 19461 | 2009-10-29 Robert Millan <rmh.grub@aybabtu.com> |
19462 | ||
19463 | Revert SVN r2660. | |
19464 | ||
19465 | * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ... | |
19466 | * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here. | |
19467 | * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here. | |
19468 | * conf/i386-ieee1275.rmk: Likewise. | |
19469 | * conf/i386-pc.rmk: Likewise. | |
19470 | * conf/powerpc-ieee1275.rmk: Likewise. | |
19471 | * conf/sparc64-ieee1275.rmk: Likewise. | |
19472 | * conf/x86_64-efi.rmk: Likewise. | |
19473 | ||
cee15086 | 19474 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
19475 | ||
19476 | * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'. | |
19477 | ||
95b9239e | 19478 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
19479 | ||
19480 | * include/grub/misc.h: Stop checking for APPLE_CC. | |
19481 | ||
2ed19dfd | 19482 | 2009-10-28 Robert Millan <rmh.grub@aybabtu.com> |
19483 | ||
19484 | * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that | |
19485 | doesn't cause an infinite call loop. | |
19486 | ||
fdcdde19 | 19487 | 2009-10-28 Felix Zielcke <fzielcke@z-51.de> |
19488 | ||
19489 | * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error | |
19490 | strings. | |
19491 | ||
cefabfe1 | 19492 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19493 | ||
19494 | * autogen.sh: Support addition of external modules via `GRUB_CONTRIB' | |
19495 | variable. | |
19496 | * Makefile.in: Likewise. | |
19497 | ||
ed96ab6d | 19498 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19499 | ||
19500 | * gendistlist.sh: Simplify .svn check. Skip .bzr as well. | |
19501 | ||
0579b753 | 19502 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19503 | ||
19504 | * Makefile.in (RMKFILES): Rewrite using $(wildcard). | |
19505 | ||
478df409 | 19506 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19507 | ||
19508 | * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed). | |
19509 | ||
083d1679 | 19510 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19511 | ||
19512 | * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration | |
19513 | from here ... | |
19514 | * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here. | |
19515 | ||
5947ae32 | 19516 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19517 | ||
19518 | * Makefile.in (docs/grub.info): Use make syntax to ignore errors | |
19519 | in $(MAKEINFO) invocation. This makes it clear in output that | |
19520 | errors are being ignored. | |
19521 | ||
94180ff6 | 19522 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19523 | ||
19524 | * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved | |
19525 | from here ... | |
19526 | * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here. | |
19527 | * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove. | |
19528 | * conf/i386-ieee1275.rmk: Likewise. | |
19529 | * conf/i386-pc.rmk: Likewise. | |
19530 | * conf/powerpc-ieee1275.rmk: Likewise. | |
19531 | * conf/sparc64-ieee1275.rmk: Likewise. | |
19532 | * conf/x86_64-efi.rmk: Likewise. | |
19533 | ||
9031b03a | 19534 | 2009-10-26 Colin Watson <cjwatson@ubuntu.com> |
19535 | ||
19536 | * util/grub-editenv.c (main): If only a command is given, use | |
19537 | DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name. | |
19538 | (usage): FILENAME is now optional and has a default. | |
19539 | ||
e4f6809b | 19540 | 2009-10-26 Colin Watson <cjwatson@ubuntu.com> |
19541 | ||
19542 | Improve grub-mkconfig performance when there are several menu | |
19543 | entries on a single filesystem. | |
19544 | ||
19545 | * util/grub.d/10_linux.in (linux_entry): Cache the output of | |
19546 | prepare_grub_to_access_device. | |
19547 | * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise. | |
19548 | * util/grub.d/30_os-prober.in: Likewise. | |
19549 | ||
67937d4d | 19550 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19551 | ||
19552 | * util/grub.d/10_freebsd.in: Remove. | |
19553 | * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in). | |
19554 | * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD. | |
19555 | ||
ee3756cc | 19556 | 2009-10-26 Robert Millan <rmh.grub@aybabtu.com> |
19557 | ||
5c35048e | 19558 | * docs/grub.cfg: Fix example usage of *BSD loaders. |
ee3756cc | 19559 | |
4dea1c6f | 19560 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19561 | ||
19562 | * util/i386/pc/grub-setup.c (setup): Add missing parameter to | |
19563 | grub_util_error() call. | |
19564 | ||
042484d7 | 19565 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19566 | ||
19567 | * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add | |
19568 | `reserved_first_sector' member. | |
19569 | * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize | |
19570 | `reserved_first_sector' to 1. | |
19571 | * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise. | |
19572 | * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise. | |
19573 | * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise. | |
19574 | * util/i386/pc/grub-setup.c (setup): Add safety check that probes for | |
19575 | filesystems which begin at first sector. | |
19576 | (options): New option --skip-fs-probe. | |
19577 | (main): Handle --skip-fs-probe and pass it to setup(). | |
19578 | ||
d64448a7 | 19579 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19580 | ||
19581 | * include/grub/misc.h: Fix wrong evaluation of APPLE_CC. | |
19582 | (memset): Fix function prototype. | |
19583 | ||
508d42ec | 19584 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19585 | 2009-10-25 Vasily Averin <vvs@parallels.com> | |
19586 | ||
19587 | * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when | |
19588 | `dirent.direntlen == 0'. | |
19589 | ||
b240e30c | 19590 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19591 | ||
19592 | * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of | |
19593 | `cpio'. | |
19594 | [! MODE_USTAR]: Initialize `cpio' module instead of `tar'. | |
19595 | ||
346e7fbe | 19596 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19597 | ||
19598 | * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3', | |
19599 | `__trampoline_setup' and `__ucmpdi2'. | |
19600 | * include/grub/powerpc/libgcc.h: Only export symbols for functions | |
19601 | that libgcc provides. | |
19602 | ||
cdb308b0 | 19603 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19604 | ||
19605 | * include/grub/powerpc/libgcc.h (memset): Remove function prototype. | |
19606 | * include/grub/sparc64/libgcc.h (memset): Likewise. | |
19607 | * include/grub/misc.h (memset, memcmp): New function prototypes. | |
19608 | ||
fb26abc2 | 19609 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19610 | ||
19611 | * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of | |
19612 | `cpio'. | |
19613 | [! MODE_USTAR]: Finish `cpio' module instead of `tar'. | |
19614 | ||
f6693890 | 19615 | 2009-10-25 Robert Millan <rmh.grub@aybabtu.com> |
19616 | ||
19617 | Patch from Samuel Thibault <samuel.thibault@ens-lyon.org> | |
19618 | * docs/grub.cfg: Compensate for recent change in multiboot | |
19619 | loader (since 2009-08-14 it won't pass filename to payload). | |
19620 | * util/grub.d/10_hurd.in: Likewise. | |
19621 | ||
0933cdc0 | 19622 | 2009-10-21 Felix Zielcke <fzielcke@z-51.de> |
19623 | ||
19624 | * config.guess: Update to latest version from config git | |
19625 | repository. | |
19626 | * config.sub: Likewise. | |
19627 | ||
3b2fe8c2 | 19628 | 2009-10-20 Robert Millan <rmh.grub@aybabtu.com> |
19629 | ||
19630 | Fix build on sparc64. | |
19631 | ||
19632 | * configure.ac: Perform checks for libgcc symbols before | |
19633 | adding `-nostdlib' to LDFLAGS. | |
19634 | ||
46695a62 | 19635 | 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
19636 | ||
19637 | Let user specify OpenBSD root device. | |
19638 | ||
19639 | * loader/i386/bsd.c (openbsd_root): New variable. | |
19640 | (openbsd_opts): New option 'root'. | |
19641 | (OPENBSD_ROOT_ARG): New macro. | |
19642 | (grub_openbsd_boot): Use 'openbsd_root'. | |
19643 | (grub_cmd_openbsd): Fill 'openbsd_root'. | |
19644 | ||
d2b6b7fc | 19645 | 2009-10-16 Robert Millan <rmh.grub@aybabtu.com> |
19646 | ||
19647 | * NEWS: Misc adjustments. | |
19648 | ||
421bd7ac | 19649 | 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com> |
19650 | ||
19651 | * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool. | |
19652 | ||
f1d29d87 | 19653 | 2009-10-16 Robert Millan <rmh.grub@aybabtu.com> |
19654 | ||
19655 | * configure.ac: Bump version to 1.97. | |
19656 | ||
6f3cd880 | 19657 | 2009-10-16 Colin Watson <cjwatson@ubuntu.com> |
19658 | ||
19659 | * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2 | |
19660 | -mno-3dnow on x86 architectures. Some toolchains enable these | |
19661 | features by default, but they rely on registers that aren't enabled | |
19662 | in GRUB. Thanks to Vladimir Serbinenko for the suggestion. | |
19663 | ||
035f7122 | 19664 | 2009-10-15 Robert Millan <rmh.grub@aybabtu.com> |
19665 | ||
19666 | Make entry text a bit more readable. | |
19667 | ||
19668 | * util/grub.d/10_linux.in: Add `with' before `Linux'. | |
19669 | ||
44998e58 | 19670 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
19671 | ||
19672 | * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image. | |
19673 | ||
cd2851b3 | 19674 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
19675 | ||
19676 | * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise | |
19677 | operations. | |
19678 | ||
c6f3b249 | 19679 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
19680 | ||
19681 | * configure.ac: Add missing dollar. | |
19682 | ||
6b5886ba | 19683 | 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com> |
19684 | ||
19685 | Revert 2009-06-10 Pavel Roskin <proski@gnu.org> | |
19686 | ||
19687 | * configure.ac: Put checks for __bswapsi2 and __bswapdi2. | |
19688 | * include/grub/powerpc/libgcc.h: Don't use weak attribute for all | |
19689 | exports. | |
19690 | * include/grub/sparc64/libgcc.h: Likewise. Use | |
19691 | preprocessor conditionals. | |
19692 | ||
e9d66f6d | 19693 | 2009-10-14 Robert Millan <rmh.grub@aybabtu.com> |
19694 | ||
19695 | * conf/common.rmk (grub-dumpbios): Remove rule. | |
19696 | (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'. | |
19697 | * util/grub-dumpbios.in: Remove file. | |
19698 | ||
9155bc17 | 19699 | 2009-10-14 Robert Millan <rmh.grub@aybabtu.com> |
19700 | ||
19701 | Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between | |
19702 | the Operating System (FreeBSD) and its kernel (kernel of FreeBSD). | |
19703 | ||
19704 | * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment | |
19705 | from "kFreeBSD" namespace (rather than "FreeBSD"). Update all | |
19706 | users. | |
19707 | ||
19708 | (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd", | |
19709 | "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv" | |
19710 | to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module", | |
19711 | and "freebsd_module_elf" to "kfreebsd_module_elf". Update all | |
19712 | users. | |
19713 | ||
bf7f7a18 | 19714 | 2009-10-12 Robert Millan <rmh.grub@aybabtu.com> |
19715 | ||
19716 | * term/tparm.c: Switch to GPLv3. | |
19717 | ||
86564c26 | 19718 | 2009-10-09 Robert Millan <rmh.grub@aybabtu.com> |
19719 | ||
19720 | * include/grub/i386/cpuid.h: Add header protection. | |
19721 | ||
5c936493 | 19722 | 2009-10-09 Robert Millan <rmh.grub@aybabtu.com> |
19723 | ||
19724 | Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU. | |
19725 | ||
19726 | * include/grub/i386/cpuid.h: New file. | |
19727 | * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'. | |
19728 | (has_longmode): Rename to ... | |
19729 | (grub_cpuid_has_longmode): ... this. Update all users. Remove | |
19730 | `static' attribute. | |
19731 | * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'. | |
19732 | (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested | |
19733 | on a CPU that doesn't implement AMD64 instruction set. | |
19734 | ||
186e7cf2 | 19735 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
19736 | ||
19737 | * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so | |
19738 | that version.texi is rebuilt on version number changes. | |
19739 | ||
83b65c4a | 19740 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
19741 | ||
19742 | * Makefile.in: Don't set info_INFOS unless makeinfo was found. | |
19743 | Fixes bug #27602. | |
19744 | ||
d244281c | 19745 | 2009-10-06 Colin Watson <cjwatson@ubuntu.com> |
19746 | ||
19747 | * util/i386/pc/grub-install.in: Source | |
19748 | ${libdir}/grub/grub-mkconfig_lib before option processing, in order | |
19749 | that the --grub-probe option will work. | |
19750 | * util/sparc64/ieee1275/grub-install.in: Likewise. | |
19751 | ||
da25306d | 19752 | 2009-10-05 Robert Millan <rmh.grub@aybabtu.com> |
19753 | ||
19754 | * configure.ac: Bump version to 1.97~beta4. | |
19755 | ||
e8ee83c0 | 19756 | 2009-10-03 Robert Millan <rmh.grub@aybabtu.com> |
19757 | ||
19758 | Resync grub-mkdevicemap in x86_64-efi. | |
19759 | ||
19760 | * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'. | |
19761 | (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and | |
19762 | `util/devicemap.c'. | |
19763 | ||
50dcabcf | 19764 | 2009-10-01 Colin Watson <cjwatson@ubuntu.com> |
19765 | ||
19766 | * util/grub-editenv.c (create_envblk_file): Write new block with a | |
19767 | .new suffix and then rename it into place, to ensure atomic | |
19768 | creation. | |
19769 | ||
0e51c3a7 | 19770 | 2009-09-28 Robert Millan <rmh.grub@aybabtu.com> |
19771 | ||
19772 | Do not automatically install headers. | |
19773 | ||
19774 | * Makefile.in (include_DATA): Remove. Update all users. | |
19775 | ||
31299a95 | 19776 | 2009-09-26 Robert Millan <rmh.grub@aybabtu.com> |
19777 | ||
19778 | * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'. | |
19779 | (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove. | |
19780 | ||
19781 | * util/osdetect.lua: Remove. | |
19782 | * script/lua/lauxlib.c: Likewise. | |
19783 | * script/lua/ldebug.c: Likewise. | |
19784 | * script/lua/grub_main.c: Likewise. | |
19785 | * script/lua/lauxlib.h: Likewise. | |
19786 | * script/lua/ldebug.h: Likewise. | |
19787 | * script/lua/ltablib.c: Likewise. | |
19788 | * script/lua/liolib.c: Likewise. | |
19789 | * script/lua/lstrlib.c: Likewise. | |
19790 | * script/lua/lualib.h: Likewise. | |
19791 | * script/lua/ldo.c: Likewise. | |
19792 | * script/lua/ldump.c: Likewise. | |
19793 | * script/lua/ldo.h: Likewise. | |
19794 | * script/lua/loslib.c: Likewise. | |
19795 | * script/lua/lundump.c: Likewise. | |
19796 | * script/lua/grub_lib.c: Likewise. | |
19797 | * script/lua/ldblib.c: Likewise. | |
19798 | * script/lua/lundump.h: Likewise. | |
19799 | * script/lua/lmem.c: Likewise. | |
19800 | * script/lua/grub_lib.h: Likewise. | |
19801 | * script/lua/lmathlib.c: Likewise. | |
19802 | * script/lua/lstate.c: Likewise. | |
19803 | * script/lua/ltm.c: Likewise. | |
19804 | * script/lua/lvm.c: Likewise. | |
19805 | * script/lua/lmem.h: Likewise. | |
19806 | * script/lua/lstate.h: Likewise. | |
19807 | * script/lua/ltm.h: Likewise. | |
19808 | * script/lua/ltable.c: Likewise. | |
19809 | * script/lua/lvm.h: Likewise. | |
19810 | * script/lua/llex.c: Likewise. | |
19811 | * script/lua/lgc.c: Likewise. | |
19812 | * script/lua/grub_lua.h: Likewise. | |
19813 | * script/lua/loadlib.c: Likewise. | |
19814 | * script/lua/lfunc.c: Likewise. | |
19815 | * script/lua/lopcodes.c: Likewise. | |
19816 | * script/lua/lparser.c: Likewise. | |
19817 | * script/lua/ltable.h: Likewise. | |
19818 | * script/lua/llex.h: Likewise. | |
19819 | * script/lua/lgc.h: Likewise. | |
19820 | * script/lua/lfunc.h: Likewise. | |
19821 | * script/lua/lbaselib.c: Likewise. | |
19822 | * script/lua/lopcodes.h: Likewise. | |
19823 | * script/lua/lparser.h: Likewise. | |
19824 | * script/lua/lzio.c: Likewise. | |
19825 | * script/lua/linit.c: Likewise. | |
19826 | * script/lua/lobject.c: Likewise. | |
19827 | * script/lua/llimits.h: Likewise. | |
19828 | * script/lua/lstring.c: Likewise. | |
19829 | * script/lua/lzio.h: Likewise. | |
19830 | * script/lua/lapi.c: Likewise. | |
19831 | * script/lua/lcode.c: Likewise. | |
19832 | * script/lua/lua.h: Likewise. | |
19833 | * script/lua/lobject.h: Likewise. | |
19834 | * script/lua/lstring.h: Likewise. | |
19835 | * script/lua/lapi.h: Likewise. | |
19836 | * script/lua/lcode.h: Likewise. | |
19837 | * script/lua/luaconf.h: Likewise. | |
19838 | ||
cb8a2c38 | 19839 | 2009-09-26 Colin Watson <cjwatson@ubuntu.com> |
19840 | ||
19841 | * docs/grub.texi (Command-line and menu entry commands): Document | |
19842 | date and echo commands. | |
19843 | ||
6b9b6276 | 19844 | 2009-09-24 Pavel Roskin <proski@gnu.org> |
19845 | ||
19846 | * include/grub/kernel.h (struct grub_module_header): Remove | |
19847 | `grub_module_header_types'. Make `type' unsigned. Make `size' | |
19848 | 32-bit on all platforms. | |
19849 | * util/elf/grub-mkimage.c (load_modules): Treat `type' as an | |
19850 | 8-bit field. Use grub_host_to_target32() for `size'. | |
19851 | * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise. | |
19852 | * util/i386/pc/grub-mkimage.c (generate_image): Likewise. | |
19853 | * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise. | |
19854 | ||
4e5a02a7 | 19855 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
19856 | ||
19857 | Fix "lost keypress" bug in at_keyboard. | |
19858 | ||
19859 | * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function. | |
19860 | Checks for readyness of input buffer (without flushing it). | |
19861 | (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather | |
19862 | than grub_at_keyboard_getkey_noblock() for `checkkey' struct member. | |
19863 | ||
c6dcedf6 | 19864 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
19865 | ||
19866 | * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific | |
19867 | size check within GRUB_MACHINE_PCBIOS section. | |
19868 | ||
74c958b1 | 19869 | 2009-09-24 Robert Millan <rmh.grub@aybabtu.com> |
19870 | ||
19871 | * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate | |
19872 | return value. | |
19873 | * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate | |
19874 | KEYBOARD_ISREADY check. | |
19875 | (grub_at_keyboard_checkkey): Rename to ... | |
19876 | (grub_at_keyboard_getkey_noblock): ... this. Update all users. | |
19877 | Remove gratuitous cast. | |
19878 | ||
ff420223 | 19879 | 2009-09-23 Colin Watson <cjwatson@ubuntu.com> |
19880 | ||
19881 | * configure.ac: Call AC_PROG_MKDIR_P. | |
19882 | * Makefile.in (docs/stamp-vti): Create docs directory. Create | |
19883 | version.texi in $(builddir) rather than $(srcdir). | |
19884 | (docs/grub.info): Create docs directory. Prepend $(builddir)/docs | |
19885 | to makeinfo's @include search path. | |
19886 | ||
d96875df | 19887 | 2009-09-23 Felix Zielcke <fzielcke@z-51.de> |
19888 | ||
19889 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*' | |
19890 | ||
9b3f8365 | 19891 | 2009-09-23 Felix Zielcke <fzielcke@z-51.de> |
19892 | ||
19893 | * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support | |
19894 | for `*.dpkg-new'. | |
19895 | ||
c44c90db | 19896 | 2009-09-21 Colin Watson <cjwatson@ubuntu.com> |
19897 | ||
19898 | Build info documentation. Some code borrowed from Automake. | |
19899 | ||
19900 | * configure.ac: Check for makeinfo. | |
19901 | * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables. | |
19902 | (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and | |
19903 | docs/version.texi. | |
19904 | (MOSTLYCLEANFILES): Add vti.tmp. | |
19905 | (docs/version.texi, docs/stamp-vti): Update automatically. | |
19906 | (docs/grub.info): Build info documentation. Use --force and ignore | |
19907 | errors for now. | |
19908 | (all-local): Add $(INFOS). | |
19909 | (install-local): Install info files. | |
19910 | (uninstall): Uninstall info files. | |
19911 | * docs/version.texi: Remove from revision control. This file is | |
19912 | automatically generated on build now. | |
19913 | * gendistlist.sh: Add `*.info'. | |
19914 | ||
e0b37bb5 | 19915 | 2009-09-21 Felix Zielcke <fzielcke@z-51.de> |
19916 | ||
19917 | * kern/term.c: Fix indentation. | |
19918 | ||
5a78865b | 19919 | 2009-09-21 Felix Zielcke <fzielcke@z-51.de> |
19920 | ||
19921 | * util/hostdisk.c: Fix a comment. | |
19922 | ||
dace7e8a | 19923 | 2009-09-20 Robert Millan <rmh.grub@aybabtu.com> |
19924 | ||
19925 | Fix regression introduced in r2539. | |
19926 | ||
19927 | * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61 | |
19928 | to 0xA1. | |
19929 | ||
a83d079b | 19930 | 2009-09-19 Colin Watson <cjwatson@ubuntu.com> |
19931 | ||
19932 | * util/grub.d/30_os-prober.in: Don't throw away stderr from | |
4cbbccec | 19933 | os-prober. Under normal operation, it does not print anything to |
19934 | stderr; if it does, we need to debug it, and throwing away stderr | |
19935 | makes that excessively difficult. | |
a83d079b | 19936 | |
be94a509 | 19937 | 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com> |
19938 | ||
19939 | * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error. | |
19940 | ||
63f745e8 | 19941 | 2009-09-16 Robert Millan <rmh.grub@aybabtu.com> |
19942 | ||
19943 | * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock | |
19944 | AC_LANG_PROGRAM from autoconf. | |
19945 | (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing | |
19946 | prototypes (fixes warning). | |
19947 | ||
19948 | * configure.ac: Add `-Werror' to TARGET_CFLAGS unless | |
19949 | `--disable-werror' was used. | |
19950 | ||
bbb2a70f | 19951 | 2009-09-16 Robert Millan <rmh.grub@aybabtu.com> |
19952 | ||
19953 | * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of | |
19954 | uninitialized `lastaddr'. | |
19955 | ||
77c24f1d | 19956 | 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com> |
19957 | ||
0f0b8c87 | 19958 | * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops. |
77c24f1d | 19959 | |
07197f23 | 19960 | 2009-09-14 Colin Watson <cjwatson@ubuntu.com> |
19961 | ||
19962 | * commands/test.c (get_fileinfo): Return immediately if | |
19963 | grub_fs_probe fails. | |
19964 | ||
dabf1798 | 19965 | 2009-09-14 José Martínez <xosemp@gmail.com> |
19966 | ||
19967 | * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file. | |
19968 | ||
d52109a7 | 19969 | 2009-09-14 Colin Watson <cjwatson@ubuntu.com> |
19970 | ||
19971 | * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober | |
19972 | output. | |
19973 | ||
56532179 | 19974 | 2009-09-13 Robert Millan <rmh.grub@aybabtu.com> |
19975 | ||
19976 | * configure.ac: Remove --enable-grub-pe2elf. Only build | |
19977 | grub-pe2elf when needed by the build system itself. | |
19978 | * conf/common.rmk: Remove $(enable_grub_pe2elf) check. | |
19979 | ||
8ef070f5 | 19980 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
19981 | ||
19982 | * configure.ac: Bump version to 1.97~beta3. | |
19983 | * docs/version.texi: Likewise. | |
19984 | ||
61229557 | 19985 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
19986 | ||
19987 | * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed | |
19988 | mode special handling (grub_vbe_bios_set_dac_palette_width() call) | |
19989 | from here ... | |
19990 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] | |
19991 | (grub_linux_setup_video): ... to here (with some adjustments). | |
19992 | ||
5c9f8d84 | 19993 | 2009-09-12 Robert Millan <rmh.grub@aybabtu.com> |
19994 | ||
19995 | Fix memory corruption issue (spotted by Colin Watson). | |
19996 | ||
19997 | * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug | |
19998 | causing returned size to be stored in an incorrect memory location. | |
19999 | Fix use of uninitialized value when storing the returned size. | |
20000 | ||
e8f5d6e9 | 20001 | 2009-09-12 Yves Blusseau <blusseau@zetam.org> |
20002 | ||
20003 | Change clean rules to properly remove files | |
20004 | ||
20005 | * genmk.rb: add new clean rules | |
20006 | * Makefile.in (clean): add the new targets | |
20007 | (mostlyclean): likewise | |
20008 | ||
cda2a409 | 20009 | 2009-09-11 Colin Watson <cjwatson@ubuntu.com> |
20010 | ||
20011 | * include/grub/ntfs.h (struct grub_fshelp_node): Change `size' | |
20012 | to grub_uint64_t. | |
20013 | * fs/ntfs.c (init_file): Understand 64-bit sizes for | |
20014 | non-resident files. | |
20015 | ||
86695375 | 20016 | 2009-09-11 Colin Watson <cjwatson@ubuntu.com> |
20017 | ||
20018 | * configure.ac: Don't look for help2man when cross-compiling. Fixes | |
20019 | part of bug #27349. | |
20020 | ||
8aa1541a | 20021 | 2009-09-10 Felix Zielcke <fzielcke@z-51.de> |
20022 | ||
20023 | * util/grub-mkconfig.in: Make the created config mode 400 and | |
20024 | print a warning if it fails. | |
20025 | ||
48d9bb0a | 20026 | 2009-09-10 Robert Millan <rmh.grub@aybabtu.com> |
20027 | ||
20028 | * util/grub.d/40_custom.in: Ask user to type custom entries below | |
20029 | comment, rather than below 'exec tail' line. | |
20030 | ||
3b0521be | 20031 | 2009-09-10 Colin Watson <cjwatson@ubuntu.com> |
20032 | ||
20033 | * util/grub.d/40_custom.in: Make sure that the explanatory text is | |
20034 | visible in grub.cfg. | |
20035 | ||
50051d55 | 20036 | 2009-09-10 Colin Watson <cjwatson@ubuntu.com> |
20037 | ||
20038 | * util/grub.d/40_custom.in: Make it a little clearer how to use this | |
20039 | file. | |
20040 | ||
c0d34387 | 20041 | 2009-09-10 Felix Zielcke <fzielcke@z-51.de> |
20042 | ||
20043 | * docs/grub.cfg: Add an example menu entry for memtest86+. | |
20044 | ||
80a608f3 | 20045 | 2009-09-09 Felix Zielcke <fzielcke@z-51.de> |
20046 | ||
a2094832 | 20047 | * config.guess: Update to latest version from config git. |
80a608f3 | 20048 | * config.sub: Likewise. |
20049 | ||
99423078 | 20050 | 2009-09-08 Colin Watson <cjwatson@ubuntu.com> |
20051 | ||
20052 | * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in | |
20053 | unknown-command case. Fixes bug #27320. | |
20054 | ||
44454e4c | 20055 | 2009-09-08 Felix Zielcke <fzielcke@z-51.de> |
20056 | ||
20057 | * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try | |
20058 | `help' if the command exists. | |
20059 | ||
e30d87ad | 20060 | 2009-09-06 Robert Millan <rmh.grub@aybabtu.com> |
20061 | ||
20062 | * INSTALL: Require GCC 4.1.3 or later. | |
20063 | ||
9a86f1ec | 20064 | 2009-09-06 Yves Blusseau <blusseau@zetam.org> |
20065 | ||
20066 | * Makefile.in (RMKFILES): add i386-qemu.rmk | |
20067 | (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in | |
20068 | $(srcdir)/stamp-h.in | |
20069 | ||
7f26d466 | 20070 | 2009-09-05 Robert Millan <rmh.grub@aybabtu.com> |
20071 | ||
20072 | * util/grub-probe.c (probe): Comment out buggy codepath, which | |
20073 | was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This | |
20074 | should be re-enabled after 1.97. | |
20075 | ||
3a613259 | 20076 | 2009-09-05 Felix Zielcke <fzielcke@z-51.de> |
20077 | ||
20078 | * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list | |
20079 | find searches for. | |
20080 | ||
197f76c7 | 20081 | 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com> |
20082 | ||
20083 | * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove | |
20084 | unnecessary calls to grub_error. | |
20085 | ||
70ba68ce | 20086 | 2009-09-04 Colin Watson <cjwatson@ubuntu.com> |
20087 | ||
20088 | * NEWS: Mention `keystatus' and Unicode fonts. | |
20089 | ||
4ff0d7a4 | 20090 | 2009-09-04 Robert Millan <rmh.grub@aybabtu.com> |
20091 | ||
20092 | * configure.ac: Bump version to 1.97~beta2. | |
20093 | * docs/version.texi: Likewise. | |
20094 | ||
77c55a87 | 20095 | 2009-09-03 Colin Watson <cjwatson@ubuntu.com> |
20096 | ||
20097 | * configure.ac: By default, GCC 4.4 generates .eh_frame sections | |
20098 | containing unwind information in some cases where it previously did | |
20099 | not. Use -fno-dwarf2-cfi-asm if available to restore the old | |
20100 | behaviour. See http://patchwork.kernel.org/patch/8555/ for related | |
20101 | discussion. | |
20102 | ||
f79572cd | 20103 | 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org> |
20104 | ||
20105 | Embedding loadenv module into grub-emu | |
20106 | ||
20107 | * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and | |
20108 | commands/loadenv.c | |
20109 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise | |
20110 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise | |
20111 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
20112 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
20113 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise | |
20114 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise | |
20115 | ||
93a81088 | 20116 | 2009-09-03 Magnus Granberg <zorry@ume.nu> |
20117 | ||
20118 | * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler | |
20119 | include -fPIE in the default specs. | |
20120 | * configure.ac: Check if pie_possible is yes and add -fno-PIE | |
20121 | to TARGET_CFLAGS. | |
20122 | ||
160034b2 | 20123 | 2009-09-03 Felix Zielcke <fzielcke@z-51.de> |
20124 | ||
20125 | * INSTALL: Note that GNU Bison 2.3 or later is required. | |
20126 | ||
087c07c4 | 20127 | 2009-09-03 Colin Watson <cjwatson@ubuntu.com> |
20128 | ||
20129 | * kern/i386/pc/startup.S: Fix typo. | |
20130 | ||
cbf978c0 | 20131 | 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com> |
20132 | ||
20133 | * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style | |
20134 | according to GCS. | |
20135 | ||
20136 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> | |
f0910644 | 20137 | |
20138 | * docs/grub.texi (Naming convention): Describe one-based partition | |
20139 | numbering. | |
20140 | (Device syntax): Likewise. | |
20141 | (File name syntax): Likewise. | |
20142 | (Block list syntax): Likewise. | |
20143 | (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than | |
20144 | menu.lst. | |
20145 | (File name syntax): Likewise. | |
20146 | (Command-line and menu entry commands): Document acpi, blocklist, | |
20147 | crc, export, insmod, keystatus, ls, set, and unset commands. | |
20148 | ||
f3e8cdfd | 20149 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> |
20150 | ||
20151 | * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary | |
20152 | to avoid implying that only one of --shift, --ctrl, or --alt may be | |
20153 | used. | |
20154 | ||
c0bc232b | 20155 | 2009-09-02 Colin Watson <cjwatson@ubuntu.com> |
20156 | ||
20157 | * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro | |
20158 | rather than comparing against S_IFREG, which will almost never work. | |
20159 | ||
aa0f752d | 20160 | 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com> |
20161 | ||
20162 | * commands/loadenv.c (check_blocklists): Fix off-by-one error. | |
20163 | (write_blocklists): Likewise. | |
20164 | ||
ecb3166a | 20165 | 2009-09-01 Colin Watson <cjwatson@ubuntu.com> |
20166 | ||
20167 | * script/lua/grub_lua.h (fputs): Supply a format string as the first | |
20168 | argument to grub_printf. | |
20169 | ||
c403a125 | 20170 | 2009-09-01 Felix Zielcke <fzielcke@z-51.de> |
31aba781 | 20171 | |
20172 | * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with | |
c403a125 | 20173 | non GNU test. |
31aba781 | 20174 | |
b5e7312c | 20175 | 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
20176 | ||
20177 | * kern/file.c (grub_file_read): Spelling fix | |
20178 | ||
fe00f472 | 20179 | 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com> |
20180 | ||
20181 | * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix | |
20182 | loading of headers in some cases. | |
20183 | ||
cc55302e | 20184 | 2009-08-30 Robert Millan <rmh.grub@aybabtu.com> |
20185 | ||
20186 | * configure.ac: Bump version to 1.97~beta1. | |
20187 | * docs/version.texi: Likewise. | |
20188 | ||
5c90cdd2 | 20189 | 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com> |
64bf71d0 | 20190 | |
20191 | * include/grub/i386/xnu.h: Add license header. | |
20192 | include grub/err.h explicitly. | |
20193 | ||
c90edae4 | 20194 | 2009-08-29 Robert Millan <rmh.grub@aybabtu.com> |
20195 | ||
20196 | * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them | |
20197 | to `ufs' in the vfs.root.mountfrom kernel parameter. | |
20198 | ||
d8888b5c | 20199 | 2009-08-29 Robert Millan <rmh.grub@aybabtu.com> |
20200 | ||
20201 | * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'. | |
20202 | ||
20203 | [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization | |
20204 | value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR). | |
20205 | ||
20206 | [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using | |
20207 | `ARRAY_SIZE' macro. | |
20208 | ||
6f07b921 | 20209 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
20210 | ||
20211 | * kern/file.c (grub_file_read): Check offset. | |
20212 | * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check. | |
20213 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
20214 | * fs/ntfs.c (grub_ntfs_read): Likewise. | |
20215 | * fs/reiserfs.c (grub_reiserfs_read): Likewise. | |
20216 | * fs/minix.c (grub_minix_read_file): Correct offset check. | |
20217 | * fs/ufs.c (grub_ufs_read_file): Likewise. | |
20218 | ||
b4f34077 | 20219 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
20220 | ||
20221 | * term/i386/pc/console.c (bios_data_area): Cast | |
20222 | GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly. | |
20223 | ||
e7c69859 | 20224 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
20225 | ||
20226 | 1-bit optimised blitters. | |
20227 | ||
20228 | * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New | |
20229 | prototype. | |
20230 | (grub_video_fbblit_replace_24bit_1bit): Likewise. | |
20231 | (grub_video_fbblit_replace_16bit_1bit): Likewise. | |
20232 | (grub_video_fbblit_replace_8bit_1bit): Likewise. | |
20233 | (grub_video_fbblit_blend_XXXA8888_1bit): Likewise. | |
20234 | (grub_video_fbblit_blend_XXX888_1bit): Likewise. | |
20235 | (grub_video_fbblit_blend_XXX565_1bit): Likewise. | |
20236 | * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New | |
20237 | function. | |
20238 | (grub_video_fbblit_replace_24bit_1bit): Likewise. | |
20239 | (grub_video_fbblit_replace_16bit_1bit): Likewise. | |
20240 | (grub_video_fbblit_replace_8bit_1bit): Likewise. | |
20241 | (grub_video_fbblit_blend_XXXA8888_1bit): Likewise. | |
20242 | (grub_video_fbblit_blend_XXX888_1bit): Likewise. | |
20243 | (grub_video_fbblit_blend_XXX565_1bit): Likewise. | |
20244 | * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters | |
20245 | when possible. | |
20246 | * video/video.c (grub_video_get_blit_format): Return | |
20247 | GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1. | |
20248 | ||
a57da43f | 20249 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
20250 | ||
20251 | * normal/cmdline.c (grub_cmdline_get): Supply a format string as | |
20252 | the first argument to grub_printf. | |
20253 | ||
4cbe67e5 | 20254 | 2009-08-28 Colin Watson <cjwatson@ubuntu.com> |
20255 | 2009-08-28 Robert Millan <rmh.grub@aybabtu.com> | |
20256 | ||
20257 | Add `getkeystatus' terminal method. Add a new `keystatus' command | |
20258 | to query it. | |
20259 | ||
20260 | * include/grub/term.h (GRUB_TERM_STATUS_SHIFT, | |
20261 | GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for | |
20262 | modifier key bitmasks. | |
20263 | (struct grub_term_input): Add `getkeystatus' member. | |
20264 | (grub_getkeystatus): Add prototype. | |
20265 | * kern/term.c (grub_getkeystatus): New function. | |
20266 | ||
20267 | * include/grub/i386/pc/memory.h | |
20268 | (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro. | |
20269 | (struct grub_machine_bios_data_area): Define necessary parts of BIOS | |
20270 | Data Area layout. | |
20271 | * term/i386/pc/console.c (grub_console_getkeystatus): New function. | |
20272 | (grub_console_term_input): Set `getkeystatus' member. | |
20273 | * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol | |
20274 | constants. | |
20275 | (grub_usb_keyboard_getreport): Likewise. | |
20276 | (grub_usb_keyboard_checkkey): Likewise. | |
20277 | (grub_usb_keyboard_getkeystatus): New function. | |
20278 | (grub_usb_keyboard_term): Set `getkeystatus' member. | |
20279 | ||
20280 | * commands/keystatus.c: New file. | |
20281 | * conf/common.rmk (pkglib_MODULES): Add keystatus.mod. | |
20282 | (keystatus_mod_SOURCES): New variable. | |
20283 | (keystatus_mod_CFLAGS): Likewise. | |
20284 | (keystatus_mod_LDFLAGS): Likewise. | |
20285 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add | |
20286 | commands/keystatus.c. | |
20287 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
20288 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20289 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
20290 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20291 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20292 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
4cbe67e5 | 20293 | |
6e2a9085 | 20294 | 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com> |
20295 | ||
20296 | Split befs.mod and afs.mod into *_be.mod and *.mod | |
20297 | ||
20298 | * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c. | |
20299 | (grub_fstest_SOURCES): Likewise. | |
20300 | (pkglib_MODULES): Add afs_be.mod and befs_be.mod. | |
20301 | (afs_be_mod_SOURCES): New variable. | |
20302 | (afs_be_mod_CFLAGS): Likewise. | |
20303 | (afs_be_mod_LDFLAGS): Likewise. | |
20304 | (befs_be_mod_SOURCES): Likewise. | |
20305 | (befs_be_mod_CFLAGS): Likewise. | |
20306 | (befs_be_mod_LDFLAGS): Likewise. | |
20307 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c. | |
20308 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
20309 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20310 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
20311 | (grub_emu_SOURCES): Likewise. | |
20312 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20313 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20314 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
20315 | * fs/afs_be.c: New file. | |
20316 | * fs/befs_be.c: New file. | |
20317 | * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition. | |
20318 | (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX. | |
20319 | (U16): Replaced with ... | |
20320 | (grub_afs_to_cpu16): ...this. All users updated. | |
20321 | (U32): Replaced with ... | |
20322 | (grub_afs_to_cpu32): ...this. All users updated. | |
20323 | (U64): Replaced with ... | |
20324 | (grub_afs_to_cpu64): ...this. All users updated. | |
20325 | (GRUB_AFS_BO_LITTLE_ENDIAN): Remove. | |
20326 | (GRUB_AFS_BO_BIG_ENDIAN): Likewise. | |
ad8ea1f4 | 20327 | (grub_afs_validate_sblock): Check only one endianness. |
6e2a9085 | 20328 | (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to .. |
20329 | (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this. | |
20330 | (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to .. | |
20331 | (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this. | |
20332 | (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to .. | |
20333 | (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this. | |
20334 | (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to .. | |
20335 | (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this. | |
20336 | ||
32a71655 | 20337 | 2009-08-26 Bean <bean123ch@gmail.com> |
20338 | ||
20339 | * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support | |
20340 | 64-bit number. | |
20341 | (GRUB_XFS_FSB_TO_BLOCK): Likewise. | |
20342 | (grub_xfs_inode_block): Change return type to grub_uint64_t. | |
20343 | (grub_xfs_read_inode): Change type of block to grub_uint64_t. | |
20344 | ||
552bf6c5 | 20345 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20346 | ||
20347 | NetBSD memory map support. | |
20348 | ||
20349 | * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition. | |
20350 | (grub_netbsd_btinfo_mmap_header): New structure. | |
20351 | (grub_netbsd_btinfo_mmap_entry): Likewise. | |
20352 | * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map. | |
20353 | ||
1ae2078c | 20354 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20355 | ||
20356 | Enable bsd.mod on coreboot. | |
20357 | ||
20358 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod. | |
20359 | (bsd_mod_SOURCES): New variable. | |
20360 | (bsd_mod_CFLAGS): Likewise. | |
20361 | (bsd_mod_LDFLAGS): Likewise. | |
20362 | (bsd_mod_ASFLAGS): Likewise. | |
20363 | * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes. | |
20364 | (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff. | |
20365 | ||
beefc598 | 20366 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20367 | ||
20368 | Cleanup NetBSD root support. | |
20369 | ||
20370 | * loader/i386/bsd.c (grub_netbsd_boot): Remove call to | |
20371 | grub_bsd_get_device. | |
20372 | Fix typo. | |
20373 | ||
3b76e68b | 20374 | 2009-08-25 Felix Zielcke <fzielcke@z-51.de> |
20375 | ||
20376 | * util/grub.d/00_header.in: Move check for the video backend of | |
20377 | gfxterm from here ... | |
20378 | * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's | |
20379 | a suitable video backend. | |
20380 | ||
aea664ea | 20381 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20382 | ||
20383 | Fix breakage in grub-setup. | |
20384 | ||
20385 | * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of | |
20386 | "msdos_partition_map". | |
20387 | ||
ff747d50 | 20388 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20389 | ||
20390 | Fix breakage in normal/auth.c. | |
20391 | ||
20392 | * normal/auth.c (grub_iswordseparator): New function. | |
20393 | ||
e7e1f93f | 20394 | 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> |
20395 | ||
20396 | Authentication support. | |
20397 | ||
20398 | * commands/password.c: New file. | |
20399 | * conf/common.rmk (pkglib_MODULES): Add password.mod. | |
20400 | (password_mod_SOURCES): New variable. | |
20401 | (password_mod_CFLAGS): Likewise. | |
20402 | (password_mod_LDFLAGS): Likewise. | |
20403 | (normal_mod_SOURCES): Add normal/auth.c. | |
20404 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and | |
20405 | normal/auth.c. | |
20406 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
20407 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20408 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
20409 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20410 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20411 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
20412 | * include/grub/auth.h: New file. | |
20413 | * include/grub/err.h (grub_err_t): New enum value | |
20414 | GRUB_ERR_ACCESS_DENIED. | |
20415 | * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and | |
20416 | 'users'. | |
20417 | * include/grub/normal.h (grub_cmdline_get): New argument 'history'. | |
20418 | * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All | |
20419 | users updated. | |
20420 | * normal/auth.c: New file. | |
20421 | * normal/main.c (grub_normal_add_menu_entry): Handle --users option. | |
20422 | (grub_cmdline_run): Don't allow to go to command line without | |
20423 | authentication. | |
20424 | * normal/menu.c (grub_menu_execute_entry): Handle restricted entries. | |
20425 | * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing | |
20426 | menuentry without superuser rights. | |
20427 | * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if | |
20428 | user isn't a superuser. | |
20429 | ||
70f1161d | 20430 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20431 | ||
20432 | Save space by inlining misc.c functions. | |
20433 | ||
20434 | * kern/misc.c (grub_iswordseparator): Made static. | |
20435 | * kern/misc.c (grub_strcat): Moved from here ... | |
20436 | * include/grub/misc.h (grub_strcat): ... here. Inlined. | |
20437 | * kern/misc.c (grub_strncat): Moved from here ... | |
20438 | * include/grub/misc.h (grub_strncat): ... here. Inlined. | |
20439 | * kern/misc.c (grub_strcasecmp): Moved from here ... | |
20440 | * include/grub/misc.h (grub_strcasecmp): ... here. Inlined. | |
20441 | * kern/misc.c (grub_strncasecmp): Moved from here ... | |
20442 | * include/grub/misc.h (grub_strncasecmp): ... here. Inlined. | |
20443 | * kern/misc.c (grub_isalpha): Moved from here ... | |
20444 | * include/grub/misc.h (grub_isalpha): ... here. Inlined. | |
20445 | * kern/misc.c (grub_isdigit): Moved from here ... | |
20446 | * include/grub/misc.h (grub_isdigit): ... here. Inlined. | |
20447 | * kern/misc.c (grub_isgraph): Moved from here ... | |
20448 | * include/grub/misc.h (grub_isgraph): ... here. Inlined. | |
20449 | * kern/misc.c (grub_tolower): Moved from here ... | |
20450 | * include/grub/misc.h (grub_tolower): ... here. Inlined. | |
20451 | ||
48e40bff | 20452 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20453 | ||
20454 | * script/sh/function.c (grub_script_function_find): Cut error message | |
20455 | not to flood terminal. | |
20456 | * script/sh/lexer.c (grub_script_yylex): Remove command line length | |
20457 | limit. | |
20458 | * script/sh/script.c (grub_script_arg_add): Duplicate string. | |
20459 | ||
c385bfc3 | 20460 | 2009-08-24 Colin Watson <cjwatson@ubuntu.com> |
20461 | ||
20462 | * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make | |
20463 | `report' grub_uint8_t *. | |
20464 | (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t. | |
20465 | Use a 50-millisecond timeout rather than just repeating | |
20466 | grub_usb_keyboard_getreport 50 times. | |
20467 | (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t. | |
20468 | ||
2d21e3e8 | 20469 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20470 | ||
20471 | Rename *_partition_map to part_* | |
20472 | ||
20473 | * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'. | |
20474 | * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'. | |
20475 | * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'. | |
20476 | * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'. | |
20477 | All users updated. | |
20478 | * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'. | |
20479 | All users updated. | |
20480 | * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'. | |
20481 | * util/grub-probe.c (probe_partmap): Don't transform partition name | |
20482 | to get module name. | |
20483 | ||
dd103c4e | 20484 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20485 | ||
20486 | Fix OpenBSD and NetBSD support. | |
20487 | ||
20488 | * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve | |
20489 | memory address conflict. | |
20490 | (OPENBSD_MMAP_ACPI): New definition. | |
20491 | (OPENBSD_MMAP_NVS): Likewise. | |
20492 | * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI | |
20493 | and OPENBSD_MMAP_NVS. | |
20494 | Add memory map terminator | |
20495 | Explicit cast when calling grub_unix_real_boot. | |
ad8ea1f4 | 20496 | (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot. |
dd103c4e | 20497 | |
16c84d74 | 20498 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20499 | ||
20500 | Let user specify NetBSD root device. | |
20501 | ||
20502 | * loader/i386/bsd.c (netbsd_root): New variable. | |
20503 | (netbsd_opts): New option 'root'. | |
20504 | (NETBSD_ROOT_ARG): New macro. | |
20505 | (grub_netbsd_boot): Use 'netbsd_root'. | |
20506 | (grub_bsd_unload): Free 'netbsd_root'. | |
20507 | (grub_cmd_netbsd): Fill 'netbsd_root'. | |
20508 | ||
adb29902 | 20509 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20510 | ||
20511 | Support for 64-bit NetBSD. | |
20512 | ||
20513 | * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry | |
20514 | point when booting non-FreeBSD. | |
20515 | ||
f5ae9f74 | 20516 | 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com> |
20517 | ||
20518 | Support --no-smp and --no-acpi for NetBSD. | |
20519 | ||
20520 | * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition. | |
20521 | (NETBSD_AB_NOACPI): Likewise. | |
20522 | * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi. | |
20523 | (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI. | |
20524 | ||
de74f136 | 20525 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
20526 | ||
20527 | * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file | |
20528 | errors. | |
20529 | (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file | |
20530 | errors. Call grub_error when needed. | |
20531 | ||
e9a925da | 20532 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
20533 | ||
20534 | * commands/search.c (search_fs): Try searching without autoload first. | |
20535 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load | |
20536 | filesystem module explicitly for faster booting. | |
20537 | ||
5174302b | 20538 | 2009-08-23 Colin Watson <cjwatson@ubuntu.com> |
20539 | ||
20540 | * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER. | |
20541 | ||
c8c80635 | 20542 | 2009-08-23 Colin Watson <cjwatson@ubuntu.com> |
20543 | ||
20544 | * util/grub.d/30_os-prober.in: Disable os-prober if | |
20545 | `GRUB_DISABLE_OS_PROBER' was set to true. | |
20546 | ||
71acf5e5 | 20547 | 2009-08-23 Robert Millan <rmh.grub@aybabtu.com> |
20548 | ||
20549 | * partmap/pc.c: Rename to ... | |
20550 | * partmap/msdos.c: ... this. Update all users. | |
20551 | (grub_pc_partition_map): Rename to ... | |
20552 | (grub_msdos_partition_map): ... this. Update all users. | |
20553 | ||
20554 | * parttool/pcpart.c: Rename to ... | |
20555 | * parttool/msdospart.c: ... this. Update all users. | |
20556 | ||
20557 | * include/grub/pc_partition.h: Rename to ... | |
20558 | * include/grub/msdos_partition.h: ... this. Update all users. | |
20559 | (grub_pc_partition_bsd_entry): Rename to ... | |
20560 | (grub_msdos_partition_bsd_entry): ... this. Update all users. | |
20561 | (grub_pc_partition_disk_label): Rename to ... | |
20562 | (grub_msdos_partition_disk_label): ... this. Update all users. | |
20563 | (grub_pc_partition_entry): Rename to ... | |
20564 | (grub_msdos_partition_entry): ... this. Update all users. | |
20565 | (grub_pc_partition_mbr): Rename to ... | |
20566 | (grub_msdos_partition_mbr): ... this. Update all users. | |
20567 | (grub_pc_partition): Rename to ... | |
20568 | (grub_msdos_partition): ... this. Update all users. | |
20569 | (grub_pc_partition_is_empty): Rename to ... | |
20570 | (grub_msdos_partition_is_empty): ... this. Update all users. | |
20571 | (grub_pc_partition_is_extended): Rename to ... | |
20572 | (grub_msdos_partition_is_extended): ... this. Update all users. | |
20573 | (grub_pc_partition_is_bsd): Rename to ... | |
20574 | (grub_msdos_partition_is_bsd): ... this. Update all users. | |
20575 | ||
20576 | * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS) | |
20577 | (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS) | |
20578 | (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS) | |
20579 | (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS) | |
20580 | (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS) | |
20581 | (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS) | |
20582 | (gpt_mod_LDFLAGS): Rename to ... | |
20583 | (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS) | |
20584 | (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS) | |
20585 | (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS) | |
20586 | (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS) | |
20587 | (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS) | |
20588 | (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS) | |
20589 | (part_gpt_mod_LDFLAGS): ... this. | |
20590 | (pkglib_MODULES): Prefix partition modules with `part_'. Rename | |
20591 | `pcpart.mod' to `msdospart.mod'. | |
20592 | (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename | |
20593 | to ... | |
20594 | (msdospart_mod_SOURCES, msdospart_mod_CFLAGS) | |
20595 | (msdospart_mod_LDFLAGS): ... this. | |
20596 | ||
c11fded5 | 20597 | 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> |
20598 | ||
20599 | * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd. | |
20600 | (openbsd_opts): Likewise. | |
20601 | (netbsd_opts): Likewise. | |
20602 | (freebsd_flags): Added 0 terminator. | |
20603 | (openbsd_flags): Likewise. | |
20604 | (netbsd_flags): Likewise. | |
20605 | (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated. | |
20606 | (grub_cmd_freebsd): Transformed into extended command. | |
20607 | (grub_cmd_openbsd): Likewise. | |
20608 | (grub_cmd_netbsd): Likewise. | |
20609 | (cmd_freebsd): Changed type to grub_extcmd_t. | |
20610 | (cmd_openbsd): Likewise. | |
20611 | (cmd_netbsd): Likewise. | |
20612 | (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and | |
20613 | grub_cmd_openbsd as extended commands. | |
20614 | (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd, | |
20615 | cmd_netbsd and cmd_openbsd | |
20616 | ||
11d1c769 | 20617 | 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com> |
20618 | ||
20619 | * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy. | |
20620 | ||
7a9094e5 | 20621 | 2009-08-21 Pavel Roskin <proski@gnu.org> |
20622 | ||
5496c37e | 20623 | * Makefile.in (install-local): When checking if a file is in the |
20624 | build directory, use "test -e" to detect symlinks. | |
20625 | ||
7a9094e5 | 20626 | * Makefile.in (install-local): Remove all files in |
20627 | $(DESTDIR)$(pkglibdir) before installing new files there. | |
20628 | ||
e53cea11 | 20629 | 2009-08-18 Felix Zielcke <fzielcke@z-51.de> |
20630 | ||
20631 | * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use | |
20632 | grub-mkelfimage. | |
20633 | ||
9aced544 | 20634 | 2009-08-18 Felix Zielcke <fzielcke@z-51.de> |
20635 | ||
20636 | * util/grub-mkconfig.in: Don't use gfxterm by default if not | |
20637 | explicitly specified by the user. | |
20638 | ||
b7da6bab | 20639 | 2009-08-18 Pavel Roskin <proski@gnu.org> |
20640 | ||
20641 | * include/grub/fbfill.h (struct grub_video_fbrender_target): Use | |
20642 | grub_uint8_t pointer for data. | |
20643 | * include/grub/fbutil.h (struct grub_video_fbblit_info): | |
20644 | Likewise. | |
20645 | * video/fb/fbutil.c: Remove unnecessary casts. | |
20646 | ||
19f1b335 | 20647 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
20648 | ||
20649 | VBE cleanup. | |
20650 | ||
20651 | * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate). | |
20652 | (grub_vbe_set_video_mode): Save active mode info | |
20653 | only after setting the mode. | |
20654 | (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as | |
20655 | second argument. | |
20656 | ||
2f467aa9 | 20657 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
20658 | ||
20659 | Rename variables for clarity. | |
20660 | ||
20661 | * video/i386/pc/vbe.c (active_mode_info): Renamed to ... | |
20662 | (active_vbe_mode_info): ... this. All users updated. | |
20663 | (framebuffer): Rename 'active_mode' to 'active_vbe_mode'. | |
20664 | All users updated. | |
20665 | (initial_mode): Rename to ... | |
20666 | (initial_vbe_mode): ... this. All users updated. | |
20667 | (mode_in_use): Rename to .. | |
20668 | (vbe_mode_in_use): ... this. All users updated. | |
20669 | (mode_list): Rename to .. | |
20670 | (vbe_mode_list): ... this. All users updated. | |
20671 | (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to | |
20672 | 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'. | |
20673 | (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and | |
20674 | 'mode_list_size' to 'vbe_mode_list_size'. | |
20675 | (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info', | |
20676 | 'best_mode_info' to 'best_vbe_mode_info' and | |
20677 | 'best_mode' to 'best_vbe_mode' | |
20678 | ||
6025fcd7 | 20679 | 2009-08-17 Michal Suchanek <hramrach@centrum.cz> |
20680 | ||
20681 | Remove duplicate grub_video_fb_get_video_ptr. | |
20682 | ||
20683 | * include/grub/fbutil.h (get_data_ptr): Rename to ... | |
20684 | (grub_video_fb_get_video_ptr): ... this. | |
20685 | * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed. | |
20686 | * video/fb/fbutil.c: Add comment about addressing. | |
20687 | (get_data_ptr): Rename to ... | |
20688 | (grub_video_fb_get_video_ptr): ... this. All users updated. | |
20689 | * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove. | |
20690 | ||
cc8c6faf | 20691 | 2009-08-17 Robert Millan <rmh.grub@aybabtu.com> |
20692 | ||
20693 | * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the | |
20694 | grub_dprintf() that was just added. | |
20695 | ||
08aa61f0 | 20696 | 2009-08-17 Robert Millan <rmh.grub@aybabtu.com> |
20697 | ||
20698 | * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT) | |
20699 | (DEFAULT_VIDEO_MODE): Remove macros. | |
20700 | (grub_linux_boot): Remove assumption that Linux has FB support, | |
20701 | and use "text" as default video mode. | |
20702 | ||
7cef4f75 | 20703 | 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com> |
20704 | ||
20705 | * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into | |
20706 | grub_dprintf. | |
20707 | * fs/fat.c (grub_fat_read_data): Likewise. | |
20708 | ||
e1f39873 | 20709 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
20710 | ||
20711 | * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to | |
20712 | payload. | |
20713 | (grub_module): Likewise. | |
20714 | ||
c166d79e | 20715 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
20716 | ||
20717 | * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and | |
20718 | mbi->cmdline but free playground. | |
20719 | ||
c60cee8e | 20720 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
20721 | ||
20722 | Handle group offset on UFS1. | |
20723 | ||
20724 | * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'. | |
20725 | (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask. | |
20726 | ||
c0d8b5d4 | 20727 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
20728 | ||
20729 | Split ufs.mod into ufs1.mod and ufs2.mod. | |
20730 | ||
20731 | * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c. | |
20732 | (grub_fstest_SOURCES): Likewise. | |
20733 | (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod. | |
20734 | (ufs_mod_SOURCES): Remove. | |
20735 | (ufs_mod_CFLAGS): Likewise. | |
20736 | (ufs_mod_LDFLAGS): Likewise. | |
20737 | (ufs1_mod_SOURCES): New variable. | |
20738 | (ufs1_mod_CFLAGS): Likewise. | |
20739 | (ufs1_mod_LDFLAGS): Likewise. | |
25fbd77a | 20740 | (ufs2_mod_SOURCES): New variable. |
20741 | (ufs2_mod_CFLAGS): Likewise. | |
20742 | (ufs2_mod_LDFLAGS): Likewise. | |
c0d8b5d4 | 20743 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c. |
20744 | * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES): | |
20745 | Likewise. | |
20746 | (grub_emu_SOURCES): Likewise. | |
20747 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20748 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
20749 | (grub_setup_SOURCES): Likewise. | |
20750 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
20751 | * conf/sparc64.rmk (grub_emu_SOURCES): Likewise. | |
20752 | (grub_setup_SOURCES): Likewise. | |
20753 | * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES): | |
20754 | Likewise. | |
20755 | * fs/ufs2.c: New file. | |
20756 | * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor. | |
20757 | ||
d3539132 | 20758 | 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> |
20759 | ||
20760 | Framebuffer split. | |
20761 | ||
20762 | * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video | |
20763 | subsystem at the end. | |
20764 | * conf/common.rmk (pkglib_MODULES): Add video_fb.mod. | |
20765 | (video_fb_mod_SOURCES): New variable. | |
20766 | (video_fb_mod_CFLAGS): Likewise. | |
20767 | (video_fb_mod_LDFLAGS): Likewise. | |
20768 | * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c, | |
20769 | video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c. | |
20770 | * video/i386/pc/vbeblit.c: Moved from here ... | |
20771 | * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'. | |
20772 | * video/i386/pc/vbefill.c: Moved from here ... | |
20773 | * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'. | |
20774 | * video/i386/pc/vbeutil.c: Moved from here ... | |
20775 | * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'. | |
20776 | * include/grub/i386/pc/vbeblit.h: Moved from here ... | |
20777 | * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'. | |
20778 | * include/grub/i386/pc/vbefill.h: Moved from here ... | |
20779 | * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'. | |
20780 | * include/grub/i386/pc/vbeutil.h: Moved from here ... | |
20781 | * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'. | |
20782 | * include/grub/i386/pc/vbe.h: Moved framebuffer part ... | |
20783 | * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'. | |
20784 | * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed. | |
20785 | (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise. | |
20786 | (grub_video_adapter): Added 'get_info_and_fini'. | |
20787 | (grub_video_get_info_and_fini): New prototype. | |
20788 | (grub_video_set_mode): make modestring const char *. | |
20789 | * loader/i386/linux.c (grub_linux_setup_video): Use | |
20790 | grub_video_get_info_and_fini. | |
20791 | (grub_linux_boot): Move modesetting just before booting. | |
20792 | * loader/i386/pc/xnu.c (grub_xnu_set_video): Use | |
20793 | grub_video_get_info_and_fini. | |
20794 | * video/i386/pc/vbe.c: Moved framebuffer part ... | |
20795 | * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'. | |
20796 | * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use | |
20797 | grub_video_fbstd_colors and grub_video_fb_set_palette. | |
20798 | (grub_video_vbe_init): Clear 'framebuffer' variable and use | |
20799 | grub_video_fb_init. | |
20800 | (grub_video_vbe_fini): Use grub_video_fb_fini. | |
20801 | (grub_video_vbe_setup): Use framebuffer.render_target instead of | |
20802 | render_target and use grub_video_fb_set_active_render_target and | |
20803 | grub_video_fb_set_palette. | |
20804 | (grub_video_vbe_set_palette): Use grub_video_fb_set_palette. | |
20805 | (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport. | |
20806 | (grub_video_vbe_adapter): Use framebuffer. | |
20807 | * video/video.c (grub_video_get_info_and_fini): New function. | |
20808 | (grub_video_set_mode): Make modestring const char *. | |
20809 | (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these | |
20810 | values are already initialised. | |
20811 | ||
d404ee56 | 20812 | 2009-08-14 Pavel Roskin <proski@gnu.org> |
20813 | ||
20814 | * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate | |
20815 | ABS and APPLE_CC. | |
20816 | * boot/i386/pc/diskboot.S: Likewise. | |
20817 | * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code | |
20818 | sectors allow compilation on MacOSX. | |
20819 | * conf/i386-pc.rmk: Enable unconditional compilation of | |
20820 | lnxboot.img. | |
20821 | ||
9a10df16 | 20822 | 2009-08-13 Colin Watson <cjwatson@ubuntu.com> |
20823 | ||
20824 | * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT. | |
20825 | * util/grub.d/00_header.in: Enter interruptible sleep if | |
20826 | GRUB_HIDDEN_TIMEOUT is set. | |
20827 | ||
be3c9ca7 | 20828 | 2009-08-13 Yves Blusseau <blusseau@zetam.org> |
20829 | ||
20830 | * include/grub/symbol.h: Add the LOCAL macro. | |
20831 | * boot/i386/pc/boot.S: Use the LOCAL macro for all labels | |
20832 | starting with "L_". | |
20833 | ||
1f9e557e | 20834 | 2009-08-13 Pavel Roskin <proski@gnu.org> |
20835 | ||
9ca62843 | 20836 | * boot/i386/pc/boot.S: Remove ABS macro, it's not required by |
20837 | any modern compilers we support. | |
20838 | ||
1f9e557e | 20839 | * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC. |
20840 | Use local labels starting with "L_" so that Apple assembler | |
20841 | knows they are local. | |
20842 | ||
81623db6 | 20843 | 2009-08-10 Robert Millan <rmh.grub@aybabtu.com> |
20844 | ||
20845 | * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD) | |
20846 | (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ... | |
20847 | (bsd_kernel_types): ... this enum. | |
20848 | ||
20849 | * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module) | |
20850 | (grub_cmd_freebsd_module_elf): Abort with "You need to load the | |
20851 | kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE. | |
20852 | ||
20853 | (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv) | |
20854 | (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf) | |
20855 | (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error | |
20856 | messages. | |
20857 | ||
f5d35e7a | 20858 | 2009-08-08 Robert Millan <rmh.grub@aybabtu.com> |
20859 | ||
20860 | * util/grub-dumpdevtree: Moved from here ... | |
20861 | * util/i386/efi/grub-dumpdevtree: ... to here. | |
20862 | (hexify): New function. Converts a string to its hex version. | |
20863 | Generate hex versions of "efi" and "device-properties" by calling | |
20864 | hexify() on the ASCII strings rather than by hardcoding numbers. | |
20865 | ||
d1e1d527 | 20866 | 2009-08-08 Robert Millan <rmh.grub@aybabtu.com> |
20867 | ||
20868 | * fs/jfs.c: Update copyright year. | |
20869 | ||
1ebbe064 | 20870 | 2009-08-08 Felix Zielcke <fzielcke@z-51.de> |
20871 | ||
20872 | * util/grub.d/00_header.in: Fix a comment. | |
20873 | * util/grub.d/10_linux.in: Likewise. | |
20874 | * util/grub.d/10_windows.in: Likewise. | |
20875 | * util/grub.d/10_hurd.in: Likewise. | |
20876 | ||
a78c8d24 | 20877 | 2009-08-08 Felix Zielcke <fzielcke@z-51.de> |
20878 | ||
20879 | * util/grub-mkconfig.in: Allow the user to specify the used font | |
20880 | with GRUB_FONT. | |
20881 | ||
29a6b9e8 | 20882 | 2009-08-08 Pavel Roskin <proski@gnu.org> |
20883 | ||
b5f16cc4 | 20884 | * include/grub/powerpc/libgcc.h: Export __ashrdi3() if |
20885 | available, xfs.mod needs it now. | |
20886 | ||
2f5cb827 | 20887 | * util/grub-mkconfig_lib.in (version_test_numeric): Don't use |
20888 | the "g" modifier in sed when the intention is to strip something | |
20889 | once. This fixes comparison of kernels with multiple dashes. | |
20890 | ||
29a6b9e8 | 20891 | * util/grub-mkconfig.in: Define datarootdir, datadir may depend |
20892 | on it. Add missing space before closing bracket. Fix | |
20893 | misleading formatting. | |
20894 | ||
892a3d98 | 20895 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
20896 | ||
20897 | * docs/grub.texi: Major overhaul. Remove all sections that are | |
20898 | specific to GRUB Legacy, or mostly composed of Legacy-specific | |
20899 | information. | |
20900 | ||
ed94253f | 20901 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
20902 | ||
20903 | * docs/version.texi: New file. Provides version information for | |
20904 | grub.texi. | |
20905 | ||
126d6628 | 20906 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
20907 | ||
20908 | * docs/grub.texi: Update CVS information to SVN. | |
20909 | Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes". | |
20910 | ||
998b5aa9 | 20911 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
20912 | ||
20913 | * util/grub-mkconfig.in: Remove a wrong `fi'. | |
20914 | ||
818e094a | 20915 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
20916 | ||
20917 | * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid. | |
20918 | (grub_jfs_uuid): New function. | |
20919 | (grub_jfs_fs): Set uuid field to grub_jfs_uuid. | |
20920 | ||
b969c52f | 20921 | 2009-08-07 Felix Zielcke <fzielcke@z-51.de> |
20922 | ||
20923 | * util/grub-mkconfig_lib.in (font_path): Move the functionality | |
20924 | of it to ... | |
20925 | * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and | |
20926 | unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used. | |
20927 | ||
7a4894cc | 20928 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
20929 | ||
20930 | * util/grub.d/10_linux.in (test_numeric): Moved from here ... | |
20931 | * util/grub-mkconfig_lib.in (version_test_numeric): ... to here. | |
20932 | Update all users. | |
20933 | ||
20934 | * util/grub.d/10_linux.in (test_gt): Strip any basename prefix, | |
20935 | not just "vmlinu[zx]". | |
20936 | Moved from here ... | |
20937 | * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update | |
20938 | all users. | |
20939 | ||
20940 | * util/grub.d/10_linux.in (find_latest): Moved from here ... | |
20941 | * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update | |
20942 | all users. | |
20943 | ||
4e2171f8 | 20944 | 2009-08-07 Robert Millan <rmh.grub@aybabtu.com> |
20945 | ||
20946 | * util/grub.d/10_freebsd.in: Use an absolute device path for | |
20947 | `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'. | |
20948 | ||
6dcfcb32 | 20949 | 2009-08-06 Felix Zielcke <fzielcke@z-51.de> |
20950 | ||
20951 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix | |
20952 | handling of multiple abstraction modules. | |
20953 | ||
f56a8756 | 20954 | 2009-08-04 Robert Millan <rmh.grub@aybabtu.com> |
20955 | ||
20956 | Fix a bug resulting in black screen when loading Linux using a | |
20957 | packed video mode. | |
20958 | ||
20959 | * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New | |
20960 | function. | |
20961 | ||
20962 | * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro. | |
20963 | (grub_vbe_bios_getset_dac_palette_width): New function. | |
20964 | (grub_vbe_bios_get_dac_palette_width) | |
20965 | (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for | |
20966 | grub_vbe_bios_getset_dac_palette_width()). | |
20967 | ||
20968 | * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to | |
20969 | check for return status. | |
20970 | (grub_vbe_get_video_mode_info): When getting information for a packed | |
20971 | mode (<= 8 bpp), obtain DAC palette width using | |
20972 | grub_vbe_bios_getset_dac_palette_width(), and use that for initializing | |
20973 | {red,green,blue}_mark_size. | |
20974 | ||
222671b2 | 20975 | 2009-08-04 Felix Zielcke <fzielcke@z-51.de> |
20976 | ||
ecb1a6d9 | 20977 | * commands/search.c (options): Fix help output to match actual code. |
222671b2 | 20978 | |
f84114f5 | 20979 | 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com> |
20980 | ||
20981 | * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead | |
20982 | of homegrown code. | |
20983 | ||
bd288a20 | 20984 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
e768b770 | 20985 | |
20986 | * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work | |
20987 | on XFS or ReiserFS. | |
20988 | ||
8aab5e25 | 20989 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
20990 | ||
20991 | Support Apple partition map with sector size different from 512 bytes. | |
20992 | ||
20993 | * partmap/apple.c (grub_apple_header): New field 'blocksize'. | |
20994 | (apple_partition_map_iterate): Respect 'aheader.blocksize' | |
20995 | and 'apart.partmap_size'. | |
20996 | ||
6ad6258a | 20997 | 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com> |
20998 | 2009-08-01 Robert Millan <rmh.grub@aybabtu.com> | |
20999 | ||
21000 | Fix cpuid command. | |
21001 | ||
21002 | * commands/i386/cpuid.c (options): New variable. | |
21003 | (grub_cmd_cpuid): Return real error. | |
21004 | (GRUB_MOD_INIT(cpuid)): Declare options. | |
21005 | ||
67459bc6 | 21006 | 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com> |
21007 | ||
21008 | * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are | |
21009 | valid. | |
21010 | ||
fbc6ab54 | 21011 | 2009-07-31 Bean <bean123ch@gmail.com> |
21012 | ||
21013 | * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and | |
21014 | log2_inode. | |
21015 | (grub_fshelp_node): Move inode field to the end. | |
21016 | (grub_xfs_data): Remove inode field. | |
21017 | (grub_xfs_inode_block): Calculate inode size using sblock. | |
21018 | (grub_xfs_inode_offset): Likewise. | |
21019 | (grub_xfs_read_inode): Calculate inode size using sblock. | |
21020 | (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec. | |
21021 | (grub_xfs_iterate_dir): Calculate inode size using sblock. | |
21022 | (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data | |
21023 | to match inode size. | |
21024 | (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is | |
21025 | not accessible when data is null. | |
21026 | (grub_xfs_open): Likewise. | |
21027 | ||
f45d6cfc | 21028 | 2009-07-31 Bean <bean123ch@gmail.com> |
21029 | ||
21030 | * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata. | |
21031 | Don't change pv->disk if it's already set. | |
21032 | ||
21033 | * disk/raid.c (grub_raid_scan_device): Merge this function into ... | |
21034 | (grub_raid_register): ... here. | |
21035 | (grub_raid_rescan): Removed. | |
21036 | ||
21037 | * include/grub/raid.h (grub_raid_rescan): Removed. | |
21038 | ||
21039 | * util/grub-fstest.c: Remove include file <grub/raid.h>. | |
21040 | (fstest): Replace grub_raid_rescan with module fini function followed | |
21041 | by init function. | |
21042 | ||
21043 | * util/grub-probe.c: Add include file <grub/raid.h>. | |
21044 | (probe_raid_level): New function. | |
21045 | (probe): Detect abstraction by walking the disk device, support two | |
21046 | level of abstraction (LVM on RAID) when detecting partition map. | |
21047 | ||
24443b5a | 21048 | 2009-07-31 Pavel Roskin <proski@gnu.org> |
21049 | ||
21050 | * disk/raid5_recover.c (grub_raid5_recover): Revert conversion | |
21051 | to grub_zalloc(), it was erroneous. | |
21052 | Reported by Bean <bean123ch@gmail.com> | |
21053 | ||
a275d9e7 | 21054 | 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com> |
21055 | ||
21056 | * util/i386/pc/grub-setup.c (setup): Check that no partition is in | |
ad8ea1f4 | 21057 | embedding zone, not only the first one. |
a275d9e7 | 21058 | |
56c5a47f | 21059 | 2009-07-29 Joe Auricchio <jauricchio@gmail.com> |
21060 | ||
21061 | * term/gfxterm.c (clear_char): New function. | |
21062 | (grub_virtual_screen_setup): Use clear_char. | |
21063 | (scroll_up): Likewise. | |
21064 | (grub_virtual_screen_cls): Likewise. | |
21065 | ||
67bb323a | 21066 | 2009-07-29 Felix Zielcke <fzielcke@z-51.de> |
21067 | ||
21068 | * util/deviceiter.c (get_acceleraid_disk_name): New static | |
21069 | function. | |
21070 | (grub_util_iterate_devices): Handle Accelraid devices. | |
21071 | * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise. | |
21072 | ||
388a7c75 | 21073 | 2009-07-28 Robert Millan <rmh.grub@aybabtu.com> |
21074 | ||
21075 | * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as | |
21076 | separator for the suggested gfxpayload string (';' collides with the | |
21077 | parser and needs escaping). | |
21078 | ||
3bb7abcf | 21079 | 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com> |
21080 | ||
21081 | * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator): | |
21082 | Clear direction flag before jumping to OS. | |
21083 | (grub_multiboot2_real_boot): Likewise. | |
21084 | ||
2ddd36d7 | 21085 | 2009-07-28 Felix Zielcke <fzielcke@z-51.de> |
21086 | ||
21087 | * util/i386/pc/grub-install: Fix parsing of --disk-module | |
21088 | option. | |
21089 | ||
c521b62b | 21090 | 2009-07-28 Felix Zielcke <fzielcke@z-51.de> |
21091 | ||
21092 | * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks | |
21093 | when embedding. | |
21094 | ||
880e0a0c | 21095 | 2009-07-26 Felix Zielcke <fzielcke@z-51.de> |
21096 | ||
21097 | * util/grub-mkconfig.in (package_version): New variable. | |
21098 | Use it do display the version. | |
21099 | ||
2366e356 | 21100 | 2009-07-25 Felix Zielcke <fzielcke@z-51.de> |
21101 | ||
21102 | * kern/file.c (grub_file_open): Revert to previous check with | |
21103 | grub_errno. | |
21104 | ||
7ad8c80e | 21105 | 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
21106 | ||
21107 | * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]" | |
21108 | from help line. It's out of sync with code. | |
21109 | ||
72b9658b | 21110 | 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com> |
21111 | ||
21112 | * kern/parser.c (grub_parser_execute): Fix a bug causing truncated | |
21113 | entries on failed boot. | |
21114 | ||
77435277 | 21115 | 2009-07-25 Felix Zielcke <fzielcke@z-51.de> |
21116 | ||
21117 | * kern/file.c (grub_file_open): Fix an error check. | |
21118 | ||
fcaa8b21 | 21119 | 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com> |
21120 | ||
35d16c74 | 21121 | * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when |
21122 | partition map couldn't be identified. | |
fcaa8b21 | 21123 | |
48904cd1 | 21124 | 2009-07-23 Pavel Roskin <proski@gnu.org> |
21125 | ||
ef3c317f | 21126 | * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN |
21127 | instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the | |
21128 | case of little endian words becomes just an optimization. | |
21129 | Respect const modifier. | |
ad8ea1f4 | 21130 | (md5_final): Use code that doesn't depend on endianness. |
ef3c317f | 21131 | |
48904cd1 | 21132 | * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr |
21133 | to avoid loss of upper bits if align is unsigned and shorter | |
21134 | than addr. | |
21135 | ||
260c9a89 | 21136 | 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com> |
21137 | ||
21138 | UUID support for UFS | |
21139 | ||
21140 | * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow. | |
21141 | (grub_ufs_uuid): New function. | |
21142 | (grub_ufs_fs): add .uuid | |
21143 | ||
f76ce889 | 21144 | 2009-07-21 Pavel Roskin <proski@gnu.org> |
21145 | ||
21146 | * kern/dl.c (grub_dl_check_header): Make static. | |
21147 | ||
6a6cbcaf | 21148 | 2009-07-21 Felix Zielcke <fzielcke@z-51.de> |
21149 | ||
21150 | * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't | |
21151 | add drivemap for Vista. It breaks Windows 7. | |
21152 | ||
cffcddb2 | 21153 | 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com> |
21154 | ||
21155 | * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by | |
21156 | 128 bytes | |
21157 | ||
1ef44b80 | 21158 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
21159 | ||
21160 | Add BFS support | |
21161 | ||
21162 | * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c. | |
21163 | (grub_fstest_SOURCES): Likewise. | |
21164 | (pkglib_MODULES): Add befs.mod. | |
21165 | (befs_mod_SOURCES): New variable. | |
21166 | (befs_mod_CFLAGS): Likewise. | |
21167 | (befs_mod_LDFLAGS): Likewise. | |
21168 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
21169 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
21170 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
21171 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
21172 | (grub_setup_SOURCES): Likewise. | |
21173 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
21174 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
21175 | (grub_setup_SOURCES): Likewise. | |
21176 | * fs/befs.c: New file. | |
21177 | * fs/afs.c (GRUB_AFS_FSNAME): New declaration. | |
21178 | (GRUB_AFS_SBLOCK_SECTOR): Likewise. | |
21179 | (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration. | |
21180 | (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise | |
21181 | (B_KEY_INDEX_ALIGN): New declaration. | |
21182 | (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN. | |
21183 | (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit | |
21184 | (grub_afs_btree) [MODE_BFS]: New conditional declaration. | |
21185 | (grub_afs_sblock) [MODE_BFS]: Remove link_count. | |
21186 | (grub_afs_validate_sblock) [MODE_BFS]: Support BFS | |
21187 | (grub_afs_mount) [MODE_BFS]: Likewise. | |
21188 | (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000. | |
21189 | (grub_afs_fs): Use GRUB_AFS_FSNAME | |
21190 | (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ... | |
21191 | (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this | |
21192 | (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ... | |
21193 | (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this | |
21194 | ||
4f253044 | 21195 | 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org> |
21196 | ||
21197 | * util/getroot.c (find_root_device): Add support for MacOSX. | |
21198 | * util/hostdisk.c: Likewise. | |
21199 | ||
57a55913 | 21200 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
21201 | ||
21202 | * font/font.c (find_glyph): Check whether a font is present to avoid | |
21203 | segmentation fault. | |
75421ca9 | 21204 | |
21205 | 2009-07-20 Joe Auricchio <jauricchio@gmail.com> | |
04c7c429 | 21206 | |
21207 | * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen. | |
21208 | ||
e98cd0c2 | 21209 | 2009-07-20 Pavel Roskin <proski@gnu.org> |
21210 | ||
21211 | * configure.ac: Trim excessively wordy excuses. | |
21212 | ||
1d2d169a | 21213 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
21214 | ||
21215 | Add symlink, mtime and label support to AtheFS. | |
21216 | ||
21217 | * fs/afs.c (grub_afs_sblock): Declare `name' as char. | |
21218 | (grub_afs_iterate_dir): Handle symlinks. | |
21219 | (grub_afs_open): Use grub_afs_read_symlink. | |
21220 | (grub_afs_dir): Likewise. | |
21221 | Pass mtime. | |
21222 | (grub_afs_label): New function. | |
21223 | (grub_afs_fs): Add grub_afs_label. | |
21224 | (grub_afs_read_symlink): New function. | |
21225 | ||
186f3189 | 21226 | 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com> |
21227 | ||
21228 | Fix AtheFS support. | |
21229 | ||
21230 | * fs/afs.c: Fix comments style. | |
21231 | (grub_afs_blockrun): Declare as packed. | |
21232 | (grub_afs_datastream): Likewise. | |
21233 | (grub_afs_bnode): Likewise. | |
21234 | (grub_afs_btree): Likewise. | |
21235 | (grub_afs_sblock): Likewise. | |
21236 | Declare `name' as char. | |
21237 | (grub_afs_inode): Declare as packed. | |
21238 | Change void *vnode to grub_uint32_t unused. | |
21239 | (grub_afs_iterate_dir): Check that key_size is positive. | |
21240 | (grub_afs_mount): Don't read superblock twice. | |
75421ca9 | 21241 | (grub_afs_dir): Don't free node in case of error, |
186f3189 | 21242 | grub_fshelp_find_file already handles this. |
21243 | (grub_afs_open): Likewise. | |
21244 | ||
5680109e | 21245 | 2009-07-19 Pavel Roskin <proski@gnu.org> |
21246 | ||
21247 | * Makefile.in: Remove LIBLZO and enable_lzo. | |
21248 | * conf/i386-pc.rmk: Remove lzo support. | |
21249 | * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA. | |
21250 | * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo | |
21251 | support. | |
21252 | * kern/i386/pc/lzo1x.S: Remove. | |
21253 | * kern/i386/pc/startup.S: Remove lzo support. | |
21254 | * util/i386/pc/grub-mkimage.c: Likewise. | |
21255 | ||
ac70fa32 | 21256 | 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com> |
21257 | ||
21258 | * disk/usbms.c (grub_usbms_transfer): Fix double semicolon. | |
21259 | * fs/xfs.c (grub_xfs_dir): Likewise. | |
21260 | * fs/afs.c (grub_afs_dir): Likewise. | |
21261 | * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise. | |
21262 | (grub_iso9660_open): Likewise. | |
21263 | * fs/jfs.c (grub_jfs_open): Likewise. | |
21264 | * fs/ext2.c (grub_ext2_dir): Likewise. | |
21265 | * include/grub/macho.h (grub_macho_fat_arch): Likewise. | |
21266 | * script/sh/lexer.c (grub_script_yylex): Likewise. | |
75421ca9 | 21267 | |
eab58da2 | 21268 | 2009-07-16 Pavel Roskin <proski@gnu.org> |
21269 | ||
d2838156 | 21270 | * configure.ac: Never add "-c" to CFLAGS. |
21271 | ||
55c70904 | 21272 | * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu. |
21273 | ||
43e6200c | 21274 | * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where |
21275 | grub_cv_cc_efiemu should be used. | |
21276 | ||
ce7a733d | 21277 | * configure.ac: Typo fixes. |
21278 | ||
eab58da2 | 21279 | * kern/mm.c (grub_zalloc): New function. |
21280 | (grub_debug_zalloc): Likewise. | |
21281 | * include/grub/mm.h: Declare grub_zalloc() and | |
21282 | grub_debug_zalloc(). | |
21283 | * util/misc.c (grub_zalloc): New function. | |
21284 | * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc() | |
21285 | instead of grub_malloc(), remove unneeded initializations. | |
21286 | * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise. | |
21287 | * commands/extcmd.c (grub_extcmd_dispatcher): Likewise. | |
21288 | * commands/parttool.c (grub_cmd_parttool): Likewise. | |
21289 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise. | |
21290 | * disk/raid5_recover.c (grub_raid5_recover): Likewise. | |
21291 | * disk/raid6_recover.c (grub_raid6_recover): Likewise. | |
21292 | * disk/usbms.c (grub_usbms_finddevs): Likewise. | |
21293 | * efiemu/mm.c (grub_efiemu_request_memalign): Likewise. | |
21294 | * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise. | |
21295 | (grub_cmd_efiemu_pnvram): Likewise. | |
21296 | * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise. | |
21297 | * fs/iso9660.c (grub_iso9660_mount): Likewise. | |
21298 | (grub_iso9660_iterate_dir): Likewise. | |
21299 | * fs/jfs.c (grub_jfs_opendir): Likewise. | |
21300 | * fs/ntfs.c (list_file): Likewise. | |
21301 | (grub_ntfs_mount): Likewise. | |
21302 | * kern/disk.c (grub_disk_open): Likewise. | |
21303 | * kern/dl.c (grub_dl_load_core): Likewise. | |
21304 | * kern/elf.c (grub_elf_file): Likewise. | |
21305 | * kern/env.c (grub_env_context_open): Likewise. | |
21306 | (grub_env_set): Likewise. | |
21307 | (grub_env_set_data_slot): Likewise. | |
21308 | * kern/file.c (grub_file_open): Likewise. | |
21309 | * kern/fs.c (grub_fs_blocklist_open): Likewise. | |
21310 | * loader/i386/multiboot.c (grub_module): Likewise. | |
21311 | * loader/xnu.c (grub_xnu_create_key): Likewise. | |
21312 | (grub_xnu_create_value): Likewise. | |
21313 | * normal/main.c (grub_normal_add_menu_entry): Likewise. | |
21314 | (read_config_file): Likewise. | |
21315 | * normal/menu_entry.c (make_screen): Likewise. | |
21316 | * partmap/sun.c (sun_partition_map_iterate): Likewise. | |
21317 | * script/sh/lexer.c (grub_script_lexer_init): Likewise. | |
21318 | * script/sh/script.c (grub_script_parse): Likewise. | |
21319 | * video/bitmap.c (grub_video_bitmap_create): Likewise. | |
21320 | * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise. | |
21321 | * video/readers/png.c (grub_png_output_byte): Likewise. | |
21322 | (grub_video_reader_png): Likewise. | |
21323 | ||
830afef7 | 21324 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
5ce5507f | 21325 | |
21326 | Enable all targets that can be built by default | |
21327 | ||
830afef7 | 21328 | * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb, |
5ce5507f | 21329 | grub-mkfont and grub-fstest if they can be built |
21330 | ||
ee293aee | 21331 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
21332 | ||
21333 | Fix hang and segmentation fault in grub-emu-usb | |
21334 | ||
21335 | * disk/scsi.c (grub_scsi_open): return err and not grub_errno | |
21336 | * util/usb.c (grub_libusb_devices): likewise | |
21337 | (grub_libusb_init): rename to ... | |
21338 | (GRUB_MOD_INIT (libusb)):...this | |
21339 | (grub_libusb_fini): rename to .. | |
21340 | (GRUB_MOD_FINI (libusb)):...this | |
21341 | * disk/usbms.c (grub_usbms_transfer): fix retry logic | |
21342 | * include/grub/disk.h (grub_raid_init): removed, it's useless | |
21343 | (grub_raid_fini): likewise | |
21344 | (grub_lvm_init): likewise | |
21345 | (grub_lvm_fini): likewise | |
21346 | * util/grub-emu.c (main): don't call grub_libusb_init, it's done | |
21347 | by grub_init_all | |
21348 | ||
94414221 | 21349 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
21350 | ||
21351 | Fix libusb | |
21352 | ||
21353 | * Makefile.in (LIBUSB): new macro | |
21354 | * genmk.rb (Utility/print_tail): new method | |
21355 | (Utility/rule): use intermediary variable #{prefix}_OBJECTS | |
21356 | (top level): call util.print_tail at the end. | |
21357 | ||
59ade63d | 21358 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
21359 | ||
21360 | Make FreeBSD accept zpool.cache | |
21361 | ||
21362 | * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if | |
21363 | type is /boot/zfs/zpool.cache | |
21364 | ||
a58da8c7 | 21365 | 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com> |
21366 | ||
21367 | Fix 64-bit efiemu | |
21368 | ||
21369 | * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t): | |
21370 | correct wrong typedef | |
21371 | * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes | |
21372 | ||
20591577 | 21373 | 2009-07-15 Pavel Roskin <proski@gnu.org> |
21374 | ||
560ca572 | 21375 | * include/grub/disk.h (struct grub_disk_dev): Use enum for id. |
21376 | * kern/disk.c (struct grub_disk_cache): Likewise. | |
21377 | ||
e8e8e4fd | 21378 | * commands/probe.c (options): Typo fix. |
21379 | ||
fde24e10 | 21380 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END): |
21381 | Increase to 0x5a to accommodate FAT32. Adjust other offsets | |
21382 | accordingly. | |
21383 | Original patch by Yves Blusseau <yves.grub-devel@zetam.org> | |
21384 | ||
379c54c1 | 21385 | * boot/i386/pc/boot.S (general_error_string): Add DOS newline at |
21386 | the end of "Error" to make the message more readable. | |
21387 | ||
7bd8f5bf | 21388 | * boot/i386/pc/boot.S (kernel_segment): Remove. |
21389 | (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0 | |
21390 | for destination. | |
21391 | ||
40b132c5 | 21392 | * boot/i386/pc/boot.S (boot_version): Remove. |
21393 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ): | |
21394 | Remove. | |
21395 | ||
20591577 | 21396 | * include/grub/i386/pc/boot.h: Sort all offsets. |
21397 | (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused. | |
21398 | (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise. | |
21399 | * boot/i386/pc/boot.S: Assert location of every offset listed in | |
21400 | include/grub/i386/pc/boot.h. | |
21401 | ||
2df32b2c | 21402 | 2009-07-13 Pavel Roskin <proski@gnu.org> |
21403 | ||
44b5d879 | 21404 | * include/grub/i386/coreboot/machine.h: Rename |
21405 | GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT. | |
21406 | * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow | |
21407 | multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU. | |
21408 | ||
17dc3751 | 21409 | * kern/dl.c: Force native word size to suppress warnings when |
21410 | compiling grub-emu. | |
21411 | ||
2df32b2c | 21412 | * kern/device.c (grub_device_iterate): Change struct part_ent to |
21413 | hold the name, not a pointer to it. Use one grub_malloc() per | |
21414 | partition, not two. Free partition_name if grub_malloc() fails. | |
21415 | Set ents to NULL only before grub_partition_iterate() is called. | |
21416 | ||
75c59f59 | 21417 | 2009-07-11 Bean <bean123ch@gmail.com> |
21418 | ||
21419 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of | |
21420 | childname. | |
21421 | ||
0ae1bf88 | 21422 | 2009-07-10 Bean <bean123ch@gmail.com> |
21423 | 2009-07-10 Robert Millan <rmh.grub@aybabtu.com> | |
21424 | ||
21425 | * kern/ieee1275/openfw.c (grub_children_iterate) | |
21426 | (grub_devalias_iterate): Fix size evaluation for property or path | |
21427 | strings, which was broken since r2132. | |
21428 | ||
8279cade | 21429 | 2009-07-07 Pavel Roskin <proski@gnu.org> |
21430 | ||
7d8a52d3 | 21431 | * commands/search.c (search_file): Merge into ... |
21432 | (search_fs): ... this. Accept search type as argument. | |
21433 | (grub_cmd_search): Pass search type to search_fs(). | |
21434 | ||
25f9a05a | 21435 | * include/grub/util/console.h: New file. |
21436 | * util/console.c: Use it instead of grub/machine/console.h. | |
21437 | * util/grub-emu.c: Likewise. | |
21438 | ||
8279cade | 21439 | * lib/arg.c (find_long_option): Remove. |
21440 | (find_long): Add `len' argument, make `s' const char *. | |
21441 | (grub_arg_parse): Parse long options in place, not in a | |
21442 | temporary buffer. | |
21443 | ||
4a11b60f | 21444 | 2009-07-06 Pavel Roskin <proski@gnu.org> |
21445 | ||
99f68041 | 21446 | * commands/search.c (search_fs): Fix potential NULL pointer |
21447 | dereference. | |
21448 | ||
4a11b60f | 21449 | * commands/search.c (search_fs): Replace QUID macro with quid_fn |
21450 | function pointer. | |
21451 | ||
e110f4de | 21452 | 2009-07-06 Daniel Mierswa <impulze@impulze.org> |
21453 | ||
21454 | * commands/search.c (search_fs): Use grub_strcasecmp() for UUID | |
21455 | comparison. | |
21456 | ||
46eeb6a2 | 21457 | 2009-07-05 Pavel Roskin <proski@gnu.org> |
21458 | ||
bab74958 | 21459 | * include/grub/i386/linux.h (struct linux_kernel_params): |
21460 | Restore padding3, it's still needed. | |
21461 | ||
46eeb6a2 | 21462 | * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on |
21463 | FreeBSD. | |
21464 | * util/osdetect.lua: Likewise. | |
21465 | ||
b4a1dc79 | 21466 | 2009-07-05 Bean <bean123ch@gmail.com> |
21467 | ||
21468 | * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c. | |
21469 | ||
21470 | * script/lua/grub_lib.c (grub_lua_run): Check input parameter. | |
21471 | (grub_lua_getenv): Likewise. | |
21472 | (grub_lua_setenv): Likewise. | |
21473 | (save_errno): New function. | |
21474 | (push_result): Likewise. | |
21475 | (grub_lua_enum_device): Likewise. | |
21476 | (grub_lua_enum_file): Likewise. | |
21477 | (grub_lua_file_open): Likewise. | |
21478 | (grub_lua_file_close): Likewise. | |
21479 | (grub_lua_file_seek): Likewise. | |
21480 | (grub_lua_file_read): Likewise. | |
21481 | (grub_lua_file_getline): Likewise. | |
21482 | (grub_lua_file_getsize): Likewise. | |
21483 | (grub_lua_file_getpos): Likewise. | |
21484 | (grub_lua_file_eof): Likewise. | |
21485 | (grub_lua_file_exist): Likewise. | |
21486 | (grub_lua_add_menu): Likewise. | |
21487 | ||
21488 | * script/lua/grub_lua.h (isupper): New inline function. | |
21489 | (islower): Likewise. | |
21490 | (ispunct): Likewise. | |
21491 | (isxdigit): Likewise. | |
21492 | (strcspn): Change to normal function. | |
21493 | (strpbkr): New function declaration. | |
21494 | (memchr): Likewise. | |
21495 | ||
21496 | * script/lua/grub_main.c (scan_str): New function. | |
21497 | (strcspn): Likewise. | |
21498 | (strpbrk): Likewise. | |
21499 | (memchr): Likewise. | |
21500 | ||
21501 | * script/lua/linit.c (lualibs): Enable the string library. | |
21502 | ||
21503 | * util/osdetect.lua: New file. | |
21504 | ||
2da92295 | 21505 | 2009-07-04 Robert Millan <rmh.grub@aybabtu.com> |
21506 | ||
21507 | * include/grub/i386/linux.h (struct linux_kernel_params): Add | |
21508 | `capabilities' member. | |
21509 | ||
b2582ec9 | 21510 | 2009-07-02 Pavel Roskin <proski@gnu.org> |
21511 | ||
21512 | * genparttoollist.sh: Add missing newline at the end. | |
21513 | ||
32622956 | 21514 | 2009-07-01 Pavel Roskin <proski@gnu.org> |
21515 | ||
87a7339e | 21516 | * kern/x86_64/efi/callwrap.S: Add missing newline at the end. |
21517 | ||
d23af54e | 21518 | * util/hostdisk.c (open_device): Remove `const' from |
21519 | `sysctl_size', as sysctlbyname() can change it (in this case it | |
21520 | doesn't actually happen). | |
21521 | ||
c94b18a9 | 21522 | * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN |
21523 | using signed long int constants. | |
21524 | ||
c6cd3ef0 | 21525 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p' |
21526 | constant to avoid a warning on FreeBSD. | |
21527 | ||
0df63420 | 21528 | * util/hostdisk.c (device_is_wholedisk): Compile only on systems |
21529 | where it's needed. | |
21530 | ||
999577f1 | 21531 | * Makefile.in: Install include/grub/machine symlink. |
21532 | ||
6f41557f | 21533 | * Makefile.in: When installing symlinks, use "cp -fR", which |
21534 | works on FreeBSD and MacOSX. | |
21535 | From Yves Blusseau <cl7m42e02@sneakemail.com> | |
21536 | ||
c8d22988 | 21537 | * kern/dl.c (grub_dl_resolve_symbol): Make static. |
21538 | * include/grub/dl.h: Remove grub_dl_resolve_symbol(). | |
21539 | ||
1b96e952 | 21540 | * util/misc.c: Move grub_reboot() and grub_halt() ... |
21541 | * util/grub-emu.c: ... here. Make main_env static. | |
21542 | * include/grub/util/misc.h: Remove main_env. | |
21543 | ||
2ef0084d | 21544 | * kern/mm.c: Use correct format to print size_t. |
21545 | ||
32622956 | 21546 | * include/grub/elf.h: Define Elf_Sword and Elf_Xword. |
21547 | * kern/i386/dl.c: Use ELF symbols without "32" or "64". | |
21548 | * kern/powerpc/dl.c: Likewise. | |
21549 | * kern/sparc64/dl.c: Likewise. | |
21550 | * kern/x86_64/dl.c: Likewise. | |
21551 | ||
3f7f0cd0 | 21552 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
21553 | ||
21554 | Fix grub-emu build on sparc64-ieee1275. | |
21555 | ||
75421ca9 | 21556 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ... |
3f7f0cd0 | 21557 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this. |
21558 | ||
211d06b5 | 21559 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
21560 | ||
21561 | * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'. | |
21562 | (grub_reboot, grub_halt): New functions. | |
21563 | ||
21564 | * util/i386/pc/misc.c: Delete. Update all users. | |
21565 | * util/sparc64/ieee1275/misc.c: Likewise. | |
21566 | * util/powerpc/ieee1275/misc.c: Likewise. | |
21567 | ||
aaf53e3c | 21568 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
21569 | ||
21570 | * conf/i386.rmk (setjmp_mod_SOURCES) | |
21571 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ... | |
21572 | * conf/common.rmk (setjmp_mod_SOURCES) | |
21573 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify | |
21574 | to use $(target_cpu). | |
21575 | * conf/x86_64-efi.rmk (setjmp_mod_SOURCES) | |
21576 | (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove. | |
21577 | * conf/powerpc-ieee1275.rmk: Likewise. | |
21578 | * conf/sparc64-ieee1275.rmk: Likewise. | |
21579 | ||
21580 | * conf/i386-pc.rmk (kernel_img_SOURCES): Use | |
21581 | $(target_cpu) for kern/$(target_cpu)/dl.c. | |
21582 | * conf/i386-efi.rmk: Likewise. | |
21583 | * conf/i386-ieee1275.rmk: Likewise. | |
21584 | * conf/x86_64-efi.rmk: Likewise. | |
21585 | * conf/i386-coreboot.rmk: Likewise. | |
21586 | * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use | |
21587 | $(target_cpu) for kern/$(target_cpu)/dl.c and for | |
21588 | kern/$(target_cpu)/cache.S. | |
21589 | * conf/sparc64-ieee1275.rmk: Likewise. | |
21590 | ||
a337130b | 21591 | 2009-07-01 Robert Millan <rmh.grub@aybabtu.com> |
21592 | ||
21593 | * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size' | |
21594 | type to `grub_uint8_t', and adjust `padding9' accordingly. | |
21595 | ||
c6fe4d53 | 21596 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
21597 | ||
b09db61d | 21598 | * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro. |
21599 | ||
c6fe4d53 | 21600 | * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline |
21601 | assembly in final jump, using register constraints. | |
21602 | ||
b09db61d | 21603 | (grub_linux_boot): For text mode, initialize `have_vga' using |
21604 | GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1). | |
21605 | ||
21606 | Initialize `video_cursor_x' and `video_cursor_y' as late as possible, | |
21607 | right before the final jump. | |
21608 | ||
21609 | Set `video_mode' to 0x3. | |
21610 | ||
21611 | Document initialization of `video_page', `video_mode' and | |
21612 | `video_ega_bx'. | |
21613 | ||
28333ad0 | 21614 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
21615 | ||
21616 | * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro. | |
21617 | * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option, | |
75421ca9 | 21618 | and set GRUB_LINUX_FLAG_QUIET appropriately. |
28333ad0 | 21619 | |
02164e1b | 21620 | 2009-06-29 Robert Millan <rmh.grub@aybabtu.com> |
21621 | ||
21622 | Fix build on Debian / sparc. | |
21623 | ||
21624 | * configure.ac: Recognize `sparc' target_cpu (as sparc64). | |
21625 | ||
18b6c557 | 21626 | 2009-06-28 Pavel Roskin <proski@gnu.org> |
21627 | ||
85f2aab6 | 21628 | * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to |
21629 | fix a warning. | |
21630 | ||
18b6c557 | 21631 | * util/grub.d/10_linux.in: Match SUSE style initrd names. |
21632 | ||
ad760f81 | 21633 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> |
21634 | ||
21635 | * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of | |
21636 | `err'. | |
21637 | ||
87a4623b | 21638 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> |
21639 | ||
21640 | Revert r2338. | |
21641 | ||
21642 | * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when | |
21643 | file can't be opened. grub_file_open() is already supposed to set | |
75421ca9 | 21644 | grub_errno / grub_errmsg appropriately. |
87a4623b | 21645 | * loader/i386/pc/linux.c (grub_cmd_linux): Likewise. |
21646 | ||
8231fb77 | 21647 | 2009-06-27 Pavel Roskin <proski@gnu.org> |
21648 | 2009-06-27 Robert Millan <rmh.grub@aybabtu.com> | |
21649 | ||
21650 | * include/grub/dl.h: Include grub/elf.h. | |
21651 | (struct grub_dl): Add symtab field. | |
21652 | * kern/dl.c [GRUB_MACHINE_QEMU]: Define | |
21653 | GRUB_MODULES_MACHINE_READONLY. | |
21654 | (grub_dl_resolve_symbols): Populate mod->symtab, making a copy | |
21655 | of the header for read-only modules. | |
21656 | (grub_dl_unload): Free mod->symtab for read-only modules. | |
21657 | * kern/i386/dl.c: Use mod->symtab. | |
21658 | * kern/powerpc/dl.c: Likewise. | |
21659 | * kern/sparc64/dl.c: Likewise. | |
21660 | * kern/x86_64/dl.c: Likewise. | |
21661 | ||
21662 | * conf/i386-qemu.rmk: New file. | |
21663 | * kern/i386/qemu/startup.S: Likewise. | |
21664 | * kern/i386/qemu/mmap.c: Likewise. | |
21665 | * boot/i386/qemu/boot.S: Likewise. | |
21666 | * include/grub/i386/qemu/time.h: Likewise. | |
21667 | * include/grub/i386/qemu/serial.h: Likewise. | |
21668 | * include/grub/i386/qemu/kernel.h: Likewise. | |
21669 | * include/grub/i386/qemu/console.h: Likewise. | |
21670 | * include/grub/i386/qemu/boot.h: Likewise. | |
21671 | * include/grub/i386/qemu/init.h: Likewise. | |
21672 | * include/grub/i386/qemu/machine.h: Likewise. | |
21673 | * include/grub/i386/qemu/loader.h: Likewise. | |
21674 | * include/grub/i386/qemu/memory.h: Likewise. | |
21675 | ||
21676 | * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR) | |
21677 | (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables. | |
21678 | [qemu] (pkglib_IMAGES): Add `boot.img'. | |
21679 | [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS) | |
21680 | [qemu] (boot_img_FORMAT): New variables. | |
21681 | [qemu] (bin_UTILITIES): Add `grub-mkimage'. | |
21682 | [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables. | |
21683 | [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS) | |
21684 | [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS) | |
21685 | [qemu] (kernel_img_FORMAT): New variables. | |
21686 | ||
21687 | * configure.ac: Recognise `i386-qemu'. | |
21688 | ||
21689 | * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant | |
21690 | (for no compression). | |
21691 | [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce | |
21692 | a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE', | |
21693 | `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and | |
21694 | `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with | |
21695 | ifdefs). | |
21696 | ||
97fe384e | 21697 | 2009-06-27 Pavel Roskin <proski@gnu.org> |
21698 | ||
21699 | * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to | |
21700 | read. | |
21701 | * efiemu/prepare32.c: Likewise. | |
21702 | * efiemu/prepare64.c: Likewise. | |
21703 | ||
c402ab17 | 21704 | 2009-06-26 Pavel Roskin <proski@gnu.org> |
21705 | ||
21706 | * include/grub/types.h: Define GRUB_TARGET_WORDSIZE. | |
21707 | * include/grub/elf.h: Define symbols without "32" or "64" based | |
21708 | on GRUB_TARGET_WORDSIZE. | |
21709 | * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE. | |
21710 | * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own | |
21711 | ELF definitions. | |
21712 | * efiemu/loadcore64.c: Likewise. | |
21713 | * loader/i386/bsd32.c: Likewise. | |
21714 | * loader/i386/bsd64.c: Likewise. | |
21715 | * kern/dl.c: Remove own ELF definitions. | |
21716 | * util/i386/efi/grub-mkimage.c: Likewise. | |
21717 | ||
9bbdfd4d | 21718 | 2009-06-23 Robert Millan <rmh.grub@aybabtu.com> |
21719 | ||
21720 | * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using | |
21721 | segment 0x0 unconditionally, because the reference generated by | |
21722 | GAS is an absolute address. | |
21723 | ||
a42ce6e9 | 21724 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21725 | ||
21726 | * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'. | |
21727 | [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1. | |
21728 | ||
c952cf92 | 21729 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21730 | ||
21731 | * commands/search.c (grub_cmd_search): Macroify hardcoded args[] | |
21732 | indexes. Check for -f explicitly. | |
cc3752ad | 21733 | (search_file): Improve error message. |
21734 | (GRUB_MOD_INIT(search)): Add missing `-n' to help output. | |
c952cf92 | 21735 | |
132a0a59 | 21736 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21737 | ||
21738 | * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ... | |
21739 | (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users. | |
21740 | ||
387a140c | 21741 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21742 | ||
21743 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'. | |
21744 | * conf/i386-ieee1275.rmk: Likewise. | |
21745 | * conf/i386-coreboot.rmk: Likewise. | |
21746 | ||
21747 | * kern/i386/pc/startup.S (grub_stop): Remove function. | |
21748 | * kern/i386/ieee1275/startup.S: Likewise. | |
21749 | * kern/i386/coreboot/startup.S: Likewise. | |
21750 | * kern/i386/misc.S (grub_stop): New function. | |
21751 | ||
41da9665 | 21752 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21753 | ||
21754 | * kern/i386/pc/startup.S (real_to_prot): Move from here ... | |
21755 | * kern/i386/realmode.S (real_to_prot): ... to here. | |
21756 | ||
bf337234 | 21757 | 2009-06-22 Robert Millan <rmh.grub@aybabtu.com> |
21758 | ||
21759 | * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf' | |
21760 | with `kernel.img'. | |
21761 | (kernel_elf_SOURCES): Rename to ... | |
21762 | (kernel_img_SOURCES): ... this. | |
21763 | (kernel_elf_HEADERS): Rename to ... | |
21764 | (kernel_img_HEADERS): ... this. Update all users. | |
21765 | (kernel_elf_ASFLAGS): Rename to ... | |
21766 | (kernel_img_ASFLAGS): ... this. | |
21767 | (kernel_elf_CFLAGS): Rename to ... | |
21768 | (kernel_img_CFLAGS): ... this. | |
21769 | (kernel_elf_LDFLAGS): Rename to ... | |
21770 | (kernel_img_LDFLAGS): ... this. | |
21771 | * conf/i386-coreboot.rmk: Likewise. | |
21772 | * conf/powerpc-ieee1275.rmk: Likewise. | |
21773 | ||
21774 | * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf" | |
21775 | with "kernel.img". | |
21776 | ||
f52196ff | 21777 | 2009-06-21 Pavel Roskin <proski@gnu.org> |
21778 | ||
c3cee413 | 21779 | * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes |
21780 | to match nested functions. | |
21781 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
21782 | ||
f52196ff | 21783 | * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS. |
21784 | ||
58750afc | 21785 | 2009-06-21 Robert Millan <rmh.grub@aybabtu.com> |
21786 | ||
21787 | * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on | |
21788 | all i386 platforms. | |
21789 | ||
15355c7d | 21790 | 2009-06-21 Robert Millan <rmh.grub@aybabtu.com> |
21791 | ||
21792 | Fix asm file handling on ELF, and remove workarounds. | |
21793 | ||
21794 | * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS | |
75421ca9 | 21795 | and -DASM_FILE=1 appropriately (copied from `class Images' stanza). |
15355c7d | 21796 | * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro. |
21797 | * kern/i386/coreboot/startup.S (ASM_FILE): Likewise. | |
21798 | ||
3f3ec72b | 21799 | 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com> |
21800 | ||
21801 | Load BSD ELF modules | |
21802 | ||
21803 | * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c | |
21804 | and loader/i386/bsd64.c | |
21805 | * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove | |
21806 | (FREEBSD_MODTYPE_ELF_MODULE): New definition | |
21807 | (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise | |
21808 | (grub_freebsd_load_elfmodule32): New declaration | |
21809 | (grub_freebsd_load_elfmoduleobj64): Likewise | |
21810 | (grub_freebsd_load_elf_meta32): Likewise | |
21811 | (grub_freebsd_load_elf_meta64): Likewise | |
21812 | (grub_freebsd_add_meta): Likewise | |
21813 | (grub_freebsd_add_meta_module): Likewise | |
21814 | * loader/i386/bsd.c (grub_freebsd_add_meta): Make global | |
21815 | (grub_freebsd_add_meta_module): Likewise and move module-specific | |
21816 | parts to grub_cmd_freebsd and grub_cmd_freebsd_module | |
21817 | (grub_cmd_freebsd): Add elf-kernel specific parts | |
21818 | based on grub_freebsd_add_meta_module | |
21819 | (grub_cmd_freebsd_module): Add type parsing moved from | |
21820 | grub_freebsd_add_meta_module | |
21821 | (grub_cmd_freebsd_module_elf): New function | |
21822 | (cmd_freebsd_module_elf): New variable | |
21823 | (GRUB_MOD_INIT): Register freebsd_module_elf | |
21824 | * loader/i386/bsd32.c: New file | |
21825 | * loader/i386/bsd64.c: Likewise | |
21826 | * loader/i386/bsdXX.c: Likewise | |
21827 | * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load | |
21828 | (grub_elf64_load): Likewise | |
21829 | * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load | |
21830 | All users updated | |
21831 | (grub_elf64_load_hook_t): Likewise | |
21832 | ||
0db15301 | 21833 | 2009-06-21 Colin Watson <cjwatson@ubuntu.com> |
21834 | ||
21835 | * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export | |
21836 | variable. | |
21837 | * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true, | |
21838 | don't write a menu entry for recovery mode. | |
21839 | ||
546796c1 | 21840 | 2009-06-20 Robert Millan <rmh.grub@aybabtu.com> |
21841 | ||
21842 | * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only | |
21843 | after it's no longer needed. | |
21844 | ||
cd7310d5 | 21845 | 2009-06-20 Robert Millan <rmh.grub@aybabtu.com> |
21846 | ||
21847 | * include/grub/i386/loader.h (grub_linux_prot_size) | |
21848 | (grub_linux_tmp_addr, grub_linux_real_addr) | |
21849 | (grub_linux_is_bzimage, grub_linux16_boot): Declare only on | |
21850 | GRUB_MACHINE_PCBIOS. | |
21851 | * util/i386/pc/grub-mkimage.c (compress_kernel): Move | |
21852 | common grub_util_info() call to ... | |
21853 | (generate_image): ... here. | |
21854 | Fix use of uninitialized memory, comparison of signed with | |
21855 | unsigned integers and memory leak. | |
21856 | Remove bogus module address message. | |
21857 | ||
ab32d3b5 | 21858 | 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com> |
21859 | ||
21860 | * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not | |
21861 | grub_raid_register | |
21862 | * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise | |
21863 | ||
024ef597 | 21864 | 2009-06-19 Pavel Roskin <proski@gnu.org> |
21865 | ||
21866 | * configure.ac: Remove stray AC_MSG_CHECKING. | |
21867 | ||
3ac72b51 | 21868 | 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com> |
21869 | ||
21870 | * disk/scsi.c (grub_scsi_open): use continue instead of big if | |
dd74360c | 21871 | |
e14cd814 | 21872 | 2009-06-18 Pavel Roskin <proski@gnu.org> |
21873 | ||
21874 | * conf/common.rmk: Add fs_file.mod. | |
21875 | * disk/fs_file.c: New file. | |
21876 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
21877 | GRUB_DISK_DEVICE_FILE_ID. | |
21878 | ||
26586d98 | 21879 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
21880 | ||
21881 | Fix build with Apple's toolchain. Part 2 | |
21882 | ||
21883 | * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and | |
21884 | a fake start | |
21885 | ||
26de2bcd | 21886 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
21887 | ||
21888 | Fix build with Apple's toolchain. Part 1 | |
21889 | ||
21890 | * commands/i386/pc/drivemap_int13h.S: use assembly-time constants | |
21891 | for long calls | |
21892 | * configure.ac: remove a leftover AC_MSG_RESULT | |
dd74360c | 21893 | (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with |
26de2bcd | 21894 | Apple's toolchain |
21895 | ||
09b3490b | 21896 | 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com> |
21897 | ||
21898 | Fix warnings | |
21899 | ||
21900 | * fs/ntfscomp.c (decomp_get16): initialize c1 and c2 | |
21901 | (decomp_block): initialize ch | |
21902 | use grub_memcpy instead of memcpy | |
21903 | ||
c22a006a | 21904 | 2009-06-17 Pavel Roskin <proski@gnu.org> |
21905 | ||
d3638678 | 21906 | * include/grub/i386/coreboot/console.h: Don't use the i386-pc |
21907 | version, use declarations needed to use vga_text as the startup | |
21908 | console. | |
21909 | ||
c22a006a | 21910 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove |
21911 | term/i386/pc/at_keyboard.c, it doesn't need to be compiled into | |
21912 | the kernel. | |
21913 | * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init() | |
21914 | and grub_at_keyboard_fini(), it's done on module load and | |
21915 | unload. | |
21916 | ||
05b129e0 | 21917 | 2009-06-17 Felix Zielcke <fzielcke@z-51.de> |
21918 | ||
21919 | * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the | |
21920 | file can't be found. | |
21921 | * loader/i386/pc/linux.c (grub_cmd_linux): Likewise. | |
21922 | ||
cf24ed9e | 21923 | 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com> |
21924 | ||
21925 | Fix newline handling | |
21926 | ||
21927 | * include/grub/script_sh.h (grub_lexer_param): new field was_newline | |
dd74360c | 21928 | * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline |
cf24ed9e | 21929 | (grub_script_yylex): don't segfault on unterminated script |
21930 | newline terminates command and variable | |
21931 | ||
74aa8e4b | 21932 | 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com> |
21933 | ||
21934 | avoid double grub_adjust_range call. Bug reported by David Simner | |
21935 | ||
21936 | * kern/disk.c (grub_disk_write): change to raw disk access before | |
21937 | calling disk_read | |
21938 | ||
1bd265f3 | 21939 | 2009-06-17 Colin Watson <cjwatson@ubuntu.com> |
21940 | ||
21941 | * util/elf/grub-mkimage.c (usage): Prefix each option line with two | |
21942 | spaces, for the benefit of help2man. | |
21943 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
21944 | ||
a2d08c06 | 21945 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
21946 | ||
21947 | * kern/i386/halt.c: Include grub/machine/init.h. | |
21948 | * kern/i386/reboot.c: Include grub/cpu/reboot.h. | |
21949 | ||
b97bcb19 | 21950 | 2009-06-16 Felix Zielcke <fzielcke@z-51.de> |
21951 | ||
21952 | * util/grub.d/30_os-prober.in: Use ${root} in the generated | |
21953 | drivemap menuentry. | |
21954 | ||
0644f96c | 21955 | 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk> |
21956 | ||
21957 | * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of | |
21958 | `echo' command. | |
21959 | ||
3ef17a2e | 21960 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
21961 | ||
21962 | * boot/i386/pc/boot.S: Remove root_drive. Assert offset of | |
21963 | boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't | |
21964 | save %dx, we only need %dl and we never change it. | |
21965 | * boot/i386/pc/cdboot.S: Don't set the root drive. | |
21966 | * boot/i386/pc/pxeboot.S: Likewise. | |
21967 | * include/grub/i386/pc/boot.h: Remove | |
21968 | GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust | |
21969 | GRUB_BOOT_MACHINE_DRIVE_CHECK. | |
21970 | * include/grub/i386/pc/kernel.h: Remove grub_root_drive. | |
21971 | * kern/i386/pc/init.c (make_install_device): Remove references | |
21972 | to grub_root_drive. | |
21973 | * kern/i386/pc/startup.S: Likewise. | |
21974 | * util/i386/pc/grub-setup.c (setup): Don't set root_drive. | |
21975 | ||
693fe637 | 21976 | 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com> |
21977 | ||
21978 | xnu_uuid command | |
21979 | ||
21980 | * commands/xnu_uuid.c: new file | |
21981 | * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod | |
21982 | (xnu_uuid_mod_SOURCES): new variable | |
21983 | (xnu_uuid_mod_CFLAGS): likewise | |
21984 | (xnu_uuid_mod_LDFLAGS): likewise | |
21985 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c | |
21986 | * conf/i386-ieee1275.rmk: likewise | |
21987 | * conf/i386-pc.rmk: likewise | |
21988 | * conf/powerpc-ieee1275.rmk: likewise | |
21989 | * conf/sparc64-ieee1275.rmk: likewise | |
21990 | * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin | |
21991 | ||
c9da87d0 | 21992 | 2009-06-16 Pavel Roskin <proski@gnu.org> |
21993 | ||
21994 | * configure.ac: Avoid '==' in test command, it's not portable. | |
21995 | ||
9c6f4596 | 21996 | 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com> |
21997 | ||
21998 | Probe command | |
21999 | ||
22000 | * commands/probe.c: new file | |
22001 | * conf/common.rmk (pkglib_MODULES): add probe.mod | |
22002 | (probe_mod_SOURCES): new variable | |
22003 | (probe_mod_CFLAGS): likewise | |
22004 | (probe_mod_LDFLAGS): likewise | |
22005 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c | |
22006 | * conf/i386-ieee1275.rmk: likewise | |
22007 | * conf/i386-pc.rmk: likewise | |
22008 | * conf/powerpc-ieee1275.rmk: likewise | |
22009 | * conf/sparc64-ieee1275.rmk: likewise | |
22010 | ||
70b7f9fd | 22011 | 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com> |
22012 | ||
22013 | Fix handling of string like \"hello\" and "a | |
22014 | b" | |
22015 | ||
22016 | * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC | |
22017 | (grub_script_yylex): fix parsing of quoting, escaping and newline | |
22018 | ||
71c79a6b | 22019 | 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com> |
22020 | ||
dd74360c | 22021 | * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition |
71c79a6b | 22022 | handling |
dd74360c | 22023 | |
0644f96c | 22024 | 2009-06-13 Jun Inoue <jun.lambda@gmail.com> |
880fc3c4 | 22025 | |
22026 | * util/grub-mkconfig.in: Fix parsing of --output option. | |
22027 | ||
e40893c3 | 22028 | 2009-06-12 Pavel Roskin <proski@gnu.org> |
22029 | ||
22030 | * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and | |
22031 | genmk.rb don't need to be generated or installed. | |
22032 | ||
3a1acfe2 | 22033 | 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com> |
22034 | ||
22035 | * commands/i386/pc/drivemap_int13h.S: add more comments | |
22036 | ||
3a4575d4 | 22037 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
22038 | ||
0658e928 | 22039 | * Makefile.in (uninstall): Uninstall manuals. |
22040 | ||
ca0388f0 | 22041 | * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from |
22042 | PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib | |
22043 | and update-grub_lib in two places. | |
22044 | * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS. | |
22045 | ||
e3b27c39 | 22046 | * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix |
22047 | a compiler warning. | |
22048 | ||
3a4575d4 | 22049 | * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to |
22050 | `entry_lo' to fix variable shadowing. | |
22051 | ||
af1f4f55 | 22052 | 2009-06-11 Christian Franke <franke@computer.org> |
22053 | ||
22054 | * kern/misc.c (__enable_execute_stack): Add missing return type | |
22055 | to prevent gcc warning. | |
22056 | ||
5225e649 | 22057 | 2009-06-11 Felix Zielcke <fzielcke@z-51.de> |
22058 | ||
22059 | * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'. | |
22060 | ||
7d83bd47 | 22061 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
22062 | ||
c1cb63ba | 22063 | * Makefile.in: Don't rely on any scripts being executable. |
22064 | Always use $(SHELL) to run shell scripts. | |
22065 | ||
7d83bd47 | 22066 | * configure.ac: Always define ___main if using -nostdlib. This |
22067 | fixes tests on Cygwin. | |
22068 | ||
948f48e7 | 22069 | 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com> |
22070 | ||
22071 | UDF fix | |
22072 | ||
7d83bd47 | 22073 | * fs/udf.c (grub_udf_read_block): handle the fact that ad->length |
948f48e7 | 22074 | is in bytes and not in blocks |
7d83bd47 | 22075 | |
8ada9bc1 | 22076 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
22077 | ||
22078 | * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a | |
22079 | warning. | |
22080 | ||
25ad2323 | 22081 | 2009-06-11 Felix Zielcke <fzielcke@z-51.de> |
22082 | ||
22083 | * util/grub.d/30_os-prober.in: Fix a comment. Source | |
22084 | ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device | |
22085 | to set the root device. Place drivemap command in the generated | |
22086 | chain entry. | |
22087 | ||
e65acb0c | 22088 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
22089 | ||
22090 | * configure.ac: Remove host_m32. Issues with 64-bit utilities | |
22091 | have long been resolved. | |
22092 | ||
f285fe2d | 22093 | 2009-06-11 Colin Watson <cjwatson@ubuntu.com> |
22094 | ||
bd47b0b5 | 22095 | * util/grub.d/10_linux.in: Capitalise "Linux". |
22096 | ||
f285fe2d | 22097 | * util/grub-pe2elf.c (usage): Fix references to grub-editenv. |
22098 | ||
a0c62e4e | 22099 | 2009-06-11 Pavel Roskin <proski@gnu.org> |
22100 | ||
b6783cb2 | 22101 | * kern/efi/efi.c (grub_exit): Add infinite loop at the end to |
22102 | fix a gcc warning and ensure that the function won't ever exit. | |
22103 | ||
dde032e8 | 22104 | * kern/i386/ieee1275/init.c: Add missing prototype for |
22105 | grub_stop_floppy(). | |
22106 | ||
22cd079d | 22107 | * loader/ieee1275/multiboot2.c [__i386__]: Include |
22108 | grub/cpu/multiboot.h. | |
22109 | ||
a0c62e4e | 22110 | * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid |
22111 | casts to short - they are not portable and cause warnings. Fix | |
22112 | use of uninitialized values in input_buf. Use ARRAY_SIZE. | |
22113 | ||
63963d17 | 22114 | 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com> |
22115 | ||
22116 | Drivemap fixes | |
22117 | ||
22118 | * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap): | |
22119 | new function | |
22120 | (grub_get_root_biosnumber_saved): new variable | |
22121 | (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap | |
22122 | (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap | |
775dbc4d | 22123 | * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore |
63963d17 | 22124 | %dx after the call if necessary |
22125 | * conf/common.rmk (pkglib_MODULES): remove boot.mod | |
22126 | (boot_mod_SOURCES): remove | |
22127 | (boot_mod_CFLAGS): remove | |
22128 | (boot_mod_LDFLAGS): remove | |
22129 | * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod | |
22130 | (boot_mod_SOURCES): new variable | |
22131 | (boot_mod_CFLAGS): likewise | |
22132 | (boot_mod_LDFLAGS): likewise | |
22133 | * conf/i386-efi.rmk: likewise | |
22134 | * conf/i386-ieee1275.rmk: likewise | |
22135 | * conf/i386-pc.rmk: likewise | |
22136 | * conf/powerpc-ieee1275.rmk: likewise | |
22137 | * conf/sparc64-ieee1275.rmk: likewise | |
22138 | * conf/x86_64-efi.rmk: likewise | |
22139 | * include/grub/i386/pc/biosnum.h: new file | |
22140 | * lib/i386/pc/biosnum.c: likewise | |
22141 | * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber | |
22142 | * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise | |
22143 | * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise | |
775dbc4d | 22144 | |
33abf7ae | 22145 | 2009-06-10 Pavel Roskin <proski@gnu.org> |
22146 | ||
5ac35b35 | 22147 | * io/gzio.c (test_header): Don't reuse one buffer for all data. |
22148 | Use separate variables. Read only the file size at the end, but | |
22149 | not the checksum that we don't use. | |
22150 | ||
5c5215d5 | 22151 | * kern/file.c (grub_file_read): Use void pointer for the buffer. |
22152 | Adjust all callers. | |
22153 | ||
27d5fef7 | 22154 | * kern/ieee1275/openfw.c: Remove libc includes. |
22155 | * kern/ieee1275/cmain.c: Likewise. | |
22156 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
22157 | ||
33abf7ae | 22158 | * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix |
22159 | compiler warnings. | |
22160 | ||
19d50c2b | 22161 | 2009-06-10 Felix Zielcke <fzielcke@z-51.de> |
22162 | ||
22163 | * Makefile.in: Remove all trailing whitespace. | |
22164 | * conf/i386-pc.rmk: Likewise. | |
22165 | * conf/powerpc-ieee1275.rmk: Likewise. | |
22166 | * conf/sparc64-ieee1275.rmk: Likewise. | |
22167 | * docs/grub.texi: Likewise. | |
22168 | * docs/texinfo.tex: Likewise. | |
22169 | * disk/fs_uuid.c: Likewise. | |
22170 | * disk/lvm.c: Likewise. | |
22171 | * disk/scsi.c: Likewise. | |
22172 | * disk/ata.c: Likewise. | |
22173 | * disk/ieee1275/ofdisk.c: Likewise. | |
22174 | * disk/i386/pc/biosdisk.c: Likewise. | |
22175 | * disk/host.c: Likewise. | |
22176 | * disk/raid.c: Likewise. | |
22177 | * disk/efi/efidisk.c: Likewise. | |
22178 | * disk/usbms.c: Likewise. | |
22179 | * disk/memdisk.c: Likewise. | |
22180 | * disk/loopback.c: Likewise. | |
22181 | * kern/powerpc/dl.c: Likewise. | |
22182 | * kern/device.c: Likewise. | |
22183 | * kern/dl.c: Likewise. | |
22184 | * kern/sparc64/dl.c: Likewise. | |
22185 | * kern/ieee1275/ieee1275.c: Likewise. | |
22186 | * kern/term.c: Likewise. | |
22187 | * kern/fs.c: Likewise. | |
22188 | * kern/i386/dl.c: Likewise. | |
22189 | * kern/i386/pc/startup.S: Likewise. | |
22190 | * kern/i386/pc/init.c: Likewise. | |
22191 | * kern/i386/pc/mmap.c: Likewise. | |
22192 | * kern/i386/pc/lzo1x.S: Likewise. | |
22193 | * kern/i386/ieee1275/init.c: Likewise. | |
22194 | * kern/i386/realmode.S: Likewise. | |
22195 | * kern/i386/tsc.c: Likewise. | |
22196 | * kern/partition.c: Likewise. | |
22197 | * kern/corecmd.c: Likewise. | |
22198 | * kern/file.c: Likewise. | |
22199 | * kern/efi/efi.c: Likewise. | |
22200 | * kern/efi/init.c: Likewise. | |
22201 | * kern/efi/mm.c: Likewise. | |
22202 | * kern/main.c: Likewise. | |
22203 | * kern/err.c: Likewise. | |
22204 | * kern/env.c: Likewise. | |
22205 | * kern/disk.c: Likewise. | |
22206 | * kern/generic/millisleep.c: Likewise. | |
22207 | * kern/generic/rtc_get_time_ms.c: Likewise. | |
22208 | * kern/misc.c: Likewise. | |
22209 | * kern/parser.c: Likewise. | |
22210 | * genmk.rb: Likewise. | |
22211 | * configure.ac: Likewise. | |
22212 | * boot/i386/pc/diskboot.S: Likewise. | |
22213 | * boot/i386/pc/pxeboot.S: Likewise. | |
22214 | * boot/i386/pc/boot.S: Likewise. | |
22215 | * boot/i386/pc/lnxboot.S: Likewise. | |
22216 | * boot/i386/pc/cdboot.S: Likewise. | |
22217 | * parttool/pcpart.c: Likewise. | |
22218 | * video/readers/tga.c: Likewise. | |
22219 | * video/video.c: Likewise. | |
22220 | * video/bitmap.c: Likewise. | |
22221 | * lib/envblk.c: Likewise. | |
22222 | * lib/i386/setjmp.S: Likewise. | |
22223 | * fs/xfs.c: Likewise. | |
22224 | * fs/afs.c: Likewise. | |
22225 | * fs/fat.c: Likewise. | |
22226 | * fs/ntfs.c: Likewise. | |
22227 | * fs/udf.c: Likewise. | |
22228 | * fs/affs.c: Likewise. | |
22229 | * fs/iso9660.c: Likewise. | |
22230 | * fs/hfs.c: Likewise. | |
22231 | * fs/fshelp.c: Likewise. | |
22232 | * fs/ext2.c: Likewise. | |
22233 | * fs/jfs.c: Likewise. | |
22234 | * fs/reiserfs.c: Likewise. | |
22235 | * fs/hfsplus.c: Likewise. | |
22236 | * fs/minix.c: Likewise. | |
22237 | * fs/cpio.c: Likewise. | |
22238 | * fs/sfs.c: Likewise. | |
22239 | * fs/ufs.c: Likewise. | |
22240 | * efiemu/prepare.c: Likewise. | |
22241 | * efiemu/loadcore_common.c: Likewise. | |
22242 | * efiemu/runtime/efiemu.sh: Likewise. | |
22243 | * efiemu/runtime/efiemu.S: Likewise. | |
22244 | * efiemu/runtime/efiemu.c: Likewise. | |
22245 | * efiemu/pnvram.c: Likewise. | |
22246 | * efiemu/main.c: Likewise. | |
22247 | * efiemu/i386/pc/cfgtables.c: Likewise. | |
22248 | * efiemu/i386/loadcore64.c: Likewise. | |
22249 | * efiemu/i386/loadcore32.c: Likewise. | |
22250 | * efiemu/loadcore.c: Likewise. | |
22251 | * efiemu/symbols.c: Likewise. | |
22252 | * efiemu/mm.c: Likewise. | |
22253 | * include/grub/autoefi.h: Likewise. | |
22254 | * include/grub/datetime.h: Likewise. | |
22255 | * include/grub/term.h: Likewise. | |
22256 | * include/grub/hfs.h: Likewise. | |
22257 | * include/grub/lvm.h: Likewise. | |
22258 | * include/grub/i386/tsc.h: Likewise. | |
22259 | * include/grub/i386/linux.h: Likewise. | |
22260 | * include/grub/i386/xnu.h: Likewise. | |
22261 | * include/grub/i386/efiemu.h: Likewise. | |
22262 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
22263 | * include/grub/i386/pc/memory.h: Likewise. | |
22264 | * include/grub/i386/pc/vbe.h: Likewise. | |
22265 | * include/grub/parttool.h: Likewise. | |
22266 | * include/grub/video.h: Likewise. | |
22267 | * include/grub/memory.h: Likewise. | |
22268 | * include/grub/fs.h: Likewise. | |
22269 | * include/grub/partition.h: Likewise. | |
22270 | * include/grub/xnu.h: Likewise. | |
22271 | * include/grub/efi/api.h: Likewise. | |
22272 | * include/grub/efi/pe32.h: Likewise. | |
22273 | * include/grub/efi/memory.h: Likewise. | |
22274 | * include/grub/multiboot.h: Likewise. | |
22275 | * include/grub/usbdesc.h: Likewise. | |
22276 | * include/grub/multiboot2.h: Likewise. | |
22277 | * include/grub/acpi.h: Likewise. | |
22278 | * include/grub/efiemu/efiemu.h: Likewise. | |
22279 | * include/grub/disk.h: Likewise. | |
22280 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
22281 | * include/grub/net.h: Likewise. | |
22282 | * include/grub/machoload.h: Likewise. | |
22283 | * include/grub/macho.h: Likewise. | |
22284 | * include/multiboot.h: Likewise. | |
22285 | * genmoddep.awk: Likewise. | |
22286 | * normal/main.c: Likewise. | |
22287 | * normal/menu_entry.c: Likewise. | |
22288 | * normal/menu_viewer.c: Likewise. | |
22289 | * normal/completion.c: Likewise. | |
22290 | * normal/cmdline.c: Likewise. | |
22291 | * normal/misc.c: Likewise. | |
22292 | * normal/datetime.c: Likewise. | |
22293 | * bus/usb/usbtrans.c: Likewise. | |
22294 | * bus/usb/ohci.c: Likewise. | |
22295 | * bus/usb/uhci.c: Likewise. | |
22296 | * bus/usb/usb.c: Likewise. | |
22297 | * mmap/efi/mmap.c: Likewise. | |
22298 | * mmap/i386/pc/mmap_helper.S: Likewise. | |
22299 | * mmap/i386/pc/mmap.c: Likewise. | |
22300 | * mmap/i386/mmap.c: Likewise. | |
22301 | * mmap/i386/uppermem.c: Likewise. | |
22302 | * mmap/mmap.c: Likewise. | |
22303 | * commands/acpi.c: Likewise. | |
22304 | * commands/echo.c: Likewise. | |
22305 | * commands/blocklist.c: Likewise. | |
22306 | * commands/loadenv.c: Likewise. | |
22307 | * commands/usbtest.c: Likewise. | |
22308 | * commands/boot.c: Likewise. | |
22309 | * commands/parttool.c: Likewise. | |
22310 | * commands/search.c: Likewise. | |
22311 | * commands/cat.c: Likewise. | |
22312 | * commands/i386/pc/play.c: Likewise. | |
22313 | * commands/i386/pc/drivemap.c: Likewise. | |
22314 | * commands/i386/pc/vbeinfo.c: Likewise. | |
22315 | * commands/i386/pc/acpi.c: Likewise. | |
22316 | * commands/i386/pc/vbetest.c: Likewise. | |
22317 | * commands/ls.c: Likewise. | |
22318 | * commands/cmp.c: Likewise. | |
22319 | * commands/test.c: Likewise. | |
22320 | * commands/efi/acpi.c: Likewise. | |
22321 | * commands/gptsync.c: Likewise. | |
22322 | * commands/help.c: Likewise. | |
22323 | * partmap/amiga.c: Likewise. | |
22324 | * partmap/apple.c: Likewise. | |
22325 | * partmap/acorn.c: Likewise. | |
22326 | * partmap/pc.c: Likewise. | |
22327 | * partmap/sun.c: Likewise. | |
22328 | * partmap/gpt.c: Likewise. | |
22329 | * script/sh/lexer.c: Likewise. | |
22330 | * script/sh/function.c: Likewise. | |
22331 | * font/font.c: Likewise. | |
22332 | * font/font_cmd.c: Likewise. | |
22333 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
22334 | * loader/efi/chainloader.c: Likewise. | |
22335 | * loader/multiboot_loader.c: Likewise. | |
22336 | * loader/macho.c: Likewise. | |
22337 | * loader/i386/multiboot.c: Likewise. | |
22338 | * loader/i386/linux.c: Likewise. | |
22339 | * loader/i386/pc/linux.c: Likewise. | |
22340 | * loader/i386/pc/multiboot2.c: Likewise. | |
22341 | * loader/i386/pc/chainloader.c: Likewise. | |
22342 | * loader/i386/pc/xnu.c: Likewise. | |
22343 | * loader/i386/bsd_trampoline.S: Likewise. | |
22344 | * loader/i386/efi/linux.c: Likewise. | |
22345 | * loader/i386/multiboot_elfxx.c: Likewise. | |
22346 | * loader/i386/bsd_helper.S: Likewise. | |
22347 | * loader/i386/bsd.c: Likewise. | |
22348 | * loader/i386/linux_trampoline.S: Likewise. | |
22349 | * loader/i386/xnu_helper.S: Likewise. | |
22350 | * loader/i386/xnu.c: Likewise. | |
22351 | * loader/i386/bsd_pagetable.c: Likewise. | |
22352 | * loader/i386/multiboot_helper.S: Likewise. | |
22353 | * loader/xnu.c: Likewise. | |
22354 | * loader/xnu_resume.c: Likewise. | |
22355 | * io/gzio.c: Likewise. | |
22356 | * term/efi/console.c: Likewise. | |
22357 | * term/terminfo.c: Likewise. | |
22358 | * term/ieee1275/ofconsole.c: Likewise. | |
22359 | * term/i386/pc/serial.c: Likewise. | |
22360 | * term/i386/pc/vesafb.c: Likewise. | |
22361 | * term/i386/pc/vga.c: Likewise. | |
22362 | * term/usb_keyboard.c: Likewise. | |
22363 | * term/gfxterm.c: Likewise. | |
22364 | * aclocal.m4: Likewise. | |
22365 | * util/lvm.c: Likewise. | |
22366 | * util/grub.d/30_os-prober.in: Likewise. | |
22367 | * util/grub.d/10_hurd.in: Likewise. | |
22368 | * util/console.c: Likewise. | |
22369 | * util/grub-macho2img.c: Likewise. | |
22370 | * util/grub-probe.c: Likewise. | |
22371 | * util/hostfs.c: Likewise. | |
22372 | * util/i386/pc/grub-mkimage.c: Likewise. | |
22373 | * util/i386/pc/grub-setup.c: Likewise. | |
22374 | * util/i386/efi/grub-mkimage.c: Likewise. | |
22375 | * util/grub-mkconfig.in: Likewise. | |
22376 | * util/raid.c: Likewise. | |
22377 | * util/resolve.c: Likewise. | |
22378 | * util/grub-mkdevicemap.c: Likewise. | |
22379 | * util/grub-emu.c: Likewise. | |
22380 | * util/getroot.c: Likewise. | |
22381 | * util/hostdisk.c: Likewise. | |
22382 | * util/usb.c: Likewise. | |
22383 | * util/grub-editenv.c: Likewise. | |
22384 | * util/misc.c: Likewise. | |
22385 | ||
d2d49665 | 22386 | 2009-06-10 Felix Zielcke <fzielcke@z-51.de> |
22387 | ||
22388 | * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and | |
22389 | `genparttoollist.sh'. | |
22390 | (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'. | |
22391 | Add `*.sh' to the list find searches for and change `mdate.sh' | |
22392 | to `mdate-sh'. | |
22393 | ||
fe052e37 | 22394 | 2009-06-10 Pavel Roskin <proski@gnu.org> |
22395 | ||
2763ac18 | 22396 | * include/grub/multiboot2.h: Provide compatibility defines for |
22397 | multiboot2.h. | |
22398 | * include/multiboot2.h: Include stdint.h only if needed, using | |
22399 | angle brackets. | |
22400 | * loader/i386/pc/multiboot2.c: Include multiboot2.h after | |
22401 | grub/multiboot2.h. | |
22402 | * loader/ieee1275/multiboot2.c: Likewise. | |
22403 | * loader/multiboot2.c: Likewise. | |
22404 | * loader/multiboot_loader.c: Likewise. | |
22405 | ||
437e6adc | 22406 | * configure.ac: Use -nostdlib when probing for the target. It |
22407 | should not be required to have libc for the target. | |
22408 | ||
06a6836c | 22409 | * configure.ac: Remove checks for __bswapsi2 and __bswapdi2, |
22410 | they fail without libc headers for the target. | |
22411 | * include/grub/powerpc/libgcc.h: Use weak attribute for all | |
22412 | exports. | |
22413 | * include/grub/sparc64/libgcc.h: Likewise. Don't use | |
22414 | preprocessor conditionals. | |
22415 | ||
fe052e37 | 22416 | * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The |
22417 | build system doesn't need to be aware of the tar.c internals. | |
22418 | ||
afd22553 | 22419 | 2009-06-09 Michel Hermier <michel.hermier@gmail.com> |
87b8f28c | 22420 | |
afd22553 | 22421 | * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values. |
8ec4a6d0 | 22422 | |
6b787c4f | 22423 | 2009-06-09 Robert Millan <rmh.grub@aybabtu.com> |
22424 | ||
22425 | * util/deviceiter.c (grub_util_iterate_devices): Increase number of | |
22426 | disk limit to 26 for IDE, Virtio, Xen and SCSI. | |
22427 | ||
22428 | 2009-06-09 Felix Zielcke <fzielcke@z-51.de> | |
22429 | ||
22430 | * util/i386/pc/grub-install.in: Change the error message if UUIDs | |
473d1e45 | 22431 | aren't available if ata.mod gets used. |
6b787c4f | 22432 | |
473d1e45 | 22433 | 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com> |
e23721e8 | 22434 | |
473d1e45 | 22435 | * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after |
e23721e8 | 22436 | initialising controller. |
473d1e45 | 22437 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. |
e23721e8 | 22438 | |
255a27d4 | 22439 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
22440 | ||
22441 | * util/i386/pc/grub-install.in: Add a parameter --disk-module | |
22442 | to choose between ata and biosdisk module on i386-pc. | |
22443 | ||
473d1e45 | 22444 | 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com> |
69da8877 | 22445 | |
d55842d8 | 22446 | * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class, |
22447 | Subclass and Programming Interface fields in terms of the 3 byte | |
22448 | Class Code register. | |
22449 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. | |
22450 | ||
fa5db0b1 | 22451 | * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming |
22452 | interface is OHCI. Add grub_dprintf for symmetry with | |
22453 | bus/usb/uhci.c. | |
22454 | * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming | |
22455 | interface is UHCI. Add interf variable for programming | |
22456 | interface. Print interface with class/subclass. | |
22457 | ||
c0947beb | 22458 | * bus/usb/ohci.c: Set interf with correct field. |
22459 | ||
69da8877 | 22460 | * bus/usb/uhci.c: Remove unneeded doubled lines. |
22461 | * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t. | |
22462 | Remove whitespace inside comment. | |
22463 | ||
9e172e30 | 22464 | 2009-06-08 Robert Millan <rmh.grub@aybabtu.com> |
22465 | ||
22466 | * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use | |
22467 | as fallback an equivalent option without depth. | |
22468 | ||
de65ee2b | 22469 | 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com> |
22470 | ||
22471 | Not fail if unable to retrieve C/H/S on LBA disks | |
22472 | ||
473d1e45 | 22473 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully |
de65ee2b | 22474 | if unable to retrieve C/H/S on LBA disks |
22475 | ||
b57ea2c9 | 22476 | 2009-06-08 Pavel Roskin <proski@gnu.org> |
22477 | ||
22478 | * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning | |
22479 | about aliasing. | |
22480 | ||
af361263 | 22481 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
22482 | ||
22483 | * Makefile.in (uninstall): Remove all $lib_DATA files. | |
22484 | ||
4c9ec6b3 | 22485 | 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com> |
22486 | ||
22487 | Bugfix: install on partitionless device | |
22488 | ||
22489 | * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev | |
22490 | is a whole disk | |
22491 | ||
e76fc924 | 22492 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
22493 | ||
22494 | * Makefile.in (uninstall): Remove all $include_DATA files. | |
22495 | ||
ba5a0d05 | 22496 | 2009-06-08 Felix Zielcke <fzielcke@z-51.de> |
22497 | ||
22498 | * commands/true.c: New file. Implement the true and false commands. | |
22499 | * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'. | |
22500 | (true_mod_SOURCES): New variable. | |
22501 | (true_mod_CFLAGS): Likewise. | |
22502 | (true_mod_LDFLAGS): Likewise. | |
22503 | ||
c8048e32 | 22504 | 2009-06-05 Colin D Bennett <colin@gibibit.com> |
22505 | ||
22506 | Optimized font character lookup using binary search instead of linear | |
22507 | search. Fonts now are required to have the character index ordered by | |
22508 | code point. | |
22509 | ||
22510 | * font/font.c (load_font_index): Verify that fonts have ordered | |
22511 | character indices. | |
22512 | (find_glyph): Use binary search instead of linear search to find a | |
22513 | character in a font. | |
22514 | ||
408305be | 22515 | 2009-06-05 Michael Scherer <misc@mandriva.org> |
22516 | ||
22517 | * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem | |
22518 | uses case sensitive btree. | |
22519 | (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE | |
22520 | only for case insensitive filesystems. | |
22521 | ||
8ee1e0d9 | 22522 | 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com> |
22523 | ||
22524 | * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall | |
22525 | * conf/common.rmk (search_mod_CFLAGS): likewise | |
22526 | ||
a9966eb1 | 22527 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22528 | ||
473d1e45 | 22529 | * kern/i386/pc/startup.S [APPLE_CC]: block of nops to |
a9966eb1 | 22530 | compensate a compiler bug |
22531 | ||
9e7100fb | 22532 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22533 | ||
473d1e45 | 22534 | * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8 |
9e7100fb | 22535 | instead of '\b' |
473d1e45 | 22536 | |
ede21d71 | 22537 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22538 | ||
22539 | Definitions for creating asm symbols with Apple's CC | |
22540 | ||
22541 | * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro | |
22542 | [APPLE_CC] (VARIABLE): likewise | |
22543 | ||
9dbf7653 | 22544 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22545 | ||
22546 | Disable lnxboot.img when compiled | |
22547 | with Apple's CC | |
22548 | ||
22549 | * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img | |
22550 | pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img | |
22551 | * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error | |
22552 | [! APPLE_CC] (CODE_LENG): skip | |
22553 | [! APPLE_CC] (setup_sects): likewise | |
22554 | [! APPLE_CC]: skip filling | |
473d1e45 | 22555 | |
e93cdc3d | 22556 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22557 | ||
22558 | Address in trampolines based on 32-bit registers when compiled | |
22559 | with Apple's CC | |
22560 | ||
473d1e45 | 22561 | * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers |
e93cdc3d | 22562 | for addresses |
22563 | * loader/i386/linux_trampoline.S [APPLE_CC]: likewise | |
22564 | ||
6c688477 | 22565 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22566 | ||
22567 | Avoid aliases when compiling with Apple's CC for PCBIOS machine | |
22568 | ||
22569 | * kern/misc.c [APPLE_CC] (memcpy): new function | |
22570 | [APPLE_CC] (memmove): likewise | |
22571 | [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise | |
473d1e45 | 22572 | (memcpy): define alias conditionally on !APPLE_CC |
6c688477 | 22573 | (memset): likewise |
22574 | (abort): likewise | |
22575 | * include/grub/misc.h (memove): don't define when both GRUB_UTIL and | |
22576 | APPLE_CC are defined | |
22577 | * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function | |
22578 | (grub_assert_fail): make prototype conditional | |
22579 | ||
e37ffc5c | 22580 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22581 | ||
22582 | Use grub-macho2img when compiling with Apple's CC for PCBIOS machine | |
22583 | ||
473d1e45 | 22584 | * conf/common.rmk (bin_UTILITIES): add (on false on condition) |
22585 | grub-macho2img | |
e37ffc5c | 22586 | (CLEANFILES): add grub-macho2img |
22587 | (grub_macho2img_SOURCES): new variable | |
22588 | * kern/i386/pc/startup.S (bss_start): new variable | |
22589 | (bss_end): likewise | |
22590 | * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC | |
22591 | * util/grub-macho2img.c: new file | |
22592 | ||
cf00df31 | 22593 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22594 | ||
22595 | Use objconv when compiling with Apple's CC | |
22596 | ||
22597 | * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined | |
22598 | (efiemu64.o): likewise | |
22599 | (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1 | |
22600 | when compiling with Apple's CC | |
22601 | (efiemu64_s.o): likewise | |
22602 | * configure.ac: check for objconv when compiling with Apple's CC | |
22603 | * genmk.rb: use objconv for modules when compiled with Apple's CC | |
473d1e45 | 22604 | |
d119a20c | 22605 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22606 | ||
22607 | Define segment as well as section when compiling with | |
22608 | Apple's CC | |
22609 | ||
22610 | * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition | |
22611 | (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE | |
22612 | (efiemu_convert_pointer): likewise | |
22613 | (efiemu_set_virtual_address_map): likewise | |
22614 | (efiemu_convert_pointer): likewise | |
22615 | (efiemu_getcrc32): likewise | |
22616 | (init_crc32_table): likewise | |
22617 | (reflect): likewise | |
22618 | * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC | |
22619 | (GRUB_MOD_DEP): likewise | |
473d1e45 | 22620 | |
c8600122 | 22621 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22622 | ||
22623 | Allow a compilation without -mcmodel=large | |
22624 | ||
22625 | * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB | |
22626 | when compiled without -mcmodel=large | |
473d1e45 | 22627 | (filter_memory_map): remove memory post 4 GiB when compiled |
c8600122 | 22628 | without -mcmodel=large |
473d1e45 | 22629 | * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to |
c8600122 | 22630 | TARGET_CFLAGS when -mcmodel=large isn't supported |
473d1e45 | 22631 | |
e8df1d4e | 22632 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22633 | ||
22634 | Remove nested functions in efiemu core | |
22635 | ||
22636 | * efiemu/runtime/efiemu.c (reflect): make static instead of nested | |
473d1e45 | 22637 | |
cc6c3ac1 | 22638 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22639 | ||
22640 | Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC | |
22641 | ||
22642 | * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as | |
22643 | temporary storage | |
473d1e45 | 22644 | * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when |
22645 | using Apple's CC | |
cc6c3ac1 | 22646 | (grub_cpu_is_tsc_supported): likewise |
22647 | * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly | |
473d1e45 | 22648 | |
3e325901 | 22649 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22650 | ||
22651 | Absolute addressing through constant with Apple's cc | |
22652 | ||
22653 | * kern/i386/pc/startup.S: Define necessary constants | |
22654 | and address through it when using ABS with Apple's CC | |
22655 | * boot/i386/pc/diskboot.S: likewise | |
22656 | * boot/i386/pc/boot.S: likewise | |
22657 | * boot/i386/pc/lnxboot.S: likewise | |
22658 | * boot/i386/pc/cdboot.S: likewise | |
22659 | * mmap/i386/pc/mmap_helper.S: likewise | |
22660 | * commands/i386/pc/drivemap_int13h.S: likewise | |
22661 | ||
2b167a72 | 22662 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22663 | ||
22664 | Check if compiler is apple cc | |
22665 | ||
22666 | * Makefile.in (ASFLAGS): new variable | |
22667 | (TARGET_ASFLAGS): likewise | |
22668 | (TARGET_MODULE_FORMAT): likewise | |
22669 | (TARGET_APPLE_CC): likewise | |
22670 | (OBJCONV): likewise | |
22671 | (TARGET_IMG_CFLAGS): likewise | |
22672 | (TARGET_CPPFLAGS): add includedir | |
22673 | * configure.ac: call grub_apple_cc and grub_apple_target_cc | |
22674 | (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated | |
22675 | Check for linker script only if compiler isn't Apple's CC | |
22676 | (TARGET_MODULE_FORMAT): set | |
22677 | (TARGET_APPLE_CC): likewise | |
22678 | (TARGET_ASFLAGS): likewise | |
22679 | (ASFLAGS): likewise | |
22680 | Check for objcopy only if compiler isn't Apple's CC | |
22681 | Check for BSS symbol only if compiler isn't Apple's CC | |
22682 | * genmk.rb: adapt nm options if we use Apple's utils | |
22683 | * aclocal.m4 (grub_apple_cc): new test | |
22684 | (grub_apple_target_cc): likewise | |
473d1e45 | 22685 | |
fb14123e | 22686 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22687 | ||
22688 | Simplify sed expressions and improve awk | |
22689 | ||
22690 | * Makefile.in (install-local): simplify sed expression | |
22691 | * gencmdlist.sh: likewise | |
22692 | * genmoddep.awk: avoid adding module as a dependency of itself | |
22693 | ||
5b889789 | 22694 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22695 | ||
22696 | Add missing start symbols | |
22697 | ||
22698 | * boot/i386/pc/boot.S: add start | |
fb14123e | 22699 | * boot/i386/pc/pxeboot.S: likewise |
473d1e45 | 22700 | |
fd2bf2e3 | 22701 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22702 | ||
22703 | Fix wrong assumptions with grub-mkimage on EFI | |
473d1e45 | 22704 | |
22705 | * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here | |
fd2bf2e3 | 22706 | (relocate_addresses): consider both r_addend and value at offset |
22707 | (make_mods_section): zerofill modinfo and header | |
22708 | (convert_elf): write prefix here | |
473d1e45 | 22709 | |
5389763d | 22710 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22711 | ||
22712 | Use .asciz instead of .string | |
22713 | ||
22714 | * i386/pc/diskboot.S: use .asciz instead of .string | |
22715 | * i386/pc/boot.S: likewise | |
22716 | * include/grub/dl.h (GRUB_MOD_DEP): likewise | |
22717 | (GRUB_MOD_NAME): likewise | |
473d1e45 | 22718 | |
3eb5ed4e | 22719 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22720 | ||
22721 | gfxpayload support | |
22722 | ||
22723 | * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode | |
22724 | * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition | |
22725 | (grub_video_setup): remove | |
22726 | (grub_video_set_mode): new prototype | |
22727 | * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition | |
22728 | (vid_mode): remove | |
22729 | (linux_vesafb_res): compile only on PCBIOS | |
22730 | (grub_linux_boot): support gfxpayload | |
22731 | * loader/i386/pc/xnu.c (video_hook): new function | |
22732 | (grub_xnu_set_video): support gfxpayload | |
22733 | * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed | |
22734 | (DEFAULT_VIDEO_HEIGHT): likewise | |
22735 | (DEFAULT_VIDEO_FLAGS): likewise | |
22736 | (DEFAULT_VIDEO_MODE): new definition | |
22737 | (video_hook): new function | |
22738 | (grub_gfxterm_init): use grub_video_set_mode | |
473d1e45 | 22739 | * util/grub.d/30_os-prober.in: remove explicit modesetting before |
3eb5ed4e | 22740 | loading xnu |
22741 | * video/video.c (grub_video_setup): removed | |
473d1e45 | 22742 | (grub_video_set_mode): new function based on grub_gfxterm_init and |
3eb5ed4e | 22743 | grub_video_setup |
22744 | ||
4b0e1143 | 22745 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22746 | ||
22747 | Avoid calling biosdisk in drivemap | |
22748 | ||
22749 | * commands/i386/pc/drivemap.c (parse_biosdisk): remove | |
22750 | (revparse_biosdisk): likewise | |
22751 | (list_mappings): derive name from id directly | |
22752 | (grub_cmd_drivemap): use tryparse_diskstring | |
473d1e45 | 22753 | |
fda6cb98 | 22754 | 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> |
22755 | ||
22756 | Script fixes | |
22757 | ||
22758 | * include/grub/script_sh.h (grub_script_cmdline): remove cmdline | |
22759 | (grub_lexer_param): add tokenonhold | |
22760 | (grub_script_create_cmdline): remove cmdline. All callers updated | |
22761 | (grub_script_function_create): make functionname | |
22762 | grub_script_arg. All callers updated | |
22763 | (grub_script_execute_argument_to_string): new prototype | |
22764 | * kern/parser.c (state_transitions): reorder | |
22765 | (grub_parser_cmdline_state): fix a bug and make more compact | |
473d1e45 | 22766 | * script/sh/execute.c (grub_script_execute_argument_to_string): |
fda6cb98 | 22767 | make global |
22768 | (grub_script_execute_cmdline): use new format | |
22769 | * script/sh/function.c (grub_script_function_create): make functionname | |
22770 | grub_script_arg. All callers updated | |
473d1e45 | 22771 | * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold |
fda6cb98 | 22772 | (grub_script_yylex): remove |
22773 | (grub_script_yylex2): renamed to ... | |
22774 | (grub_script_yylex): ...renamed | |
22775 | parse the expressions like a${b}c | |
22776 | * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal | |
22777 | (GRUB_PARSER_TOKEN_VAR): remove | |
22778 | (GRUB_PARSER_TOKEN_NAME): likewise | |
22779 | ("if"): declare as typeless | |
22780 | ("while"): likewise | |
22781 | ("function"): likewise | |
22782 | ("else"): likewise | |
22783 | ("then"): likewise | |
22784 | ("fi"): likewise | |
22785 | (text): remove | |
22786 | (argument): likewise | |
22787 | (script): accept empty scripts and make exit on error | |
22788 | (arguments): use GRUB_PARSER_TOKEN_ARG | |
22789 | (function): likewise | |
22790 | (command): move error handling to script | |
22791 | (menuentry): move grub_script_lexer_ref before | |
473d1e45 | 22792 | * script/sh/script.c (grub_script_create_cmdline): remove cmdline |
fda6cb98 | 22793 | argument. All callers updated |
22794 | ||
f4448a07 | 22795 | 2009-06-04 Robert Millan <rmh.grub@aybabtu.com> |
22796 | ||
22797 | Prevent GRUB from probing floppies during boot. | |
22798 | ||
22799 | * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'. | |
22800 | * commands/search.c (options): Add --no-floppy. | |
22801 | (search_fs, search_file, grub_cmd_search): Support --no-floppy. | |
22802 | * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use | |
22803 | --no-floppy when searching for UUIDs. | |
22804 | ||
2bf5885a | 22805 | 2009-06-04 Robert Millan <rmh.grub@aybabtu.com> |
22806 | ||
22807 | Simplify the code duplication in commands/search.c. | |
22808 | ||
22809 | * commands/search.c (search_label, search_fs_uuid): Merge into ... | |
22810 | (search_fs): ... this. Update all users. | |
22811 | ||
f6fd460a | 22812 | 2009-06-03 Felix Zielcke <fzielcke@z-51.de> |
22813 | ||
22814 | * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir. | |
22815 | ||
cbb3c83e | 22816 | 2009-05-28 Pavel Roskin <proski@gnu.org> |
22817 | ||
57788cfd | 22818 | * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD. |
22819 | Remove the original symlink explicitly. | |
22820 | ||
cbb3c83e | 22821 | * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not |
22822 | just one slash. That's how grub_fshelp_find_file() does it. | |
22823 | ||
cd0d5e30 | 22824 | 2009-05-26 Pavel Roskin <proski@gnu.org> |
22825 | ||
f0f8bbe2 | 22826 | * genmk.rb: Avoid shadowing variable `s', rename the outer `s' |
22827 | to `str'. | |
22828 | ||
cd0d5e30 | 22829 | * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as |
22830 | possibly unused. | |
22831 | ||
8c2cab51 | 22832 | 2009-05-25 Christian Franke <franke@computer.org> |
22833 | ||
22834 | * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status | |
22835 | register. | |
22836 | (grub_atapi_identify): Add wait after drive select. | |
22837 | (grub_ata_identify): Do more strict status register check before | |
22838 | calling grub_atapi_identify (). Suppress error message if status | |
22839 | register is 0x00 after command failure. Add status register | |
22840 | check after PIO read to avoid bogus identify due to stuck DRQ. | |
22841 | Thanks to Pavel Roskin for testing. | |
22842 | (grub_device_initialize): Remove unsafe status register check. | |
22843 | Thanks to 'phcoder' for problem report and patch. | |
22844 | Prevent sign extension in debug message. | |
22845 | ||
230c0ad6 | 22846 | 2009-05-23 Colin D Bennett <colin@gibibit.com> |
22847 | ||
22848 | Cleaned up `include/grub/normal.h'. Grouped prototypes by | |
22849 | definition file, and functions defined in `normal/menu.c' have had | |
22850 | their prototypes moved to `include/grub/menu.h' for consistency. | |
22851 | ||
22852 | * include/grub/menu.h (grub_menu_execute_callback): Added; moved | |
22853 | from normal.h. | |
22854 | (grub_menu_get_entry): Likewise. | |
22855 | (grub_menu_get_timeout): Likewise. | |
22856 | (grub_menu_set_timeout): Likewise. | |
22857 | (grub_menu_execute_entry): Likewise. | |
22858 | (grub_menu_execute_with_fallback): Likewise. | |
22859 | (grub_menu_entry_run): Likewise. | |
22860 | ||
22861 | * include/grub/normal.h: Re-ordered and grouped function | |
22862 | prototypes by file that the function is defined in. | |
22863 | (grub_menu_execute_callback): Removed; moved to menu.h. | |
22864 | (grub_menu_get_entry): Likewise. | |
22865 | (grub_menu_get_timeout): Likewise. | |
22866 | (grub_menu_set_timeout): Likewise. | |
22867 | (grub_menu_execute_entry): Likewise. | |
22868 | (grub_menu_execute_with_fallback): Likewise. | |
22869 | (grub_menu_entry_run): Likewise. | |
22870 | (grub_menu_addentry): Renamed from this ... | |
22871 | (grub_normal_add_menu_entry): ... to this. | |
22872 | ||
22873 | * normal/main.c (grub_menu_addentry): Renamed from this ... | |
22874 | (grub_normal_add_menu_entry): ... to this. | |
22875 | ||
22876 | * script/sh/execute.c (grub_script_execute_menuentry): Update | |
22877 | reference to renamed grub_menu_addentry function. | |
22878 | ||
861f03a5 | 22879 | 2009-05-23 Felix Zielcke <fzielcke@z-51.de> |
22880 | ||
22881 | * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users. | |
22882 | ||
96b1619a | 22883 | 2009-05-22 Pavel Roskin <proski@gnu.org> |
22884 | ||
bf6a5fb2 | 22885 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove. |
22886 | * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define | |
22887 | NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when | |
22888 | compiling for the i386 targets, but not for the utilities. | |
22889 | ||
96b1619a | 22890 | * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type |
22891 | to grub_uint8_t. | |
22892 | (grub_root_drive): Likewise. | |
22893 | * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte, | |
22894 | remove alignment. | |
22895 | (grub_root_drive): Change size to byte. | |
22896 | (grub_start_addr): Remove. | |
22897 | (grub_end_addr): Likewise. | |
22898 | (grub_apm_bios_info): Likewise. | |
22899 | ||
b729776b | 22900 | 2009-05-21 Felix Zielcke <fzielcke@z-51.de> |
22901 | ||
22902 | * normal/i386: Remove. | |
22903 | * normal/powerpc: Likewise. | |
22904 | * normal/sparc64: Likewise. | |
22905 | * normal/x86_64: Likewise. | |
22906 | ||
0a15ce80 | 22907 | 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com> |
22908 | ||
22909 | * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable | |
473d1e45 | 22910 | * loader/i386/linux_trampoline.S: Fix indentation |
0a15ce80 | 22911 | * loader/i386/xnu_helper.S: Likewise |
d6da58e6 | 22912 | |
33db9015 | 22913 | 2009-05-18 Colin D Bennett <colin@gibibit.com> |
22914 | ||
d6da58e6 | 22915 | Display error messages when parsing a Lua statement fails. |
22916 | Previously, executing a syntactically invalid statement like | |
22917 | ")foo" or "bar;" would silently fail. | |
33db9015 | 22918 | |
22919 | * script/lua/grub_main.c (handle_lua_error): New function. | |
d6da58e6 | 22920 | (grub_lua_parse_line): Improved reporting of Lua parser and |
22921 | execution errors. | |
33db9015 | 22922 | |
46422c89 | 22923 | 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
22924 | ||
22925 | Remove -Werror which causes build to fail on some systems | |
22926 | ||
22927 | * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall | |
22928 | * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise | |
22929 | * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise | |
18f547ad | 22930 | |
22f53a96 | 22931 | 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com> |
22932 | ||
22933 | trampoline for linux on 64-bit platform | |
22934 | ||
18f547ad | 22935 | * conf/x86_64-efi.rmk (linux_mod_SOURCES): added |
22936 | loader/i386/efi/linux_trampoline.S | |
22937 | * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed | |
473d1e45 | 22938 | declaration |
d6da58e6 | 22939 | * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from |
22940 | here | |
22f53a96 | 22941 | * loader/i386/linux_trampoline.S: moved here |
d6da58e6 | 22942 | * loader/i386/efi/linux.c (allocate_pages): reserve space for |
22943 | trampoline | |
22f53a96 | 22944 | (jumpvector): removed |
22945 | (grub_linux_trampoline_start): new declaration | |
22946 | (grub_linux_trampoline_end): likewise | |
22947 | (grub_linux_boot): use trampoline when on 64-bit platform | |
22948 | * loader/i386/linux.c: likewise | |
22949 | ||
cb5a0f40 | 22950 | 2009-05-16 Pavel Roskin <proski@gnu.org> |
22951 | ||
22952 | * script/lua/grub_lib.c (grub_lua_getenv): Make name and value | |
22953 | const to avoid a warning. | |
22954 | (grub_lua_setenv): Likewise. | |
22955 | * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for | |
22956 | lmsg to fix a warning. | |
22957 | ||
334f2c28 | 22958 | 2009-05-16 Felix Zielcke <fzielcke@z-51.de> |
22959 | ||
22960 | * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ... | |
7dd10fce | 22961 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). |
22962 | * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ... | |
22963 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
22964 | * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ... | |
22965 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
22966 | * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ... | |
22967 | (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS). | |
334f2c28 | 22968 | |
59e5d3ec | 22969 | 2009-05-16 Felix Zielcke <fzielcke@z-51.de> |
22970 | ||
22971 | * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT. | |
22972 | ||
9d87a1ba | 22973 | 2009-05-16 Bean <bean123ch@gmail.com> |
22974 | ||
22975 | * conf/common.rmk (pkglib_MODULES): Add lua.mod. | |
22976 | (lua_mod_SOURCES): New variable. | |
22977 | (lua_mod_CFLAGS): Likewise. | |
22978 | (lua_mod_LDFLAGS): Likewise. | |
22979 | ||
22980 | * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod. | |
22981 | (setjmp_mod_SOURCES): New variable. | |
22982 | (setjmp_mod_CFLAGS): Likewise. | |
22983 | (setjmp_LDFLAGS): Likewise. | |
22984 | ||
22985 | * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod. | |
22986 | (setjmp_mod_SOURCES): New variable. | |
22987 | (setjmp_mod_CFLAGS): Likewise. | |
22988 | (setjmp_LDFLAGS): Likewise. | |
22989 | ||
22990 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod. | |
22991 | (setjmp_mod_SOURCES): New variable. | |
22992 | (setjmp_mod_CFLAGS): Likewise. | |
22993 | (setjmp_LDFLAGS): Likewise. | |
22994 | ||
22995 | * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod. | |
22996 | (setjmp_mod_SOURCES): New variable. | |
22997 | (setjmp_mod_CFLAGS): Likewise. | |
22998 | (setjmp_LDFLAGS): Likewise. | |
22999 | ||
23000 | * normal/i386/setjmp.S: Moved from here ... | |
23001 | * lib/i386/setjmp.S: ... Moved here | |
23002 | * normal/x86_64/setjmp.S: Moved from here ... | |
23003 | * lib/x86_64/setjmp.S: ... Moved here | |
23004 | * normal/powerpc/setjmp.S: Moved from here ... | |
23005 | * lib/powerpc/setjmp.S: ... Moved here | |
23006 | * normal/sparc64/setjmp.S: Moved from here ... | |
23007 | * lib/sparc64/setjmp.S: ... Moved here | |
23008 | ||
23009 | * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute | |
23010 | returns_twice in mingw. | |
23011 | ||
23012 | * script/lua/grub_lib.c: New file. | |
23013 | * script/lua/grub_lib.h: Likewise. | |
23014 | * script/lua/grub_lua.h: Likewise. | |
23015 | * script/lua/grub_main.c: Likewise. | |
23016 | * script/lua/lapi.c: Likewise. | |
23017 | * script/lua/lapi.h: Likewise. | |
23018 | * script/lua/lauxlib.c: Likewise. | |
23019 | * script/lua/lauxlib.h: Likewise. | |
23020 | * script/lua/lbaselib.c: Likewise. | |
23021 | * script/lua/lcode.c: Likewise. | |
23022 | * script/lua/lcode.h: Likewise. | |
23023 | * script/lua/ldblib.c: Likewise. | |
23024 | * script/lua/ldebug.c: Likewise. | |
23025 | * script/lua/ldebug.h: Likewise. | |
23026 | * script/lua/ldo.c: Likewise. | |
23027 | * script/lua/ldo.h: Likewise. | |
23028 | * script/lua/ldump.c: Likewise. | |
23029 | * script/lua/lfunc.c: Likewise. | |
23030 | * script/lua/lfunc.h: Likewise. | |
23031 | * script/lua/lgc.c: Likewise. | |
23032 | * script/lua/lgc.h: Likewise. | |
23033 | * script/lua/linit.c: Likewise. | |
23034 | * script/lua/liolib.c: Likewise. | |
23035 | * script/lua/llex.c: Likewise. | |
23036 | * script/lua/llex.h: Likewise. | |
23037 | * script/lua/llimits.h: Likewise. | |
23038 | * script/lua/lmathlib.c: Likewise. | |
23039 | * script/lua/lmem.c: Likewise. | |
23040 | * script/lua/lmem.h: Likewise. | |
23041 | * script/lua/loadlib.c: Likewise. | |
23042 | * script/lua/lobject.c: Likewise. | |
23043 | * script/lua/lobject.h: Likewise. | |
23044 | * script/lua/lopcodes.c: Likewise. | |
23045 | * script/lua/lopcodes.h: Likewise. | |
23046 | * script/lua/loslib.c: Likewise. | |
23047 | * script/lua/lparser.c: Likewise. | |
23048 | * script/lua/lparser.h: Likewise. | |
23049 | * script/lua/lstate.c: Likewise. | |
23050 | * script/lua/lstate.h: Likewise. | |
23051 | * script/lua/lstring.c: Likewise. | |
23052 | * script/lua/lstring.h: Likewise. | |
23053 | * script/lua/lstrlib.c: Likewise. | |
23054 | * script/lua/ltable.c: Likewise. | |
23055 | * script/lua/ltable.h: Likewise. | |
23056 | * script/lua/ltablib.c: Likewise. | |
23057 | * script/lua/ltm.c: Likewise. | |
23058 | * script/lua/ltm.h: Likewise. | |
23059 | * script/lua/lua.h: Likewise. | |
23060 | * script/lua/luaconf.h: Likewise. | |
23061 | * script/lua/lualib.h: Likewise. | |
23062 | * script/lua/lundump.c: Likewise. | |
23063 | * script/lua/lundump.h: Likewise. | |
23064 | * script/lua/lvm.c: Likewise. | |
23065 | * script/lua/lvm.h: Likewise. | |
23066 | * script/lua/lzio.c: Likewise. | |
23067 | * script/lua/lzio.h: Likewise. | |
23068 | ||
5e898c9d | 23069 | 2009-05-16 Bean <bean123ch@gmail.com> |
23070 | ||
23071 | * include/grub/kernel.h (grub_module_header_types): Add type | |
23072 | OBJ_TYPE_CONFIG. | |
23073 | ||
23074 | * kern/main.c (grub_load_config): New function. | |
23075 | (grub_main): Call grub_load_config to read boot config. | |
23076 | ||
23077 | * grub-mkimage (generate_image): New parameter config_path. | |
23078 | (options): New option --config. | |
23079 | (main): Parse --config option, and pass it to generate_image. | |
23080 | ||
cf353a47 | 23081 | 2009-05-14 Christian Franke <franke@computer.org> |
23082 | ||
23083 | * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols. | |
23084 | This fixes build on Cygwin. | |
23085 | ||
3834887f | 23086 | 2009-05-14 Pavel Roskin <proski@gnu.org> |
23087 | ||
23088 | * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional | |
23089 | jump. This saves two bytes, so the typical case of 2 swapped | |
23090 | drives would fit 32 bytes. | |
23091 | ||
8090fc01 | 23092 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
23093 | ||
ac963883 | 23094 | * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to |
23095 | grub_uint32_t to avoid a warning. | |
23096 | ||
8090fc01 | 23097 | * loader/i386/linux.c (allocate_pages): When assigning |
23098 | real_mode_mem, cast through grub_size_t to fix a warning. The | |
23099 | code already makes sure that the value would fit a pointer. | |
23100 | (grub_linux_setup_video): Cast render_target->data to | |
23101 | grub_size_t to fix a warning. | |
23102 | ||
18f547ad | 23103 | 2009-05-13 Javier Martín <lordhabbit@gmail.com> |
4246b8a9 | 23104 | |
23105 | * commands/i386/pc/drivemap.c: New file - implement drivemap | |
23106 | command. | |
23107 | * commands/i386/pc/drivemap_int13h.S: New file - int13 handler. | |
23108 | * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S. | |
23109 | ||
6f6a8b28 | 23110 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
23111 | ||
23112 | * util/i386/pc/grub-setup.c (setup): Remove unused variable | |
23113 | embedding_area_exists. | |
23114 | ||
15fbf4c4 | 23115 | 2009-05-13 Robert Millan <rmh.grub@aybabtu.com> |
23116 | ||
23117 | * util/i386/pc/grub-setup.c (setup): Restructure code flow to make | |
23118 | it easier to understand / work with. | |
59978c8a | 23119 | Improve warning messages for cases where there's no embedding area, |
23120 | or when it is too small (or core.img too large). | |
15fbf4c4 | 23121 | |
238e871f | 23122 | 2009-05-13 Pavel Roskin <proski@gnu.org> |
23123 | ||
0ab3a9a4 | 23124 | * loader/i386/pc/multiboot2.c: Add necessary includes for |
23125 | grub_multiboot2_real_boot(). | |
23126 | ||
a2c8c5f8 | 23127 | * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the |
23128 | PX record is always little-endian. We only need the lower 2 | |
23129 | bytes of the mode. | |
23130 | ||
faec96af | 23131 | * fs/cpio.c: Use the same name "struct head" for tar and cpio to |
23132 | facilitate code reuse. | |
23133 | (grub_cpio_mount): Use "struct head", not a char buffer. This | |
23134 | fixes a warning reported by gcc 4.4. | |
23135 | ||
238e871f | 23136 | * kernel/disk.c (grub_disk_read): Use void pointer for the |
23137 | buffer. | |
23138 | (grub_disk_write): Use const void pointer for the buffer. | |
23139 | Adjust all callers. Remove unnecessary casts. | |
23140 | ||
901d2f0c | 23141 | 2009-05-10 Robert Millan <rmh.grub@aybabtu.com> |
23142 | ||
23143 | * util/i386/pc/grub-install.in: Update copyright year. | |
23144 | ||
18f547ad | 23145 | 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
2eac4c16 | 23146 | |
23147 | gptsync | |
23148 | ||
23149 | * commands/gptsync.c: new file | |
23150 | * conf/common.rmk (pkglib_MODULES): add gptsync.mod | |
23151 | (gptsync_mod_SOURCES): new variable | |
23152 | (gptsync_mod_CFLAGS): likewise | |
23153 | (gptsync_mod_LDFLAGS): likewise | |
18f547ad | 23154 | * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS): |
2eac4c16 | 23155 | new definition |
23156 | (GRUB_PC_PARTITION_TYPE_HFS): likewise | |
23157 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c | |
23158 | * conf/i386-ieee1275.rmk: likewise | |
23159 | * conf/i386-pc.rmk: likewise | |
23160 | * conf/powerpc-ieee1275.rmk: likewise | |
23161 | ||
b4ba690a | 23162 | 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com> |
23163 | ||
23164 | Fixed grub-emu | |
23165 | ||
23166 | * kern/dl.c (grub_dl_ref): omit when compiling grub-emu | |
23167 | (grub_dl_ref): likewise | |
23168 | ||
317e1a44 | 23169 | 2009-05-08 Robert Millan <rmh.grub@aybabtu.com> |
23170 | ||
23171 | * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(), | |
23172 | split in two functions (one for msdos and one for gpt). | |
23173 | ||
041b8094 | 23174 | 2009-05-08 Pavel Roskin <proski@gnu.org> |
23175 | ||
752473c2 | 23176 | * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's |
23177 | not modified. | |
23178 | ||
041b8094 | 23179 | * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about |
23180 | uninitialized err[0] and err[1]. Rename them to bad1 and bad2. | |
23181 | Initialize them with -1. Add sanity check for bad1. Eliminate | |
23182 | nerr variable. | |
23183 | ||
172800ce | 23184 | 2009-05-08 David S. Miller <davem@davemloft.net> |
23185 | ||
23186 | * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname. | |
23187 | ||
29aa5e81 | 23188 | 2009-05-06 Robert Millan <rmh.grub@aybabtu.com> |
23189 | ||
23190 | * util/i386/pc/grub-setup.c (setup): Fix check for embed region | |
473d1e45 | 23191 | existence. |
29aa5e81 | 23192 | |
96613b62 | 23193 | 2009-05-05 Felix Zielcke <fzielcke@z-51.de> |
23194 | ||
23195 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
1905c57b | 23196 | `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'. |
96613b62 | 23197 | |
eef73c8a | 23198 | 2009-05-05 David S. Miller <davem@davemloft.net> |
23199 | ||
23200 | * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting. | |
23201 | ||
119494b5 | 23202 | 2009-05-05 Pavel Roskin <proski@gnu.org> |
23203 | ||
23204 | * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations | |
23205 | of grub_dl_ref() and grub_dl_unref(). | |
23206 | * commands/parttool.c: Remove preprocessor conditionals around | |
23207 | grub_dl_ref() and grub_dl_unref(). | |
23208 | * fs/affs.c: Likewise. | |
23209 | * fs/afs.c: Likewise. | |
23210 | * fs/cpio.c: Likewise. | |
23211 | * fs/ext2.c: Likewise. | |
23212 | * fs/fat.c: Likewise. | |
23213 | * fs/hfs.c: Likewise. | |
23214 | * fs/hfsplus.c: Likewise. | |
23215 | * fs/iso9660.c: Likewise. | |
23216 | * fs/jfs.c: Likewise. | |
23217 | * fs/minix.c: Likewise. | |
23218 | * fs/ntfs.c: Likewise. | |
23219 | * fs/reiserfs.c: Likewise. | |
23220 | * fs/sfs.c: Likewise. | |
23221 | * fs/udf.c: Likewise. | |
23222 | * fs/ufs.c: Likewise. | |
23223 | * fs/xfs.c: Likewise. | |
23224 | * include/grub/dl.h: Likewise. | |
23225 | * loader/xnu.c: Likewise. | |
23226 | ||
de5fd76e | 23227 | 2009-05-04 Pavel Roskin <proski@gnu.org> |
23228 | ||
23229 | * commands/acpi.c: Remove unused variable my_mod. | |
23230 | * partmap/amiga.c: Likewise. | |
23231 | * partmap/apple.c: Likewise. | |
23232 | * partmap/gpt.c: Likewise. | |
23233 | * partmap/pc.c: Likewise. | |
23234 | * partmap/sun.c: Likewise. | |
23235 | * term/gfxterm.c: Likewise. | |
23236 | * term/i386/pc/vesafb.c: Likewise. | |
23237 | * term/i386/pc/vga.c: Likewise. | |
23238 | ||
983598ad | 23239 | 2009-05-04 David S. Miller <davem@davemloft.net> |
23240 | ||
23241 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix string | |
23242 | pointer args to grub_ieee1275_get_property(). | |
23243 | ||
8aadec43 | 23244 | * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'. |
23245 | ||
9554b15e | 23246 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom |
23247 | devices, and do not traverse down under controller nodes. | |
23248 | ||
67e23c90 | 23249 | * disk/ieee1275/ofdisk.c (compute_dev_path): New. |
23250 | (grub_ofdisk_open): Use it to un-escape "," characters. | |
23251 | * kern/disk.c (find_part_sep): New. | |
23252 | (grub_disk_open): Use it to find the first non-escaped ',' | |
23253 | character in the disk name. | |
23254 | * util/ieee1275/devicemap.c (escape_of_path): New. | |
23255 | (grub_util_emit_devicemap_entry): Use it. | |
23256 | * util/sparc64/ieee1275/grub-install.in: Update script to | |
23257 | strip partition specifiers properly by not triggering on | |
23258 | '\' escaped ',' characters. | |
23259 | ||
74bfdd2f | 23260 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
23261 | ||
23262 | * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set | |
23263 | to 0x300. | |
23264 | * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few | |
23265 | resolutions. | |
23266 | (linux_vesafb_modes): Add a lot of additional modes to the list (based | |
23267 | on documentation from Wikipedia). | |
23268 | ||
4241d2b1 | 23269 | 2009-05-04 Pavel Roskin <proski@gnu.org> |
23270 | ||
23271 | * disk/ata.c: Spelling fixes. | |
23272 | * disk/raid.c: Likewise. | |
23273 | * disk/usbms.c: Likewise. | |
23274 | * disk/dmraid_nvidia.c: Likewise. | |
23275 | * kern/ieee1275/openfw.c: Likewise. | |
23276 | * kern/ieee1275/init.c: Likewise. | |
23277 | * kern/ieee1275/cmain.c: Likewise. | |
23278 | * boot/i386/pc/cdboot.S: Likewise. | |
23279 | * video/readers/png.c: Likewise. | |
23280 | * video/i386/pc/vbe.c: Likewise. | |
23281 | * fs/udf.c: Likewise. | |
23282 | * fs/hfs.c: Likewise. | |
23283 | * fs/reiserfs.c: Likewise. | |
23284 | * efiemu/runtime/efiemu.c: Likewise. | |
23285 | * efiemu/main.c: Likewise. | |
23286 | * efiemu/mm.c: Likewise. | |
23287 | * include/grub/elf.h: Likewise. | |
23288 | * include/grub/xnu.h: Likewise. | |
23289 | * include/grub/usbdesc.h: Likewise. | |
23290 | * include/grub/usb.h: Likewise. | |
23291 | * include/grub/script_sh.h: Likewise. | |
23292 | * include/grub/lib/LzmaEnc.h: Likewise. | |
23293 | * include/grub/efiemu/efiemu.h: Likewise. | |
23294 | * include/grub/command.h: Likewise. | |
23295 | * normal/menu.c: Likewise. | |
23296 | * normal/main.c: Likewise. | |
23297 | * normal/datetime.c: Likewise. | |
23298 | * bus/usb/uhci.c: Likewise. | |
23299 | * mmap/i386/uppermem.c: Likewise. | |
23300 | * mmap/mmap.c: Likewise. | |
23301 | * commands/acpi.c: Likewise. | |
23302 | * commands/test.c: Likewise. | |
23303 | * partmap/apple.c: Likewise. | |
23304 | * font/font.c: Likewise. | |
23305 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
23306 | * loader/macho.c: Likewise. | |
23307 | * loader/i386/bsd_trampoline.S: Likewise. | |
23308 | * loader/i386/bsd.c: Likewise. | |
23309 | * loader/xnu.c: Likewise. | |
23310 | * term/i386/pc/vesafb.c: Likewise. | |
23311 | * term/usb_keyboard.c: Likewise. | |
23312 | * util/resolve.c: Likewise. | |
23313 | * util/getroot.c: Likewise. | |
23314 | ||
0cfc0083 | 23315 | 2009-05-04 Felix Zielcke <fzielcke@z-51.de> |
23316 | ||
23317 | * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA. | |
23318 | ||
7c1d00cd | 23319 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
23320 | ||
23321 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix | |
23322 | build error. | |
23323 | ||
b01f0548 | 23324 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
23325 | ||
23326 | * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility | |
23327 | parameter only available on BIOS. | |
23328 | ||
ecc3eb22 | 23329 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
23330 | ||
23331 | Removed wrong semicolon in declaration | |
23332 | ||
23333 | * grub/misc.h (grub_dprintf): remove semicolon | |
23334 | ||
112972a9 | 23335 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
23336 | ||
23337 | * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro. | |
23338 | (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this | |
23339 | is done by grub_cmd_linux() now). | |
23340 | [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set, | |
23341 | restore video to text mode. | |
23342 | (grub_cmd_linux): Default `vid_mode' initialization to 0, which | |
23343 | indicates lack of "vga=" parameter. "vga=0" is mapped to | |
23344 | `GRUB_LINUX_VID_MODE_NORMAL'. | |
23345 | ||
afd5c115 | 23346 | 2009-05-04 Felix Zielcke <fzielcke@z-51.de> |
23347 | ||
23348 | * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c', | |
23349 | `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c' | |
23350 | and `normal/script.c'. Add `kern/rescue_reader.c', | |
18f547ad | 23351 | `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c', |
afd5c115 | 23352 | `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and |
23353 | `grub_script.tab.c'. | |
23354 | ||
23355 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
23356 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
23357 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
23358 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
23359 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
23360 | ||
faa517ce | 23361 | * Makefile.in: Remove duplicated 2008 in Copyright line. |
23362 | ||
ae0c0bdc | 23363 | 2009-05-04 Robert Millan <rmh.grub@aybabtu.com> |
23364 | ||
473d1e45 | 23365 | * util/misc.c (grub_util_warn): New function. Emits a warning |
ae0c0bdc | 23366 | unconditionally. |
23367 | * include/grub/util/misc.h (grub_util_warn): New declaration. | |
23368 | ||
23369 | * util/i386/pc/grub-install.in: Understand --force and pass it down | |
23370 | to grub-setup. | |
23371 | ||
23372 | * util/i386/pc/grub-setup.c (main): Understand --force and pass it | |
23373 | down to setup(). | |
23374 | (setup): Improve error messages and add warnings when requested to | |
23375 | install in odd layouts. Refuse to install using blocklists unless | |
23376 | --force was set. | |
23377 | ||
18f547ad | 23378 | 2009-05-04 martin f. krafft <madduck@madduck.net> |
c149b500 | 23379 | |
23380 | * disk/raid.c (grub_raid_scan_device): Improve debug message. | |
23381 | ||
6d260daa | 23382 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
23383 | ||
23384 | Updated copyright year | |
23385 | ||
23386 | * fs/hfsplus.c: updated copyright year | |
18f547ad | 23387 | |
69f853f8 | 23388 | 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> |
23389 | ||
23390 | HFS+ UUID | |
23391 | ||
18f547ad | 23392 | * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field |
69f853f8 | 23393 | in the space previously used by unused3 |
23394 | (grub_hfsplus_uuid): new function | |
23395 | (grub_hfsplus_fs): added uuid field | |
23396 | ||
4c402e73 | 23397 | 2009-05-03 Pavel Roskin <proski@gnu.org> |
23398 | ||
23399 | * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to | |
23400 | suppress warnings. It's no longer needed. | |
23401 | * disk/host.c: Likewise. | |
23402 | * disk/ata_pthru.c: Likewise. | |
23403 | * disk/loopback.c: Likewise. | |
23404 | * hook/datehook.c: Likewise. | |
23405 | * parttool/pcpart.c: Likewise. | |
23406 | * fs/i386/pc/pxe.c: Likewise. | |
23407 | * fs/ntfscomp.c: Likewise. | |
23408 | * efiemu/main.c: Likewise. | |
23409 | * mmap/mmap.c: Likewise. | |
23410 | * commands/crc.c: Likewise. | |
23411 | * commands/hexdump.c: Likewise. | |
23412 | * commands/hdparm.c: Likewise. | |
23413 | * commands/acpi.c: Likewise. | |
23414 | * commands/echo.c: Likewise. | |
23415 | * commands/minicmd.c: Likewise. | |
23416 | * commands/blocklist.c: Likewise. | |
23417 | * commands/memrw.c: Likewise. | |
23418 | * commands/loadenv.c: Likewise. | |
23419 | * commands/usbtest.c: Likewise. | |
23420 | * commands/lsmmap.c: Likewise. | |
23421 | * commands/boot.c: Likewise. | |
23422 | * commands/parttool.c: Likewise. | |
23423 | * commands/configfile.c: Likewise. | |
23424 | * commands/search.c: Likewise. | |
23425 | * commands/ieee1275/suspend.c: Likewise. | |
23426 | * commands/cat.c: Likewise. | |
23427 | * commands/i386/pc/pxecmd.c: Likewise. | |
23428 | * commands/i386/pc/play.c: Likewise. | |
23429 | * commands/i386/pc/halt.c: Likewise. | |
23430 | * commands/i386/pc/vbeinfo.c: Likewise. | |
23431 | * commands/i386/pc/vbetest.c: Likewise. | |
23432 | * commands/lspci.c: Likewise. | |
23433 | * commands/date.c: Likewise. | |
23434 | * commands/handler.c: Likewise. | |
23435 | * commands/ls.c: Likewise. | |
23436 | * commands/test.c: Likewise. | |
23437 | * commands/cmp.c: Likewise. | |
23438 | * commands/efi/loadbios.c: Likewise. | |
23439 | * commands/efi/fixvideo.c: Likewise. | |
23440 | * commands/halt.c: Likewise. | |
23441 | * commands/help.c: Likewise. | |
23442 | * commands/reboot.c: Likewise. | |
23443 | * hello/hello.c: Likewise. | |
23444 | * script/sh/main.c: Likewise. | |
23445 | * loader/xnu.c: Likewise. | |
23446 | * term/terminfo.c: Likewise. | |
23447 | * term/i386/pc/serial.c: Likewise. | |
23448 | * term/usb_keyboard.c: Likewise. | |
23449 | ||
515b5079 | 23450 | 2009-05-03 David S. Miller <davem@davemloft.net> |
23451 | ||
23452 | * normal/menu.c: Include grub/parser.h | |
23453 | ||
dfc31a22 | 23454 | 2009-05-03 Pavel Roskin <proski@gnu.org> |
23455 | ||
2fee74f1 | 23456 | * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*, |
23457 | not char*. | |
23458 | * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise. | |
23459 | Suggested by Javier Martín <lordhabbit@gmail.com> | |
23460 | ||
dfc31a22 | 23461 | * util/i386/pc/grub-mkrescue.in: Allow for the case when |
23462 | efiemu??.o doesn't exist. | |
23463 | * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for | |
23464 | copying. | |
23465 | ||
18f547ad | 23466 | 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com> |
cef17233 | 23467 | |
23468 | FreeBSD 64-bit support | |
23469 | ||
18f547ad | 23470 | * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S |
cef17233 | 23471 | and loader/i386/bsd_trampoline.S |
23472 | (bsd_mod_ASFLAGS): new variable | |
23473 | * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition | |
23474 | (FREEBSD_MODTYPE_KERNEL64): likewise | |
23475 | (grub_bsd64_trampoline_start): likewise | |
23476 | (grub_bsd64_trampoline_end): likewise | |
23477 | (grub_bsd64_trampoline_selfjump): likewise | |
23478 | (grub_bsd64_trampoline_gdt): likewise | |
23479 | * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ... | |
23480 | * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here | |
23481 | * kern/i386/loader.S (grub_unix_real_boot): moved from here ... | |
23482 | * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here | |
18f547ad | 23483 | * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type |
cef17233 | 23484 | of "attrib" member |
23485 | * loader/i386/bsd_pagetable.c: new file | |
23486 | * loader/i386/bsd_trampoline.S: likewise | |
23487 | * loader/i386/bsd.c (ALIGN_QWORD): new macro | |
23488 | (ALIGN_VAR): likewise | |
23489 | (entry_hi): new variable | |
23490 | (kern_end_mdofs): likewise | |
23491 | (is_64bit): likewise | |
23492 | (grub_freebsd_add_meta): use ALIGN_VAR | |
23493 | (grub_e820_mmap): new declaration | |
23494 | (grub_freebsd_add_mmap): new function | |
23495 | (grub_freebsd_add_meta_module): support 64 bit kernels | |
23496 | (grub_freebsd_list_modules): use ALIGN_VAR | |
23497 | (gdt_descriptor): new declaration | |
23498 | (grub_freebsd_boot): support 64 bit kernels | |
23499 | (grub_bsd_elf64_hook): new function | |
23500 | (grub_bsd_load_elf): support elf64 | |
23501 | ||
038c5720 | 23502 | 2009-05-03 Bean <bean123ch@gmail.com> |
23503 | ||
23504 | * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno | |
23505 | after we get the result of if statement. | |
23506 | ||
fc45fb58 | 23507 | 2009-05-03 Bean <bean123ch@gmail.com> |
23508 | ||
23509 | * Makefile.in (enable_efiemu): New variable. | |
23510 | ||
23511 | * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is | |
23512 | set. | |
23513 | (efiemu32.o): Use macro $< for source file, add $(srcdir) to include | |
23514 | path. | |
23515 | (efi64_c.o): Use macro $< for source file, add $(srcdir) to include | |
23516 | path, add -mno-red-zone option. | |
23517 | (efiemu64_s.o): Likewise. | |
23518 | (efiemu64.o): Use macro $^ for source file. | |
23519 | ||
23520 | * configure.ac (--enable-efiemu): New option. | |
23521 | ||
bbee0f2b | 23522 | 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com> |
23523 | ||
23524 | xnu support | |
23525 | ||
23526 | * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h | |
23527 | (pkglib_MODULES): add xnu.mod | |
23528 | (xnu_mod_SOURCES): new variable | |
23529 | (xnu_mod_CFLAGS): likewise | |
23530 | (xnu_mod_LDFLAGS): likewise | |
23531 | (xnu_mod_ASFLAGS): likewise | |
23532 | * conf/i386-pc.rmk: likewise | |
23533 | * conf/x86_64-efi.rmk: likewise | |
7dd4a573 | 23534 | * include/grub/efi/efi.h (grub_efi_finish_boot_services): |
bbee0f2b | 23535 | new declaration |
23536 | * include/grub/i386/macho.h: new file | |
23537 | * include/grub/i386/xnu.h: likewise | |
23538 | * include/grub/macho.h: likewise | |
23539 | * include/grub/machoload.h: likewise | |
23540 | * include/grub/x86_64/macho.h: likewise | |
23541 | * include/grub/x86_64/xnu.h: likewise | |
23542 | * include/grub/xnu.h: likewise | |
23543 | * kern/efi/efi.c (grub_efi_finish_boot_services): new function | |
23544 | * kern/efi/mm.c (MAX_HEAP_SIZE): increase | |
23545 | * loader/i386/efi/xnu.c: new file | |
23546 | * loader/i386/pc/xnu.c: likewise | |
23547 | * loader/i386/xnu.c: likewise | |
23548 | * loader/i386/xnu_helper.S: likewise | |
23549 | * loader/macho.c: likewise | |
23550 | * loader/xnu.c: likewise | |
23551 | * loader/xnu_resume.c: likewise | |
23552 | * util/grub-dumpdevtree: likewise | |
23553 | * include/grub/i386/pit.h: include grub/err.h | |
23554 | (grub_pit_wait): export | |
23555 | * util/grub.d/30_os-prober.in: support Darwin/Mac OS X | |
7dd4a573 | 23556 | |
5caf964d | 23557 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
23558 | ||
23559 | Efiemu | |
7dd4a573 | 23560 | |
5caf964d | 23561 | * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram, |
7dd4a573 | 23562 | _linux_efi, linux_efi. |
23563 | new files in grub-emu | |
5caf964d | 23564 | new targets efiemu32.o and efiemu64.o |
23565 | * loader/linux_normal_efiemu.c: likewise | |
23566 | * loader/i386/efi/linux.c: added preliminary efiemu support | |
7dd4a573 | 23567 | * util/i386/pc/grub-install.in: add efiemu??.o to the list of |
5caf964d | 23568 | files to copy |
23569 | * include/grub/autoefi.h: new file | |
7dd4a573 | 23570 | * include/grub/i386/efiemu.h: likewise |
5caf964d | 23571 | * include/grub/i386/pc/efiemu.h: likewise |
23572 | * include/grub/efi/api.h: add LL suffix when necessary | |
23573 | new definitions relating to tables | |
23574 | * include/grub/efiemu/efiemu.h: new file | |
23575 | * include/grub/efiemu/runtime.h: likewise | |
23576 | * efiemu/prepare.c: likewise | |
23577 | * efiemu/loadcore_common.c: likewise | |
23578 | * efiemu/loadcore64.c: likewise | |
23579 | * efiemu/runtime/efiemu.sh: likewise | |
23580 | * efiemu/runtime/efiemu.S: likewise | |
23581 | * efiemu/runtime/efiemu.c: likewise | |
23582 | * efiemu/runtime/config.h: likewise | |
23583 | * efiemu/prepare32.c: likewise | |
23584 | * efiemu/main.c: likewise | |
23585 | * efiemu/modules/pnvram.c: likewise | |
23586 | * efiemu/modules/i386: likewise | |
23587 | * efiemu/modules/i386/pc: likewise | |
23588 | * efiemu/modules/acpi.c: likewise | |
23589 | * efiemu/i386/pc/cfgtables.c: likewise | |
23590 | * efiemu/i386/loadcore64.c: likewise | |
23591 | * efiemu/i386/loadcore32.c: likewise | |
23592 | * efiemu/prepare64.c: likewise | |
23593 | * efiemu/loadcore.c: likewise | |
23594 | * efiemu/symbols.c: likewise | |
23595 | * efiemu/mm.c: likewise | |
23596 | * efiemu/loadcore32.c: likewise | |
7dd4a573 | 23597 | |
23598 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> | |
f8efe3ad | 23599 | |
23600 | ACPI spoofing | |
23601 | ||
23602 | * commands/acpi.c: new file | |
23603 | * commands/i386/pc/acpi.c: likewise | |
23604 | * commands/efi/acpi.c: likewise | |
23605 | * include/grub/acpi.h: likewise | |
23606 | * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod | |
23607 | (acpi_mod_SOURCES): new variable | |
23608 | (acpi_mod_CFLAGS): likewise | |
23609 | (acpi_mod_LDFLAGS): likewise | |
23610 | * conf/i386-efi.rmk: likewise | |
23611 | * conf/x86_64-efi.rmk: likewise | |
23612 | ||
7dd4a573 | 23613 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
28a85665 | 23614 | |
23615 | Missing part from mmap patch | |
23616 | ||
23617 | * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to | |
23618 | (grub_mmap_unregister) | |
23619 | (grub_mmap_free_and_unregister): use grub_mmap_register | |
23620 | ||
7dd4a573 | 23621 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
09d842b9 | 23622 | |
23623 | Mmap services | |
23624 | ||
23625 | * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate | |
23626 | * loader/i386/linux.c (find_mmap_size): likewise | |
23627 | (allocate_pages): likewise | |
23628 | * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise | |
23629 | (grub_fill_multiboot_mmap): likewise | |
23630 | (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper | |
23631 | * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower | |
23632 | * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition | |
23633 | (OPENBSD_MMAP_RESERVED): likewise | |
23634 | * include/grub/i386/pc/memory.h: include grub/memory.h | |
23635 | (grub_lower_mem): removed | |
23636 | (grub_upper_mem): likewise | |
23637 | (GRUB_MACHINE_MEMORY_ACPI): new definition | |
23638 | (GRUB_MACHINE_MEMORY_NVS): likewise | |
23639 | (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise | |
23640 | (GRUB_MACHINE_MEMORY_HOLE): likewise | |
23641 | (grub_machine_mmap_register): likewise | |
23642 | (grub_machine_mmap_unregister): likewise | |
23643 | (grub_machine_get_upper): likewise | |
23644 | (grub_machine_get_lower): likewise | |
23645 | (grub_machine_get_post64): likewise | |
23646 | * include/grub/i386/efi/memory.h: new file | |
23647 | * include/grub/x86_64/efi/memory.h: likewise | |
23648 | * include/grub/efi/memory.h: likewise | |
23649 | * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod | |
23650 | (mmap_mod_SOURCES): new variable | |
23651 | (mmap_mod_LDFLAGS): likewise | |
23652 | (mmap_mod_ASFLAGS): likewise | |
23653 | * conf/i386-coreboot.rmk: likewise | |
23654 | * conf/i386-ieee1275.rmk: likewise | |
23655 | * conf/i386-efi.rmk: likewise | |
23656 | * conf/x86_64-efi.rmk: likewise | |
23657 | * include/grub/types.h (UINT_TO_PTR): new macro | |
23658 | (PTR_TO_UINT32): likewise | |
23659 | (PTR_TO_UINT64): likewise | |
23660 | * include/grub/memory.h: new file | |
23661 | * mmap/i386/pc/mmap.c: likewise | |
23662 | * mmap/i386/pc/mmap_helper.S: likewise | |
23663 | * mmap/i386/uppermem.c: likewise | |
23664 | * mmap/mmap.c: likewise | |
23665 | * mmap/efi/mmap.c: likewise | |
7dd4a573 | 23666 | * kern/i386/coreboot/init.c (grub_machine_init): don't use |
09d842b9 | 23667 | grub_upper_mem |
23668 | * kern/i386/pc/init.c (grub_lower_mem): removed variable | |
23669 | (grub_upper_mem): likewise | |
23670 | (grub_machine_init): don't use grub_upper_mem, | |
23671 | make grub_lower_mem local | |
23672 | * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower, | |
23673 | grub_mmap_iterate and grub_mmap_get_upper | |
23674 | (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper | |
23675 | ||
d558e6b5 | 23676 | 2009-05-02 Bean <bean123ch@gmail.com> |
23677 | ||
23678 | * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to | |
23679 | script/sh/parser.y. | |
23680 | (pkglib_MODULES): Add normal.mod and sh.mod. | |
23681 | (normal_SOURCES): New variable. | |
23682 | (normal_mod_CFLAGS): Likewise. | |
23683 | (normal_mod_LDFLAGS): Likewise. | |
23684 | (sh_mod_SOURCES): Likewise. | |
23685 | (sh_mod_CFLAGS): Likewise. | |
23686 | (sh_mod_LDFLAGS): Likewise. | |
23687 | ||
23688 | * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to | |
23689 | script/sh/lexer.c_DEPENDENCIES. | |
23690 | (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c, | |
23691 | kern/rescue_reader.c and kern/rescue_parser.c. | |
23692 | (kernel_img_HEADERS): Remove rescue.h, add reader.h. | |
23693 | (grub_emu_SOURCES): Change source files. | |
23694 | (pkglib_MODULES): Remove normal.mod. | |
23695 | (normal_SOURCES): Removed. | |
23696 | (normal_mod_CFLAGS): Likewise. | |
23697 | (normal_mod_LDFLAGS): Likewise. | |
23698 | * conf/i386-coreboot.rmk: Likewise. | |
23699 | * conf/i386-efi.rmk: Likewise. | |
23700 | * conf/i386-ieee1276.rmk: Likewise. | |
23701 | * conf/powerpc-ieee1275.rmk: Likewise. | |
23702 | * conf/sparc64-ieee1275.rmk: Likewise. | |
23703 | * conf/x86_64-efi.rmk: Likewise. | |
23704 | ||
23705 | * include/grub/command.h (grub_command_execute): New inline function. | |
23706 | ||
23707 | * include/grub/menu.h (grub_menu_entry): Removed commands field. | |
23708 | ||
23709 | * include/grub/normal.h: Remove <grub/setjmp.h>. | |
23710 | (grub_fs_module_list): Moved to normal/autofs.c. | |
23711 | (grub_exit_env): Removed. | |
23712 | (grub_command_execute): Likewise. | |
23713 | (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed | |
23714 | parameter script. | |
23715 | (read_command_list): New function declaration. | |
23716 | (read_fs_list): Likewise. | |
23717 | ||
23718 | * include/parser.h: Include <grub/reader.h>. | |
23719 | (grub_parser_split_cmdline): Change type of getline parameter. | |
23720 | (grub_parser): New structure. | |
23721 | (grub_parser_class): New variable. | |
23722 | (grub_parser_execute): New function declaration. | |
23723 | (grub_register_rescue_parser): Likewise. | |
23724 | (grub_parser_register): New inline function. | |
23725 | (grub_parser_unregister): Likewise. | |
23726 | (grub_parser_get_current): Likewise. | |
23727 | (grub_parser_set_current): Likewise. | |
23728 | ||
23729 | * include/grub/reader.h: New file. | |
23730 | * kern/reader.c: Likewise. | |
23731 | * kern/rescue_parser.c: Likewise. | |
23732 | * kern/rescue_reader.c: Likewise. | |
23733 | * normal/autofs.c: Likewise. | |
23734 | * normal/dyncmd.c: Likewise. | |
23735 | ||
23736 | * include/grub/rescue.h: Removed. | |
23737 | * normal/command.h: Likewise. | |
23738 | ||
23739 | * include/grub/script.h: Moved to ... | |
23740 | * include/grub/script_sh.h: ... Moved here. | |
23741 | * normal/execute.c: Moved to ... | |
23742 | * script/sh/execute.c: ... Moved here. | |
23743 | * normal/function.c: Moved to ... | |
23744 | * script/sh/function.c: ... Moved here. | |
23745 | * normal/lexer.c: Moved to ... | |
23746 | * script/sh/lexer.c: ... Moved here. | |
23747 | * normal/parser.y: Moved to ... | |
23748 | * script/sh/parser.y: ... Moved here. | |
23749 | * normal/script.c: Moved to ... | |
23750 | * script/sh/script.c: ... Moved here. | |
23751 | ||
23752 | * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include | |
23753 | <grub/reader.h>. | |
23754 | (grub_exit_env): Removed. | |
23755 | (fs_module_list): Moved to normal/autofs.c. | |
23756 | (grub_file_getline): Don't handle comment here. | |
23757 | (free_menu): Skip removed field entry->commands. | |
23758 | (grub_normal_menu_addentry): Removed as grub_menu_entry, removed | |
23759 | script parameter. | |
23760 | (read_config_file): Removed nested parameter, change getline function. | |
23761 | (grub_enter_normal_mode): Removed. | |
23762 | (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c. | |
23763 | (read_command_list): Likewise. | |
23764 | (autoload_fs_module): Moved to normal/autofs.c. | |
23765 | (read_fs_list): Likewise. | |
23766 | (reader_nested): New variable. | |
23767 | (grub_normal_execute): Run parser.sh to switch to sh parser. | |
23768 | (grub_cmd_rescue): Removed. | |
23769 | (cmd_normal): Removed. | |
23770 | (grub_cmd_normal): Unregister itself at the beginning. Don't register | |
23771 | rescue command. | |
23772 | (grub_cmdline_run): New function. | |
23773 | (grub_normal_reader_init): Likewise. | |
23774 | (grub_normal_read_line): Likewise. | |
23775 | (grub_env_write_pager): Likewise. | |
23776 | (cmdline): New variable. | |
23777 | (grub_normal_reader): Likewise. | |
23778 | (GRUB_MOD_INIT): Register normal reader and set as current, register | |
23779 | pager hook, register normal command with grub_register_command_prio, | |
23780 | so that it won't show up in command.lst. | |
23781 | (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear | |
23782 | grub_fs_autoload_hook. | |
23783 | ||
23784 | * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>. | |
23785 | (grub_menu_execute_entry): Replace grub_script_execute with | |
23786 | grub_parser_execute, change parameter to grub_command_execute. | |
23787 | ||
23788 | * normal/menu_text.c: Remove <grub/script.h>. | |
23789 | ||
23790 | * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h> | |
23791 | and <grub/parser.h>. | |
23792 | (run): Change editor_getline to use new parser interface. Change | |
23793 | parameter to grub_command_execute. | |
23794 | ||
23795 | * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>, | |
23796 | <grub/reader.h> and <grub/parser.h>. | |
23797 | (grub_load_normal_mode): Execute normal command. | |
23798 | (grub_main): Call grub_register_core_commands, | |
23799 | grub_register_rescue_parser and grub_register_rescue_reader, use | |
23800 | grub_reader_loop to enter input loop. | |
23801 | ||
7dd4a573 | 23802 | * kern/parser.c (grub_parser_split_cmdline): Change type of |
23803 | getline parameter. | |
d558e6b5 | 23804 | (grub_parser_class): New variable. |
23805 | (grub_parser_execute): New function. | |
23806 | ||
23807 | * loader/i386/multiboot.c: Remove <grub/rescue.h>. | |
23808 | * loader/multiboot2.c: Likewise. | |
23809 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
23810 | ||
23811 | * util/grub-emu.c (read_command_list): New dummy function. | |
23812 | ||
18db813d | 23813 | 2009-05-02 Robert Millan <rmh.grub@aybabtu.com> |
23814 | ||
23815 | * util/deviceiter.c (grub_util_iterate_devices): Increase max drive | |
23816 | count to 16 for CCISS and IDA. | |
23817 | ||
6c67de15 | 23818 | 2009-05-02 Robert Millan <rmh.grub@aybabtu.com> |
23819 | ||
23820 | * normal/menu_text.c (grub_wait_after_message): Print a newline | |
23821 | after waiting for user input. | |
23822 | ||
23823 | * loader/i386/linux.c: Include `<grub/normal.h>'. | |
23824 | (grub_cmd_linux): Improve the error message about `ask' mode, by | |
23825 | waiting for user input so it's not missed (we can do this, since | |
23826 | user requested interaction). | |
23827 | ||
d9dc87b0 | 23828 | 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com> |
23829 | ||
23830 | Added missing lst to grub-mkrescue | |
23831 | ||
23832 | * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst | |
23833 | and ${input_dir}/parttool.lst | |
23834 | ||
ac8a2baa | 23835 | 2009-04-30 David S. Miller <davem@davemloft.net> |
23836 | ||
ad22a610 | 23837 | * util/hostdisk.c (device_is_wholedisk): New function. |
23838 | (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is | |
23839 | zero only if device_is_wholedisk() returns true. | |
23840 | ||
6966215d | 23841 | * util/hostdisk.c (convert_system_partition_to_system_disk): |
23842 | Handle virtual disk devices named /dev/vdiskX as found on sparc | |
23843 | and powerpc. | |
23844 | ||
ac8a2baa | 23845 | * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If |
23846 | lettered partition specifier is found, convert to numbered. | |
23847 | ||
979b4fb4 | 23848 | 2009-04-29 David S. Miller <davem@davemloft.net> |
23849 | ||
e2bf39b2 | 23850 | * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h. |
23851 | * include/grub/sparc64/ieee1275/memory.h: Likewise. | |
23852 | ||
3c64e104 | 23853 | * normal/command.c: Add missing newline at end of file. |
23854 | ||
979b4fb4 | 23855 | * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf |
23856 | warnings. | |
23857 | * kern/ieee1275/openfw.c (grub_claimmap): Likewise. | |
23858 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close, | |
23859 | grub_ofdisk_read): Likewise, and deal similarly with the fact that | |
23860 | ihandles have a 32-bit type but need to be stored in a "void *". | |
23861 | ||
136d9f82 | 23862 | 2009-04-28 Pavel Roskin <proski@gnu.org> |
23863 | ||
9459c306 | 23864 | * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev, |
23865 | not disk. Adjust all dependencies. | |
2e08a26a | 23866 | (grub_fs_uuid_close): Use grub_device_close(), not |
9459c306 | 23867 | grub_disk_close(). |
23868 | ||
136d9f82 | 23869 | * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy |
23870 | parent's partition, don't copy it by reference, as it gets freed | |
23871 | on close. | |
23872 | ||
7dd4a573 | 23873 | 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com> |
75a807cf | 23874 | |
23875 | Preboot hooks support | |
23876 | ||
23877 | * commands/boot.c (struct grub_preboot_t): new declaration | |
23878 | (preboots_head): new variable | |
23879 | (preboots_tail): likewise | |
23880 | (grub_loader_register_preboot_hook): new function | |
23881 | (grub_loader_unregister_preboot_hook): likewise | |
23882 | (grub_loader_set): launch preboot hooks | |
23883 | * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type | |
23884 | (grub_loader_register_preboot_hook): new declaration | |
23885 | (grub_loader_unregister_preboot_hook): likewise | |
23886 | ||
5af922b5 | 23887 | 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com> |
23888 | ||
23889 | Warning fix | |
23890 | ||
7dd4a573 | 23891 | * disk/scsi.c (grub_scsi_open): added missing cast when |
5af922b5 | 23892 | calling grub_dprintf |
23893 | ||
a5562c30 | 23894 | 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com> |
23895 | ||
23896 | Bug and warning fixes | |
23897 | ||
7dd4a573 | 23898 | * include/grub/i386/pc/init.h (grub_stop_floppy): added missing |
a5562c30 | 23899 | declaration |
23900 | * commands/test.c (test_parse): fixed bug with file tests and corrected | |
23901 | declaration of find_file | |
23902 | ||
4006f85c | 23903 | 2009-04-26 Pavel Roskin <proski@gnu.org> |
23904 | ||
23905 | * Makefile.in: Don't install empty manual pages if help2man is | |
23906 | missing. Use help2man option for output, not shell redirection. | |
23907 | ||
5c77c3de | 23908 | 2009-04-26 David S. Miller <davem@davemloft.net> |
23909 | ||
23910 | * util/grub-mkdevicemap.c (make_device_map): Add missing | |
23911 | NESTED_FUNC_ATTR to process_device(). | |
23912 | ||
033b10a8 | 23913 | 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
23914 | ||
23915 | Test command | |
23916 | ||
23917 | * commands/test.c: rewritten to use bash-like test | |
23918 | ||
e4343593 | 23919 | 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com> |
23920 | ||
23921 | Parttool autoloading and improvements | |
23922 | ||
7dd4a573 | 23923 | * Makefile.in (pkglib_DATA): add parttool.lst |
e4343593 | 23924 | (parttool.lst): new target |
23925 | * genmk.rb: generate parttool-* | |
23926 | (CLEANFILES): add #{parttool} | |
23927 | (PARTTOOLFILES): new variable | |
23928 | * genparttoollist.sh: new file | |
7dd4a573 | 23929 | * parttool/pcpart.c (grub_pcpart_boot): more feedback |
e4343593 | 23930 | (grub_pcpart_type): likewise |
23931 | * commands/parttool.c (helpmsg): new variable | |
23932 | (grub_cmd_parttool): output help if not enough arguments are supplied | |
23933 | autoload modules | |
23934 | (GRUB_MOD_INIT(parttool)): use helpmsg | |
23935 | ||
0d312500 | 23936 | 2009-04-24 David S. Miller <davem@davemloft.net> |
23937 | ||
7dd4a573 | 23938 | Avoiding opening same device multiple times in device iterator. |
0d312500 | 23939 | |
23940 | * kern/device.c: (grub_device_iterate): Define struct part_ent, | |
7dd4a573 | 23941 | and use it to build a list of partitions in iterate_disk() and |
0d312500 | 23942 | iterate_partition(). |
23943 | ||
ac20caff | 23944 | * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close() |
23945 | on disk->data. | |
23946 | ||
0dcf7495 | 23947 | * disk/ieee1275/nand.c (grub_nand_iterate): Return |
23948 | grub_devalias_iterate() result instead of unconditional 0. | |
23949 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise. | |
23950 | Also, capture hook return value, either directly or via | |
23951 | grub_children_iterate(), and propagate to caller. | |
23952 | * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate, | |
23953 | grub_children_iterate): Return value is now 'int' instead of | |
23954 | 'grub_err_t'. | |
23955 | * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave | |
23956 | like a proper iterator, stopping when hooks return non-zero. | |
23957 | (grub_devalias_iterate): Likewise. | |
23958 | ||
c8c08833 | 23959 | 2009-04-23 David S. Miller <davem@davemloft.net> |
23960 | ||
23961 | * kern/sparc64/ieee1275/openfw.c: Unused, delete. | |
23962 | ||
f01005a8 | 23963 | 2009-04-22 David S. Miller <davem@davemloft.net> |
23964 | ||
23965 | * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells | |
23966 | is larger than address_cells, use that value for address_cells too. | |
23967 | ||
4e8269da | 23968 | * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN, |
23969 | IEEE1275_MAX_PATH_LEN): Define. | |
23970 | * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically | |
23971 | allocate 'childtype', 'childpath', 'childname', and 'fullname'. | |
23972 | (grub_devalias_iterate): Dynamically allocate 'aliasname' and | |
23973 | 'devtype'. Explicitly NULL terminate devalias expansion. | |
23974 | ||
a1447506 | 23975 | * util/sparc64/ieee1275/misc.c: New file. |
23976 | * util/sparc64/ieee1275/grub-setup.c: New file. | |
23977 | * util/sparc64/ieee1275/grub-ofpathname.c: New file. | |
23978 | * util/sparc64/ieee1275/grub-mkimage.c: New file. | |
23979 | * util/sparc64/ieee1275/grub-install.in: New file. | |
23980 | * util/ieee1275/ofpath.c: New file. | |
23981 | * util/ieee1275/devicemap.c: New file. | |
23982 | * util/devicemap.c: New file. | |
23983 | * util/deviceiter.c: New file. | |
23984 | * kern/sparc64/ieee1275/init.c: New file. | |
23985 | * include/grub/util/ofpath.h: New file. | |
23986 | * include/grub/util/deviceiter.h: New file. | |
23987 | * util/grub-mkdevicemap.c: Include deviceiter.h. | |
23988 | Implement using grub_util_emit_devicemap_entry and | |
23989 | grub_util_iterate_devices. | |
23990 | * conf/i386-corebook.rmk: Build util/deviceiter.c and | |
23991 | util/devicemap.c into grub-mkdevicemap | |
23992 | * conf/i386-efi.rmk: Likewise. | |
23993 | * conf/i386-ieee1275.rmk: Likewise. | |
23994 | * conf/i386-pc.rmk: Likewise. | |
23995 | * conf/powerpc-ieee1275.rmk: Likewise. | |
23996 | * conf/sparc64-ieee1275.rmk: Add rules to build boot block | |
23997 | images and installation utilities. Build kernel as image | |
23998 | instead of as elf binary. Use common rules as much as possible. | |
23999 | ||
7dd4a573 | 24000 | 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com> |
0aefc632 | 24001 | |
24002 | Correct GPT definition | |
24003 | ||
7dd4a573 | 24004 | * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type |
0aefc632 | 24005 | of "attrib" member |
24006 | ||
c6c5219f | 24007 | 2009-04-19 Felix Zielcke <fzielcke@z-51.de> |
24008 | ||
24009 | * INSTALL: Replace `autogen.sh' with `./autogen.sh'. | |
24010 | ||
0552ff9f | 24011 | 2009-04-19 David S. Miller <davem@davemloft.net> |
24012 | ||
24013 | * loader/sparc64/ieee1275/linux.c: Include grub/command.h | |
24014 | (grub_rescue_cmd_linux): Rename to... | |
24015 | (grub_cmd_linux): and fix prototype. | |
24016 | (grub_rescue_cmd_initrd): Rename to... | |
24017 | (grub_cmd_initrd): and fix prototype. | |
24018 | (cmd_linux, cmd_initrd): New. | |
24019 | (GRUB_MOD_INIT(linux)): Use grub_register_command(). | |
24020 | (GRUB_MOD_FINI(linux): Use grub_unregister_command(). | |
24021 | ||
d1a282fc | 24022 | 2009-04-17 Pavel Roskin <proski@gnu.org> |
24023 | ||
07c5039f | 24024 | * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf |
24025 | format. | |
24026 | (grub_ohci_transfer): Likewise. | |
24027 | ||
b012002d | 24028 | * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix. |
24029 | ||
1bc09c35 | 24030 | * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix |
24031 | return without a value. Fix inconsistent indentation. | |
24032 | ||
e0ff9126 | 24033 | * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to |
24034 | match struct grub_fs. | |
24035 | ||
d1a282fc | 24036 | * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR. |
24037 | * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise. | |
24038 | * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise. | |
24039 | * commands/lspci.c (grub_lspci_iter): Likewise. | |
24040 | ||
a96df3f2 | 24041 | 2009-04-16 Bean <bean123ch@gmail.com> |
24042 | ||
24043 | * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return | |
24044 | value. | |
24045 | ||
41bb0fe9 | 24046 | 2009-04-15 Pavel Roskin <proski@gnu.org> |
24047 | ||
24048 | * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and | |
24049 | LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all | |
24050 | users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new | |
24051 | definitions. | |
24052 | ||
596c6970 | 24053 | 2009-04-15 Felix Zielcke <fzielcke@z-51.de> |
24054 | ||
24055 | * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages, | |
7dd4a573 | 24056 | that no multiple data or metadata areas are supported and `Unknown |
596c6970 | 24057 | metadata header'. |
24058 | ||
7dd4a573 | 24059 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
0d5d5653 | 24060 | |
24061 | Move loader out of the kernel | |
24062 | ||
24063 | * kern/loader.c: moved to ... | |
24064 | * commands/boot.c: ... moved here | |
24065 | * commands/minicmd.c (grub_mini_cmd_boot): moved to ... | |
24066 | * commands/boot.c (grub_cmd_boot): moved here. All users updated | |
24067 | * include/grub/kernel.h (grub_machine_fini): export | |
24068 | * include/grub/loader.h (grub_loader_is_loaded): update declaration | |
24069 | (grub_loader_set): likewise | |
24070 | (grub_loader_unset): likewise | |
24071 | (grub_loader_boot): likewise | |
24072 | * conf/common.rmk: new module boot.mod | |
24073 | (pkglib_MODULES): add boot.mod | |
24074 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c | |
24075 | (grub_emu_SOURCES): likewise | |
24076 | * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise | |
24077 | (grub_emu_SOURCES): likewise | |
24078 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise | |
24079 | (grub_emu_SOURCES): likewise | |
24080 | * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise | |
24081 | (grub_emu_SOURCES): likewise | |
24082 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise | |
24083 | (grub_emu_SOURCES): likewise | |
7dd4a573 | 24084 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise |
24085 | (grub_emu_SOURCES): likewise | |
0d5d5653 | 24086 | * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise |
7dd4a573 | 24087 | (grub_emu_SOURCES): likewise |
0d5d5653 | 24088 | |
7dd4a573 | 24089 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
5999d619 | 24090 | |
24091 | use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes | |
7dd4a573 | 24092 | |
5999d619 | 24093 | * kern/misc.c (grub_itoa): Removed function |
24094 | (grub_ltoa): likewise | |
24095 | (grub_vsprintf): use grub_lltoa | |
24096 | ||
7dd4a573 | 24097 | 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com> |
13c00781 | 24098 | |
24099 | Restore grub-emu | |
24100 | ||
24101 | * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c | |
24102 | * conf/i386-coreboot.rmk: likewise | |
24103 | * conf/i386-ieee1275.rmk: likewise | |
24104 | * conf/powerpc-ieee1275.rmk: likewise | |
7dd4a573 | 24105 | |
20318222 | 24106 | 2009-04-15 Felix Zielcke <fzielcke@z-51.de> |
24107 | ||
24108 | * INSTALL: Add that `./autogen.sh' needs to be run before | |
24109 | `./configure.'. | |
24110 | ||
d05f0df3 | 24111 | 2009-04-14 Bean <bean123ch@gmail.com> |
24112 | ||
24113 | * Makefile.in (pkglib_DATA): Add handler.lst. | |
24114 | (handler.lst): New rule. | |
24115 | ||
24116 | * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c. | |
24117 | * conf/i386-coreboot.rmk: Likewise. | |
24118 | * conf/i386-ieee1275.rmk: Likewise. | |
24119 | * conf/i386-efi.rmk: Likewise. | |
24120 | * conf/x86_64-efi.rmk: Likewise. | |
24121 | * conf/powerpc-ieee1275.rmk: Likewise. | |
24122 | * conf/sparc64-ieee1275.rmk: Likewise. | |
24123 | ||
24124 | * genhandlerlist.sh: New file. | |
24125 | ||
24126 | * genmk.rb: Add rules to generate handler.lst. | |
24127 | ||
24128 | * include/grub/normal.h (grub_file_getline): New function definition. | |
24129 | (read_handler_list): Likewise. | |
24130 | (free_handler_list): Likewise. | |
24131 | ||
24132 | * include/grub/term.h (grub_term_register_input): Add name parameter | |
24133 | for auto generation of handler.lst. | |
24134 | (grub_term_register_output): Likewise. | |
24135 | ||
24136 | * normal/handler.c: New file. | |
24137 | ||
24138 | * normal/main.c (get_line): Renamed to grub_file_getline. | |
24139 | (read_config_file): Use the newly renamed grub_file_getline. | |
24140 | (read_command_list): Likewise. | |
24141 | (read_fs_list): Likewise. | |
24142 | (grub_normal_execute): Call read_handler_list to parse handler.lst. | |
24143 | (GRUB_MOD_FINI): Call free_handler_list to free handler list. | |
24144 | ||
24145 | * term/efi/console.c (grub_console_init): Add name parameter for auto | |
24146 | generation of handler.lst. | |
24147 | * term/gfxterm.c: Likewise. | |
24148 | * term/i386/pc/at_keyboard.c: Likewise. | |
24149 | * term/i386/pc/console.c: Likewise. | |
24150 | * term/i386/pc/serial.c: Likewise. | |
24151 | * term/i386/pc/vesafb.c: Likewise. | |
24152 | * term/i386/pc/vga.c: Likewise. | |
24153 | * term/i386/pc/vga_text.c: Likewise. | |
24154 | * term/ieee1275/ofconsole.c: Likewise. | |
24155 | * term/usb_keyboard.c: Likewise. | |
24156 | ||
33c846be | 24157 | 2009-04-14 Bean <bean123ch@gmail.com> |
24158 | ||
24159 | * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol | |
24160 | properly with null character. | |
24161 | ||
4484e01e | 24162 | 2009-04-14 Felix Zielcke <fzielcke@z-51.de> |
24163 | ||
24164 | * configure: Remove. | |
24165 | * config.h.in: Likewise. | |
f93d668e | 24166 | * stamp-h.in: Likewise. |
4484e01e | 24167 | * DISTLIST: Likewise. |
24168 | * conf/common.mk: Likewise. | |
24169 | * conf/i386-coreboot.mk: Likewise. | |
24170 | * conf/i386-efi.mk: Likewise. | |
24171 | * conf/i386-ieee1275.mk: Likewise. | |
24172 | * conf/i386.mk: Likewise. | |
24173 | * conf/i386-pc.mk: Likewise. | |
24174 | * conf/powerpc-ieee1275.mk: Likewise. | |
24175 | * conf/sparc64-ieee1275.mk: Likewise. | |
24176 | * conf/x86_64-efi.mk: Likewise. | |
24177 | ||
24178 | * INSTALL: Remove the sentence that Ruby and autoconf are only required if you | |
24179 | develop on GRUB. | |
24180 | ||
7dd4a573 | 24181 | 2009-04-14 John Stanley <jpsinthemix@verizon.net> |
5c5bf96a | 24182 | David S. Miller <davem@davemloft.net> |
24183 | ||
24184 | * util/hostdisk.c (make_device_name): Fix buffer length | |
24185 | calculations. | |
24186 | ||
e25b5a8c | 24187 | 2009-04-14 Felix Zielcke <fzielcke@z-51.de> |
24188 | ||
24189 | * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include | |
24190 | <sys/param.h> and <sys/sysctl.h>. | |
24191 | (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname() | |
24192 | to add 0x10 to `kern.geom.debugflags' if it's not already set, before | |
24193 | opening the device and reset them afterwards. | |
24194 | ||
1f1f580c | 24195 | 2009-04-13 Pavel Roskin <proski@gnu.org> |
24196 | ||
24197 | * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c. | |
24198 | Reported by John Stanley <jpsinthemix@verizon.net> | |
24199 | ||
7ebc2d6b | 24200 | 2009-04-13 Robert Millan <rmh@aybabtu.com> |
24201 | ||
24202 | * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use | |
7dd4a573 | 24203 | that name for menuentries when appropriate. |
7ebc2d6b | 24204 | |
d8ba3667 | 24205 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
24206 | ||
24207 | * util/grub.d/10_freebsd.in: Add a missing `fi'. | |
24208 | ||
cba416eb | 24209 | 2009-04-13 Robert Millan <rmh@aybabtu.com> |
24210 | ||
24211 | * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter | |
24212 | to Linux, simply abort telling the user it's no longer supported. | |
24213 | ||
a547a745 | 24214 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
24215 | ||
24216 | * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints | |
7dd4a573 | 24217 | doesn't exist. Check also for /boot/kernel/kernel.gz. Print |
a547a745 | 24218 | `freebsd_loadenv' only when devices.hints exist. |
24219 | ||
232a769c | 24220 | 2009-04-13 Pavel Roskin <proski@gnu.org> |
24221 | ||
24222 | * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes. | |
24223 | ||
c3012039 | 24224 | 2009-04-13 Felix Zielcke <fzielcke@z-51.de> |
24225 | ||
24226 | * util/i386/pc/grub-install.in (install_drive): Remove the BSD | |
24227 | partition number. | |
24228 | (grub_drive): Likewise. | |
24229 | ||
234022fe | 24230 | 2009-04-13 David S. Miller <davem@davemloft.net> |
24231 | ||
24232 | * kern/sparc64/ieee1275/ieee1275.c: New file. | |
24233 | * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE, | |
24234 | IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED, | |
24235 | IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL, | |
24236 | IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define. | |
24237 | (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr, | |
24238 | grub_ieee1275_alloc_physmem): Declare new exported functions. | |
24239 | ||
d8e1836c | 24240 | * include/grub/sparc64/ieee1275/loader.h: New file. |
24241 | * include/grub/sparc64/ieee1275/memory.h: Likewise. | |
24242 | * include/grub/sparc64/kernel.h: Likewise. | |
24243 | * loader/sparc64/ieee1275/linux.c: Likewise. | |
24244 | ||
96bd81ec | 24245 | * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module. |
24246 | (grub_fstest_SOURCES): Likewise. | |
24247 | ||
6a4737e5 | 24248 | * util/hostdisk.c (make_device_name): Do not make any assumptions |
24249 | about the length of drive names. | |
24250 | ||
1d7a72fd | 24251 | * kern/dl.c (grub_dl_load_file): Close file immediately when |
24252 | we are done using it. | |
24253 | ||
56bc2471 | 24254 | 2009-04-12 David S. Miller <davem@davemloft.net> |
24255 | ||
24256 | * kern/misc.c (grub_ltoa): Fix cast when handling negative | |
24257 | values. Noticed by Pavel Roskin. | |
24258 | ||
df38d0bb | 24259 | * configure.ac: Check for __bswapsi2 and__bswapdi2 using |
24260 | target compiler. | |
7dd4a573 | 24261 | |
e382e93a | 24262 | * genmk.rb: Add more flexible image type specification, also |
24263 | pass --strip-unneeded to objcopy. | |
24264 | * conf/i386-pc.rmk: Use *_FORMAT. | |
24265 | * conf/i386-pc.mk: Rebuilt. | |
24266 | ||
f5dbbca9 | 24267 | * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct. |
24268 | (OFDISK_HASH_SZ): Define. | |
24269 | (ofdisk_hash): New hash table. | |
24270 | (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions. | |
24271 | (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id | |
24272 | instead of device phandle which is not unique. | |
24273 | ||
91c88b12 | 24274 | * kern/sparc64/ieee1275/init.c: Delete, replace with... |
24275 | * kern/sparc64/ieee1275/crt0.S: assembler implementation. | |
24276 | * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[]. | |
24277 | (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE, | |
24278 | GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE, | |
24279 | GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX, | |
24280 | GRUB_KERNEL_MACHINE_DATA_END): Define. | |
24281 | (grub_kernel_image_size, grub_total_module_size): Declare. | |
24282 | ||
5b5d4aa5 | 24283 | 2009-04-12 Pavel Roskin <proski@gnu.org> |
24284 | ||
7dd4a573 | 24285 | * configure.ac: Change the logic when we check for target tools. |
24286 | Do it when the target is specified and it's different from the | |
24287 | specified value of the host. | |
5b5d4aa5 | 24288 | |
c91e1793 | 24289 | 2009-04-11 Felix Zielcke <fzielcke@z-51.de> |
24290 | ||
24291 | * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h. | |
24292 | (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for | |
24293 | GNU/kFreeBSD. Check if a device is a character device. Use | |
24294 | DIOCGMEDIASIZE to get the size. | |
24295 | (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add | |
24296 | support for GNU/kFreeBSD. | |
24297 | (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV | |
24298 | is a character device instead of a block device. Add support for | |
24299 | FreeBSD device names. | |
24300 | ||
24301 | * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT | |
24302 | is a character device instead of a block device. | |
24303 | ||
24304 | * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME | |
24305 | is a character device instead of a block device. | |
24306 | ||
b1ac8644 | 24307 | 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com> |
24308 | ||
24309 | * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h. | |
24310 | (grub_util_biosdisk_open) [__FreeBSD__]: Add support for | |
24311 | FreeBSD. Check if a device is a character device. Use | |
24312 | DIOCGMEDIASIZE to get the size. | |
24313 | (convert_system_partition_to_system_disk) [__FreeBSD__]: Add | |
24314 | support for FreeBSD. | |
24315 | (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV | |
24316 | is a character device instead of a block device. Add support for | |
24317 | FreeBSD device names. | |
24318 | ||
24319 | * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is | |
24320 | a character device instead of a block device. | |
24321 | (grub_util_check_char_device): New function. | |
24322 | ||
24323 | * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is | |
24324 | a character device instead of a block device. | |
24325 | ||
24326 | * include/grub/util/getroot.h (grub_util_check_char_device): New | |
24327 | prototype. | |
24328 | ||
a3f7515a | 24329 | 2009-04-11 David S. Miller <davem@davemloft.net> |
24330 | ||
24331 | * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with | |
24332 | static libgcc. | |
24333 | * configure.ac: Check for __bswapsi2 and __bswapdi2 presence. | |
24334 | * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc | |
24335 | function, if present. | |
24336 | (__bswapdi2): Likewise. | |
24337 | ||
0d44993d | 24338 | * include/grub/sparc64/ieee1275/boot.h: New file. |
24339 | * boot/sparc64/ieee1275/boot.S: Likewise. | |
24340 | * boot/sparc64/ieee1275/diskboot.S: Likewise. | |
24341 | ||
ed3d2bc2 | 24342 | * kern/misc.c (grub_ltoa): New function. |
24343 | (grub_vsprintf): Use it to format 'long' integers. | |
24344 | ||
d3bfb59c | 24345 | 2009-04-10 David S. Miller <davem@davemloft.net> |
24346 | ||
24347 | * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg | |
24348 | slots are of type grub_ieee1275_cell_t. | |
24349 | (grub_nand_read): Likewise. | |
24350 | * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID, | |
24351 | IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these | |
24352 | macros are used to compare values in arg/ret block of the call. | |
24353 | (grub_ieee1275_finddevice, grub_ieee1275_get_property, | |
24354 | grub_ieee1275_next_property, grub_ieee1275_get_property_length, | |
24355 | grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path, | |
24356 | grub_ieee1275_instance_to_path, grub_ieee1275_write, | |
24357 | grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer, | |
24358 | grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open, | |
24359 | grub_ieee1275_close, grub_ieee1275_set_property, | |
24360 | grub_ieee1275_set_color): All ieee1275 call arg slots are of type | |
24361 | grub_ieee1275_cell_t. | |
24362 | * kern/ieee1275/openfw.c (grub_map): Likewise. | |
24363 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t, | |
24364 | grub_ieee1275_phandle_t): Define as grub_unit32_t type. | |
24365 | ||
450e2238 | 24366 | * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t. |
24367 | * kern/ieee1275/openfw.c (grub_children_iterate): Likewise. | |
24368 | (grub_devalias_iterate): Likewise. | |
24369 | ||
7dd4a573 | 24370 | 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com> |
6df8cc76 | 24371 | |
24372 | UFS improvements | |
24373 | ||
24374 | * fs/ufs.c (INODE_NBLOCKS): new definition | |
24375 | (struct grub_ufs_dirent): added fields for non-BSD dirents | |
24376 | (grub_ufs_get_file_block): fixed double indirect handling | |
24377 | (grub_ufs_lookup_symlink): use more robust way to determine whether | |
24378 | symlink is inline | |
24379 | (grub_ufs_find_file): support for non-BSD dirents | |
24380 | (grub_ufs_dir): support for non-BSD dirents | |
24381 | ||
e7e6862a | 24382 | 2009-04-10 Bean <bean123ch@gnail.com> |
24383 | ||
24384 | * include/grub/efi/api.h (grub_efi_configuration_table): Add packed | |
24385 | attribute, otherwise the size would be wrong for i386 platform. | |
24386 | ||
24387 | * include/grub/pci.h (grub_pci_read_word): New inline function. | |
24388 | (grub_pci_read_byte): Likewise. | |
24389 | (grub_pci_write): Likewise. | |
24390 | (grub_pci_write_word): Likewise. | |
24391 | (grub_pci_write_byte): Likewise. | |
24392 | ||
24393 | * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR. | |
24394 | ||
24395 | * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module. | |
24396 | (find_framebuf): Scan pci to locate the frame buffer address. | |
24397 | ||
24398 | * commands/efi/fixvideo.c: New file. | |
24399 | ||
24400 | * commands/efi/loadbios.c: Likewise. | |
24401 | ||
24402 | * commands/memrw.c: Likewise. | |
24403 | ||
24404 | * util/grub-dumpbios.in: Likewise. | |
24405 | ||
24406 | * conf/common.rmk (grub-dumpbios): New utility. | |
24407 | (pkglib_MODULES): New module memrw.mod. | |
24408 | (memrw_mod_SOURCE): New macro. | |
24409 | (memrw_mod_CFLAGS): Likewise. | |
24410 | (memrw_mod_LDFLAGS): Likewise. | |
24411 | ||
7dd4a573 | 24412 | * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and |
e7e6862a | 24413 | fixvideo.mod. |
24414 | (loadbios_mod_SOURCE): New macro. | |
24415 | (loadbios_mod_CFLAGS): Likewise. | |
24416 | (loadbios_mod_LDFLAGS): Likewise. | |
24417 | (fixvideo_mod_SOURCE): Likewise. | |
24418 | (fixvideo_mod_CFLAGS): Likewise. | |
24419 | (fixvideo_mod_LDFLAGS): Likewise. | |
24420 | ||
7dd4a573 | 24421 | * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and |
e7e6862a | 24422 | fixvideo.mod. |
24423 | (loadbios_mod_SOURCE): New macro. | |
24424 | (loadbios_mod_CFLAGS): Likewise. | |
24425 | (loadbios_mod_LDFLAGS): Likewise. | |
24426 | (fixvideo_mod_SOURCE): Likewise. | |
24427 | (fixvideo_mod_CFLAGS): Likewise. | |
24428 | (fixvideo_mod_LDFLAGS): Likewise. | |
24429 | ||
af63ada2 | 24430 | 2009-04-08 Felix Zielcke <fzielcke@z-51.de> |
24431 | ||
24432 | * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check. | |
24433 | ||
c2cdde70 | 24434 | 2009-04-07 David S. Miller <davem@davemloft.net> |
24435 | ||
24436 | * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add | |
24437 | support for R_SPARC_OLO10 relocations. Fix compile warning for | |
24438 | R_SPARC_WDISP30 case. | |
ea3f72cf | 24439 | * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation. |
c2cdde70 | 24440 | |
761319cf | 24441 | 2009-04-06 Pavel Roskin <proski@gnu.org> |
24442 | ||
1007d1f5 | 24443 | * include/grub/misc.h (ARRAY_SIZE): New macro. |
24444 | * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): | |
24445 | New macro. | |
24446 | * loader/i386/linux.c (allocate_pages): Use free_pages(). | |
24447 | (grub_linux_unload): Don't use free_pages(). | |
24448 | (grub_linux_boot): Prevent accessing linux_vesafb_modes with a | |
24449 | wrong index. Treat all other modes as text modes. | |
24450 | (grub_cmd_linux): Initialize vid_mode unconditionally to | |
24451 | GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask". | |
24452 | ||
761319cf | 24453 | * commands/help.c (print_command_help): Use cmd->prio, not |
24454 | cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE. | |
24455 | ||
ea761d40 | 24456 | 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com> |
7dd4a573 | 24457 | |
ea761d40 | 24458 | Parttool |
24459 | ||
24460 | * parttool/pcpart.c: new file | |
24461 | * commands/parttool.c: likewise | |
24462 | * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod | |
24463 | (parttool_mod_SOURCES): new variable | |
24464 | (parttool_mod_CFLAGS): likewise | |
24465 | (parttool_mod_LDFLAGS): likewise | |
24466 | (pcpart_mod_SOURCES): likewise | |
24467 | (pcpart_mod_CFLAGS): likewise | |
24468 | (pcpart_mod_LDFLAGS): likewise | |
7dd4a573 | 24469 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c |
ea761d40 | 24470 | and parttool/pcpart.c |
24471 | * conf/i386-efi.rmk: likewise | |
24472 | * conf/i386-ieee1275.rmk: likewise | |
24473 | * conf/i386-pc.rmk: likewise | |
24474 | * conf/powerpc-ieee1275.rmk: likewise | |
24475 | * conf/sparc64-ieee1275.rmk: likewise | |
24476 | * conf/x86_64-ieee1275.rmk: likewise | |
24477 | ||
05aaebfb | 24478 | 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
24479 | ||
24480 | Support for mtime and further expandability of dir command | |
24481 | ||
24482 | * include/grub/lib/datetime.h: moved to ... | |
7dd4a573 | 24483 | * include/grub/datetime.h: ... moved here and added |
05aaebfb | 24484 | declaration of grub_unixtime2datetime. All users updated |
7dd4a573 | 24485 | * include/grub/fs.h: new syntax for dir and mtime functions in |
24486 | struct grub_fs | |
05aaebfb | 24487 | * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK |
24488 | and GRUB_FSHELP_FLAGS_MASK | |
24489 | * commands/ls.c (grub_ls_list_files): Write mtime in long format | |
24490 | * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime | |
24491 | (grub_ext2_mtime): new function | |
24492 | * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime | |
24493 | (grub_hfsplus_mtime): new function | |
24494 | * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition | |
24495 | (GRUB_UFS_ATTR_FILE): likewise | |
24496 | (GRUB_UFS_ATTR_LNK): likewise | |
24497 | (struct grub_ufs_sblock): new fields mtime | |
24498 | (grub_ufs_read_inode): new parameter to read inode to a separate buffer | |
24499 | all users updated | |
24500 | (grub_ufs_dir): mtime support | |
24501 | (grub_ufs_mtime): new function | |
24502 | * fs/affs.c (grub_affs_dir): use new dir syntax | |
24503 | * fs/afs.c (grub_afs_dir): likewise | |
24504 | * fs/cpio.c (grub_cpio_dir): likewise | |
24505 | * fs/fat.c (grub_fat_find_dir): likewise | |
24506 | * fs/hfs.c (grub_hfs_dir): likewise | |
24507 | * fs/iso9660.c (grub_iso9660_dir): likewise | |
24508 | * fs/jfs.c (grub_jfs_dir): likewise | |
24509 | * fs/minix.c (grub_minix_dir): likewise | |
24510 | * fs/ntfs.c (grub_ntfs_dir): likewise | |
24511 | * fs/reiserfs.c (grub_reiserfs_dir): likewise | |
24512 | * fs/sfs.c (grub_sfs_dir): likewise | |
24513 | * fs/xfs.c (grub_xfs_dir): likewise | |
24514 | * util/hostfs.c (grub_hostfs_dir): likewise | |
24515 | * lib/datetime.c: moved to ... | |
24516 | * normal/datetime.c: ... moved here | |
24517 | (grub_unixtime2datetime): new function | |
24518 | * kern/rescue.c (grub_rescue_print_files): use new dir syntax | |
7dd4a573 | 24519 | * normal/completion.c (iterate_dir): use new dir syntax |
24520 | * normal/misc.c (grub_normal_print_device_info): tell the | |
05aaebfb | 24521 | last modification time of a volume |
7dd4a573 | 24522 | * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax |
05aaebfb | 24523 | * conf/common.rmk: added lib/datetime.c to ls.mod |
7dd4a573 | 24524 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c |
05aaebfb | 24525 | (normal_mod_SOURCES): likewise |
24526 | (datetime_mod_SOURCES): Removed lib/datetime.c | |
24527 | * conf/i386-efi.rmk: likewise | |
7dd4a573 | 24528 | * conf/i386-ieee1275.rmk: likewise |
05aaebfb | 24529 | * conf/i386-pc.rmk: likewise |
24530 | * conf/powerpc-ieee1275.rmk: likewise | |
7dd4a573 | 24531 | * conf/sparc64-ieee1275.rmk: likewise |
24532 | * conf/x86_64-efi.rmk: likewise | |
05aaebfb | 24533 | |
8a7e1a14 | 24534 | 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com> |
24535 | ||
24536 | Trim trailing spaces in FAT label and support mtools-like labels | |
7dd4a573 | 24537 | |
24538 | * fs/fat.c (grub_fat_iterate_dir): New function based | |
8a7e1a14 | 24539 | on grub_fat_find_dir |
24540 | (grub_fat_find_dir): use grub_fat_iterate_dir | |
24541 | (grub_fat_label): likewise | |
24542 | ||
04186a9c | 24543 | 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com> |
24544 | ||
7dd4a573 | 24545 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h |
04186a9c | 24546 | and command.h |
24547 | remove extraneous kernel_elf_HEADERS | |
24548 | ||
da4c0bb6 | 24549 | 2009-04-04 Bean <bean123ch@gnail.com> |
24550 | ||
24551 | * include/grub/util/misc.h: Add dummy function fsync for mingw. | |
24552 | ||
24553 | * util/misc.c: Likewise. | |
24554 | ||
54ad9555 | 24555 | 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
24556 | ||
24557 | * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf | |
24558 | instead of grub_printf. | |
24559 | ||
7a6bf9f2 | 24560 | 2009-04-03 Robert Millan <rmh@aybabtu.com> |
24561 | ||
24562 | * loader/i386/linux.c (grub_linux_setup_video): Fill | |
24563 | `params->{red,green,blue,reserved}_{mask_size,field_pos}' with | |
24564 | values from `mode info' structure instead of hardcoded | |
24565 | values. | |
24566 | ||
3fcc2083 | 24567 | 2009-04-01 Pavel Roskin <proski@gnu.org> |
24568 | ||
24569 | * Makefile.in: Remove all references to MODULE_LDFLAGS, it's | |
24570 | unused now. | |
24571 | * genmk.rb: Likewise. | |
24572 | * configure.ac: Likewise. | |
24573 | ||
5ec9740b | 24574 | 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com> |
24575 | ||
24576 | * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to | |
24577 | TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage. | |
24578 | ||
5270cec8 | 24579 | 2009-04-01 David S. Miller <davem@davemloft.net> |
24580 | ||
24581 | * normal/sparc64/setjmp.S: Fix setjmp implementation. | |
7dd4a573 | 24582 | * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update. |
5270cec8 | 24583 | (grub_setjmp): Mark with 'returns_twice' attribute. |
24584 | * include/grub/i386/setjmp.h (grub_setjmp): Likewise | |
24585 | * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise. | |
24586 | * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise. | |
24587 | ||
9c3dd854 | 24588 | 2009-04-01 Robert Millan <rmh@aybabtu.com> |
24589 | ||
24590 | Reapply fix from 2008-07-28 which was accidentally reverted; also | |
24591 | perform the same fix to a similar check in same function. | |
24592 | ||
24593 | * disk/raid.c (grub_raid_scan_device): Do not abort when two disks | |
24594 | with the same number are found, just use issue a warning with | |
24595 | grub_dprintf(), as this error has been reported to be non-fatal. | |
24596 | ||
0d818b7e | 24597 | 2009-03-31 Pavel Roskin <proski@gnu.org> |
24598 | ||
24599 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default | |
24600 | for cross-compilation. | |
24601 | ||
95646d92 | 24602 | 2009-03-30 Robert Millan <rmh@aybabtu.com> |
24603 | ||
24604 | Fix i386-ieee1275 build. | |
24605 | ||
24606 | * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot): | |
24607 | Remove declaration. | |
24608 | ||
6a003ed1 | 24609 | 2009-03-30 Pavel Roskin <proski@gnu.org> |
24610 | ||
24611 | * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ... | |
24612 | (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be | |
24613 | zero-terminated, rely only on the strlen value. Fix comparison | |
24614 | of strings differing in length. | |
24615 | ||
92f33540 | 24616 | 2009-03-30 Robert Millan <rmh@aybabtu.com> |
24617 | ||
24618 | * loader/i386/linux.c (grub_cmd_linux): Check for zImage before | |
24619 | checking for abi version. Improve error messages on BIOS to notify | |
24620 | user about `linux16' command. | |
24621 | ||
a8c48fd5 | 24622 | 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com> |
24623 | ||
f968172e | 24624 | Leak fixes |
a8c48fd5 | 24625 | |
f968172e | 24626 | * kern/disk.c (grub_disk_cache_store): Invalidate previous cache |
24627 | in case of collision | |
24628 | * disk/scsi.c (grub_scsi_open): free scsi in case of error | |
a8c48fd5 | 24629 | |
9c323f09 | 24630 | 2009-03-29 Robert Millan <rmh@aybabtu.com> |
24631 | ||
24632 | * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and | |
24633 | set `vid_mode' accordingly. | |
24634 | (grub_linux_boot): Process `vid_mode' and set video mode. | |
24635 | ||
ae68f423 | 24636 | 2009-03-29 Robert Millan <rmh@aybabtu.com> |
24637 | ||
24638 | * util/grub.d/10_linux.in (linux_entry): New function. | |
24639 | Factorize generation of Linux boot entries. | |
24640 | ||
5709cfc4 | 24641 | 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org> |
24642 | ||
24643 | Make the format of Environment Block plain text. The boot loader | |
24644 | part is not tested well yet. | |
7dd4a573 | 24645 | |
5709cfc4 | 24646 | * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro. |
24647 | (buffer): Removed. | |
24648 | (envblk): Likewise. | |
24649 | (usage): Remove "info" and "clear". Add "unset". Update the | |
24650 | description of "set", as this does not delete variables any | |
24651 | longer. | |
24652 | (create_envblk_file): Complete rewrite. | |
24653 | (open_envblk_file): Likewise. | |
24654 | (cmd_info): Removed. | |
24655 | (cmd_list): Likewise. | |
24656 | (cmd_set): Likewise. | |
24657 | (cmd_clear): Likewise. | |
24658 | (list_variables): New function. | |
24659 | (write_envblk): Likewise. | |
24660 | (set_variables): Likewise. | |
24661 | (unset_variables): Likewise. | |
24662 | (main): Complete rewrite. | |
24663 | ||
24664 | * commands/loadenv.c (buffer): Removed. | |
24665 | (envblk): Likewise. | |
24666 | (open_envblk_file): New function. | |
24667 | (read_envblk_file): Complete rewrite. | |
24668 | (grub_cmd_load_env): Likewise. | |
24669 | (grub_cmd_list_env): Likewise. | |
24670 | (struct blocklist): New struct. | |
24671 | (free_blocklists): New function. | |
24672 | (check_blocklists): Likewise. | |
24673 | (write_blocklists): Likewise. | |
24674 | (grub_cmd_save_env): Complete rewrite. | |
24675 | ||
24676 | * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with | |
24677 | a plain text signature. | |
24678 | (GRUB_ENVBLK_MAXLEN): Removed. | |
24679 | (struct grub_envblk): Complete rewrite. | |
24680 | (grub_envblk_find): Removed. | |
24681 | (grub_envblk_insert): Likewise. | |
24682 | (grub_envblk_open): New prototype. | |
24683 | (grub_envblk_set): Likewise. | |
24684 | (grub_envblk_delete): Put const to VALUE. | |
24685 | (grub_envblk_iterate): Put const to NAME and VALUE. | |
24686 | (grub_envblk_close): New prototype. | |
24687 | (grub_envblk_buffer): New inline function. | |
24688 | (grub_envblk_size): Likewise. | |
24689 | ||
24690 | * lib/envblk.c: Include grub/mm.h. | |
24691 | (grub_env_find): Removed. | |
24692 | (grub_envblk_open): New function. | |
24693 | (grub_envblk_close): Likewise. | |
24694 | (escaped_value_len): Likewise. | |
24695 | (find_next_line): Likewise. | |
24696 | (grub_envblk_insert): Removed. | |
24697 | (grub_envblk_set): New function. | |
24698 | (grub_envblk_delete): Complete rewrite. | |
24699 | (grub_envblk_iterate): Likewise. | |
24700 | ||
a9368fd3 | 24701 | 2009-03-28 Robert Millan <rmh@aybabtu.com> |
24702 | ||
24703 | * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'. | |
24704 | (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New | |
24705 | variables. Use 16-bit loader. | |
24706 | (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit | |
24707 | loader. | |
24708 | * kern/i386/loader.S (grub_linux_boot): Rename to ... | |
24709 | (grub_linux16_boot): ... this. Update all users. | |
24710 | * loader/i386/linux.c (grub_linux32_boot): Rename to ... | |
24711 | (grub_linux_boot): ... this. Update all users. | |
24712 | ||
24713 | * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ... | |
24714 | (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd' | |
24715 | commands to `linux16' and `initrd16'. | |
24716 | (GRUB_MOD_FINI(linux)): Rename to ... | |
24717 | (GRUB_MOD_FINI(linux16)): ... this. | |
24718 | ||
e4dd5a7e | 24719 | 2009-03-24 Pavel Roskin <proski@gnu.org> |
24720 | ||
24721 | * genmk.rb: Define ASM_FILE for *.S files for *.lst generation, | |
24722 | not just for compilation. | |
24723 | ||
c04d6e05 | 24724 | 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com> |
24725 | ||
24726 | Move multiboot helper out of kernel | |
24727 | ||
24728 | * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add | |
24729 | `loader/i386/multiboot_helper.S'. | |
24730 | * conf/i386-coreboot.rmk: Likewise | |
24731 | * conf/i386-ieee1275.rmk: Likewise | |
24732 | ||
24733 | * kern/i386/loader.S: Move multiboot helpers from here... | |
24734 | * loader/i386/multiboot_helper.S: ...moved here | |
24735 | * include/grub/i386/loader.h: Move declarations of multiboot | |
24736 | helpers from here... | |
24737 | * include/grub/i386/multiboot.h: ...moved here | |
24738 | * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h | |
24739 | ||
42a5b3fc | 24740 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
24741 | ||
24742 | * kern/env.c (grub_env_context_open): Added an argument to specify | |
24743 | whether a new context inherits exported variables from current | |
24744 | one. This is useful when making a sandbox to interpret a config | |
24745 | file. | |
24746 | All callers updated. | |
24747 | ||
24748 | * include/grub/env.h (grub_env_context_open): Updated the prototype. | |
24749 | ||
b28bbc4e | 24750 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
24751 | ||
24752 | * kern/env.c (grub_env_context_close): Fix memory leaks. | |
24753 | ||
f04f02e4 | 24754 | 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org> |
24755 | ||
24756 | * normal/main.c (grub_normal_execute): Added an argument | |
24757 | BATCH to specify if an interactive interface should be provided | |
24758 | after reading a config file. | |
24759 | All callers updated. | |
24760 | (read_command_list): Prevent being executed twice. | |
24761 | (read_fs_list): Likewise. | |
24762 | ||
42a5b3fc | 24763 | * include/grub/normal.h (grub_normal_execute): Updated the |
24764 | prototype. | |
f04f02e4 | 24765 | |
41473ac2 | 24766 | 2009-03-22 Pavel Roskin <proski@gno.org> |
24767 | ||
fbc00b0c | 24768 | * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with |
24769 | _start. | |
24770 | * kern/i386/pc/startup.S: Likewise. | |
24771 | * kern/i386/efi/startup.S: Likewise. | |
24772 | * kern/i386/ieee1275/startup.S: Likewise. | |
24773 | * kern/i386/coreboot/startup.S: Likewise. | |
24774 | * kern/x86_64/efi/startup.S: Likewise. | |
24775 | ||
41473ac2 | 24776 | * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove. |
24777 | * configure.ac: Don't call grub_CHECK_START_SYMBOL. | |
24778 | * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL. | |
24779 | ||
2274cc8f | 24780 | 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com> |
24781 | ||
24782 | Bugfixes in multiboot for bugs uncovered by solaris kernel. | |
24783 | ||
24784 | * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected | |
24785 | limit detection. | |
24786 | Use vaddr of correct segment for entry_point. | |
24787 | ||
b1b797cb | 24788 | 2009-03-21 Bean <bean123ch@gmail.com> |
24789 | ||
24790 | * commands/blocklist.c: Add include file <grub/command.h>, remove | |
24791 | <grub/normal.h> and <grub/arg.h>. | |
24792 | (grub_cmd_blocklist): Use the new command interface. | |
24793 | (GRUB_MOD_INIT): Likewise. | |
24794 | (GRUB_MOD_FINI): Likewise. | |
24795 | * commands/boot.c: Likewise. | |
24796 | * commands/cat.c: Likewise. | |
24797 | * commands/cmp.c: Likewise. | |
24798 | * commands/configfile.c: Likewise. | |
24799 | * commands/crc.c: Likewise. | |
24800 | * commands/echo.c: Likewise. | |
24801 | * commands/halt.c: Likewise. | |
24802 | * commands/handler.c: Likewise. | |
24803 | * commands/hdparm.c: Likewise. | |
24804 | * commands/help.c: Likewise. | |
24805 | * commands/hexdump.c: Likewise. | |
24806 | * commands/loadenv.c: Likewise. | |
24807 | * commands/ls.c: Likewise. | |
24808 | * commands/lsmmap.c: Likewise. | |
24809 | * commands/lspci.c: Likewise. | |
24810 | * commands/loadenv.c: Likewise. | |
24811 | * commands/read.c: Likewise. | |
24812 | * commands/reboot.c: Likewise. | |
24813 | * commands/search.c: Likewise. | |
24814 | * commands/sleep.c: Likewise. | |
24815 | * commands/test.c: Likewise. | |
24816 | * commands/usbtest.c: Likewise. | |
24817 | * commands/videotest.c: Likewise. | |
24818 | * commands/i386/cpuid.c: Likewise. | |
24819 | * commands/i386/pc/halt.c: Likewise. | |
24820 | * commands/i386/pc/play.c: Likewise. | |
24821 | * commands/i386/pc/pxecmd.c: Likewise. | |
24822 | * commands/i386/pc/vbeinfo.c: Likewise. | |
24823 | * commands/i386/pc/vbetest.c: Likewise. | |
24824 | * commands/ieee1275/suspend.c: Likewise. | |
24825 | * disk/loopback.c: Likewise. | |
24826 | * font/font_cmd.c: Likewise. | |
24827 | * hello/hello.c: Likewise. | |
24828 | * loader/efi/appleloader.c: Likewise. | |
24829 | * loader/efi/chainloader.c: Likewise. | |
24830 | * loader/i386/bsd.c: Likewise. | |
24831 | * loader/i386/efi/linux.c: Likewise. | |
24832 | * loader/i386/ieee1275/linux.c: Likewise. | |
24833 | * loader/i386/linux.c: Likewise. | |
24834 | * loader/i386/pc/chainloader.c: Likewise. | |
24835 | * loader/i386/pc/linux.c: Likewise. | |
24836 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
24837 | * loader/multiboot_loader.c: Likewise. | |
24838 | * term/gfxterm.c: Likewise. | |
24839 | * term/i386/pc/serial.c: Likewise. | |
24840 | * term/terminfo.c: Likewise. | |
24841 | ||
24842 | * term/i386/pc/vesafb.c: Removed <grub/arg.h>. | |
24843 | * term/i386/pc/vga.c: Likewise. | |
24844 | * video/readers/jpeg.c: Likewise. | |
24845 | * video/readers/png.c: Likewise. | |
24846 | * video/readers/tga.c: Likewise. | |
24847 | ||
24848 | * util/grub-fstest (cmd_loopback): Removed. | |
24849 | (cmd_blocklist): Likewise. | |
24850 | (cmd_ls): Likewise. | |
24851 | (grub_register_command): Likewise. | |
24852 | (grub_unregister_command): Likewise. | |
24853 | (execute_command): Use grub_command_find to locate command and execute | |
24854 | it. | |
24855 | ||
24856 | * include/grub/efi/chainloader.h: Removed. | |
24857 | * loader/efi/chainloader_normal.c: Likewise. | |
24858 | * loader/i386/bsd_normal.c: Likewise. | |
24859 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
24860 | * loader/i386/pc/multiboot_normal.c: Likewise. | |
24861 | * loader/linux_normal.c: Likewise. | |
24862 | * loader/multiboot_loader_normal.c: Likewise. | |
24863 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
24864 | ||
24865 | * gencmdlist.sh: Scan new registration command grub_register_extcmd | |
24866 | and grub_register_command_p1. | |
24867 | ||
24868 | * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c, | |
24869 | kern/command.c, lib/arg.c and commands/extcmd.c. | |
24870 | (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod. | |
24871 | (minicmd_mod_SOURCES): New variable. | |
24872 | (minicmd_mod_CFLAGS): Likewise. | |
24873 | (minicmd_mod_LDFLAGS): Likewise. | |
24874 | (extcmd_mod_SOURCES): Likewise. | |
24875 | (extcmd_mod_CFLAGS): Likewise. | |
24876 | (extcmd_mod_LDFLAGS): Likewise. | |
24877 | (boot_mod_SOURCES): Removed. | |
24878 | (boot_mod_CFLAGS): Likewise. | |
24879 | (boot_mod_LDFLAGS): Likewise. | |
24880 | ||
24881 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and | |
24882 | kern/corecmd.c. | |
24883 | (kernel_img_HEADERS): Add command.h. | |
24884 | (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add | |
24885 | commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c | |
24886 | and lib/arg.c. | |
24887 | (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and | |
24888 | _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod, | |
24889 | remove the corresponding normal mode command. | |
24890 | (normal_mod_SOURCES): Remove normal/arg.c. | |
24891 | * conf/i386-coreboot.rmk: Likewise. | |
24892 | * conf/i386-efi.rmk: Likewise. | |
24893 | * conf/i386-ieee1275.rmk: Likewise. | |
24894 | * conf/powerpc-ieee1275.rmk: Likewise. | |
24895 | * conf/x86_64-efi.rmk: Likewise. | |
24896 | ||
24897 | * include/grub/arg.h: Move from here ... | |
24898 | * include/grub/lib/arg.h: ... to here. | |
24899 | ||
24900 | * normal/arg.c: Move from here ... | |
24901 | * lib/arg.c: ... to here. | |
24902 | ||
24903 | * commands/extcmd.c: New file. | |
24904 | * commands/minicmd.c: Likewise. | |
24905 | * include/grub/command.h: Likewise. | |
24906 | * include/grub/extcmd.h: Likewise. | |
24907 | * kern/command.c: Likewise. | |
24908 | * kern/corecmd.c: Likewise. | |
24909 | ||
24910 | * kern/list.c (grub_list_iterate): Return int instead of void. | |
24911 | (grub_list_insert): New function. | |
24912 | (grub_prio_list_insert): Likewise. | |
24913 | ||
24914 | * kern/rescue.c (grub_rescue_command): Removed. | |
24915 | (grub_rescue_command_list): Likewise. | |
24916 | (grub_rescue_register_command): Likewise. | |
24917 | (grub_rescue_unregister_command): Likewise. | |
24918 | (grub_rescue_cmd_boot): Move to minicmd.c | |
24919 | (grub_rescue_cmd_help): Likewise. | |
24920 | (grub_rescue_cmd_info): Likewise. | |
24921 | (grub_rescue_cmd_boot): Likewise. | |
24922 | (grub_rescue_cmd_testload): Likewise. | |
24923 | (grub_rescue_cmd_dump): Likewise. | |
24924 | (grub_rescue_cmd_rmmod): Likewise. | |
24925 | (grub_rescue_cmd_lsmod): Likewise. | |
24926 | (grub_rescue_cmd_exit): Likewise. | |
24927 | (grub_rescue_print_devices): Moved to corecmd.c. | |
24928 | (grub_rescue_print_files): Likewise. | |
24929 | (grub_rescue_cmd_ls): Likewise. | |
24930 | (grub_rescue_cmd_insmod): Likewise. | |
24931 | (grub_rescue_cmd_set): Likewise. | |
24932 | (grub_rescue_cmd_unset): Likewise. | |
7d074e3c | 24933 | (attempt_normal_mode): Use grub_command_find to get normal module. |
b1b797cb | 24934 | (grub_enter_rescue_mode): Use grub_register_core_commands to register |
7d074e3c | 24935 | commands, remove grub_rescue_register_command calls. |
b1b797cb | 24936 | |
7d074e3c | 24937 | * normal/command.c (grub_register_command): Removed. |
b1b797cb | 24938 | (grub_unregister_command): Likewise. |
24939 | (grub_command_find): Likewise. | |
24940 | (grub_iterate_commands): Likewise. | |
24941 | (rescue_command): Likewise. | |
24942 | (export_command): Moved to corecmd.c. | |
24943 | (set_command): Removed. | |
24944 | (unset_command): Likewise. | |
24945 | (insmod_command): Likewise. | |
24946 | (rmmod_command): Likewise. | |
24947 | (lsmod_command): Likewise. | |
24948 | (grub_command_init): Likewise. | |
24949 | ||
24950 | * normal/completion.c (iterate_command): Use cmd->prio to check for | |
24951 | active command. | |
24952 | (complete_arguments): Use grub_extcmd_t structure to find options. | |
24953 | (grub_normal_do_completion): Change function grub_iterate_commands to | |
24954 | grub_command_iterate. | |
24955 | ||
24956 | * normal/execute.c (grub_script_execute_cmd): No need to parse | |
24957 | argument here. | |
24958 | ||
24959 | * normal/main.c (grub_dyncmd_dispatcher): New function. | |
24960 | (read_command_list): Register unload commands as dyncmd. | |
24961 | (grub_cmd_normal): Use new command interface, register rescue, | |
24962 | unregister normal at entry, register normal, unregister rescue at exit. | |
24963 | ||
24964 | * include/grub/list.h (grub_list_test_t): New type. | |
24965 | (grub_list_iterate): Return int instead of void. | |
24966 | (grub_list_insert): New function. | |
24967 | (GRUB_AS_NAMED_LIST_P): New macro. | |
24968 | (GRUB_AS_PRIO_LIST): Likewise. | |
24969 | (GRUB_AS_PRIO_LIST_P): Likewise. | |
24970 | (GRUB_PRIO_LIST_PRIO_MASK): New constant. | |
24971 | (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise. | |
24972 | (grub_prio_list): New structure. | |
24973 | (grub_prio_list_insert): New function. | |
24974 | (grub_prio_list_remove): New inline function. | |
24975 | ||
24976 | * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>. | |
24977 | (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h. | |
24978 | (GRUB_COMMAND_FLAG_MENU): Likewise. | |
24979 | (GRUB_COMMAND_FLAG_BOTH): Likewise. | |
24980 | (GRUB_COMMAND_FLAG_TITLE): Likewise. | |
24981 | (GRUB_COMMAND_FLAG_NO_ECHO): Likewise. | |
24982 | (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed. | |
24983 | (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise. | |
24984 | (grub_command): Likewise. | |
24985 | (grub_register_command): Likewise. | |
24986 | (grub_command_find): Likewise. | |
24987 | (grub_iterate_commands): Likewise. | |
24988 | (grub_command_init): Likewise. | |
24989 | (grub_arg_parse): Likewise. | |
24990 | (grub_arg_show_help): Likewise. | |
24991 | ||
24992 | * include/grub/rescue.h (grub_rescue_register_command): Removed. | |
24993 | (grub_rescue_unregister_command): Likewise. | |
24994 | ||
24995 | * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd, | |
24996 | grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd, | |
24997 | grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module. | |
24998 | ||
24999 | * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and | |
25000 | grub_rescue_cmd_initrd. | |
25001 | * include/grub/i386/loader.h: Likewise. | |
25002 | * include/grub/x86_64/loader.h: Likewise. | |
25003 | ||
25004 | * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd. | |
25005 | ||
1f4147aa | 25006 | 2009-03-21 Bean <bean123ch@gmail.com> |
25007 | ||
25008 | * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size | |
25009 | instead of stat in mingw environment. | |
25010 | ||
25011 | * util/misc.c (grub_millisleep): Use Sleep in mingw environment. | |
25012 | ||
25013 | * aclocal.m4 (grub_CHECK_LINK_DIR): New function. | |
25014 | ||
25015 | * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use | |
25016 | AC_CONFIG_LINKS. | |
25017 | ||
2156d5ba | 25018 | 2009-03-21 Bean <bean123ch@gmail.com> |
25019 | ||
25020 | * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for | |
25021 | out of range error. | |
25022 | ||
177b82ca | 25023 | 2009-03-18 Michel Dänzer <michel@daenzer.net> |
25024 | ||
25025 | * fs/ext2.c (grub_ext2_read_block): Take endianness into account when | |
25026 | checking inode flags for EXT4_EXTENTS_FLAG. | |
25027 | ||
14aad807 | 25028 | 2009-03-18 Robert Millan <rmh@aybabtu.com> |
25029 | ||
25030 | * loader/i386/linux.c: Include `<grub/video.h>' and | |
25031 | `<grub/i386/pc/vbe.h>'.. | |
25032 | (grub_linux_setup_video): New function. Loosely based on the EFI one. | |
25033 | (grub_linux32_boot): Attempt to configure video settings with | |
25034 | grub_linux_setup_video(). | |
25035 | (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order | |
25036 | to avoid grub_console_fini() which would step out of graphical mode | |
25037 | unconditionally. | |
25038 | ||
8cf83a27 | 25039 | 2009-03-14 Robert Millan <rmh@aybabtu.com> |
25040 | ||
25041 | Fix build on powerpc. | |
25042 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'. | |
25043 | ||
40164e75 | 25044 | 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com> |
25045 | ||
25046 | * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of | |
25047 | background image command. | |
25048 | ||
c58bc32a | 25049 | 2009-03-12 Colin D Bennett <colin@gibibit.com> |
25050 | ||
25051 | * term/gfxterm.c (draw_cursor): Ensure character is redrawn. | |
25052 | (grub_gfxterm_putchar): Extract pairs of identical calls to | |
25053 | draw_cursor out of conditional blocks. | |
25054 | ||
5415144a | 25055 | 2009-03-11 Pavel Roskin <proski@gnu.org> |
25056 | ||
25057 | * fs/hfs.c (grub_hfs_strncasecmp): New function. | |
25058 | (grub_hfs_cmp_catkeys): Use HFS specific string comparison. | |
25059 | ||
6394042e | 25060 | 2009-03-11 Robert Millan <rmh@aybabtu.com> |
25061 | ||
25062 | * loader/i386/multiboot_elfxx.c | |
25063 | (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files. | |
25064 | ||
b7b50e5f | 25065 | 2009-03-11 Felix Zielcke <fzielcke@z-51.de> |
25066 | ||
25067 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and | |
25068 | `kern/handler.c'. | |
25069 | ||
1ca7fc96 | 25070 | 2009-03-11 Robert Millan <rmh@aybabtu.com> |
25071 | ||
25072 | * loader/i386/multiboot.c (code_size): New variable. | |
25073 | (grub_multiboot): Define offsets by adding to `code_size' rather | |
7d074e3c | 25074 | than subtracting from `grub_multiboot_payload_size'. Provide |
1ca7fc96 | 25075 | 4-byte alignment to MBI and others by increasing |
7d074e3c | 25076 | `boot_loader_name_length' appropriately. |
1ca7fc96 | 25077 | |
25078 | * loader/i386/multiboot_elfxx.c | |
25079 | (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'. | |
25080 | ||
a83ea1d2 | 25081 | 2009-03-09 Felix Zielcke <fzielcke@z-51.de> |
25082 | ||
25083 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated | |
25084 | `fs/ext2.c'. | |
25085 | ||
aa9f3bff | 25086 | 2009-03-08 Robert Millan <rmh@aybabtu.com> |
25087 | ||
25088 | Make loader/i386/linux.c usable on i386-pc again. | |
25089 | ||
25090 | * kern/i386/pc/init.c (grub_machine_init): Disable addition of low | |
25091 | memory to heap. | |
25092 | * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove | |
25093 | `#error' stanza. | |
25094 | ||
d8b3b60e | 25095 | 2009-03-07 Bean <bean123ch@gmail.com> |
25096 | ||
25097 | * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd | |
25098 | allocation. | |
25099 | ||
b362c9e9 | 25100 | 2009-03-06 Robert Millan <rmh@aybabtu.com> |
25101 | ||
25102 | Fix display issue on terminals with screen size other than 80x25 | |
25103 | (e.g. gfxterm with resolution higher than 640x480). | |
25104 | ||
25105 | * normal/main.c (grub_normal_init_page): Display title text in a | |
7d074e3c | 25106 | position relative to the center of the terminal instead of relying |
b362c9e9 | 25107 | on a hardcoded offset. |
25108 | ||
9304eef1 | 25109 | 2009-03-04 Robert Millan <rmh@aybabtu.com> |
25110 | ||
25111 | Filter /etc/grub.d/10_* so that only add-ons for native kernels are | |
25112 | installed. | |
25113 | ||
25114 | * Makefile.in (host_kernel): New variable. | |
25115 | * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in | |
25116 | scripts instead of just the windows one. | |
25117 | * configure.ac: Initialize and AC_SUBST `host_kernel'. | |
25118 | ||
eabc95fb | 25119 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
2ba60b62 | 25120 | |
25121 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and | |
25122 | `kern/handler.c'. | |
25123 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
25124 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
25125 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
25126 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25127 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25128 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25129 | ||
ceb1223c | 25130 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
25131 | ||
25132 | * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions | |
25133 | or if there's no space for the disk label and print the partition number on a | |
25134 | invalid magic. | |
25135 | ||
4910684a | 25136 | 2009-03-04 Felix Zielcke <fzielcke@z-51.de> |
25137 | ||
25138 | * util/misc.c: Include <time.h>. | |
25139 | (grub_millisleep): New function. | |
25140 | ||
7e9ca17a | 25141 | 2009-03-04 Bean <bean123ch@gmail.com> |
25142 | ||
25143 | * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add | |
25144 | another option -mno-red-zone. | |
25145 | ||
25146 | * commands/handler.c: Change module description. | |
25147 | ||
25148 | * kern/handler.c: Add missing space at the end of description line. | |
25149 | ||
25150 | * kern/list.c: Likewise. | |
25151 | ||
f501677c | 25152 | 2009-03-03 Robert Millan <rmh@aybabtu.com> |
25153 | ||
25154 | Move more components to the relocation area, and fix mbi pointer | |
25155 | handling to use the destination rather than the origin (thanks to | |
25156 | Vladimir Serbinenko for spotting). | |
25157 | ||
25158 | * loader/i386/multiboot.c (mbi_dest): New variable. | |
25159 | (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'. | |
25160 | (grub_multiboot): Put cmdline, boot_loader_name and mbi in the | |
25161 | relocation area. | |
25162 | ||
9902d047 | 25163 | 2009-03-01 Bean <bean123ch@gmail.com> |
25164 | ||
50fb7002 | 25165 | * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant. |
9902d047 | 25166 | (GRUB_EFI_ACPI_TABLE_GUID): Likewise. |
25167 | (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise. | |
25168 | (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise. | |
25169 | ||
25170 | * loader/i386/efi/linux.c (acpi_guid): New variable. | |
25171 | (acpi_guid): Likewise. | |
25172 | (EBDA_SEG_ADDR): New constant. | |
25173 | (LOW_MEM_ADDR): Likewise. | |
25174 | (FAKE_EBDA_SEG): Likewise. | |
25175 | (fake_bios_data): New function. | |
25176 | (grub_linux_boot): Call fake_bios_data. | |
25177 | ||
71b9f361 | 25178 | 2009-03-01 Bean <bean123ch@gmail.com> |
25179 | ||
25180 | * commands/terminal.c: Removed. | |
25181 | ||
25182 | * commands/handler.c: New file. | |
25183 | ||
25184 | * include/grub/list.h: Likewise. | |
25185 | ||
25186 | * include/grub/handler.h: Likewise. | |
25187 | ||
25188 | * kern/list.c: Likewise. | |
25189 | ||
25190 | * kern/handler.c: Likewise. | |
25191 | ||
25192 | * kern/term.h: Include header file <grub/handler.h>. | |
25193 | (grub_term_input): Move next field to the beginning. | |
25194 | (grub_term_output): Likewise. | |
25195 | (grub_term_input_class): New variable. | |
25196 | (grub_term_output_class): Likewise. | |
25197 | (grub_term_register_input): Changed to inline function. | |
25198 | (grub_term_register_output): Likewise. | |
25199 | (grub_term_unregister_input): Likewise. | |
25200 | (grub_term_unregister_output): Likewise. | |
25201 | (grub_term_set_current_input): Likewise. | |
25202 | (grub_term_set_current_output): Likewise. | |
25203 | (grub_term_get_current_input): Likewise. | |
25204 | (grub_term_get_current_output): Likewise. | |
25205 | (grub_term_iterate_input): Removed. | |
25206 | (grub_term_iterate_output): Likewise. | |
25207 | ||
25208 | * kern/term.c (grub_term_list_input): Removed. | |
25209 | (grub_term_list_output): Likewise. | |
25210 | (grub_term_input_class): New variable. | |
25211 | (grub_term_output_class): Likewise. | |
50fb7002 | 25212 | (grub_cur_term_input): Change variable as macro. |
71b9f361 | 25213 | (grub_cur_term_output): Likewise. |
25214 | (grub_term_register_input): Removed. | |
25215 | (grub_term_register_output): Likewise. | |
25216 | (grub_term_unregister_input): Likewise. | |
25217 | (grub_term_unregister_output): Likewise. | |
25218 | (grub_term_set_current_input): Likewise. | |
25219 | (grub_term_set_current_output): Likewise. | |
25220 | (grub_term_iterate_input): Likewise. | |
25221 | (grub_term_iterate_output): Likewise. | |
25222 | (grub_term_get_current_input): Likewise. | |
25223 | (grub_term_get_current_output): Likewise. | |
25224 | ||
25225 | * util/grub-editenv.c: Include header file <grub/handler.h>. | |
25226 | (grub_term_get_current_input): Removed. | |
25227 | (grub_term_get_current_output): Likewise. | |
25228 | (grub_term_input_class): New variable. | |
50fb7002 | 25229 | (grub_term_output_class): Likewise. |
71b9f361 | 25230 | |
25231 | * util/grub-fstest.c (grub_term_get_current_input): Removed. | |
25232 | (grub_term_get_current_output): Likewise. | |
25233 | (grub_term_input_class): New variable. | |
50fb7002 | 25234 | (grub_term_output_class): Likewise. |
71b9f361 | 25235 | |
25236 | * util/grub-probe.c (grub_term_get_current_input): Removed. | |
25237 | (grub_term_get_current_output): Likewise. | |
25238 | (grub_term_input_class): New variable. | |
50fb7002 | 25239 | (grub_term_output_class): Likewise. |
71b9f361 | 25240 | |
25241 | * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed. | |
25242 | (grub_term_get_current_output): Likewise. | |
25243 | (grub_term_input_class): New variable. | |
50fb7002 | 25244 | (grub_term_output_class): Likewise. |
71b9f361 | 25245 | |
25246 | * conf/common.rmk (pkglib_MODULES): Replace terminal with handler. | |
25247 | (terminal_mod_SOURCES): Likewise. | |
25248 | (terminal_mod_CFLAGS): Likewise. | |
25249 | (terminal_mod_LDFLAGS): Likewise. | |
25250 | ||
25251 | * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25252 | handler.c. | |
25253 | (kernel_img_SOURCES): Add list.c and handler.c. | |
25254 | (kernel_img_HEADERS): Add list.h and handler.h. | |
25255 | ||
25256 | * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25257 | handler.c. | |
25258 | (kernel_mod_SOURCES): Add list.c and handler.c. | |
25259 | (kernel_mod_HEADERS): Add list.h and handler.h. | |
25260 | ||
25261 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25262 | handler.c. | |
25263 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
25264 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
25265 | ||
25266 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25267 | handler.c. | |
25268 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
25269 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
25270 | ||
25271 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25272 | handler.c. | |
25273 | (kernel_mod_SOURCES): Add list.c and handler.c. | |
25274 | (kernel_mod_HEADERS): Add list.h and handler.h. | |
25275 | ||
25276 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with | |
25277 | handler.c. | |
25278 | (kernel_elf_SOURCES): Add list.c and handler.c. | |
25279 | (kernel_elf_HEADERS): Add list.h and handler.h. | |
25280 | ||
8a31787f | 25281 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
25282 | ||
25283 | Factorize elf32 / elf64 code in Multiboot loader. This will | |
25284 | prevent it from getting out of sync again. | |
25285 | ||
25286 | * loader/i386/multiboot.c (grub_multiboot_is_elf32, | |
25287 | grub_multiboot_load_elf32, grub_multiboot_is_elf64, | |
25288 | grub_multiboot_load_elf64): Move from here ... | |
25289 | * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf, | |
25290 | grub_multiboot_load_elf): ... to here (new file). | |
25291 | ||
51cd3dfc | 25292 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
25293 | ||
25294 | * util/grub.d/10_linux.in: Rename "single-user mode" to | |
25295 | "recovery mode". | |
25296 | ||
6e8c9c3a | 25297 | 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com> |
25298 | ||
25299 | Don't leak in SCSI code. | |
25300 | * disk/scsi.c (grub_scsi_close): free `scsi'. | |
25301 | ||
4b6bf4f9 | 25302 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
25303 | ||
25304 | * loader/i386/pc/multiboot.c: Move from here ... | |
25305 | * loader/i386/multiboot.c: ... to here. Update all users. | |
25306 | ||
b9413424 | 25307 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
25308 | ||
25309 | Patch from Alexandre Bique <bique.alexandre@gmail.com> | |
25310 | * util/i386/pc/grub-setup.c (setup): Fix directory path. | |
25311 | ||
50fb7002 | 25312 | 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl> |
34519c3f | 25313 | |
25314 | * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent | |
25315 | b-tree. | |
25316 | ||
8cc50345 | 25317 | 2009-02-27 Robert Millan <rmh@aybabtu.com> |
25318 | ||
25319 | * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the | |
25320 | `0x' qualifier as 0 when base is specified as parameter). | |
25321 | ||
6e09b8b7 | 25322 | 2009-02-24 Bean <bean123ch@gmail.com> |
25323 | ||
25324 | * configure.ac: Check for -mcmodel=large in x86_64 target. | |
25325 | ||
25326 | * include/grub/efi/api.h (efi_call_10): New macro. | |
25327 | (efi_wrap_10): New function. | |
25328 | ||
25329 | * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro. | |
25330 | (GRUB_PE32_REL_BASED_HIGH): Likewise. | |
25331 | (GRUB_PE32_REL_BASED_LOW): Likewise. | |
25332 | (GRUB_PE32_REL_BASED_HIGHLOW): Likewise. | |
25333 | (GRUB_PE32_REL_BASED_HIGHADJ): Likewise. | |
25334 | (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise. | |
25335 | (GRUB_PE32_REL_BASED_SECTION): Likewise. | |
25336 | (GRUB_PE32_REL_BASED_REL): Likewise. | |
25337 | (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise. | |
25338 | (GRUB_PE32_REL_BASED_DIR64): Likewise. | |
25339 | (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise. | |
25340 | ||
25341 | * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation | |
25342 | issue. | |
25343 | ||
25344 | * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix. | |
25345 | (efi_wrap_10): New function. | |
25346 | ||
25347 | * kern/x86_64/efi/startup.S (codestart): Use relative addressing. | |
25348 | ||
25349 | * loader/efi/appleloader.c (devpath_5): Add support for late 2008 | |
25350 | MB/MBP model (NV chipset). | |
25351 | (devdata_devs): Add devpath_5 to the list. | |
25352 | ||
25353 | * load/i386/efi/linux.c (video_base): Remove variable. | |
25354 | (RGB_MASK): New macro. | |
25355 | (RGB_MAGIC): Likewise. | |
25356 | (LINE_MIN): Likewise. | |
25357 | (LINE_MAX): Likewise. | |
25358 | (FBTEST_STEP): Likewise. | |
25359 | (FBTEST_COUNT): Likewise. | |
25360 | (fb_list): New variable. | |
25361 | (grub_find_video_card): Remove function. | |
25362 | (find_framebuf): New function. | |
25363 | (grub_linux_setup_video): Use find_framebuf to get frame buffer and | |
25364 | line length. | |
25365 | ||
25366 | * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation | |
25367 | problem for x86_64. | |
25368 | ||
74b21bee | 25369 | 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi> |
25370 | ||
25371 | Patch #25624 by Kevin Lacquement <kevin@lacqui>. | |
25372 | ||
25373 | * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard | |
25374 | coding tool name. | |
25375 | ||
a455f472 | 25376 | 2009-02-22 Robert Millan <rmh@aybabtu.com> |
25377 | ||
25378 | * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro. | |
25379 | * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI | |
25380 | in our relocation, instead of using it directly from heap. Also | |
25381 | use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned. | |
25382 | ||
6374daf3 | 25383 | 2009-02-21 Robert Millan <rmh@aybabtu.com> |
25384 | ||
25385 | Implement USB keyboard support (based on patch by Marco Gerards) | |
25386 | ||
25387 | * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'. | |
25388 | (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS) | |
25389 | (usb_keyboard_mod_LDFLAGS): New variables. | |
25390 | ||
25391 | * term/usb_keyboard.c: New file. | |
25392 | ||
8fa4ea70 | 25393 | 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com> |
25394 | ||
25395 | Corrected wrong declaration | |
25396 | ||
25397 | * kern/disk.c: corrected declaration of grub_disk_ata_pass_through. | |
25398 | ||
353976ac | 25399 | 2009-02-14 Christian Franke <franke@computer.org> |
25400 | ||
25401 | * commands/lspci.c (grub_pci_classes): Add `SATA Controller'. | |
25402 | (grub_lspci_iter): Print class code and programming interface byte. | |
25403 | ||
6aa1169b | 25404 | 2009-02-14 Christian Franke <franke@computer.org> |
25405 | ||
25406 | * gendistlist.sh: Ignore `.svn' directories. | |
25407 | ||
265372ca | 25408 | 2009-02-14 Felix Zielcke <fzielcke@z-51.de> |
25409 | ||
25410 | * fs/fat.c: Add 2009 to Copyright line. | |
25411 | ||
9ff516f3 | 25412 | 2009-02-14 Christian Franke <franke@computer.org> |
25413 | ||
25414 | * commands/hdparm.c: New file. Provides `hdparm' command | |
25415 | which sends ATA commands via grub_disk_ata_pass_through (). | |
25416 | ||
25417 | * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod. | |
25418 | ||
25419 | * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h> | |
25420 | and <grub/cpu/io.h> to include/grub/ata.h. | |
25421 | (enum grub_ata_addressing_t): Move to include/grub/ata.h. | |
25422 | (GRUB_CDROM_SECTOR_SIZE): Remove. | |
25423 | (GRUB_ATA_*): Move to include/grub/ata.h. | |
25424 | (GRUB_ATAPI_*): Likewise. | |
25425 | (enum grub_ata_commands): Likewise. | |
25426 | (enum grub_ata_timeout_milliseconds): Likewise. | |
25427 | (struct grub_ata_device): Likewise. | |
25428 | (grub_ata_regset): Likewise. | |
25429 | (grub_ata_regget): Likewise. | |
25430 | (grub_ata_regset2): Likewise. | |
25431 | (grub_ata_regget2): Likewise. | |
25432 | (grub_ata_check_ready): Likewise. | |
25433 | (grub_ata_wait_not_busy): Remove static, exported in | |
25434 | include/grub/ata.h. | |
25435 | (grub_ata_wait_drq): Likewise. | |
25436 | (grub_ata_pio_read): Likewise. | |
25437 | ||
25438 | * disk/ata_pthru.c: New file. Provides grub_ata_pass_through () | |
25439 | function for hdparm.mod. | |
25440 | ||
25441 | * include/grub/ata.h: New file, contains declarations from | |
25442 | disk/ata.c. | |
25443 | (enum grub_ata_commands): Add new commands for commands/hdparm.c. | |
25444 | ||
25445 | * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct. | |
25446 | (grub_disk_ata_pass_through): New exported variable. | |
25447 | ||
25448 | * kern/disk.c (grub_disk_ata_pass_through): New variable. | |
25449 | ||
772e23da | 25450 | 2009-02-13 Colin D Bennett <colin@gibibit.com> |
25451 | ||
25452 | Support multiple fallback entries, and provide an API to support | |
25453 | executing default+fallback menu entries. Renamed the `terminal' menu | |
25454 | viewer to `text'. | |
25455 | ||
25456 | * include/grub/normal.h (grub_normal_text_menu_viewer): New global | |
25457 | variable declaration. | |
25458 | (grub_menu_execute_callback): New structure declaration. | |
25459 | (grub_menu_execute_callback_t): New typedef. | |
25460 | (grub_menu_execute_with_fallback): New function declaration. | |
25461 | (grub_menu_get_entry): Likewise. | |
25462 | (grub_menu_get_timeout): Likewise. | |
25463 | (grub_menu_set_timeout): Likewise. | |
25464 | ||
25465 | * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name. | |
25466 | ||
25467 | * normal/menu.c (grub_wait_after_message): Moved to | |
25468 | `normal/menu_text.c'. | |
25469 | (draw_border): Likewise. | |
25470 | (print_message): Likewise. | |
25471 | (print_entry): Likewise. | |
25472 | (print_entries): Likewise. | |
25473 | (grub_menu_init_page): Likewise. | |
25474 | (get_entry_number): Likewise. | |
25475 | (print_timeout): Likewise. | |
25476 | (run_menu): Likewise. | |
25477 | (grub_menu_execute_entry): Likewise. | |
25478 | (show_text_menu): Likewise. | |
25479 | (get_and_remove_first_entry_number): New function. | |
25480 | (grub_menu_execute_with_fallback): Likewise. | |
25481 | (get_entry): Renamed to ... | |
25482 | (grub_menu_get_entry): .. this and made it global. | |
25483 | (get_timeout): Renamed to ... | |
25484 | (grub_menu_get_timeout): ... this and made it global. | |
25485 | (set_timeout): Renamed to ... | |
25486 | (grub_menu_set_timeout): ... this and made it global. | |
25487 | (grub_normal_terminal_menu_viewer): Renamed to ... | |
25488 | (grub_normal_text_menu_viewer): ... this. | |
25489 | ||
25490 | * normal/menu_text.c: New file. Extracted text-menu-specific code | |
25491 | from normal/menu.c. | |
25492 | ||
25493 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'. | |
25494 | (normal_mod_SOURCES): Likewise. | |
25495 | ||
25496 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
25497 | (normal_mod_SOURCES): Likewise. | |
25498 | ||
25499 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25500 | (normal_mod_SOURCES): Likewise. | |
25501 | ||
25502 | * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise. | |
25503 | (normal_mod_SOURCES): Likewise. | |
25504 | ||
25505 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25506 | (normal_mod_SOURCES): Likewise. | |
25507 | ||
25508 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25509 | (normal_mod_SOURCES): Likewise. | |
25510 | ||
25511 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
25512 | (normal_mod_SOURCES): Likewise. | |
25513 | ||
16ac430e | 25514 | 2009-02-11 Robert Millan <rmh@aybabtu.com> |
25515 | ||
25516 | * util/grub.d/00_header.in: Update old reference to `font' command. | |
25517 | ||
06ff20fc | 25518 | 2009-02-10 Felix Zielcke <fzielcke@z-51.de> |
25519 | ||
25520 | * fs/fat.c (grub_fat_mount): Fix wrong comparison. | |
25521 | ||
25522 | Based on patch from Javier Martín. | |
25523 | ||
96da9407 | 25524 | 2009-02-09 Felix Zielcke <fzielcke@z-51.de> |
25525 | ||
25526 | * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c | |
50fb7002 | 25527 | to avoid false positives with FAT. |
96da9407 | 25528 | (grub_fstest_SOURCES): Likewise. |
25529 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
25530 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
25531 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25532 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
25533 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25534 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25535 | ||
6dca6fe4 | 25536 | 2009-02-09 Felix Zielcke <fzielcke@z-51.de> |
25537 | ||
06ff20fc | 25538 | * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking |
6dca6fe4 | 25539 | bpb.version_specific.fat12_or_fat16.fstype and |
25540 | bpb.version_specific.fat32.fstype. | |
25541 | ||
2550c62f | 25542 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
25543 | ||
be110b30 | 25544 | * fs/tar.c: Replace "fs/cpio.c" with "cpio.c". |
2550c62f | 25545 | |
56978920 | 25546 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
25547 | ||
25548 | * Makefile.in (host_os, host_cpu): New variables. | |
25549 | (target_os): Remove. Update all users. | |
25550 | ||
d64399b5 | 25551 | 2009-02-08 Marco Gerards <marco@gnu.org> |
25552 | ||
25553 | * Makefile.in (enable_grub_emu_usb): New variable. | |
25554 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'. | |
25555 | (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c', | |
25556 | `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'. | |
25557 | (grub_emu_LDFLAGS): Add `$(LIBUSB)'. | |
25558 | (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod', | |
25559 | `usbtest.mod' and `usbms.mod'. | |
25560 | (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS) | |
25561 | (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS) | |
25562 | (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS, | |
25563 | (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS) | |
25564 | (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New | |
25565 | variables. | |
25566 | ||
25567 | * disk/usbms.c: New file. | |
25568 | ||
25569 | * include/grub/usb.h: Likewise. | |
25570 | ||
25571 | * include/grub/usbtrans.h: Likewise. | |
25572 | ||
25573 | * include/grub/usbdesc.h: Likewise. | |
25574 | ||
25575 | * bus/usb/usbtrans.c: Likewise. | |
25576 | ||
25577 | * bus/usb/ohci.c: Likewise. | |
25578 | ||
25579 | * bus/usb/uhci.c: Likewise. | |
25580 | ||
25581 | * bus/usb/usbhub.c: Likewise. | |
25582 | ||
25583 | * bus/usb/usb.c: Likewise. | |
25584 | ||
25585 | * commands/usbtest.c: Likewise. | |
25586 | ||
25587 | * util/usb.c: Likewise. | |
50fb7002 | 25588 | |
d64399b5 | 25589 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'. |
25590 | ||
25591 | * configure.ac: Test for libusb presence. | |
50fb7002 | 25592 | |
d64399b5 | 25593 | * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'. |
25594 | ||
2b40d6bb | 25595 | 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi> |
25596 | ||
25597 | * kern/mm.c: Add more comments. | |
25598 | ||
73a4ce81 | 25599 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
25600 | ||
25601 | Patch from Javier Martín. | |
25602 | * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add | |
25603 | `EXT4_FEATURE_INCOMPAT_FLEX_BG'. | |
25604 | ||
f821ce59 | 25605 | 2009-02-08 Robert Millan <rmh@aybabtu.com> |
25606 | ||
25607 | * fs/cpio.c: Split tar functionality to ... | |
25608 | * fs/tar.c: ... here (new file). Update all users. | |
25609 | ||
aebfc4b0 | 25610 | 2009-02-07 Robert Millan <rmh@aybabtu.com> |
25611 | ||
25612 | * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with | |
25613 | backward-incompatible features. | |
25614 | ||
25615 | Based on patch from Javier Martín, with some adjustments. | |
25616 | ||
50fb7002 | 25617 | 2009-02-07 Michael Scherer <misc@mandriva.org> |
cea15bca | 25618 | |
25619 | * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive. | |
25620 | ||
0bb5115e | 25621 | 2009-02-07 Robert Millan <rmh@aybabtu.com> |
25622 | ||
25623 | * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move | |
25624 | position of `disk/lvm.c' to ensure grub_init_all() always picks it | |
25625 | after the RAID stuff. | |
25626 | ||
38a0f8e7 | 25627 | 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi> |
25628 | ||
50fb7002 | 25629 | Fixes problem when running vbetest command as reported by |
38a0f8e7 | 25630 | Vladimir Serbinenko <phcoder@gmail.com>. |
25631 | ||
25632 | * (grub_vbe_set_video_mode): Fixed problem with text modes. | |
25633 | ||
3143cc1c | 25634 | 2009-02-04 Felix Zielcke <fzielcke@z-51.de> |
25635 | ||
25636 | util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and | |
25637 | /dev/md/NpN style mdraid devices. | |
25638 | ||
9cba6fce | 25639 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
25640 | ||
25641 | * util/unifont2pff.rb: Remove. | |
25642 | ||
e507a2c1 | 25643 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
25644 | ||
25645 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing | |
25646 | `#'. | |
25647 | ||
d2c2b4cd | 25648 | 2009-02-03 Felix Zielcke <fzielcke@z-51.de> |
25649 | ||
25650 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'. | |
25651 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
25652 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
25653 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise. | |
25654 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25655 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25656 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
25657 | ||
b4315fb0 | 25658 | 2009-02-02 Christian Franke <franke@computer.org> |
25659 | ||
25660 | * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical. | |
25661 | ||
de3aa260 | 25662 | 2009-02-01 Felix Zielcke <fzielcke@z-51.de> |
25663 | ||
7c3ff286 | 25664 | * INSTALL: Note that we now require at least autoconf 2.59 and |
25665 | that LZO is optional. | |
de3aa260 | 25666 | |
825a182b | 25667 | 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi> |
25668 | ||
25669 | Base on patch on bug #24154 created by Tomas Tintera | |
25670 | <trosos@seznam.cz>. | |
25671 | ||
25672 | * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling. | |
25673 | ||
a69ef770 | 25674 | 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi> |
25675 | ||
7c3ff286 | 25676 | Based on patch on bug #25318 created by Bernhard Rosenkraenzer |
a69ef770 | 25677 | <bero@arklinux.org>. |
25678 | ||
25679 | * normal/parser.y (script_init): Add missing semicolon. | |
25680 | ||
6fa42fa6 | 25681 | 2009-01-31 Colin D Bennett <colin@gibibit.com> |
25682 | ||
7c3ff286 | 25683 | * normal/main.c: Add include to grub/menu_viewer.h. |
6fa42fa6 | 25684 | (free_menu_entry_classes): Added. |
25685 | (grub_normal_menu_addentry): Added class property handling. | |
25686 | (grub_normal_execute): Changed to use new menu viewer for menu viewing. | |
25687 | (GRUB_MOD_INIT(normal)): Added register for text based menu viewer. | |
25688 | ||
25689 | * normal/menu_viewer.c: New file. | |
25690 | ||
25691 | * normal/menu.c (run_menu_entry): Renamed to ... | |
25692 | (grub_menu_execute_entry): ... this and made it as global. | |
25693 | (grub_menu_run): Renamed to ... | |
25694 | (show_text_menu): ... this and made it local. | |
25695 | (show_text_menu): Adapt to new function names. | |
25696 | (grub_normal_terminal_menu_viewer): New global variable. | |
25697 | ||
25698 | * include/grub/menu.h: New file. | |
25699 | ||
25700 | * include/grub/menu_viewer.h: New file. | |
25701 | ||
25702 | * include/grub/normal.h: Added include to grub/menu.h. | |
25703 | (grub_menu_entry): Moved to include/grub/menu.h. | |
25704 | (grub_menu_entry_t): Likewise. | |
25705 | (grub_menu): Likewise. | |
25706 | (grub_menu_t): Likewise. | |
25707 | (grub_normal_terminal_menu_viewer): Added. | |
25708 | (grub_menu_execute_entry): Likewise. | |
25709 | (grub_menu_run): Removed. | |
25710 | ||
25711 | * DISTLIST: Added include/grub/menu.h. | |
25712 | Added include/grub/menu_viewer.h. | |
25713 | Added normal/menu_viewer.c. | |
25714 | ||
25715 | 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi> | |
25716 | ||
25717 | * normal/execute.c (grub_script_execute_menuentry): Changed to use | |
25718 | arglist for menutitle arguments. | |
25719 | ||
25720 | * normal/main.c (grub_normal_menu_addentry): Likewise. | |
25721 | ||
25722 | * normal/parser.y (menuentry): Likewise. | |
25723 | ||
25724 | * normal/script.c (grub_script_create_cmdmenu): Likewise. | |
25725 | ||
25726 | * include/grub/script.h (grub_script_cmd_menuentry): Likewise. | |
25727 | (grub_script_create_cmdmenu): Likewise. | |
25728 | ||
25729 | * include/grub/normal.h (grub_normal_menu_addentry): Likewise. | |
25730 | ||
25731 | * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's | |
25732 | changes. | |
25733 | ||
25734 | * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise. | |
25735 | ||
25736 | * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise. | |
25737 | ||
25738 | * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise. | |
25739 | ||
25740 | * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
25741 | ||
25742 | * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
25743 | ||
25744 | * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise. | |
25745 | ||
56192c23 | 25746 | 2009-01-30 Christian Franke <franke@computer.org> |
25747 | ||
25748 | * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears | |
25749 | in option help text. | |
25750 | ||
d72521b3 | 25751 | 2009-01-27 Pavel Roskin <proski@gnu.org> |
25752 | ||
25753 | * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID. | |
25754 | ||
994b5e84 | 25755 | 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi> |
25756 | ||
25757 | * commands/lsmmap.c: Add include to grub/machine/memory.h. | |
25758 | ||
25759 | * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem. | |
25760 | ||
25761 | * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper | |
25762 | unregister function. | |
25763 | ||
6a7eab2c | 25764 | 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi> |
25765 | ||
25766 | * disk/scsi.c (grub_scsi_read): Fix sign problem. | |
25767 | ||
25768 | * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration. | |
25769 | ||
25770 | * util/grub-mkfont.c (usage): Fix typo. | |
25771 | ||
25772 | * util/elf/grub-mkimage.c (load_modules): Fix warning. | |
25773 | ||
1806b56e | 25774 | 2009-01-26 Daniel Mierswa <impulze@impulze.org> |
25775 | ||
3fb18f09 | 25776 | * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes. |
25777 | ||
336e1fb9 | 25778 | * commands/search.c (search_fs_uuid): Ignore case of the UUID. |
25779 | ||
1806b56e | 25780 | * kern/misc.c (grub_strcasecmp): New function. |
25781 | (grub_strcasecmp): Use grub_size_t instead of int for length. | |
25782 | Fix return value. | |
25783 | * include/grub/misc.h: Update function prototypes. | |
25784 | ||
580b2a0f | 25785 | 2009-01-26 Robert Millan <rmh@aybabtu.com> |
25786 | ||
25787 | * configure.ac: Fix cross-compilation check. | |
ef257b36 | 25788 | |
d31c24f1 | 25789 | 2009-01-22 Christian Franke <franke@computer.org> |
25790 | ||
25791 | * kern/misc.c (grub_vsprintf): Fix size and termination of `format2' | |
25792 | (precision) digit string. Allow `.format2' without `format1' (width). | |
25793 | Limit input chars for `%s' output to `format2' if specified. This is | |
25794 | compatible with standard printf (). | |
25795 | ||
3138b44c | 25796 | 2009-01-22 Christian Franke <franke@computer.org> |
25797 | ||
25798 | * disk/ata.c (grub_ata_wait_status): Replace by ... | |
25799 | (grub_ata_wait_not_busy): ... this function. Checks only BSY bit, | |
25800 | other status bits may be invalid while BSY is asserted. | |
25801 | (grub_ata_check_ready): New function. | |
25802 | (grub_ata_cmd): Removed. | |
25803 | (grub_ata_wait_drq): New function. | |
25804 | (grub_ata_strncpy): Remove inline. | |
25805 | (grub_ata_pio_read): Reduce to actual block transfer. BSY wait | |
25806 | and error check now done by grub_ata_wait_drq (). | |
25807 | (grub_ata_pio_write): Likewise. | |
25808 | (grub_atapi_identify): Set DEV before check for !BSY. Use | |
25809 | grub_ata_wait_drq () to wait for data. | |
25810 | (grub_ata_device_initialize): Add status register check to | |
25811 | detect missing SATA slave devices. Add debug messages. | |
25812 | (grub_atapi_wait_drq): Use grub_ata_wait_not_busy (). | |
25813 | (grub_atapi_packet): Set DEV before check for !BSY. Replace | |
25814 | transfer loop by grub_ata_pio_write (). | |
25815 | (grub_ata_identify): Set DEV before check for !BSY. Use | |
25816 | grub_ata_wait_drq () to wait for data. | |
ef257b36 | 25817 | (grub_ata_setaddress): Set DEV before check for !BSY. |
3138b44c | 25818 | (grub_ata_readwrite): Remove duplicate code, handle batch/rest and |
25819 | read/write in one loop. Fix invalid command on write. Fix incomplete | |
25820 | command on (size % batch) == 0. Add missing error check after write of | |
25821 | last block. Add debug messages. | |
25822 | (grub_atapi_read): Replace transfer loop by grub_ata_pio_read (). | |
25823 | ||
59a64ef6 | 25824 | 2009-01-19 Christian Franke <franke@computer.org> |
25825 | ||
25826 | * disk/ata.c (GRUB_ATAPI_REG_*): New defines. | |
25827 | (GRUB_ATAPI_IREASON_*): Likewise. | |
25828 | (grub_ata_pio_write): Fix timeout error return. | |
25829 | (grub_atapi_identify): Add grub_ata_wait () after cmd. | |
25830 | (grub_atapi_wait_drq): New function. | |
25831 | (grub_atapi_packet): New parameter `size'. | |
25832 | Use grub_atapi_wait_drq () and direct write instead of | |
25833 | grub_ata_pio_write (). | |
25834 | (grub_atapi_read): Replace grub_ata_pio_read () by a loop which | |
25835 | reads the number of bytes requested by the device for each DRQ | |
25836 | assertion. | |
25837 | (grub_atapi_write): Remove old implementation, return not | |
25838 | implemented instead. | |
25839 | ||
1cfe20b3 | 25840 | 2009-01-19 Christian Franke <franke@computer.org> |
25841 | ||
25842 | * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead | |
25843 | of 512 to calculate data size. | |
25844 | (grub_scsi_read12): Likewise. | |
25845 | (grub_scsi_write10): Likewise. | |
25846 | (grub_scsi_write12): Likewise. | |
25847 | (grub_scsi_read): Adjust size according to blocksize. | |
25848 | Add checks for invalid blocksize and unaligned transfer. | |
25849 | ||
bee5fe5d | 25850 | 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi> |
25851 | ||
25852 | * font/font.c (grub_font_loader_init): Re-position unknown glyph. | |
25853 | ||
ef257b36 | 25854 | * term/gfxterm.c (write_char): Fix background rendering for wide |
bee5fe5d | 25855 | width glyphs. |
25856 | ||
3e643f8c | 25857 | 2009-01-19 Robert Millan <rmh@aybabtu.com> |
25858 | ||
25859 | * config.guess: Update to latest version from config git. | |
25860 | * config.sub: Likewise. | |
25861 | ||
4fa80998 | 25862 | 2009-01-17 Felix Zielcke <fzielcke@z-51.de> |
25863 | ||
25864 | * Makefile.in: Change font compilation to use new grub-mkfont instead | |
25865 | of java version. | |
25866 | ||
25867 | * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove. | |
25868 | * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. | |
25869 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. | |
25870 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. | |
25871 | * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise. | |
25872 | * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. | |
25873 | * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. | |
25874 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise. | |
25875 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise. | |
25876 | ||
7086085b | 25877 | 2009-01-16 Christian Franke <franke@computer.org> |
25878 | ||
25879 | * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS. | |
25880 | (enum grub_ata_timeout_milliseconds): New enum. | |
25881 | (grub_ata_wait_status): Add parameter milliseconds. | |
25882 | (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow | |
25883 | recovery from timed-out commands. | |
25884 | (grub_ata_pio_read): Add parameter milliseconds. Fix error return, | |
25885 | return grub_errno instead of REG_ERROR. | |
25886 | (grub_ata_pio_write): Add parameter milliseconds. | |
25887 | (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector. | |
25888 | Pass milliseconds to grub_ata_wait_status () and | |
25889 | grub_ata_pio_read (). | |
25890 | (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write (). | |
25891 | (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to | |
25892 | grub_ata_wait_status (). Fix IDENTIFY timeout check. | |
25893 | (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS. | |
25894 | It is not suitable for device detection, because DEV bit is ignored, | |
25895 | the command may run too long, and not all devices set the signature | |
25896 | properly. | |
25897 | (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize (). | |
25898 | (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status (). | |
25899 | Fix device selection, DEV bit must be set first to address the registers | |
25900 | of the correct device. | |
25901 | (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and | |
25902 | grub_ata_pio_read/write (). | |
25903 | (grub_atapi_read): Pass milliseconds to grub_ata_pio_read (). | |
25904 | (grub_atapi_write): Pass milliseconds to grub_ata_pio_write (). | |
25905 | ||
4a412913 | 25906 | 2009-01-13 Carles Pina i Estany <carles@pina.cat> |
25907 | ||
25908 | * util/grub-editenv.c (main): Use fseeko(), not fseek(). | |
25909 | ||
7795c55e | 25910 | 2009-01-13 Bean <bean123ch@gmail.com> |
d913988c | 25911 | |
25912 | * util/grub-mkfont.c (write_font): forget to remove some debug code. | |
25913 | ||
7795c55e | 25914 | 2009-01-13 Bean <bean123ch@gmail.com> |
e52db1f7 | 25915 | |
25916 | * Makefile.in: (enable_grub_mkfont): New variable. | |
25917 | (freetype_cflags): Likewise. | |
25918 | (freetype_libs): Likewise. | |
25919 | ||
25920 | * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested. | |
25921 | (grub_mkfont_SOURCES): New variable. | |
25922 | (grub_mkfont_CFLAGS): Likewise. | |
25923 | (grub_mkfont_LDFLAGS): Likewise. | |
25924 | ||
25925 | * configure.ac (--enable-grub-mkfont): New option. Check for freetype2 | |
25926 | library if `--enable-grub-mkfont' is requested. | |
25927 | (enable_grub_mkfont): New variable. | |
25928 | (freetype_cflags): Likewise. | |
25929 | (freetype_libs): Likewise. | |
25930 | ||
25931 | * util/grub-mkfont.c: New file. | |
25932 | ||
093af1fe | 25933 | 2009-01-12 Christian Franke <franke@computer.org> |
25934 | ||
25935 | * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility | |
25936 | mode check. Fix setting of compat_use[]. | |
25937 | ||
f36cc108 | 25938 | 2009-01-10 Robert Millan <rmh@aybabtu.com> |
25939 | ||
25940 | Update a few copyright years which we forgot to do in 2008 (only for | |
25941 | files whose changes made in 2008 were copyright-significant) | |
25942 | ||
25943 | * Makefile.in: Add 2008 to Copyright line. | |
25944 | * disk/ieee1275/ofdisk.c: Likewise. | |
25945 | * disk/efi/efidisk.c: Likewise. | |
25946 | * kern/dl.c: Likewise. | |
25947 | * kern/sparc64/ieee1275/init.c: Likewise. | |
25948 | * kern/mm.c: Likewise. | |
25949 | * kern/efi/mm.c: Likewise. | |
25950 | * boot/i386/pc/boot.S: Likewise. | |
25951 | * genfslist.sh: Likewise. | |
25952 | * fs/iso9660.c: Likewise. | |
25953 | * fs/hfs.c: Likewise. | |
25954 | * fs/jfs.c: Likewise. | |
25955 | * fs/minix.c: Likewise. | |
25956 | * fs/ufs.c: Likewise. | |
25957 | * gensymlist.sh.in: Likewise. | |
25958 | * genkernsyms.sh.in: Likewise. | |
25959 | * include/grub/misc.h: Likewise. | |
25960 | * include/grub/types.h: Likewise. | |
25961 | * include/grub/symbol.h: Likewise. | |
25962 | * include/grub/elf.h: Likewise. | |
25963 | * include/grub/kernel.h: Likewise. | |
25964 | * include/grub/disk.h: Likewise. | |
25965 | * include/grub/dl.h: Likewise. | |
25966 | * include/grub/i386/linux.h: Likewise. | |
25967 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
25968 | * include/grub/efi/api.h: Likewise. | |
25969 | * include/grub/efi/pe32.h: Likewise. | |
25970 | * include/grub/util/misc.h: Likewise. | |
25971 | * normal/execute.c: Likewise. | |
25972 | * normal/arg.c: Likewise. | |
25973 | * normal/completion.c: Likewise. | |
25974 | * normal/lexer.c: Likewise. | |
25975 | * normal/parser.y: Likewise. | |
25976 | * normal/misc.c: Likewise. | |
25977 | * commands/i386/pc/vbeinfo.c: Likewise. | |
25978 | * commands/hexdump.c: Likewise. | |
25979 | * commands/terminal.c: Likewise. | |
25980 | * commands/ls.c: Likewise. | |
25981 | * commands/help.c: Likewise. | |
25982 | * partmap/pc.c: Likewise. | |
25983 | * loader/efi/chainloader.c: Likewise. | |
25984 | * loader/multiboot_loader.c: Likewise. | |
25985 | * loader/i386/pc/multiboot2.c: Likewise. | |
25986 | * term/efi/console.c: Likewise. | |
25987 | * term/i386/pc/serial.c: Likewise. | |
25988 | * util/lvm.c: Likewise. | |
25989 | * util/console.c: Likewise. | |
25990 | * util/i386/efi/grub-mkimage.c: Likewise. | |
25991 | * util/raid.c: Likewise. | |
25992 | ||
7f02114b | 25993 | 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi> |
25994 | ||
25995 | * commands/videotest.c: Removed include to grub/machine/memory.h. | |
25996 | ||
25997 | * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod, | |
25998 | videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod. | |
25999 | (video_mod_SOURCES): Removed. | |
26000 | (video_mod_CFLAGS): Likewise. | |
26001 | (video_mod_LDFLAGS): Likewise. | |
26002 | (gfxterm_mod_SOURCES): Likewise. | |
26003 | (gfxterm_mod_CFLAGS): Likewise. | |
26004 | (gfxterm_mod_LDFLAGS): Likewise. | |
26005 | (videotest_mod_SOURCES): Likewise. | |
26006 | (videotest_mod_CFLAGS): Likewise. | |
26007 | (videotest_mod_LDFLAGS): Likewise. | |
26008 | (bitmap_mod_SOURCES): Likewise. | |
26009 | (bitmap_mod_CFLAGS): Likewise. | |
26010 | (bitmap_mod_LDFLAGS): Likewise. | |
26011 | (tga_mod_SOURCES): Likewise. | |
26012 | (tga_mod_CFLAGS): Likewise. | |
26013 | (tga_mod_LDFLAGS): Likewise. | |
26014 | (jpeg_mod_SOURCES): Likewise. | |
26015 | (jpeg_mod_CFLAGS): Likewise. | |
26016 | (jpeg_mod_LDFLAGS): Likewise. | |
26017 | (png_mod_SOURCES): Likewise. | |
26018 | (png_mod_CFLAGS): Likewise. | |
26019 | (png_mod_LDFLAGS): Likewise. | |
26020 | ||
26021 | * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod, | |
26022 | bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod | |
26023 | (video_mod_SOURCES): Added. | |
26024 | (video_mod_CFLAGS): Likewise. | |
26025 | (video_mod_LDFLAGS): Likewise. | |
26026 | (videotest_mod_SOURCES): Likewise. | |
26027 | (videotest_mod_CFLAGS): Likewise. | |
26028 | (videotest_mod_LDFLAGS): Likewise. | |
26029 | (bitmap_mod_SOURCES): Likewise. | |
26030 | (bitmap_mod_CFLAGS): Likewise. | |
26031 | (bitmap_mod_LDFLAGS): Likewise. | |
26032 | (tga_mod_SOURCES): Likewise. | |
26033 | (tga_mod_CFLAGS): Likewise. | |
26034 | (tga_mod_LDFLAGS): Likewise. | |
26035 | (jpeg_mod_SOURCES): Likewise. | |
26036 | (jpeg_mod_CFLAGS): Likewise. | |
26037 | (jpeg_mod_LDFLAGS): Likewise. | |
26038 | (png_mod_SOURCES): Likewise. | |
26039 | (png_mod_CFLAGS): Likewise. | |
26040 | (png_mod_LDFLAGS): Likewise. | |
26041 | (gfxterm_mod_SOURCES): Likewise. | |
26042 | (gfxterm_mod_CFLAGS): Likewise. | |
7795c55e | 26043 | (gfxterm_mod_LDFLAGS): Likewise. |
7f02114b | 26044 | |
26045 | * term/gfxterm.c: Removed include to grub/machine/memory.h, | |
26046 | grub/machine/console.h. | |
26047 | ||
644fff97 | 26048 | 2009-01-04 Jerone Young <jerone@gmail.com> |
26049 | ||
26050 | Make on screen instructions clearer | |
26051 | ||
26052 | Based on patch created by Jidanni <jidanni@jidanni.org> | |
26053 | ||
26054 | * normal/menu.c: print clearer instructions on the screen | |
26055 | ||
1e901a75 | 26056 | 2009-01-02 Colin D Bennett <colin@gibibit.com> |
26057 | ||
26058 | New font engine. | |
34c44600 | 26059 | |
1e901a75 | 26060 | Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to |
26061 | build system and fixed gfxterm.c to work with different sized fonts. | |
26062 | ||
26063 | * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF. | |
34c44600 | 26064 | |
1e901a75 | 26065 | * configure: Re-generated. |
34c44600 | 26066 | |
1e901a75 | 26067 | * DISTLIST: Removed font/manager.c. |
26068 | Added font/font.c. | |
26069 | Added font/font_cmd.c. | |
34c44600 | 26070 | |
1e901a75 | 26071 | * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool |
26072 | compilation. | |
34c44600 | 26073 | |
1e901a75 | 26074 | * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users. |
34c44600 | 26075 | |
26076 | * kern/misc.c (grub_utf8_to_ucs4): Changed prototype. | |
1e901a75 | 26077 | |
26078 | * kern/term.c: Changed users of grub_utf8_to_ucs4. | |
34c44600 | 26079 | |
1e901a75 | 26080 | * normal/menu.c: Likewise. |
34c44600 | 26081 | |
1e901a75 | 26082 | * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c. |
26083 | (font_mod_SOURCES): Added font/font_cmd.c, font/font.c. | |
34c44600 | 26084 | |
1e901a75 | 26085 | * include/grub/font.h: Replaced with new file. |
34c44600 | 26086 | |
1e901a75 | 26087 | * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value. |
26088 | (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise. | |
26089 | (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise. | |
26090 | (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added. | |
26091 | (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED. | |
34c44600 | 26092 | (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha, |
1e901a75 | 26093 | fg_red, fg_green, fg_blue, fg_alpha. |
26094 | (grub_video_adapter): Removed blit_glyph. | |
34c44600 | 26095 | (grub_video_blit_glyph): Removed. |
26096 | ||
1e901a75 | 26097 | * font/manager.c: Removed file. |
34c44600 | 26098 | |
26099 | * font/font.c: New file. | |
26100 | ||
1e901a75 | 26101 | * font/font_cmd.c: Likewise. |
34c44600 | 26102 | |
1e901a75 | 26103 | * video/video.c (grub_video_blit_glyph): Removed. |
34c44600 | 26104 | |
1e901a75 | 26105 | * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support. |
26106 | (grub_video_vbe_map_rgba): Likewise. | |
26107 | (grub_video_vbe_unmap_color_int): Likewise. | |
26108 | (grub_video_vbe_blit_glyph): Removed. | |
26109 | (grub_video_vbe_adapter): Removed blit_glyph. | |
34c44600 | 26110 | |
1e901a75 | 26111 | * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support. |
26112 | (get_pixel): Likewise. | |
34c44600 | 26113 | (set_pixel): Likewise. |
26114 | ||
1e901a75 | 26115 | * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts. |
34c44600 | 26116 | |
1e901a75 | 26117 | * term/gfxterm.c: Adapted to new font engine. |
34c44600 | 26118 | |
1e901a75 | 26119 | * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile. |
34c44600 | 26120 | |
1e901a75 | 26121 | * term/i386/pc/vga.c: Likewise. |
34c44600 | 26122 | |
1e901a75 | 26123 | * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file. |
34c44600 | 26124 | |
1e901a75 | 26125 | * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. |
34c44600 | 26126 | |
1e901a75 | 26127 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. |
34c44600 | 26128 | |
1e901a75 | 26129 | * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. |
34c44600 | 26130 | |
1e901a75 | 26131 | * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise. |
34c44600 | 26132 | |
1e901a75 | 26133 | * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. |
34c44600 | 26134 | |
1e901a75 | 26135 | * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. |
34c44600 | 26136 | |
1e901a75 | 26137 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise. |
34c44600 | 26138 | |
1e901a75 | 26139 | * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise. |
26140 | ||
26141 | * util/grub.d/00_header.in: Changed to use new loadfont command. | |
34c44600 | 26142 | |
1e901a75 | 26143 | * util/grub-mkconfig_lib.in: Changed font extension. |
26144 | ||
278922e8 | 26145 | 2008-12-28 Felix Zielcke <fzielcke@z-51.de> |
26146 | ||
26147 | * util/getroot.c (grub_util_get_grub_dev): Add support for | |
26148 | /dev/md/dNNpNN style partitionable mdraid devices. | |
26149 | ||
3ced05cf | 26150 | 2008-12-12 Alex Smith <alex@alex-smith.me.uk> |
26151 | ||
26152 | * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection | |
26153 | at a time limit of the PXE TFTP API correctly. | |
26154 | (grub_pxefs_close): Likewise. | |
26155 | ||
7fd0ee30 | 26156 | 2008-11-29 Robert Millan <rmh@aybabtu.com> |
26157 | ||
34c44600 | 26158 | * disk/ata.c (grub_ata_pciinit): Handle errors raised by |
7fd0ee30 | 26159 | grub_ata_device_initialize() calls. |
26160 | ||
34c44600 | 26161 | 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl> |
0c5e79ab | 26162 | |
26163 | * fs/affs.c (grub_affs_iterate_dir): Return failure when directory | |
26164 | iteration failed. | |
26165 | * fs/sfs.c (grub_sfs_iterate_dir): Likewise. | |
26166 | ||
89313780 | 26167 | 2008-11-28 Robert Millan <rmh@aybabtu.com> |
26168 | ||
26169 | Fix build on powerpc-ieee1275. Based on patch created by | |
26170 | Manoel Abranches <mrabran@linux.vnet.ibm.com>. | |
26171 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
26172 | `kern/ieee1275/mmap.c'. | |
26173 | * include/grub/powerpc/ieee1275/memory.h: New file. | |
26174 | ||
15257703 | 26175 | Provide grub-install on coreboot. |
26176 | * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'. | |
26177 | (grub_install_SOURCES): New variable. | |
26178 | * util/i386/pc/grub-install.in: Add a few condition checks to make it | |
26179 | usable on coreboot. | |
26180 | ||
9fc5388a | 26181 | 2008-11-25 Felix Zielcke <fzielcke@z-51.de> |
26182 | ||
26183 | * util/grub-fstest.c (grub_term_get_current_input): Change return type | |
26184 | to `grub_term_input_t'. | |
26185 | (grub_term_get_current_output): Change return type to | |
26186 | `grub_term_output_t'. | |
26187 | ||
bc3a2f31 | 26188 | 2008-11-22 Robert Millan <rmh@aybabtu.com> |
26189 | ||
34c44600 | 26190 | Fix breakage on coreboot due to declaration mismatch. |
bc3a2f31 | 26191 | * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function. |
26192 | (grub_vga_text_term): Use grub_vga_text_init_fini() instead of | |
26193 | grub_vga_text_cls(). | |
26194 | ||
80fc88f2 | 26195 | * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve |
34c44600 | 26196 | comments. Avoid copying one more byte than necessary (just in case). |
80fc88f2 | 26197 | |
cbf36fd3 | 26198 | * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address |
26199 | to 0x200000 (avoids trouble with some OFW implementations, and matches | |
26200 | with the one in Yaboot). | |
26201 | Reported by Manoel Abranches | |
26202 | ||
73e8e268 | 26203 | 2008-11-20 Robert Millan <rmh@aybabtu.com> |
3cf6ac19 | 26204 | |
26205 | * kern/i386/coreboot/init.c (grub_time_tics): Remove variable. | |
26206 | (grub_get_rtc, grub_exit): Abort with grub_fatal() if called. | |
26207 | ||
73e8e268 | 26208 | * util/grub-mkconfig_lib.in (grub_warn): New function. |
26209 | (convert_system_path_to_grub_path): Use grub_warn() when issuing | |
26210 | warnings, to obtain consistent formatting. | |
26211 | * util/grub.d/00_header.in: Likewise. | |
26212 | * util/update-grub_lib.in: Likewise. | |
26213 | ||
e94045a1 | 26214 | * loader/i386/linux.c (allocate_pages): Fix a warning. |
40f9faa4 | 26215 | Move comment text to `#error' stanza. |
e94045a1 | 26216 | |
79d29fd7 | 26217 | Harmonize ieee1275's grub_available_iterate() with the generic |
26218 | grub_machine_mmap_iterate() interface (fixes a recently-introduced | |
26219 | build problem on i386-ieee1275): | |
26220 | * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ... | |
26221 | * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third | |
26222 | parameter `type'. Update all users of this function. | |
26223 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add | |
26224 | `kern/ieee1275/mmap.c'. | |
26225 | * kern/ieee1275/init.c | |
26226 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace | |
26227 | with ... | |
26228 | (grub_machine_mmap_iterate): ... this. | |
26229 | * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change | |
26230 | return type to `grub_err_t'. Update all implementations of this | |
26231 | function prototype. | |
26232 | * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate): | |
26233 | Likewise. | |
26234 | ||
60d6b16e | 26235 | Add `lsmmap' command (lists firmware-provided memory map): |
26236 | * commands/lsmmap.c: New file. | |
26237 | * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'. | |
26238 | (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New | |
26239 | variables. | |
26240 | * conf/powerpc-ieee1275.rmk: Likewise. | |
26241 | * conf/i386-coreboot.rmk: Likewise. | |
26242 | * conf/i386-ieee1275.rmk: Likewise. | |
26243 | ||
ebaaf49b | 26244 | 2008-11-19 Robert Millan <rmh@aybabtu.com> |
26245 | ||
26246 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo. | |
92907110 | 26247 | * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed |
26248 | constraints to initrd allocation (based on code from | |
26249 | loader/i386/pc/linux.c). Without them, initrd was allocated too high | |
26250 | for Linux to find it. | |
ebaaf49b | 26251 | |
dfab719f | 26252 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
26253 | ||
26254 | * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in | |
26255 | order to cope with duplicate slashes. | |
26256 | ||
10fc3eb9 | 26257 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
26258 | ||
26259 | * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE): | |
26260 | Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We | |
26261 | don't want to mess with lower memory, because it is used in the Linux | |
26262 | loader. | |
26263 | ||
26264 | * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in | |
34c44600 | 26265 | an appropriate place in lower memory, between 0x10000 and 0x90000, |
10fc3eb9 | 26266 | like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem |
26267 | is in our heap (probably as a result of it being corrupted during | |
2f2a3442 | 26268 | decompression). Add #error instance with comment to explain why this |
26269 | loader isn't currently usable on PC/BIOS. | |
10fc3eb9 | 26270 | |
e2e07847 | 26271 | 2008-11-14 Robert Millan <rmh@aybabtu.com> |
26272 | ||
26273 | * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS] | |
34c44600 | 26274 | (GRUB_SERIAL_PORT_NUM): Fix miscalculation. |
e2e07847 | 26275 | |
fe8e8d69 | 26276 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
26277 | ||
26278 | Make loader/i386/linux.c buildable on i386-pc (although disabled). | |
26279 | ||
26280 | * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'. | |
26281 | (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move | |
26282 | from here ... | |
26283 | * include/grub/i386/pc/memory.h: ... to here. | |
26284 | ||
976b07d0 | 26285 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
26286 | ||
26287 | Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text | |
26288 | split). | |
26289 | ||
26290 | * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'. | |
26291 | (grub_console_cur_color, grub_console_real_putchar) | |
26292 | (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh) | |
26293 | (grub_console_setcolorstate, grub_console_setcolor) | |
26294 | (grub_console_getcolor): Move from here ... | |
26295 | * include/grub/i386/vga_common.h: ... to here (new file). | |
26296 | ||
26297 | * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with | |
26298 | `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with | |
26299 | `<grub/i386/io.h>'. | |
26300 | * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with | |
26301 | `<grub/i386/vga_common.h>'. | |
26302 | ||
76679cd3 | 26303 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
26304 | ||
26305 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'. | |
26306 | * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'. | |
26307 | (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New | |
26308 | variables. | |
26309 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace | |
26310 | `term/i386/pc/console.c' with `term/i386/vga_common.c'. | |
26311 | ||
26312 | * kern/i386/coreboot/init.c (grub_machine_init): Replace call to | |
26313 | grub_console_init() with call to grub_vga_text_init(). | |
26314 | (grub_machine_fini): Replace call to | |
26315 | grub_console_fini() with call to grub_vga_text_fini() and | |
26316 | grub_at_keyboard_fini(). | |
26317 | ||
26318 | * include/grub/i386/pc/console.h: Include `<grub/term.h>'. | |
26319 | (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh) | |
26320 | (grub_console_setcolorstate, grub_console_setcolor) | |
26321 | (grub_console_getcolor): New function prototypes. | |
26322 | ||
26323 | * term/i386/pc/vga_text.c: Include `<grub/dl.h>'. | |
26324 | (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls) | |
26325 | (grub_vga_text_setcursor): Static-ize. | |
26326 | (grub_vga_text_term): New structure. | |
26327 | (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions. | |
26328 | ||
26329 | * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'. | |
26330 | (grub_console_cur_color, grub_console_standard_color) | |
26331 | (grub_console_normal_color, grub_console_highlight_color) | |
26332 | (map_char, grub_console_putchar, grub_console_getcharwidth) | |
26333 | (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor) | |
26334 | (grub_console_getcolor): Move from here ... | |
26335 | * term/i386/vga_common.c: ... to here (same function names). | |
26336 | ||
95b841d3 | 26337 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
26338 | ||
26339 | Use newly-added Multiboot support in coreboot. | |
26340 | ||
26341 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace | |
26342 | `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'. | |
26343 | ||
26344 | * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its | |
26345 | alignment, set `MULTIBOOT_MEMORY_INFO' flag. | |
26346 | (codestart): Store the MBI in `startup_multiboot_info' when we're | |
26347 | being loaded using Multiboot. | |
26348 | ||
26349 | * kern/i386/coreboot/init.c (grub_machine_init): Move | |
26350 | grub_at_keyboard_init() call to beginning of function (useful for | |
26351 | debugging). Call grub_machine_mmap_init() before attempting to use | |
26352 | grub_machine_mmap_iterate(). | |
26353 | (grub_lower_mem, grub_upper_mem): Move from here ... | |
26354 | * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to | |
26355 | here (new file). | |
26356 | ||
26357 | * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New | |
26358 | function prototype. | |
26359 | ||
761ca975 | 26360 | 2008-11-12 Robert Millan <rmh@aybabtu.com> |
26361 | ||
26362 | Fix a regression introduced by the at_keyboard.mod split. Because | |
26363 | some terminals are default on some platforms and non-default on | |
26364 | others, the first terminal being registered determines which is | |
26365 | going to be default. | |
26366 | ||
26367 | * kern/term.c (grub_term_register_input): If this is the first | |
26368 | terminal being registered, set it as the current one. | |
26369 | (grub_term_register_output): Likewise. | |
26370 | ||
26371 | * term/efi/console.c (grub_console_init): Do not call | |
26372 | grub_term_set_current_output() or grub_term_set_current_input(). | |
26373 | * term/ieee1275/ofconsole.c (grub_console_init): Likewise. | |
26374 | * term/i386/pc/console.c (grub_console_init): Likewise. | |
26375 | (grub_console_fini): Do not call grub_term_set_current_input() | |
26376 | (but leave grub_term_set_current_output() to restore text mode). | |
26377 | ||
6c529df7 | 26378 | 2008-11-10 Robert Millan <rmh@aybabtu.com> |
26379 | ||
26380 | * util/grub.d/00_header.in: Add backward compatibility check for | |
26381 | versions of terminal.mod that don't understand `terminal_input' or | |
26382 | `terminal_output'. | |
26383 | ||
132e4113 | 26384 | 2008-11-09 Robert Millan <rmh@aybabtu.com> |
26385 | ||
26386 | * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister | |
26387 | `terminal_input' / `terminal_output', not `terminal'. | |
26388 | ||
ac293d50 | 26389 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
26390 | ||
26391 | * Makefile.in (include_DATA): Fix srcdir=. assumption. | |
2a9c5940 | 26392 | (DISTCLEANFILES): Add `build_env.mk'. |
ac293d50 | 26393 | |
0025933a | 26394 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
26395 | ||
26396 | * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to | |
dba3f844 | 26397 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' |
0025933a | 26398 | members. Update all users. |
26399 | * util/console.c (grub_ncurses_term): Split in ... | |
26400 | (grub_ncurses_term_input): ... this, and ... | |
26401 | (grub_ncurses_term_output): ... this. Update all users. | |
dcb6fa0a | 26402 | * term/ieee1275/ofconsole.c: Remove stale `#endif'. |
0025933a | 26403 | |
37c86336 | 26404 | 2008-11-08 Robert Millan <rmh@aybabtu.com> |
26405 | ||
26406 | * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR). | |
26407 | (PKGDATA): Add $(pkgdata_SRCDIR). | |
26408 | (pkglib_BUILDDIR): New variable. | |
26409 | (pkgdata_SRCDIR): New variable. | |
26410 | (build_env.mk): New target. | |
26411 | (include_DATA): New variable. | |
26412 | (install-local): Install $(include_DATA) files in $(includedir). | |
26413 | ||
b6c15a2d | 26414 | 2008-11-07 Pavel Roskin <proski@gnu.org> |
26415 | ||
d99d46f1 | 26416 | * gendistlist.sh: Use C locale for sorting to ensure consistent |
26417 | output on all systems. | |
26418 | ||
b6c15a2d | 26419 | * util/grub.d/00_header.in: Remove incorrect space before |
26420 | "serial". | |
26421 | ||
c32ee8c9 | 26422 | 2008-11-07 Robert Millan <rmh@aybabtu.com> |
26423 | ||
26424 | * include/multiboot2.h (struct multiboot_header): Add `flags' member as | |
26425 | per specification. | |
26426 | * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check. | |
26427 | * loader/multiboot_loader.c (find_multi_boot2_header): New function | |
26428 | (based on find_multi_boot1_header). | |
26429 | (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header, | |
26430 | using find_multi_boot2_header(), and abort if neither Multiboot or | |
26431 | Multiboot headers were found. | |
26432 | ||
651c29b7 | 26433 | 2008-11-07 Robert Millan <rmh@aybabtu.com> |
26434 | ||
26435 | Modularize at_keyboard.mod: | |
26436 | ||
26437 | * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'. | |
26438 | (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS) | |
26439 | (at_keyboard_mod_LDFLAGS): New variables. | |
26440 | ||
26441 | Actual terminal split: | |
26442 | ||
26443 | * include/grub/term.h (struct grub_term): Split in ... | |
26444 | (struct grub_term_input): ... this, and ... | |
26445 | (struct grub_term_output): ... this. Update all users. | |
26446 | (grub_term_set_current): Split in ... | |
26447 | (grub_term_set_current_input): ... this, and ... | |
26448 | (grub_term_set_current_output): ... this. | |
26449 | (grub_term_get_current): Split in ... | |
26450 | (grub_term_get_current_input): ... this, and ... | |
26451 | (grub_term_get_current_output): ... this. | |
26452 | (grub_term_register): Split in ... | |
26453 | (grub_term_register_input): ... this, and ... | |
26454 | (grub_term_register_output): ... this. | |
26455 | (grub_term_unregister): Split in ... | |
26456 | (grub_term_unregister_input): ... this, and ... | |
26457 | (grub_term_unregister_output): ... this. | |
26458 | (grub_term_iterate): Split in ... | |
26459 | (grub_term_iterate_input): ... this, and ... | |
26460 | (grub_term_iterate_output): ... this. | |
26461 | ||
26462 | * kern/term.c (grub_term_list): Split in ... | |
26463 | (grub_term_list_input): ... this, and ... | |
26464 | (grub_term_list_output): ... this. Update all users. | |
26465 | (grub_cur_term): Split in ... | |
26466 | (grub_cur_term_input): ... this, and ... | |
26467 | (grub_cur_term_output): ... this. Update all users. | |
26468 | (grub_term_set_current): Split in ... | |
26469 | (grub_term_set_current_input): ... this, and ... | |
26470 | (grub_term_set_current_output): ... this. | |
26471 | (grub_term_get_current): Split in ... | |
26472 | (grub_term_get_current_input): ... this, and ... | |
26473 | (grub_term_get_current_output): ... this. | |
26474 | (grub_term_register): Split in ... | |
26475 | (grub_term_register_input): ... this, and ... | |
26476 | (grub_term_register_output): ... this. | |
26477 | (grub_term_unregister): Split in ... | |
26478 | (grub_term_unregister_input): ... this, and ... | |
26479 | (grub_term_unregister_output): ... this. | |
26480 | (grub_term_iterate): Split in ... | |
26481 | (grub_term_iterate_input): ... this, and ... | |
26482 | (grub_term_iterate_output): ... this. | |
26483 | ||
26484 | * kern/misc.c (grub_abort): Split use of grub_term_get_current() into | |
26485 | a check for input and one for output (and only attempt to get keys | |
26486 | from user when input works). | |
26487 | ||
26488 | * util/grub-probe.c (grub_term_get_current): Split in ... | |
26489 | (grub_term_get_current_input): ... this, and ... | |
26490 | (grub_term_get_current_output): ... this. | |
26491 | * util/grub-fstest.c: Likewise. | |
26492 | * util/i386/pc/grub-setup.c: Likewise. | |
26493 | * util/grub-editenv.c: Likewise. | |
26494 | ||
26495 | Portability adjustments: | |
26496 | ||
26497 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove | |
26498 | `term/i386/pc/at_keyboard.c'. | |
26499 | * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to | |
26500 | grub_keyboard_controller_init() (now handled by terminal .init). | |
26501 | * kern/i386/coreboot/init.c (grub_machine_init): Add call to | |
26502 | grub_at_keyboard_init(). | |
26503 | * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init) | |
26504 | (grub_console_checkkey, grub_console_getkey): Remove (now provided by | |
26505 | at_keyboard.mod via input terminal interface). | |
26506 | * include/grub/i386/coreboot/console.h: Convert into a stub for | |
26507 | `<grub/i386/pc/console.h>'. | |
26508 | ||
26509 | Migrate full terminals to new API: | |
26510 | ||
26511 | * term/efi/console.c (grub_console_term): Split into ... | |
26512 | (grub_console_term_input): ... this, and ... | |
26513 | (grub_console_term_output): ... this. Update all users. | |
26514 | * term/ieee1275/ofconsole.c: Remove __i386__ hack. | |
26515 | (grub_ofconsole_init): Split into ... | |
26516 | (grub_ofconsole_init_input): ... this, and ... | |
26517 | (grub_ofconsole_init_output): ... this. | |
26518 | (grub_ofconsole_term): Split into ... | |
26519 | (grub_ofconsole_term_input): ... this, and ... | |
26520 | (grub_ofconsole_term_output): ... this. Update all users. | |
26521 | * term/i386/pc/serial.c (grub_serial_term): Split into ... | |
26522 | (grub_serial_term_input): ... this, and ... | |
26523 | (grub_serial_term_output): ... this. Update all users. | |
26524 | * term/i386/pc/console.c (grub_console_term): Split into ... | |
26525 | (grub_console_term_input): ... this, and ... | |
26526 | (grub_console_term_output): ... this. Update all users. | |
26527 | (grub_console_term_input): Only enable it on PC/BIOS platform. | |
26528 | (grub_console_init): Remove grub_keyboard_controller_init() call. | |
26529 | ||
26530 | Migrate input terminals to new API: | |
26531 | ||
26532 | * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with | |
26533 | `i386' and `i386/pc' to enable build on x86_64 (this driver is | |
26534 | i386-specific anyway). | |
26535 | (grub_console_checkkey): Rename to ... | |
26536 | (grub_at_keyboard_checkkey): ... this. Static-ize. Update all | |
26537 | users. | |
26538 | (grub_keyboard_controller_orig): New variable. | |
26539 | (grub_console_getkey): Rename to ... | |
26540 | (grub_at_keyboard_getkey): ... this. Static-ize. Update all | |
26541 | users. | |
26542 | (grub_keyboard_controller_init): Static-ize. Save original | |
26543 | controller value so that it can be restored ... | |
26544 | (grub_keyboard_controller_fini): ... here (new function). | |
26545 | (grub_at_keyboard_term): New structure. | |
26546 | (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New | |
26547 | functions. | |
26548 | ||
26549 | Migrate output terminals to new API: | |
26550 | ||
26551 | * term/i386/pc/vga.c (grub_vga_term): Change type to | |
26552 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' | |
26553 | members. Update all users. | |
26554 | * term/gfxterm.c (grub_video_term): Change type to | |
26555 | `struct grub_term_output'. Remove `.checkkey' and `.getkey' | |
26556 | members. Update all users. | |
26557 | * include/grub/i386/pc/console.h (grub_console_checkkey) | |
26558 | (grub_console_getkey): Do not export (no longer needed by gfxterm, | |
26559 | etc). | |
26560 | ||
26561 | Migrate `terminal' command and userland tools to new API: | |
26562 | ||
26563 | * commands/terminal.c (grub_cmd_terminal): Split into ... | |
26564 | (grub_cmd_terminal_input): ... this, and ... | |
26565 | (grub_cmd_terminal_output): ... this. | |
26566 | (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands: | |
26567 | `terminal_input' and `terminal_output'. | |
26568 | * util/grub.d/00_header.in: Adjust `terminal' calls to new | |
26569 | `terminal_input' / `terminal_output' API. | |
26570 | * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and | |
26571 | ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user | |
26572 | provided ${GRUB_TERMINAL}, convert it). | |
26573 | ||
96e5d876 | 26574 | 2008-11-04 Robert Millan <rmh@aybabtu.com> |
26575 | ||
26576 | * util/grub.d/10_freebsd.in: New file. Generate grub configuration | |
26577 | for FreeBSD. | |
26578 | * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd. | |
26579 | ||
556f3775 | 26580 | 2008-11-03 Bean <bean123ch@gmail.com> |
26581 | ||
26582 | * kern/elf.c (grub_elf32_load): Revert to previous code. | |
26583 | (grub_elf64_load): Likewise. | |
26584 | ||
26585 | * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address. | |
26586 | ||
926b9823 | 26587 | 2008-11-01 Robert Millan <rmh@aybabtu.com> |
26588 | ||
26589 | * Makefile.in (CPPFLAGS): Fix builddir=. assumption. | |
26590 | (TARGET_CPPFLAGS): Likewise. | |
26591 | * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions. | |
26592 | ||
1432e958 | 26593 | 2008-11-01 Carles Pina i Estany <carles@pina.cat> |
26594 | ||
26595 | * normal/menu.c (run_menu): Add Previous and Next Page keys in menu. | |
26596 | ||
dba3f844 | 26597 | 2008-10-29 Guillem Jover <guillem.jover@nokia.com> |
de4fa71c | 26598 | |
26599 | * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the | |
26600 | addition of objects until the code is not going to be able to fail. | |
26601 | ||
dba3f844 | 26602 | 2008-10-29 Guillem Jover <guillem.jover@nokia.com> |
b7279447 | 26603 | |
26604 | * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling | |
26605 | (add a missing NULL check, and correct them by moving the pointer | |
26606 | operations after the actual check). | |
26607 | ||
7ab28c21 | 26608 | 2008-10-29 Robert Millan <rmh@aybabtu.com> |
26609 | ||
26610 | * util/i386/pc/grub-install.in: Handle empty string as output from | |
26611 | make_system_path_relative_to_its_root(). | |
26612 | ||
1b7748eb | 26613 | 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org> |
26614 | ||
26615 | * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the | |
26616 | circular metadata worst case scenario. If the metadata is circular | |
26617 | then copy the wrap in place. | |
26618 | * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2 | |
26619 | project lib/format_text/layout.h | |
26620 | Circular metadata bug found and patch debugged by Jan Derk Gerlings. | |
26621 | ||
c9618ab2 | 26622 | 2008-10-03 Felix Zielcke <fzielcke@z-51.de> |
26623 | ||
7a36edca | 26624 | * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib. |
c9618ab2 | 26625 | |
bf981c62 | 26626 | 2008-10-03 Felix Zielcke <fzielcke@z-51.de> |
26627 | ||
26628 | * util/update-grub_lib.in: Mention filename in warning message. | |
26629 | ||
6d994591 | 26630 | 2008-09-29 Felix Zielcke <fzielcke@z-51.de> |
26631 | ||
26632 | * NEWS: Update for rename of update-grub to grub-mkconfig. | |
26633 | ||
18ade780 | 26634 | 2008-09-29 Felix Zielcke <fzielcke@z-51.de> |
26635 | ||
26636 | * util/update-grub_lib.in: Copy to ... | |
26637 | * util/grub-mkconfig_lib.in: ... this. Update all users. | |
7c3ff286 | 26638 | * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'. |
18ade780 | 26639 | * util/update-grub.in: Rename to ... |
26640 | * util/grub-mkconfig.in: ... this. Update all users. Remove `-y' | |
26641 | option. Add `--output' option to allow users to specify the generated | |
26642 | configuration file. Default to stdout. | |
26643 | (update_grub_dir): Rename to ... | |
26644 | (grub_mkconfig_dir): ... this. | |
26645 | (grub_cfg): Default to an empty string. | |
26646 | * conf/common.rmk (update-grub): Rename to ... | |
26647 | (grub-mkconfig): ... this. | |
26648 | (update-grub_lib): Copy to ... | |
26649 | (grub-mkconfig_lib): ... this. | |
26650 | (update-grub_SCRIPTS): Copy to ... | |
26651 | (grub-mkconfig_SCRIPTS): ... this. Update all users. | |
26652 | (update-grub_DATA): Rename to ... | |
26653 | (grub-mkconfig_DATA): ... this. | |
26654 | ||
556ce6ac | 26655 | 2008-09-28 Robert Millan <rmh@aybabtu.com> |
26656 | ||
26657 | * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created' | |
26658 | to `modified'. Add the real `created' field. | |
26659 | (grub_iso9660_uuid): Use `modified' rather than `created' for | |
26660 | constructing the UUID. | |
26661 | ||
26662 | 2008-09-28 Felix Zielcke <fzielcke@z-51.de> | |
eb079ba9 | 26663 | |
26664 | fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one. | |
26665 | Based on code from Tomas Ebenlendr <ebik@ucw.cz>. | |
26666 | ||
92274e85 | 26667 | 2008-09-28 Bean <bean123ch@gmail.com> |
26668 | ||
26669 | * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch. | |
26670 | Thanks to Christian Franke for finding this bug. | |
26671 | ||
add6f17a | 26672 | 2008-09-25 Robert Millan <rmh@aybabtu.com> |
26673 | ||
26674 | * util/grub-mkdevicemap.c (make_device_map): Actually replace all | |
26675 | instances of grub_util_get_disk_name() (see previous commit). | |
26676 | ||
d2a367b8 | 26677 | 2008-09-25 Robert Millan <rmh@aybabtu.com> |
26678 | ||
26679 | * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove | |
26680 | `util/i386/get_disk_name.c'. | |
26681 | * conf/i386-efi.rmk: Likewise. | |
26682 | * conf/x86_64-efi.rmk: Likewise. | |
26683 | * conf/i386-coreboot.rmk: Likewise. | |
26684 | * conf/i386-ieee1275.rmk: Likewise. | |
26685 | * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove | |
26686 | `util/ieee1275/get_disk_name.c'. | |
26687 | * include/grub/util/misc.h (grub_util_get_disk_name): Remove. | |
26688 | * util/ieee1275/get_disk_name.c: Remove file. | |
26689 | * util/i386/get_disk_name.c: Remove file. | |
26690 | * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding | |
26691 | "hd%d" for device.map entries, rather than using | |
26692 | grub_util_get_disk_name(). | |
26693 | ||
81a06771 | 26694 | 2008-09-24 Carles Pina i Estany <carles@pina.cat> |
b0c301f7 | 26695 | |
26696 | * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter' | |
26697 | warning. | |
26698 | * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise. | |
26699 | ||
5a004279 | 26700 | 2008-09-24 Carles Pina i Estany <carles@pina.cat> |
26701 | ||
26702 | * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE): | |
26703 | Changed to 0x5100. | |
26704 | (GRUB_TERM_PPAGE): Changed to 0x4900. | |
26705 | ||
397093d3 | 26706 | 2008-09-24 Robert Millan <rmh@aybabtu.com> |
26707 | ||
26708 | * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove | |
26709 | macros (they were i386-pc specific). | |
26710 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
26711 | * include/grub/efi/console.h: Likewise. | |
26712 | ||
a91b6c7c | 26713 | 2008-09-22 Bean <bean123ch@gmail.com> |
26714 | ||
26715 | * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is | |
26716 | resident and in attribute list. | |
26717 | ||
26718 | * include/grub/ntfs.h (BMP_LEN): Removed. | |
26719 | ||
c40fd116 | 26720 | 2008-09-22 Bean <bean123ch@gmail.com> |
26721 | ||
81a06771 | 26722 | * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set |
c40fd116 | 26723 | scsi->name and scsi->luns, as they will be set in grub_scsi_open. |
26724 | ||
26725 | * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when | |
26726 | error occurs, as grub_disk_open will call grub_disk_close, which will | |
26727 | call p->close (scsi). | |
26728 | ||
81a06771 | 26729 | 2008-09-21 Felix Zielcke <fzielcke@z-51.de> |
eb73121d | 26730 | |
26731 | * configure.ac (AC_INIT): Quote `GRUB' string and version number. | |
26732 | (AC_PREREQ): Bumped to 2.59. | |
26733 | (AC_TRY_COMPILE): Replace obsolete macro with ... | |
26734 | (AC_COMPILE_IFELSE): ... this. | |
26735 | * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ... | |
26736 | (AC_LINK_IFELSE): ... this. | |
26737 | ||
5dc43410 | 26738 | 2008-09-21 Felix Zielcke <fzielcke@z-51.de> |
26739 | ||
26740 | * autogen.sh: Add a call to `gendistlist.sh'. | |
26741 | ||
9035dce4 | 26742 | 2008-09-19 Christian Franke <franke@computer.org> |
26743 | ||
26744 | * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function. | |
26745 | * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK. | |
26746 | * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]: | |
26747 | Export __enable_execute_stack() to modules. | |
26748 | * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack): | |
26749 | New function. | |
26750 | ||
7fd75377 | 26751 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> |
26752 | ||
040030b3 | 26753 | * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'. |
26754 | Sort the list. | |
26755 | ||
26756 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> | |
26757 | ||
26758 | * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with | |
7fd75377 | 26759 | #include <grub/util/hostdisk.h>. |
26760 | ||
89d5ffcf | 26761 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
26762 | ||
26763 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip | |
26764 | segments when their filesz is zero (grub_file_read() interprets | |
81a06771 | 26765 | zero-size as "read until EOF", which results in memory corruption). |
89d5ffcf | 26766 | Use `lowest_segment' rather than 0 for calculating the current |
26767 | segment load address. | |
26768 | ||
40da438f | 26769 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
26770 | ||
26771 | * util/hostdisk.c (open_device): Replace a grub_util_info() call | |
26772 | with grub_dprintf("hostdisk", ...), as it was so verbose that it | |
26773 | clobbered useful information. | |
26774 | ||
ddbf5556 | 26775 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
26776 | ||
26777 | * include/grub/util/biosdisk.h: Move to ... | |
26778 | * include/grub/util/hostdisk.h: ... here. Update all users. | |
26779 | * util/biosdisk.c: Move to ... | |
26780 | * util/hostdisk.c: ... here. Update all users. | |
26781 | ||
783d0f48 | 26782 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
26783 | ||
26784 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove | |
26785 | variables. | |
26786 | (grub_multiboot): Move `mbi' allocation upwards, so that mmap address | |
26787 | and length can be stored directly in the `mbi->mmap_addr' and | |
26788 | `mbi->mmap_length' struct fields. | |
26789 | ||
548e2ea5 | 26790 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
26791 | ||
26792 | * conf/i386.rmk: New file. Provides declaration for building | |
26793 | `cpuid.mod'. | |
26794 | * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'. | |
26795 | (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove | |
26796 | variables. | |
26797 | Include `conf/i386.mk'. | |
26798 | * conf/i386-efi.rmk: Likewise. | |
26799 | * conf/x86_64-efi.rmk: Likewise. | |
26800 | * conf/i386-coreboot.rmk: Likewise. | |
26801 | * conf/i386-ieee1275.rmk: Likewise. | |
26802 | ||
0ea85a37 | 26803 | 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi> |
26804 | ||
26805 | Based on patch created by Colin D Bennett <colin@gibibit.com>. | |
26806 | Adds optimization support for BGR based modes. | |
26807 | ||
26808 | * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed. | |
26809 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
26810 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
26811 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
26812 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
26813 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
26814 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
26815 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
26816 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
26817 | (grub_video_i386_vbeblit_index_index): Likewise. | |
26818 | (grub_video_i386_vbeblit_replace_directN): Added. | |
26819 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
26820 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
26821 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
26822 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
26823 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
26824 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
81a06771 | 26825 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. |
0ea85a37 | 26826 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. |
26827 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
26828 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
26829 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
26830 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
26831 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
26832 | ||
26833 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed. | |
26834 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
26835 | (grub_video_i386_vbefill_index): Likewise. | |
26836 | (grub_video_i386_vbefill_direct32): Added. | |
26837 | (grub_video_i386_vbefill_direct24): Likewise. | |
26838 | (grub_video_i386_vbefill_direct16): Likewise. | |
26839 | (grub_video_i386_vbefill_direct8): Likewise. | |
26840 | ||
81a06771 | 26841 | * include/grub/video.h (grub_video_blit_format): Removed |
0ea85a37 | 26842 | GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8. |
26843 | (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888, | |
26844 | GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888, | |
26845 | GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565, | |
26846 | GRUB_VIDEO_BLIT_FORMAT_BGR_565. | |
81a06771 | 26847 | |
0ea85a37 | 26848 | * video/video.c (grub_video_get_blit_format): Updated to use new |
26849 | blit formats. Added handling for 16 bit color modes. | |
81a06771 | 26850 | |
26851 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new | |
0ea85a37 | 26852 | fillers. |
26853 | (common_blitter): Updated to use new blitters. | |
26854 | ||
26855 | * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): | |
26856 | Removed. | |
26857 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
26858 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
26859 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
26860 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
26861 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
26862 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
26863 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
26864 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
26865 | (grub_video_i386_vbeblit_index_index): Likewise. | |
26866 | (grub_video_i386_vbeblit_replace_directN): Added. | |
26867 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
26868 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
26869 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
26870 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
26871 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
26872 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
26873 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. | |
26874 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. | |
26875 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
26876 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
26877 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
26878 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
26879 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
81a06771 | 26880 | |
0ea85a37 | 26881 | * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed. |
26882 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
26883 | (grub_video_i386_vbefill_index): Likewise. | |
26884 | (grub_video_i386_vbefill_direct32): Added. | |
26885 | (grub_video_i386_vbefill_direct24): Likewise. | |
26886 | (grub_video_i386_vbefill_direct16): Likewise. | |
26887 | (grub_video_i386_vbefill_direct8): Likewise. | |
81a06771 | 26888 | |
0ea85a37 | 26889 | * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter |
26890 | types. | |
81a06771 | 26891 | |
0ea85a37 | 26892 | * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter |
26893 | types. | |
81a06771 | 26894 | |
0ea85a37 | 26895 | * video/readers/png.c (grub_png_decode_image_header): Adapt to new |
26896 | blitter types. | |
81a06771 | 26897 | |
0ea85a37 | 26898 | * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter |
26899 | types. | |
26900 | ||
e8a83df6 | 26901 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
26902 | ||
26903 | * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for | |
26904 | RAID level 1. | |
26905 | ||
6bcd8ee5 | 26906 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
c375ae58 | 26907 | |
6bcd8ee5 | 26908 | * fs/iso9660.c (grub_iso9660_date): New structure. |
26909 | (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member. | |
26910 | (grub_iso9660_uuid): New function. | |
c375ae58 | 26911 | |
59261157 | 26912 | 2008-09-05 Bean <bean123ch@gmail.com> |
26913 | ||
26914 | * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names. | |
26915 | ||
26916 | * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case | |
26917 | insensitive bit for names in Win32 and Win32 & DOS namespace. | |
26918 | ||
26919 | * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro. | |
26920 | ||
26921 | * include/grub/types.h (LONG_MAX): Likewise. | |
26922 | ||
58b6645a | 26923 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> |
26924 | ||
4ee55921 | 26925 | * util/getroot.c: Include <config.h>. |
26926 | (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices, | |
26927 | add support for /dev/md/N devices and handle LVM double dash escaping. | |
26928 | ||
26929 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> | |
26930 | ||
26931 | * config.guess: Update to latest version from config git. | |
26932 | * config.sub: Likewise. | |
58b6645a | 26933 | |
9124f65d | 26934 | 2008-09-03 Robert Millan <rmh@aybabtu.com> |
26935 | ||
26936 | * disk/scsi.c (grub_scsi_open): Remove size limit when printing | |
26937 | `disk->total_sectors'. | |
26938 | ||
81a06771 | 26939 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
a0224a4e | 26940 | |
26941 | * include/grub/normal.h: Fixed incorrect comment for | |
26942 | GRUB_COMMAND_FLAG_NO_ARG_PARSE. | |
26943 | ||
81a06771 | 26944 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
f0619958 | 26945 | |
26946 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant | |
26947 | values with defines. | |
26948 | ||
26949 | * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added. | |
26950 | (GRUB_VBE_MODEATTR_RESERVED_1): Likewise. | |
26951 | (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise. | |
26952 | (GRUB_VBE_MODEATTR_COLOR): Likewise. | |
26953 | (GRUB_VBE_MODEATTR_GRAPHICS): Likewise. | |
26954 | (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise. | |
26955 | (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise. | |
26956 | (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise. | |
26957 | (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise. | |
26958 | (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise. | |
26959 | (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise. | |
26960 | (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise. | |
26961 | (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise. | |
26962 | (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise. | |
26963 | (GRUB_VBE_MEMORY_MODEL_CGA): Likewise. | |
26964 | (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise. | |
26965 | (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise. | |
26966 | (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise. | |
26967 | (GRUB_VBE_MEMORY_MODEL_YUV): Likewise. | |
26968 | ||
93d5cbf8 | 26969 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
26970 | ||
26971 | * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix | |
26972 | declaration. | |
26973 | (grub_multiboot): Fix a few warnings. | |
26974 | ||
21751d50 | 26975 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
26976 | ||
26977 | * loader/i386/pc/multiboot.c: Update comment not to say that | |
26978 | boot_device support is unimplemented. | |
26979 | ||
e27a75c5 | 26980 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
26981 | ||
26982 | * loader/i386/pc/multiboot.c: Update comment not to say that a.out | |
26983 | or memory map support are unimplemented. | |
26984 | ||
81a06771 | 26985 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
64d2d53c | 26986 | |
26987 | * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories. | |
26988 | ||
81a06771 | 26989 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
c08a6c18 | 26990 | |
26991 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and | |
26992 | total video memory in 'vbeinfo' output; show color format details for | |
26993 | each video mode. | |
26994 | ||
7c5d8d95 | 26995 | 2008-08-30 Pavel Roskin <proski@gnu.org> |
26996 | ||
26997 | * util/genmoddep.c: Remove for real this time. | |
26998 | * DISTLIST: Remove util/genmoddep.c. | |
26999 | ||
4cebd25a | 27000 | 2008-08-30 Robert Millan <rmh@aybabtu.com> |
27001 | ||
27002 | * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment | |
27003 | as required by Multiboot spec (it was already 4-byte aligned, but | |
27004 | only by chance). | |
27005 | ||
b497a269 | 27006 | 2008-08-29 Pavel Roskin <proski@gnu.org> |
27007 | ||
e3925185 | 27008 | * kern/powerpc/ieee1275/crt0.S: Rename to ... |
27009 | * kern/powerpc/ieee1275/startup.S: ... this. | |
27010 | * conf/powerpc-ieee1275.rmk: Adjust for the above. | |
27011 | * DISTLIST: Likewise. | |
27012 | ||
b497a269 | 27013 | * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and |
27014 | grub/cpu/kernel.h. Add start label for consistency with other | |
27015 | platforms. Add grub_prefix immediately after start. Add jump | |
27016 | to the code after grub_prefix. | |
27017 | * include/grub/powerpc/kernel.h: Provide valid values for | |
27018 | GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END. | |
27019 | ||
6e5a42fe | 27020 | 2008-08-29 Bean <bean123ch@gmail.com> |
27021 | ||
27022 | * configure.ac: Change host_os to cygwin for mingw. | |
27023 | (asprintf): New check for function. | |
27024 | ||
27025 | * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with | |
27026 | #if ! defined (__CYGWIN__) && ! defined (__MINGW32__). | |
27027 | ||
27028 | * include/grub/util/misc.h: #include <config.h> and <grub/types.h>, | |
81a06771 | 27029 | declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello, |
6e5a42fe | 27030 | sync, sleep and grub_util_get_disk_size for mingw. |
27031 | ||
27032 | * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size | |
27033 | to get size in mingw. | |
27034 | (open_device): Use flag O_BINARY if it's defined. | |
27035 | (find_root_device): Add dummy code for mingw. | |
27036 | ||
27037 | * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw. | |
27038 | (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw. | |
27039 | (get_scsi_disk_name): Return 0 for mingw. | |
27040 | ||
27041 | * util/hostfs.c: #include <grub/util/misc.h>. | |
27042 | (grub_hostfs_open): Use "rb" flag to open file, use | |
27043 | grub_util_get_disk_size to get disk size for mingw. | |
27044 | ||
27045 | * util/misc.c: #include <windows.h> and <winioctl.h> in mingw. | |
27046 | (asprintf): New function if HAVE_ASPRINTF is not set. | |
27047 | (sync): New function for mingw. | |
27048 | (sleep): Likewise. | |
27049 | (grub_util_get_disk_size): Likewise. | |
27050 | ||
ab3f2673 | 27051 | 2008-08-28 Pavel Roskin <proski@gnu.org> |
27052 | ||
27053 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
27054 | kern/time.c. | |
27055 | ||
1c282483 | 27056 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
27057 | ||
27058 | * util/biosdisk.c (find_grub_drive): Declare missing `i' variable. | |
27059 | ||
678e849c | 27060 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
27061 | ||
27062 | Change find_grub_drive() syntax so it doesn't prevent it from | |
27063 | detecting NULL names as errors. | |
27064 | ||
27065 | * util/biosdisk.c (find_grub_drive): Move free slot search code | |
27066 | from here ... | |
27067 | (find_free_slot): ... to here. | |
27068 | (read_device_map): Use find_free_slot() to search for free slots. | |
27069 | ||
965c75ca | 27070 | 2008-08-27 Marco Gerards <marco@gnu.org> |
27071 | ||
27072 | * conf/common.rmk (pkglib_MODULES): Add scsi.mod. | |
27073 | (scsi_mod_SOURCES): New variable. | |
27074 | (scsi_mod_CFLAGS): Likewise | |
27075 | (scsi_mod_LDFLAGS): Likewise. | |
27076 | ||
27077 | * disk/scsi.c: New file. | |
27078 | ||
27079 | * include/grub/scsi.h: Likewise. | |
27080 | ||
27081 | * include/grub/scsicmd.h: Likewise. | |
27082 | ||
27083 | * disk/ata.c: Include <grub/scsi.h>. | |
27084 | (grub_atapi_packet): Do not use grub_ata_cmd, use registers | |
27085 | instead. | |
27086 | (grub_ata_iterate): Skip ATAPI devices. | |
27087 | (grub_ata_open): Only handle ATAPI devices. | |
27088 | (struct grub_atapi_read): Removed. | |
27089 | (grub_atapi_readsector): Likewise. | |
27090 | (grub_ata_read): No longer handle ATAPI devices. | |
27091 | (grub_ata_write): Likewise. | |
27092 | (grub_atapi_iterate): New function. | |
27093 | (grub_atapi_read): Likewise. | |
27094 | (grub_atapi_write): Likewise. | |
27095 | (grub_atapi_open): Likewise. | |
27096 | (grub_atapi_close): Likewise. | |
27097 | (grub_atapi_dev): New variable. | |
27098 | (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device. | |
27099 | (GRUB_MOD_FINI(ata)): Unregister ATAPI. | |
27100 | ||
27101 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
27102 | `GRUB_DISK_DEVICE_SCSI_ID'. | |
27103 | ||
c07ae501 | 27104 | 2008-08-26 Robert Millan <rmh@aybabtu.com> |
27105 | ||
27106 | * util/biosdisk.c (grub_util_biosdisk_open, open_device) | |
27107 | (grub_util_biosdisk_get_grub_dev): Make error messages a bit more | |
27108 | descriptive. | |
27109 | ||
5ed20adc | 27110 | 2008-08-23 Bean <bean123ch@gmail.com> |
27111 | ||
27112 | * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c. | |
27113 | (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
27114 | disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c. | |
27115 | (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and | |
27116 | dm_nv.mod. | |
27117 | (raid5rec_mod_SOURCES): New macro. | |
27118 | (raid5rec_mod_CFLAGS): Likewise. | |
27119 | (raid5rec_mod_LDFLAGS): Likewise. | |
27120 | (raid6rec_mod_SOURCES): Likewise. | |
27121 | (raid6rec_mod_CFLAGS): Likewise. | |
27122 | (raid6rec_mod_LDFLAGS): Likewise. | |
27123 | (mdraid_mod_SOURCES): Likewise. | |
27124 | (mdraid_mod_CFLAGS): Likewise. | |
27125 | (mdraid_mod_LDFLAGS): Likewise. | |
27126 | (dm_nv_mod_SOURCES): Likewise. | |
27127 | (dm_nv_mod_CFLAGS): Likewise. | |
27128 | (dm_nv_mod_LDFLAGS): Likewise. | |
27129 | ||
27130 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c. | |
27131 | (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
27132 | disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
27133 | ||
27134 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c, | |
27135 | disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
27136 | ||
27137 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
27138 | ||
27139 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
27140 | ||
27141 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
27142 | ||
27143 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
27144 | ||
27145 | * disk/raid5_recover.c: New file. | |
27146 | ||
27147 | * disk/raid6_recover.c: Likewise. | |
27148 | ||
27149 | * disk/mdraid_linux.c: Likewise. | |
27150 | ||
27151 | * disk/dmraid_nvidia.c: Likewise. | |
27152 | ||
27153 | * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to | |
27154 | ULONG_MAX. | |
27155 | ||
27156 | * disk/raid.c (grub_raid_open): Use the size of the smallest disk to | |
27157 | calculate the size of raid device. | |
27158 | (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four | |
27159 | different layout of raid5. | |
27160 | (grub_raid_scan_device): Remove code specific to mdraid. | |
27161 | (grub_raid_list): New variable. | |
27162 | (free_array): New function. | |
27163 | (grub_raid_register): Likewise. | |
27164 | (grub_raid_unregister): Likewise. | |
27165 | (grub_raid_rescan): Likewise. | |
27166 | (GRUB_MOD_INIT): Don't iterate device here. | |
27167 | (GRUB_MOD_FINI): Use free_array to release resource. | |
27168 | ||
27169 | * include/grub/raid.h: Remove macro and structure specific to mdraid. | |
27170 | (grub_raid5_recover_func_t): New function variable type. | |
27171 | (grub_raid6_recover_func_t): Likewise. | |
27172 | (grub_raid5_recover_func): New variable. | |
27173 | (grub_raid6_recover_func): Likewise. | |
27174 | (grub_raid_register): New function. | |
27175 | (grub_raid_unregister): Likewise. | |
27176 | (grub_raid_rescan): Likewise. | |
27177 | (grub_raid_block_xor): Likewise. | |
27178 | ||
27179 | * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>. | |
27180 | (CMD_CRC): New macro. | |
27181 | (part): Removed. | |
27182 | (read_file): Handle device as well as file. | |
27183 | (cmd_crc): New function. | |
27184 | (fstest): Handle multiple disks. | |
27185 | (options): Remove part, raw and long, add root and diskcount. | |
27186 | (usage): Add crc, remove -p, -r, -l, add -r and -c. | |
dba3f844 | 27187 | (main): Find the first non option entry and ignore subsequent options, |
5ed20adc | 27188 | add handling for the new options, support multiple disks. |
27189 | ||
27190 | * util/grub-probe.c (probe): Add mdraid to abstraction_name. | |
27191 | ||
29c18915 | 27192 | 2008-08-23 Bean <bean123ch@gmail.com> |
27193 | ||
27194 | * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0. | |
27195 | ||
27196 | * genfslist.sh: Ignore kernel.mod. | |
27197 | ||
27198 | * genpartmaplist.sh: Likewise. | |
27199 | ||
8415f261 | 27200 | 2008-08-23 Robert Millan <rmh@aybabtu.com> |
27201 | ||
27202 | * util/getroot.c (find_root_device): Skip anything that starts with | |
27203 | a dot, not just directories. This avoids things like /dev/.tmp.md0. | |
27204 | ||
d5a7dc5b | 27205 | 2008-08-22 Felix Zielcke <fzielcke@z-51.de> |
81a06771 | 27206 | |
d5a7dc5b | 27207 | * util/update-grub.in (GRUB_GFXMODE): Export variable. |
27208 | * util/grub.d/00_header.in: Allow the administrator to change default | |
27209 | gfxmode via ${GRUB_GFXMODE}. | |
27210 | ||
380cfbb4 | 27211 | 2008-08-21 Felix Zielcke <fzielcke@z-51.de> |
27212 | ||
27213 | * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak. | |
27214 | ||
c9baafe7 | 27215 | 2008-08-21 Robert Millan <rmh@aybabtu.com> |
27216 | ||
27217 | * loader/i386/linux.c: New file. Implements generic 32-bit Linux | |
27218 | loader. | |
27219 | * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace | |
27220 | `loader/i386/pc/linux.c' with `loader/i386/linux.c'. | |
27221 | ||
e290bef2 | 27222 | 2008-08-20 Carles Pina i Estany <carles@pina.cat> |
27223 | ||
27224 | * menu/normal.c (run_menu): Replace hardcoded numbers with macros | |
27225 | (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN) | |
27226 | ||
f9dbfc96 | 27227 | 2008-08-19 Robert Millan <rmh@aybabtu.com> |
27228 | ||
27229 | * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove. | |
27230 | (struct grub_virtual_screen): Remove `cursor_color'. | |
27231 | (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color' | |
27232 | initialization. | |
27233 | (write_cursor): Use `virtual_screen.fg_color' to draw cursor. | |
27234 | ||
dd6bd6ab | 27235 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
27236 | ||
27237 | Unify (identical) linux_normal.c files. | |
27238 | * loader/i386/efi/linux_normal.c: Move from here ... | |
27239 | * loader/linux_normal.c: ... to here. Update all users. | |
27240 | * loader/i386/pc/linux_normal.c: Delete. Update all users. | |
27241 | * loader/i386/ieee1275/linux_normal.c: Likewise. | |
27242 | ||
7f42f83e | 27243 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
27244 | ||
27245 | * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO) | |
27246 | (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT) | |
27247 | (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT) | |
27248 | (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT) | |
27249 | (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU): | |
27250 | New macros. | |
27251 | (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ... | |
27252 | * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET) | |
27253 | (GRUB_LINUX_CL_END_OFFSET): ... to here. | |
27254 | * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ... | |
27255 | (GRUB_LINUX_CL_OFFSET): ... this. Update all users. | |
27256 | (GRUB_EFI_CL_END_OFFSET): Rename to ... | |
27257 | (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users. | |
27258 | (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization. | |
27259 | Initialize `params->video_cursor_x' and `params->video_cursor_y' | |
27260 | portably using grub_getxy(). | |
27261 | Replace `-EFI' with `-bzImage' in boot message. | |
27262 | ||
38487ddb | 27263 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
27264 | ||
27265 | * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub). | |
27266 | ||
deceb3ec | 27267 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
27268 | ||
27269 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'. | |
27270 | ||
27271 | * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE) | |
27272 | (GRUB_MACHINE_MEMORY_RESERVED): New macros. | |
27273 | (grub_machine_mmap_iterate): New function declaration. | |
27274 | * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New | |
27275 | structure. | |
27276 | (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New | |
27277 | macros. | |
27278 | ||
27279 | * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region | |
27280 | type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'. | |
27281 | Move e820 parsing from here ... | |
27282 | * kern/i386/pc/mmap.c: New file. | |
27283 | (grub_machine_mmap_iterate): ... to here. | |
27284 | ||
27285 | * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'. | |
27286 | (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ... | |
27287 | (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users. | |
27288 | (grub_available_iterate): Redeclare to return `void', and redeclare | |
27289 | its hook to use grub_uint64_t as addr and size parameters, and rename | |
27290 | to ... | |
27291 | (grub_machine_mmap_iterate): ... this. Update all users. | |
27292 | ||
27293 | * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop | |
27294 | to make it more readable. Rename to ... | |
27295 | (grub_machine_mmap_iterate): ... this. | |
27296 | ||
27297 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables. | |
27298 | (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions. | |
27299 | (grub_multiboot): Allocate an extra region after the payload, and fill | |
27300 | it with a Multiboot memory map. Adjust a.out loader to calculate size | |
27301 | with the extra space. | |
27302 | (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size | |
27303 | with the extra space. | |
27304 | ||
f8aa0f43 | 27305 | 2008-08-17 Carles Pina i Estany <carles@pina.cat> |
27306 | ||
9807deb9 | 27307 | * menu/normal.c (run_menu): Add Home and End keys in grub-menu. |
f8aa0f43 | 27308 | |
605f5bb6 | 27309 | 2008-08-17 Felix Zielcke <fzielcke@z-51.de> |
27310 | ||
27311 | * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc, | |
27312 | mdate-sh to the list `find' searches for. | |
27313 | * DISTLIST: Regenerated. | |
27314 | ||
210db6c6 | 27315 | 2008-08-16 Felix Zielcke <fzielcke@z-51.de> |
27316 | ||
27317 | * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh, | |
27318 | genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in, | |
48cdbfd4 | 27319 | genmoddep.awk, gensymlist.sh.in. |
27320 | (DISTDIRS): Add bus, docs, hook, lib. | |
210db6c6 | 27321 | * DISTLIST: Regenerated. |
48cdbfd4 | 27322 | * NEWS: Add cygwin support and change the `os-prober' entry a bit. |
210db6c6 | 27323 | |
1082b929 | 27324 | 2008-08-16 Robert Millan <rmh@aybabtu.com> |
27325 | ||
27326 | * disk/raid.c (grub_raid_init): Handle/report errors set by | |
27327 | grub_device_iterate(). | |
27328 | * disk/lvm.c (grub_lvm_init): Likewise. | |
27329 | ||
42ce5170 | 27330 | 2008-08-15 Bean <bean123ch@gmail.com> |
27331 | ||
27332 | * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
27333 | and datehook.mod. | |
27334 | (datetime_mod_SOURCES): New macro. | |
27335 | (datetime_mod_CFLAGS): Likewise. | |
27336 | (datetime_mod_LDFLAGS): Likewise. | |
27337 | (date_mod_SOURCES): Likewise. | |
27338 | (date_mod_CFLAGS): Likewise. | |
27339 | (date_mod_LDFLAGS): Likewise. | |
27340 | (datehook_mod_SOURCES): Likewise. | |
27341 | (datehook_mod_CFLAGS): Likewise. | |
27342 | (datehook_mod_LDFLAGS): Likewise. | |
27343 | ||
27344 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
27345 | and datehook.mod. | |
27346 | (datetime_mod_SOURCES): New macro. | |
27347 | (datetime_mod_CFLAGS): Likewise. | |
27348 | (datetime_mod_LDFLAGS): Likewise. | |
27349 | (date_mod_SOURCES): Likewise. | |
27350 | (date_mod_CFLAGS): Likewise. | |
27351 | (date_mod_LDFLAGS): Likewise. | |
27352 | (datehook_mod_SOURCES): Likewise. | |
27353 | (datehook_mod_CFLAGS): Likewise. | |
27354 | (datehook_mod_LDFLAGS): Likewise. | |
27355 | ||
27356 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
27357 | and datehook.mod. | |
27358 | (datetime_mod_SOURCES): New macro. | |
27359 | (datetime_mod_CFLAGS): Likewise. | |
27360 | (datetime_mod_LDFLAGS): Likewise. | |
27361 | (date_mod_SOURCES): Likewise. | |
27362 | (date_mod_CFLAGS): Likewise. | |
27363 | (date_mod_LDFLAGS): Likewise. | |
27364 | (datehook_mod_SOURCES): Likewise. | |
27365 | (datehook_mod_CFLAGS): Likewise. | |
27366 | (datehook_mod_LDFLAGS): Likewise. | |
27367 | ||
27368 | * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
27369 | and datehook.mod. | |
27370 | (datetime_mod_SOURCES): New macro. | |
27371 | (datetime_mod_CFLAGS): Likewise. | |
27372 | (datetime_mod_LDFLAGS): Likewise. | |
27373 | (date_mod_SOURCES): Likewise. | |
27374 | (date_mod_CFLAGS): Likewise. | |
27375 | (date_mod_LDFLAGS): Likewise. | |
27376 | (datehook_mod_SOURCES): Likewise. | |
27377 | (datehook_mod_CFLAGS): Likewise. | |
27378 | (datehook_mod_LDFLAGS): Likewise. | |
27379 | ||
27380 | * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
27381 | and datehook.mod. | |
27382 | (datetime_mod_SOURCES): New macro. | |
27383 | (datetime_mod_CFLAGS): Likewise. | |
27384 | (datetime_mod_LDFLAGS): Likewise. | |
27385 | (date_mod_SOURCES): Likewise. | |
27386 | (date_mod_CFLAGS): Likewise. | |
27387 | (date_mod_LDFLAGS): Likewise. | |
27388 | (datehook_mod_SOURCES): Likewise. | |
27389 | (datehook_mod_CFLAGS): Likewise. | |
27390 | (datehook_mod_LDFLAGS): Likewise. | |
27391 | ||
27392 | * kern/env.c (grub_env_insert): Fix a bug in prevp pointer. | |
27393 | ||
27394 | * commands/date.c: New file. | |
27395 | ||
27396 | * hook/datehook.c: Likewise. | |
27397 | ||
27398 | * include/grub/lib/datetime.h: Likewise. | |
27399 | ||
27400 | * include/grub/i386/cmos.h: Likewise. | |
27401 | ||
27402 | * lib/datetime.c: Likewise. | |
27403 | ||
27404 | * lib/i386/datetime.c: Likewise. | |
27405 | ||
27406 | * lib/efi/datetime.c: Likewise. | |
27407 | ||
0e9242da | 27408 | 2008-08-14 Robert Millan <rmh@aybabtu.com> |
27409 | ||
27410 | * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'. | |
27411 | (grub_mkelfimage_SOURCES): New variable. | |
27412 | (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise. | |
27413 | ||
27414 | * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES) | |
27415 | (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove. | |
27416 | * conf/powerpc-ieee1275.rmk: Likewise. | |
27417 | * conf/i386-ieee1275.rmk: Likewise. | |
27418 | ||
27419 | * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'. | |
27420 | * kern/i386/coreboot/init.c: Likewise. | |
27421 | ||
27422 | * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>' | |
27423 | with `<grub/cpu/kernel.h>'. | |
27424 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed | |
27425 | to ... | |
27426 | (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this. | |
27427 | * kern/i386/coreboot/startup.S: Likewise. | |
27428 | ||
27429 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN) | |
27430 | (GRUB_MOD_GAP): Remove. | |
27431 | * include/grub/powerpc/kernel.h: New file. | |
27432 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX) | |
27433 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
27434 | * include/grub/i386/kernel.h: New file. | |
27435 | * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN) | |
27436 | (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX) | |
27437 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
27438 | ||
27439 | * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use | |
27440 | `grub-mkelfimage'. | |
27441 | Use --directory when invoking grub_mkimage. | |
27442 | ||
27443 | * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'. | |
27444 | (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and | |
27445 | GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END | |
27446 | and GRUB_KERNEL_CPU_PREFIX. | |
27447 | ||
b86408f8 | 27448 | 2008-08-14 Felix Zielcke <fzielcke@z-51.de> |
27449 | ||
d5e619ca | 27450 | * include/grub/err.h (grub_err_printf): New function prototype. |
27451 | * util/misc.c (grub_err_printf): New function. | |
27452 | * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for | |
27453 | grub_printf. | |
27454 | * kern/err.c (grub_print_error): Use grub_err_printf. | |
b86408f8 | 27455 | |
7161f0e0 | 27456 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
27457 | ||
27458 | * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry. | |
27459 | ||
a1967522 | 27460 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
27461 | ||
27462 | * docs/grub.cfg: Use the native device name for the example GNU/Hurd | |
27463 | boot entry. | |
27464 | ||
371458b5 | 27465 | 2008-08-12 Robert Millan <rmh@aybabtu.com> |
27466 | ||
27467 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part | |
27468 | of the relocation code from here ... | |
27469 | (grub_multiboot): ... to here. | |
27470 | (forward_relocator, backward_relocator): Move from here ... | |
27471 | * kern/i386/loader.S (grub_multiboot_forward_relocator) | |
27472 | (grub_multiboot_backward_relocator): ... to here. | |
27473 | (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot | |
27474 | magic in %eax. Use %ebp for jumping (so %edx is not trashed). | |
27475 | * include/grub/i386/loader.h (grub_multiboot_forward_relocator) | |
27476 | (grub_multiboot_forward_relocator_end) | |
27477 | (grub_multiboot_backward_relocator) | |
27478 | (grub_multiboot_backward_relocator_end): New variables. | |
27479 | ||
05f9452b | 27480 | 2008-08-12 Bean <bean123ch@gmail.com> |
27481 | ||
27482 | * disk/raid.c (grub_raid_read): Fix a bug in raid0 code. | |
27483 | ||
20024ab0 | 27484 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
27485 | ||
27486 | * kern/i386/linuxbios/startup.S: Move from here ... | |
27487 | * kern/i386/coreboot/startup.S: ... to here. | |
27488 | ||
27489 | * kern/i386/linuxbios/init.c: Move from here ... | |
27490 | * kern/i386/coreboot/init.c: ... to here. | |
27491 | ||
27492 | * kern/i386/linuxbios/table.c: Move from here ... | |
27493 | * kern/i386/coreboot/mmap.c: ... to here. | |
27494 | ||
27495 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files. | |
27496 | ||
e352e9cd | 27497 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
27498 | ||
27499 | * kern/device.c (grub_device_open): Do not handle grub_disk_open() | |
27500 | errors. Leave it to the upper layer to handle them. | |
27501 | ||
2d05bc6a | 27502 | 2008-08-09 Christian Franke <franke@computer.org> |
27503 | ||
27504 | * Makefile.in: Add `target_os' and `enable_grub_pe2elf'. | |
27505 | * conf/common.rmk: Install `grub-pe2elf' only if requested. | |
27506 | Install `grub.d/10_windows' only on Cygwin. | |
27507 | * configure.ac: Add subst of `target_os'. | |
27508 | Check `target_os' also before setting TARGET_OBJ2ELF. | |
27509 | Add `--enable-grub-pe2elf'. | |
27510 | ||
042bd419 | 27511 | 2008-08-08 Robert Millan <rmh@aybabtu.com> |
27512 | ||
27513 | * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
27514 | (grub_last_time): Change type to grub_uint64_t. | |
27515 | (grub_disk_open): Migrate code from to using grub_get_time_ms(). | |
27516 | (grub_disk_close): Likewise. | |
27517 | ||
27518 | * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
27519 | (run_menu): Migrate code from to using grub_get_time_ms(). | |
27520 | ||
27521 | * util/misc.c (grub_get_time_ms): New function. | |
27522 | ||
7f280db5 | 27523 | 2008-08-08 Marco Gerards <marco@gnu.org> |
27524 | ||
27525 | * disk/ata.c (grub_ata_regget): Change return type to | |
27526 | `grub_uint8_t'. | |
27527 | (grub_ata_regget2): Likewise. | |
27528 | (grub_ata_wait_status): New function. | |
27529 | (grub_ata_wait_busy): Removed function, updated all users to use | |
27530 | `grub_ata_wait_status'. | |
27531 | (grub_ata_wait_drq): Likewise. | |
27532 | (grub_ata_cmd): New function. | |
27533 | (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add | |
27534 | error handling. | |
27535 | (grub_ata_pio_write): Add error handling. | |
27536 | (grub_atapi_identify): Likewise. | |
27537 | (grub_atapi_packet): Use `grub_ata_cmd' and improve error | |
27538 | handling. | |
27539 | (grub_ata_identify): Use `grub_ata_cmd' and improve error | |
27540 | handling. Actually use the detected registers. Reorder the | |
27541 | detection logic such that it is easier to read. | |
27542 | (grub_ata_pciinit): Do not assign the same ID to each controller. | |
27543 | (grub_ata_setaddress): Use `grub_ata_cmd' and improve error | |
27544 | handling. | |
27545 | (grub_atapi_readsector): Check the result of `grub_ata_pio_read'. | |
27546 | ||
27547 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'. | |
27548 | ||
1fbc5e66 | 27549 | 2008-08-08 Marco Gerards <marco@gnu.org> |
27550 | ||
27551 | * NEWS: Update. | |
27552 | ||
819ce6c0 | 27553 | 2008-08-07 Bean <bean123ch@gmail.com> |
27554 | ||
27555 | * include/grub/x86_64/pci.h: New file. | |
27556 | ||
5c41d44d | 27557 | 2008-08-07 Christian Franke <franke@computer.org> |
27558 | ||
27559 | * kern/i386/pit.c (TIMER2_SPEAKER): New define. | |
27560 | (TIMER2_GATE): Likewise. | |
27561 | (grub_pit_wait): Add enable/disable of the timer2 gate | |
27562 | bit of port 0x61. This fixes a possible infinite loop. | |
27563 | ||
5ebc275d | 27564 | 2008-08-07 Bean <bean123ch@gmail.com> |
27565 | ||
27566 | * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c, | |
27567 | kern/i386/tsc.c and kern/i386/pit.c. | |
27568 | ||
27569 | * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle | |
27570 | x86_64 platform. | |
27571 | ||
27572 | * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with | |
27573 | <grub/i386/tsc.h>. | |
27574 | ||
27575 | * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>. | |
27576 | ||
e383b3d0 | 27577 | 2008-08-07 Bean <bean123ch@gmail.com> |
27578 | ||
27579 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c. | |
27580 | ||
27581 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c, | |
27582 | ||
27583 | * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid | |
27584 | multiple inclusion. Add #include <grub/types.h>. | |
27585 | ||
1cbb58ac | 27586 | 2008-08-06 Christian Franke <franke@computer.org> |
27587 | ||
27588 | * conf/common.rmk: Build and install `10_windows'. | |
27589 | * util/grub.d/10_windows.in: New script. | |
27590 | ||
337f5a1e | 27591 | 2008-08-06 Pavel Roskin <proski@gnu.org> |
27592 | ||
27593 | * kern/i386/pit.c: Include `<grub/i386/pit.h>'. | |
27594 | ||
057bc4ac | 27595 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
27596 | ||
27597 | * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable. | |
27598 | * kern/i386/tsc.c: Include `<grub/i386/pit.h>'. | |
27599 | ||
2b99f123 | 27600 | 2008-08-06 Bean <bean123ch@gmail.com> |
27601 | ||
27602 | * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size. | |
27603 | (grub_pxefs_fs_int): Remove dummy definition. | |
27604 | (grub_pxefs_open): Use data->block_size to store the current block | |
27605 | size setting. | |
27606 | (grub_pxefs_read): Use block size stored in data->block_size. As the | |
27607 | value of grub_pxe_blksize can be changed after the file is opened. | |
27608 | ||
9f0234cb | 27609 | 2008-08-06 Bean <bean123ch@gmail.com> |
27610 | ||
27611 | * fs/i386/pc/pxe.c (curr_file): new variable. | |
27612 | (grub_pxefs_open): Simply the handling of pxe file system. Don't | |
27613 | require the dummy internal file system anymore. | |
27614 | (grub_pxefs_read): Removed. | |
27615 | (grub_pxefs_close): Likewise. | |
27616 | (grub_pxefs_fs_int): Likewise. | |
27617 | (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp | |
27618 | connection when we switch file. | |
27619 | (grub_pxefs_close_int): Renamed to grub_pxefs_close. | |
27620 | ||
a55d42e0 | 27621 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
27622 | ||
27623 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and | |
27624 | `halt.mod'. | |
27625 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS) | |
27626 | (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables. | |
27627 | ||
27628 | * kern/i386/halt.c: New file. | |
27629 | * kern/i386/reboot.c: Likewise. | |
27630 | * include/grub/i386/reboot.h: Likewise. | |
27631 | * include/grub/i386/halt.h: Likewise. | |
27632 | ||
27633 | * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]: | |
27634 | Include `<grub/cpu/halt.h>'. | |
27635 | * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI] | |
27636 | [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'. | |
27637 | ||
27638 | * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'. | |
27639 | (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA) | |
27640 | (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ) | |
27641 | (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT) | |
27642 | (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY) | |
27643 | (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move | |
27644 | from here ... | |
27645 | * include/grub/i386/at_keyboard.h: ... to here. | |
27646 | ||
24371d26 | 27647 | 2008-08-05 Robert Millan <rmh@aybabtu.com> |
27648 | ||
27649 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'. | |
27650 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise. | |
27651 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add | |
27652 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
27653 | `kern/generic/millisleep.c'. | |
27654 | ||
27655 | * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait() | |
27656 | instead of grub_get_rtc(). | |
27657 | (grub_tsc_init): Initialize `tsc_boot_time'. | |
27658 | ||
27659 | * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub. | |
27660 | (grub_machine_init): Use grub_tsc_init() rather than | |
27661 | installing an RTC-based handler via grub_install_get_time_ms(). | |
27662 | ||
27663 | * kern/i386/pit.c: New file. | |
27664 | * include/grub/i386/pit.h: Likewise. | |
27665 | ||
9e7007b3 | 27666 | 2008-08-05 Bean <bean123ch@gmail.com> |
27667 | ||
27668 | * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe. | |
27669 | ||
27670 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h. | |
27671 | (pkglib_MODULES): Add pxe.mod and pxecmd.mod. | |
27672 | (pxe_mod_SOURCES): New macro. | |
27673 | (pxe_mod_CFLAGS): Likewise. | |
27674 | (pxe_mod_LDFLAGS): Likewise. | |
27675 | (pxecmd_mod_SOURCES): Likewise. | |
27676 | (pxecmd_mod_CFLAGS): Likewise. | |
27677 | (pxecmd_mod_LDFLAGS): Likewise. | |
27678 | ||
27679 | * kern/i386/pc/startup.S (grub_pxe_scan): New function. | |
27680 | (grub_pxe_call): Likewise. | |
27681 | ||
27682 | * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID. | |
27683 | ||
27684 | * commands/i386/pc/pxecmd.c: New file. | |
27685 | ||
9f0234cb | 27686 | * fs/i386/pc/pxe.c: Likewise. |
9e7007b3 | 27687 | |
27688 | * include/grub/i386/pc/pxe.h: Likewise. | |
27689 | ||
6977d49f | 27690 | 2008-08-05 Bean <bean123ch@gmail.com> |
27691 | ||
27692 | * util/console.c (grub_console_cur_color): New variable. | |
27693 | (grub_console_standard_color): Likewise. | |
27694 | (grub_console_normal_color): Likewise. | |
27695 | (grub_console_highlight_color): Likewise. | |
27696 | (color_map): Likewise. | |
27697 | (use_color): Likewise. | |
27698 | (NUM_COLORS): New macro. | |
27699 | (grub_ncurses_setcolorstate): Handle color properly. | |
27700 | (grub_ncurses_setcolor): Don't change color here, just remember the | |
27701 | settings, color will be set in grub_ncurses_setcolorstate. | |
27702 | (grub_ncurses_getcolor): New function. | |
27703 | (grub_ncurses_init): Initialize color pairs. | |
27704 | (grub_ncurses_term): New member grub_ncurses_getcolor. | |
27705 | ||
9c2ff3ee | 27706 | 2008-08-05 Colin D Bennett <colin@gibibit.com> |
337f5a1e | 27707 | |
9c2ff3ee | 27708 | High resolution timer support. Implemented for x86 CPUs using TSC. |
27709 | Extracted generic grub_millisleep() so it's linked in only as needed. | |
27710 | This requires a Pentium compatible CPU; if the RDTSC instruction is | |
27711 | not supported, then it falls back on the generic grub_get_time_ms() | |
27712 | implementation that uses the machine's RTC. | |
27713 | ||
27714 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c', | |
27715 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
27716 | `kern/generic/millisleep.c'. | |
27717 | ||
27718 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c', | |
27719 | `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'. | |
27720 | ||
27721 | * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add | |
27722 | `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'. | |
27723 | ||
27724 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
27725 | ||
27726 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
27727 | `kern/generic/millisleep.c'. | |
27728 | ||
27729 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
27730 | ||
27731 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'. | |
27732 | ||
27733 | * kern/generic/rtc_get_time_ms.c: New file. | |
27734 | ||
27735 | * kern/generic/millisleep.c: New file. | |
337f5a1e | 27736 | |
9c2ff3ee | 27737 | * kern/misc.c: Don't include |
27738 | <kern/time.h> anymore. | |
27739 | (grub_millisleep_generic): Removed. | |
27740 | ||
27741 | * commands/sleep.c (grub_interruptible_millisleep): Uses | |
27742 | grub_get_time_ms() instead of grub_get_rtc(). | |
27743 | ||
27744 | * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline | |
27745 | function. | |
27746 | (grub_cpu_is_cpuid_supported): New inline function. | |
27747 | (grub_cpu_is_tsc_supported): New inline function. | |
27748 | (grub_tsc_init): New function prototype. | |
27749 | (grub_tsc_get_time_ms): New function prototype. | |
27750 | ||
27751 | * kern/i386/tsc.c (grub_get_time_ms): New file. | |
27752 | ||
27753 | * include/grub/time.h: Include <grub/types.h. | |
27754 | (grub_millisleep_generic): Removed. | |
27755 | (grub_get_time_ms): New prototype. | |
27756 | (grub_install_get_time_ms): New prototype. | |
27757 | (grub_rtc_get_time_ms): New prototype. | |
27758 | ||
27759 | * kern/time.c (grub_get_time_ms): New function. | |
27760 | (grub_install_get_time_ms): New function. | |
27761 | ||
27762 | * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include | |
27763 | <grub/time.h> anymore. | |
27764 | (grub_millisleep): Removed. | |
27765 | (grub_machine_init): Call grub_tsc_init. | |
27766 | ||
27767 | * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC | |
27768 | get_time_ms() implementation. | |
27769 | ||
27770 | * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed. | |
27771 | (ieee1275_get_time_ms): New function. | |
27772 | (grub_machine_init): Install get_time_ms() implementation. | |
27773 | ||
27774 | * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>. | |
27775 | (grub_machine_init): Call grub_tsc_init(). | |
27776 | (grub_millisleep): Removed. | |
bf06a93f | 27777 | |
9c2ff3ee | 27778 | * kern/ieee1275/init.c (grub_millisleep): Removed. |
27779 | (grub_machine_init): Install ieee1275_get_time_ms() | |
27780 | implementation. | |
27781 | (ieee1275_get_time_ms): New function. | |
27782 | (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the | |
27783 | real work. | |
27784 | ||
9ec92aaf | 27785 | 2008-08-05 Marco Gerards <marco@gnu.org> |
27786 | ||
27787 | * disk/ata.c: Include <grub/pci.h>. | |
27788 | (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'. | |
27789 | (grub_ata_initialize): Rewritten. | |
27790 | (grub_ata_device_initialize): New function. | |
27791 | ||
8d23f507 | 27792 | 2008-08-04 Pavel Roskin <proski@gnu.org> |
27793 | ||
27794 | * kern/main.c: Include grub/mm.h. | |
27795 | ||
5e15ee3d | 27796 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
27797 | ||
27798 | * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS) | |
27799 | (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code | |
27800 | corruption problem). | |
27801 | ||
a9053f8f | 27802 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
27803 | ||
27804 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc | |
27805 | warnings introduced in my last commit. | |
27806 | ||
dd19c7d7 | 27807 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
27808 | ||
27809 | Make PCI available on all i386 architectures. | |
27810 | ||
27811 | * include/grub/i386/pc/pci.h: Move from here ... | |
27812 | * include/grub/i386/pci.h: ... to here. | |
27813 | ||
27814 | * include/grub/i386/pc/pci.h: Remove. | |
27815 | * include/grub/i386/efi/pci.h: Remove. | |
27816 | * include/grub/x86_64/efi/pci.h: Remove. | |
27817 | ||
27818 | * include/grub/pci.h: Replace `<grub/machine/pci.h>' with | |
27819 | `<grub/cpu/pci.h>'. | |
27820 | ||
27821 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'. | |
27822 | (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES) | |
27823 | (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables. | |
27824 | ||
27825 | * conf/i386-ieee1275.rmk: Likewise. | |
27826 | ||
e14a6184 | 27827 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
27828 | ||
27829 | * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro. | |
27830 | (grub_console_setcursor): Make it possible to set cursor off. | |
27831 | ||
52768e37 | 27832 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
27833 | ||
27834 | * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence | |
27835 | of modules instead of assuming which platform provides what. | |
27836 | * util/update-grub.in: Likewise. | |
27837 | ||
2d52f57f | 27838 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
27839 | ||
27840 | * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix' | |
27841 | instead of `grub_install_dos_part' to determine whether a drive needs | |
27842 | to be prepended to prefix (`grub_install_dos_part' is not reliable, | |
825aa57a | 27843 | because it can be overridden when loading GRUB via Multiboot). |
2d52f57f | 27844 | |
2a5cd121 | 27845 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
27846 | ||
27847 | * util/i386/pc/grub-install.in: Remove trailing slash from prefix. | |
27848 | ||
93808428 | 27849 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
27850 | ||
27851 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair | |
27852 | of informational grub_dprintf() calls. | |
27853 | ||
3bd0a12a | 27854 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
27855 | ||
27856 | * disk/memdisk.c (memdisk_size): Don't initialize. | |
27857 | (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate(). | |
27858 | ||
27859 | * include/grub/i386/pc/kernel.h | |
27860 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro. | |
27861 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift. | |
27862 | (grub_memdisk_image_size, grub_arch_memdisk_addr) | |
27863 | (grub_arch_memdisk_size): Remove. | |
27864 | ||
27865 | * include/grub/kernel.h (struct grub_module_header): Remove `offset' | |
27866 | field (was only used to transfer a constant). Add `type' field to | |
27867 | support multiple module types. | |
27868 | (grub_module_iterate): New function. | |
27869 | ||
27870 | * kern/device.c (grub_device_open): Do not hide error messages | |
27871 | when grub_disk_open() fails. Use grub_print_error() instead. | |
27872 | ||
27873 | * kern/i386/pc/init.c (grub_arch_modules_addr) | |
27874 | (grub_arch_memdisk_size): Remove functions. | |
27875 | (grub_arch_modules_addr): Return the module address in high memory | |
27876 | (now that it isn't copied anymore). | |
27877 | ||
27878 | * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable. | |
27879 | (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA | |
27880 | decompression routine (grub_total_module_size already includes that | |
27881 | now). Don't copy modules back to low memory. | |
27882 | ||
27883 | * kern/main.c: Include `<grub/mm.h>'. | |
27884 | (grub_load_modules): Split out (and use) ... | |
27885 | (grub_module_iterate): ... this function, which iterates through | |
27886 | module objects and runs a hook. | |
27887 | Comment out grub_mm_init_region() call, as it would cause non-ELF | |
27888 | modules to be overwritten. | |
27889 | ||
27890 | * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending | |
27891 | the memdisk image in its own region, make it part of the module list. | |
27892 | * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option. | |
27893 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
27894 | parameter to generate_image(). | |
27895 | (add_segments): Pass `memdisk_path' down to load_modules(). | |
27896 | (load_modules): Embed memdisk image in module section when requested. | |
27897 | * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize | |
27898 | `header.type' instead of `header.offset'. | |
27899 | ||
27900 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'. | |
27901 | (memdisk_mod_SOURCES, memdisk_mod_CFLAGS) | |
27902 | (memdisk_mod_LDFLAGS): New variables. | |
27903 | * conf/i386-coreboot.rmk: Likewise. | |
27904 | * conf/i386-ieee1275.rmk: Likewise. | |
27905 | ||
a927cc73 | 27906 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
27907 | ||
27908 | * loader/i386/pc/multiboot.c (playground, forward_relocator) | |
27909 | (backward_relocator): New variables. Used to allocate and relocate | |
27910 | the payload, respectively. | |
27911 | (grub_multiboot_load_elf32): Load into heap instead of requested | |
825aa57a | 27912 | address, install the appropriate relocator code in each bound of |
a927cc73 | 27913 | the payload, and set the entry point such that |
27914 | grub_multiboot_real_boot() will jump to one of them. | |
27915 | ||
27916 | * kern/i386/loader.S (grub_multiboot_payload_size) | |
27917 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
27918 | (grub_multiboot_payload_entry_offset): New variables. | |
27919 | (grub_multiboot_real_boot): Set cpu context to what the relocator | |
27920 | expects, and jump to the relocator instead of the payload. | |
27921 | ||
27922 | * include/grub/i386/loader.h (grub_multiboot_payload_size) | |
27923 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
27924 | (grub_multiboot_payload_entry_offset): Export. | |
27925 | ||
b15d8a0c | 27926 | 2008-08-01 Bean <bean123ch@gmail.com> |
27927 | ||
27928 | * normal/menu_entry.c (editor_getline): Don't return the original | |
27929 | string as result, as it will be released by lexer once it has done | |
27930 | using it. | |
27931 | ||
cdfb3d22 | 27932 | 2008-08-01 Robert Millan <rmh@aybabtu.com> |
27933 | ||
27934 | * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from | |
27935 | within menuentries, not before them. | |
27936 | util/grub.d/10_hurd.in: Likewise. | |
27937 | ||
9175e93d | 27938 | 2008-08-01 Bean <bean123ch@gmail.com> |
27939 | ||
27940 | * conf/common.rmk (pkglib_MODULES): Add bufio.mod. | |
27941 | (bufio_mod_SOURCES): New macro. | |
27942 | (bufio_mod_CFLAGS): Likewise. | |
27943 | (bufio_mod_LDFLAGS): Likewise. | |
27944 | ||
27945 | * include/grub/bufio.h: New file. | |
27946 | ||
27947 | * io/bufio.c: Likewise. | |
27948 | ||
27949 | * video/png.c: Replace <grub/file.h> with <grub/bufio.h>. | |
27950 | (grub_video_reader_png): Use grub_buffile_open to open file. | |
27951 | ||
27952 | * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>. | |
27953 | (grub_video_reader_jpeg): Use grub_buffile_open to open file. | |
27954 | ||
27955 | * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>. | |
27956 | (grub_video_reader_tga): Use grub_buffile_open to open file. | |
27957 | ||
27958 | * font/manager.c: Include <grub/bufio.h>. | |
27959 | (add_font): Use grub_buffile_open to open file. | |
27960 | ||
3d8383e7 | 27961 | 2008-07-31 Robert Millan <rmh@aybabtu.com> |
27962 | ||
27963 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading | |
27964 | ELF segments, use a macro for arbitrarily accessing any of them instead | |
27965 | of preparing a pointer that allows access to one at a time. | |
27966 | (grub_multiboot_load_elf64): Likewise. | |
27967 | ||
16e641b6 | 27968 | 2008-07-31 Bean <bean123ch@gmail.com> |
27969 | ||
27970 | * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with | |
27971 | GRUB_KERNEL_MACHINE_DATA_END. | |
27972 | ||
59198b72 | 27973 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
27974 | ||
27975 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END): | |
27976 | Increase from 0x50 to 0x60. | |
27977 | * util/i386/pc/grub-install.in: Detect cross-disk installs, and | |
27978 | use UUIDs to identify the root drive for them. If that's not | |
27979 | possible, abort. | |
27980 | * util/i386/pc/grub-setup.c (setup): Do not special-case, or even | |
27981 | check, for cross-disk installs. | |
27982 | ||
ae88bca3 | 27983 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
27984 | ||
27985 | * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix' | |
27986 | is non-empty, use it to set the `prefix' environment variable instead | |
27987 | of the usual approach. | |
27988 | * kern/i386/linuxbios/init.c (make_install_device): Remove function. | |
27989 | (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix' | |
27990 | environment variable instead of dummy make_install_device(). | |
27991 | ||
27992 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'. | |
27993 | (start): Insert a data section, with `grub_prefix' variable. | |
825aa57a | 27994 | * kern/i386/linuxbios/startup.S: Likewise. |
ae88bca3 | 27995 | |
27996 | * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix): | |
27997 | New variable reference. | |
27998 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX): | |
27999 | New macro. Defines offset of `grub_prefix' within startup.S (relative | |
28000 | to `start'). | |
28001 | (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data | |
28002 | section within startup.S (relative to `start'). | |
28003 | * include/grub/i386/coreboot/kernel.h: Likewise. | |
28004 | ||
28005 | * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter. | |
28006 | Overwrite grub_prefix with its contents, at the beginning of the | |
28007 | first segment. | |
28008 | (main): Understand -p|--prefix. | |
28009 | ||
14f41dd1 | 28010 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
28011 | ||
28012 | * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib. | |
28013 | ||
4ca049a3 | 28014 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
28015 | ||
28016 | * term/i386/pc/vga_text.c (grub_console_cls): Use | |
28017 | grub_console_gotoxy() to go back to beginning of the screen. | |
28018 | Found by Patrick Georgi <patrick.georgi@coresystems.de> | |
28019 | ||
2921d337 | 28020 | 2008-07-29 Christian Franke <franke@computer.org> |
28021 | ||
28022 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
28023 | Add conversion of emulated mount points on Cygwin. | |
28024 | ||
b609876d | 28025 | 2008-07-29 Christian Franke <franke@computer.org> |
28026 | ||
28027 | * util/update-grub.in: Add a check for admin | |
28028 | group on Cygwin. | |
28029 | Remove old `grub.cfg.new' before creation. | |
28030 | Add `-f' to `mv' to handle the different filesystem | |
28031 | semantics of Windows. | |
28032 | ||
e93e4679 | 28033 | 2008-07-29 Bean <bean123ch@gmail.com> |
28034 | ||
28035 | * normal/main.c (get_line): Fix buffer overflow bug. | |
28036 | ||
41694fd0 | 28037 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
28038 | ||
28039 | * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro. | |
28040 | (struct grub_apple_header): New struct. Describes the layout of | |
28041 | the partmap header. | |
28042 | (apple_partition_map_iterate): Check the header magic as well as the | |
28043 | partition magic (which was already being checked). | |
28044 | ||
cfd0b4e6 | 28045 | 2008-07-28 Pavel Roskin <proski@gnu.org> |
28046 | ||
28047 | * genmk.rb: Add a warning to the beginning of the output that | |
28048 | it's a generated file and should not be edited. | |
28049 | ||
93cce016 | 28050 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
28051 | ||
28052 | * disk/raid.c (grub_raid_scan_device): Do not abort when two disks | |
28053 | with the same number are found, just use issue a warning with | |
28054 | grub_dprintf(), as this error has been reported to be non-fatal. | |
c298def0 | 28055 | |
cd1df915 | 28056 | 2008-07-27 Robert Millan <rmh@aybabtu.com> |
28057 | ||
28058 | * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging | |
28059 | information. | |
28060 | ||
b70a8427 | 28061 | 2008-07-27 Bean <bean123ch@gmail.com> |
28062 | ||
28063 | * fs/fat.c (GRUB_FAT_MAXFILE): New constant. | |
28064 | (grub_fat_find_dir): Ignore case when comparing filename. | |
28065 | ||
8f5e379f | 28066 | 2008-07-27 Bean <bean123ch@gmail.com> |
28067 | ||
28068 | * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to | |
28069 | smallino, as it's more descriptive, and i8count can be confused with | |
28070 | the other field count. | |
28071 | (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small | |
28072 | inode type. | |
28073 | ||
a85cd5a0 | 28074 | 2008-07-27 Bean <bean123ch@gmail.com> |
28075 | ||
28076 | * commands/crc.c: New file. | |
28077 | ||
28078 | * lib/crc.c: Likewise. | |
28079 | ||
28080 | * include/grub/lib/crc.h: Likewise. | |
28081 | ||
28082 | * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h. | |
28083 | ||
28084 | * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h. | |
28085 | (hexdump): Move this function to ... | |
28086 | ||
28087 | * lib/hexdump.c: ... here. | |
28088 | ||
28089 | * include/grub/hexdump.h: Renamed to ... | |
28090 | ||
28091 | * include/grub/lib/hexdump.h: ... this. | |
28092 | ||
28093 | * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h | |
28094 | ||
28095 | * util/grub-editenv.c: Likewise. | |
28096 | ||
28097 | * include/envblk.h: Renamed to ... | |
28098 | ||
28099 | * include/lib/envblk.h: ... this. | |
28100 | ||
28101 | * util/envblk.c: Renamed to ... | |
28102 | ||
28103 | * lib/envblk.c: ... this. | |
28104 | ||
28105 | * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c => | |
28106 | lib/hexdump.c. | |
28107 | (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c | |
28108 | (pkglib_MODULES): Add crc.mod. | |
28109 | (hexdump_mod_SOURCES): Add lib/hexdump.c. | |
28110 | (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c. | |
28111 | (crc_mod_SOURCES): New macro. | |
28112 | (crc_mod_CFLAGS): Likewise. | |
28113 | (crc_mod_LDFLAGS): Likewise. | |
28114 | ||
28115 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c. | |
28116 | ||
28117 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
28118 | ||
28119 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
28120 | ||
28121 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
28122 | ||
28123 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
28124 | ||
c298def0 | 28125 | 2008-07-27 Felix Zielcke <fzielcke@z-51.de> |
8749e9e5 | 28126 | |
28127 | * commands/help.c: Include <grub/term.h>. | |
28128 | (TERM_WIDTH): Removed. Updated all users. | |
28129 | ||
cc349fb3 | 28130 | 2008-07-27 Pavel Roskin <proski@gnu.org> |
28131 | ||
28132 | * util/getroot.c (find_root_device): Rephrase a comment to avoid | |
28133 | spurious warnings about a comment within a comment. | |
28134 | ||
9051607e | 28135 | 2008-07-25 Robert Millan <rmh@aybabtu.com> |
28136 | ||
28137 | * util/getroot.c (find_root_device): Skip devices that match | |
28138 | /dev/dm-[0-9]. This lets the real device be found for any type of | |
28139 | abstraction (LVM, EVMS, RAID..). | |
28140 | (grub_guess_root_device): Do not traverse /dev/mapper (for LVM) | |
28141 | and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9] | |
28142 | device is found first, find_root_device() will now skip it. | |
28143 | ||
01453bfc | 28144 | 2008-07-24 Pavel Roskin <proski@gnu.org> |
28145 | ||
28146 | * include/grub/types.h: Use __builtin_bswap32() and | |
28147 | __builtin_bswap64() with gcc 4.3 and newer. | |
28148 | ||
6af9849f | 28149 | 2008-07-24 Christian Franke <franke@computer.org> |
28150 | ||
3a0fa256 | 28151 | * util/i386/pc/grub-install.in: If `--debug' is specified, |
28152 | pass `--verbose' to grub-setup. | |
28153 | Abort script if make_system_path_relative_to_its_root() fails. | |
28154 | ||
7810e747 | 28155 | 2008-07-24 Bean <bean123ch@gmail.com> |
28156 | ||
28157 | * configure.ac: Fixed a bug caused by the previous cygwin patch, | |
28158 | variable `target_platform' should be `platform'. | |
28159 | ||
42290e17 | 28160 | 2008-07-24 Bean <bean123ch@gmail.com> |
28161 | ||
51cc5193 | 28162 | * video/reader/png.c (DEFLATE_HLIT_MAX): Change value. |
42290e17 | 28163 | (grub_png_init_fixed_block): New function. |
28164 | (grub_png_decode_image_data): Handle fixed huffman code compression. | |
28165 | ||
2a8a80e4 | 28166 | 2008-07-24 Bean <bean123ch@gmail.com> |
28167 | ||
28168 | * common.rmk (bin_UTILITIES): Add grub-pe2elf. | |
28169 | (grub_pe2elf_SOURCES): New macro. | |
28170 | (CLEANFILES): Add grub-pe2elf. | |
28171 | ||
28172 | * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant. | |
28173 | (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise. | |
28174 | (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise. | |
28175 | (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise. | |
28176 | (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise. | |
28177 | (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise. | |
28178 | (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise. | |
28179 | (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise. | |
28180 | (GRUB_PE32_SCN_ALIGN_MASK): Likewise. | |
28181 | (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise. | |
28182 | (GRUB_PE32_SYM_CLASS_STATIC): Likewise. | |
28183 | (GRUB_PE32_SYM_CLASS_FILE): Likewise. | |
28184 | (GRUB_PE32_DT_FUNCTION): Likewise. | |
28185 | (GRUB_PE32_REL_I386_DIR32): Likewise. | |
28186 | (GRUB_PE32_REL_I386_REL32): Likewise. | |
28187 | (grub_pe32_symbol): New structure. | |
28188 | (grub_pe32_reloc): Likewise. | |
28189 | ||
28190 | * util/grub-pe2elf.c: New file. | |
28191 | ||
28192 | * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for | |
28193 | start symbol in non pc platform. | |
28194 | ||
28195 | * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf. | |
28196 | ||
28197 | The following patches are from Christian Franke. | |
28198 | ||
28199 | * include/grub/dl.h: Remove .previous, gas supports this only | |
28200 | for ELF format. | |
28201 | ||
28202 | * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE): | |
28203 | Remove .type, gas supports this only for ELF format. | |
28204 | ||
28205 | * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing | |
28206 | nullbytes in symbol table. This fixes an infinite loop if table is | |
28207 | zero filled. | |
28208 | ||
28209 | * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT, | |
28210 | TARGET_IMG_LDFLAGS and EXEEXT. | |
28211 | ||
28212 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by | |
28213 | TARGET_IMG_LDFLAGS_AC. | |
28214 | (grub_CHECK_STACK_ARG_PROBE): New function. | |
28215 | ||
28216 | * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS. | |
28217 | ||
28218 | * conf/i386-pc-cygwin-ld-img.sc: New linker script. | |
28219 | ||
28220 | * configure.ac: Add check for linker script "conf/${target}-img-ld.c" | |
28221 | to set TARGET_IMG_LD* accordingly. | |
28222 | Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly. | |
28223 | Add call to grub_CHECK_STACK_ARG_PROBE. | |
28224 | Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols. | |
28225 | ||
28226 | * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case. | |
28227 | ||
28228 | * genmk.rb: Add EXEEXT to CLEANFILES. | |
28229 | ||
12ccdb75 | 28230 | 2008-07-23 Robert Millan <rmh@aybabtu.com> |
28231 | ||
28232 | * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they | |
28233 | define the codes for arrows and lines used for the menu). | |
28234 | (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES) | |
28235 | as well. | |
28236 | ||
28237 | * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete | |
28238 | fonts, because the latter are too slow. | |
28239 | ||
18eeaf04 | 28240 | 2008-07-21 Bean <bean123ch@gmail.com> |
28241 | ||
28242 | * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for | |
28243 | a20. Run keyboard test last, as it will cause macbook to halt. | |
28244 | ||
b095e2ad | 28245 | 2008-07-18 Pavel Roskin <proski@gnu.org> |
28246 | ||
28247 | * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot | |
28248 | load foreign architecture modules correctly anyway. Keep | |
28249 | support for loading host architecture modules, whether we | |
28250 | compile them or not. | |
28251 | ||
737feb35 | 28252 | 2008-07-17 Pavel Roskin <proski@gnu.org> |
28253 | ||
3f4ce737 | 28254 | * configure.ac: Use -m32 or -m64 regardless of whether we had to |
28255 | change target_cpu. The compiler default can mismatch target_cpu | |
28256 | in any case. | |
28257 | ||
4ad2d049 | 28258 | * disk/efi/efidisk.c: Fix format warnings on x86_64. |
28259 | * kern/efi/efi.c: Likewise. | |
28260 | ||
f6130a12 | 28261 | * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the |
28262 | target compiler is functional. | |
28263 | * configure.ac: Call grub_PROG_TARGET_CC once all target flags | |
28264 | are set up. | |
28265 | ||
58393a2d | 28266 | * configure.ac: Default to efi platform for x86_64-apple. Allow |
28267 | powerpc64 CPU, default to ieee1275 platform for it. Split CPU | |
28268 | adjustments from the rest, only do them if target is not | |
28269 | explicitly given. Merge other adjustments with the final sanity | |
28270 | check. Remove an extraneous check for supported CPU. Be | |
28271 | specific which CPU and which platform is not supported. | |
28272 | ||
737feb35 | 28273 | * configure.ac: Default to pc platform for x86_64. |
28274 | ||
546f966a | 28275 | 2008-07-17 Robert Millan <rmh@aybabtu.com> |
28276 | ||
28277 | Partial LinuxBIOS -> Coreboot rename. | |
28278 | ||
28279 | * conf/i386-linuxbios.rmk: Renamed to ... | |
28280 | * conf/i386-coreboot.rmk: ... this. | |
28281 | * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g. | |
28282 | * configure.ac: Accept "coreboot" as input platform (but maintain | |
28283 | compatibility with "linuxbios"). | |
28284 | * include/grub/i386/linuxbios: Renamed to ... | |
28285 | * include/grub/i386/coreboot: ... this. | |
28286 | ||
20011694 | 28287 | 2008-07-17 Bean <bean123ch@gmail.com> |
28288 | ||
28289 | * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod. | |
c11f6d16 | 28290 | (appleldr_mod_SOURCE): New variable. |
20011694 | 28291 | (appleldr_mod_CFLAGS): Likewise. |
28292 | (appleldr_mod_LDFLAGS): Likewise. | |
28293 | (pci_mod_SOURCES): Likewise. | |
28294 | (pci_mod_CFLAGS): Likewise. | |
28295 | (pci_mod_LDFLAGS): Likewise. | |
28296 | (lspci_mod_SOURCES): Likewise. | |
28297 | (lspci_mod_CFLAGS): Likewise. | |
28298 | (lspci_mod_LDFLAGS): Likewise. | |
28299 | ||
28300 | * conf/x86_64-efi.rmk: New file. | |
28301 | ||
28302 | * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N | |
28303 | macro. | |
28304 | (grub_efidisk_write): Likewise. | |
28305 | ||
28306 | * include/efi/api.h (efi_call_0): New macro. | |
28307 | (efi_call_1): Likewise. | |
28308 | (efi_call_2): Likewise. | |
28309 | (efi_call_3): Likewise. | |
28310 | (efi_call_4): Likewise. | |
28311 | (efi_call_5): Likewise. | |
28312 | (efi_call_6): Likewise. | |
28313 | ||
28314 | * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to | |
28315 | grub_rescue_cmd_chainloader. | |
28316 | ||
28317 | * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro. | |
28318 | (grub_pe32_optional_header): Change some fields based on i386 or | |
28319 | x86_64 platform. | |
28320 | (GRUB_PE32_PE32_MAGIC): Likewise. | |
28321 | ||
28322 | * include/grub/efi/uga_draw.h: New file. | |
28323 | ||
28324 | * include/grub/elf.h (STN_ABS): New constant. | |
28325 | (R_X86_64_NONE): Relocation constant for x86_64. | |
28326 | (R_X86_64_64): Likewise. | |
28327 | (R_X86_64_PC32): Likewise. | |
28328 | (R_X86_64_GOT32): Likewise. | |
28329 | (R_X86_64_PLT32): Likewise. | |
28330 | (R_X86_64_COPY): Likewise. | |
28331 | (R_X86_64_GLOB_DAT): Likewise. | |
28332 | (R_X86_64_JUMP_SLOT): Likewise. | |
28333 | (R_X86_64_RELATIVE): Likewise. | |
28334 | (R_X86_64_GOTPCREL): Likewise. | |
28335 | (R_X86_64_32): Likewise. | |
28336 | (R_X86_64_32S): Likewise. | |
28337 | (R_X86_64_16): Likewise. | |
28338 | (R_X86_64_PC16): Likewise. | |
28339 | (R_X86_64_8): Likewise. | |
28340 | (R_X86_64_PC8): Likewise. | |
28341 | ||
28342 | * include/grub/i386/efi/pci.h: New file. | |
28343 | ||
28344 | * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE): | |
28345 | Change it value based on platform. | |
28346 | (GRUB_LINUX_EFI_SIGNATURE_0204): New constant. | |
28347 | (GRUB_E820_RAM): Likewise. | |
28348 | (GRUB_E820_RESERVED): Likewise. | |
28349 | (GRUB_E820_ACPI): Likewise. | |
28350 | (GRUB_E820_NVS): Likewise. | |
28351 | (GRUB_E820_EXEC_CODE): Likewise. | |
28352 | (GRUB_E820_MAX_ENTRY): Likewise. | |
28353 | (grub_e820_mmap): New structure. | |
28354 | (linux_kernel_header): Change the efi field according to different | |
28355 | kernel version, also field from linux_kernel_header. | |
28356 | ||
28357 | * include/grub/kernel.h (grub_module_info): Add padding for x86_64. | |
28358 | ||
28359 | * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant. | |
28360 | (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise. | |
28361 | (GRUB_PCI_ADDR_SPACE_IO): Likewise. | |
28362 | (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise. | |
28363 | (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise. | |
28364 | (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise. | |
28365 | (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise. | |
28366 | (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise. | |
28367 | (GRUB_PCI_ADDR_MEM_MASK): Likewise. | |
28368 | (GRUB_PCI_ADDR_IO_MASK): Likewise. | |
28369 | ||
28370 | * include/grub/x86_64/efi/kernel.h: New file. | |
28371 | ||
28372 | * include/grub/x86_64/efi/loader.h: Likewise. | |
28373 | ||
28374 | * include/grub/x86_64/efi/machine.h: Likewise. | |
28375 | ||
28376 | * include/grub/x86_64/efi/pci.h: Likewise. | |
28377 | ||
28378 | * include/grub/x86_64/efi/time.h: Likewise. | |
28379 | ||
28380 | * include/grub/x86_64/linux.h: Likewise. | |
28381 | ||
28382 | * include/grub/x86_64/setjmp.h: Likewise. | |
28383 | ||
28384 | * include/grub/x86_64/time.h: Likewise. | |
28385 | ||
28386 | * include/grub/x86_64/types.h: Likewise. | |
28387 | ||
28388 | * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to | |
28389 | GRUB_TARGET_SIZEOF_VOID_P. | |
28390 | ||
28391 | * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls. | |
28392 | (grub_efi_locate_handle): Likewise. | |
28393 | (grub_efi_open_protocol): Likewise. | |
28394 | (grub_efi_set_text_mode): Likewise. | |
28395 | (grub_efi_stall): Likewise. | |
28396 | (grub_exit): Likewise. | |
28397 | (grub_reboot): Likewise. | |
28398 | (grub_halt): Likewise. | |
28399 | (grub_efi_exit_boot_services): Likewise. | |
28400 | (grub_get_rtc): Likewise. | |
28401 | ||
28402 | * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models. | |
28403 | (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P. | |
28404 | (grub_efi_allocate_pages): Wrap efi calls. | |
28405 | (grub_efi_free_pages): Wrap efi calls. | |
28406 | (grub_efi_get_memory_map): Wrap efi calls. | |
28407 | ||
28408 | * kern/x86_64/dl.c: New file. | |
28409 | ||
28410 | * kern/x86_64/efi/callwrap.S: Likewise. | |
28411 | ||
28412 | * kern/x86_64/efi/startup.S: Likewise. | |
28413 | ||
28414 | * loader/efi/appleloader.c: Likewise. | |
28415 | ||
28416 | * loader/efi/chainloader.c (cmdline): New variable. | |
28417 | (grub_chainloader_unload): Wrap efi calls. | |
28418 | (grub_chainloader_boot): Likewise. | |
28419 | (grub_rescue_cmd_chainloader): Wrap efi calls, handle | |
28420 | command line. | |
28421 | ||
28422 | * loader/efi/chainloader_normal.c (chainloader_command): | |
28423 | Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass | |
28424 | command line. | |
28425 | ||
28426 | * loader/i386/efi/linux.c (allocate_pages): Change allocation | |
28427 | method. | |
28428 | (grub_e820_add_region): New function. | |
28429 | (grub_linux_boot): Construct e820 map from efi map, handle x86_64 | |
28430 | booting. | |
28431 | (grub_find_video_card): New function. | |
28432 | (grub_linux_setup_video): New function. | |
28433 | (grub_rescue_cmd_linux): Probe for video information. | |
28434 | ||
28435 | * normal/x86_64/setjmp.S: New file. | |
28436 | ||
28437 | * term/efi/console.c (map_char): New function. | |
28438 | (grub_console_putchar): Map unicode char. | |
28439 | (grub_console_checkkey): Wrap efi calls. | |
28440 | (grub_console_getkey): Likewise. | |
28441 | (grub_console_getwh): Likewise. | |
28442 | (grub_console_gotoxy): Likewise. | |
28443 | (grub_console_cls): Likewise. | |
28444 | (grub_console_setcolorstate): Likewise. | |
28445 | (grub_console_setcursor): Likewise. | |
28446 | ||
28447 | * util/i386/efi/grub-mkimage.c: Add support for x86_64. | |
28448 | ||
59652a20 | 28449 | 2008-07-16 Pavel Roskin <proski@gnu.org> |
28450 | ||
ef294055 | 28451 | * loader/i386/efi/linux.c (allocate_pages): Fix warnings in |
28452 | format strings. | |
28453 | ||
59652a20 | 28454 | * util/i386/efi/grub-mkimage.c (get_target_address): Return a |
28455 | pointer, not an integer. This fixes a warning and prevents | |
28456 | precision loss on 64-bit systems. | |
28457 | (relocate_addresses): Remove unneeded cast. | |
28458 | ||
afc3b5d7 | 28459 | 2008-07-15 Pavel Roskin <proski@gnu.org> |
28460 | ||
506b2b3e | 28461 | * kern/i386/ieee1275/init.c: Include grub/cache.h. |
28462 | ||
62ead89c | 28463 | * term/ieee1275/ofconsole.c: Disable code unused on i386. |
28464 | ||
c4cd51d7 | 28465 | * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property): |
28466 | Fix comparison between signed and unsigned. | |
28467 | ||
0d3d8f28 | 28468 | * include/grub/i386/ieee1275/console.h: Declare |
28469 | grub_console_init() and grub_console_fini(). | |
28470 | ||
8804b286 | 28471 | * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove. |
28472 | It's empty and unused. | |
28473 | ||
ee01cf35 | 28474 | * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the |
28475 | beginning to avoid warnings with some compilers. | |
28476 | ||
afc3b5d7 | 28477 | * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h. |
28478 | [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast. | |
28479 | ||
e4e8eaa5 | 28480 | 2008-07-14 Pavel Roskin <proski@gnu.org> |
28481 | ||
407aceb4 | 28482 | * kern/env.c (grub_register_variable_hook): Don't copy empty |
28483 | string, it leaks memory. Pass "" to grub_env_set(), it should | |
28484 | handle constant strings. | |
28485 | ||
e4e8eaa5 | 28486 | * commands/blocklist.c (grub_cmd_blocklist): Fix format warning. |
28487 | * commands/cmp.c (grub_cmd_cmp): Likewise. | |
28488 | * kern/dl.c (grub_dl_flush_cache): Likewise. | |
28489 | (grub_dl_load_core): Likewise. | |
28490 | * kern/elf.c (grub_elf32_load_phdrs): Likewise. | |
28491 | (grub_elf64_load_phdrs): Likewise. | |
28492 | ||
d4e2dad3 | 28493 | 2008-07-13 Pavel Roskin <proski@gnu.org> |
28494 | ||
28495 | * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison | |
28496 | between signed and unsigned. | |
28497 | (LzmaEnc_Finish): Fix warning about an unused parameter. | |
28498 | ||
aa24b516 | 28499 | 2008-07-13 Bean <bean123ch@gmail.com> |
28500 | ||
28501 | * Makefile.in (enable_lzo): New rule. | |
28502 | ||
28503 | * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo. | |
28504 | ||
28505 | * configure.ac (ENABLE_LZO): New option --enable-lzo. | |
28506 | ||
28507 | * boot/i386/pc/lnxboot.S: #include <config.h>. | |
28508 | ||
28509 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change | |
fe987087 | 28510 | its value according to the compression algorithm used, lzo or lzma. |
aa24b516 | 28511 | |
28512 | * util/i386/pc/grub-mkimage.c (compress_kernel): Use different | |
28513 | compression algorithm according to configure macro. | |
28514 | ||
28515 | * kern/i386/pc/startup.S (codestart): Likewise. | |
28516 | ||
28517 | * kern/i386/pc/lzma_decode.S: New file. | |
28518 | ||
28519 | * include/grub/lib/LzFind.h: Likewise. | |
28520 | ||
28521 | * include/grub/lib/LzHash.h: Likewise. | |
28522 | ||
28523 | * include/grub/lib/LzmaDec.h: Likewise. | |
28524 | ||
28525 | * include/grub/lib/LzmaEnc.h: Likewise. | |
28526 | ||
28527 | * include/grub/lib/LzmaTypes.h: Likewise. | |
28528 | ||
28529 | * lib/LzFind.c: Likewise. | |
28530 | ||
28531 | * lib/LzmaDec.c: Likewise. | |
28532 | ||
28533 | * lib/LzmaEnc.c: Likewise. | |
28534 | ||
4ae821ac | 28535 | 2008-07-13 Bean <bean123ch@gmail.com> |
28536 | ||
28537 | * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro. | |
28538 | (grub_ext4_extent_header): New structure. | |
28539 | (grub_ext4_extent): Likewise. | |
28540 | (grub_ext4_extent_idx): Likewise. | |
28541 | (grub_ext4_find_leaf): New function. | |
28542 | (grub_ext2_read_block): Handle extents. | |
28543 | ||
9a745147 | 28544 | 2008-07-12 Robert Millan <rmh@aybabtu.com> |
28545 | ||
28546 | * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g. | |
28547 | ||
d49a4cf6 | 28548 | 2008-07-11 Robert Millan <rmh@aybabtu.com> |
28549 | ||
28550 | * util/grub.d/40_custom.in: New file. Example on how to add custom | |
28551 | entries to /etc/grub.d. | |
28552 | * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install | |
28553 | 40_custom (implicitly, by merging all the grub.d rules). | |
28554 | ||
947414b4 | 28555 | 2008-07-11 Pavel Roskin <proski@gnu.org> |
28556 | ||
0059cf6f | 28557 | * commands/read.c (grub_getline): Fix invalid memory access. |
28558 | Don't add newline to the variable value. | |
28559 | ||
947414b4 | 28560 | * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant. |
28561 | [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3. | |
28562 | (serial_hw_get_port): Check validity of the port number. | |
28563 | (grub_cmd_serial): Check return value of serial_hw_get_port(). | |
28564 | ||
62a02d00 | 28565 | 2008-07-07 Pavel Roskin <proski@gnu.org> |
28566 | ||
28567 | * boot/i386/pc/diskboot.S (notification_string): Replace | |
28568 | "Loading kernel" with just "loading". This is shorter, less | |
28569 | confusing and saves a few bytes for possible future changes. | |
28570 | ||
3e5581b0 | 28571 | 2008-07-05 Pavel Roskin <proski@gnu.org> |
28572 | ||
ea387a48 | 28573 | * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and |
28574 | size for ATAPI devices, they are undefined. Output sector | |
28575 | number in decimal form. | |
28576 | ||
3e5581b0 | 28577 | * disk/ata.c: Use named constants for status bits. |
28578 | ||
fdecb8fd | 28579 | 2008-07-04 Pavel Roskin <proski@gnu.org> |
28580 | ||
bcd35b90 | 28581 | * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to |
28582 | grub_addr_t before casting it to the void pointer to fix a | |
28583 | warning. Non-addressable regions are discarded earlier. | |
28584 | (grub_arch_modules_addr): Cast _end to grub_addr_t. | |
28585 | * kern/i386/linuxbios/table.c: Include grub/misc.h. | |
28586 | (check_signature): Don't shadow table_header. | |
28587 | (grub_linuxbios_table_iterate): Cast numeric constants to | |
28588 | grub_linuxbios_table_header_t. | |
28589 | * include/grub/i386/linuxbios/init.h: Add noreturn attribute to | |
28590 | grub_stop(). | |
28591 | ||
af58ab3d | 28592 | * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to |
28593 | prevent warnings. | |
28594 | ||
1759aa57 | 28595 | * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a |
28596 | pointer, which can cause warnings. Support 64-bit addresses. | |
28597 | ||
fdecb8fd | 28598 | * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead |
28599 | of sizeof(long). This fixes PowerPC image generation on x86_64. | |
28600 | ||
8516d2a8 | 28601 | 2008-07-04 Robert Millan <rmh@aybabtu.com> |
28602 | ||
28603 | This fixes a performance issue when pc & gpt partmap iterators | |
28604 | didn't abort iteration even after our hook found what it was | |
fe987087 | 28605 | looking for (often causing expensive probes of non-existent drives). |
8516d2a8 | 28606 | |
28607 | Some callers relied on previous buggy behaviour, since they would | |
34c44600 | 28608 | raise an error when their own hooks caused early abortion of its |
8516d2a8 | 28609 | iteration. |
28610 | ||
28611 | * kern/device.c (grub_device_open): Improve error message. | |
28612 | * disk/lvm.c (grub_lvm_open): Likewise. | |
28613 | * disk/raid.c (grub_raid_open): Likewise. | |
28614 | ||
28615 | * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration | |
28616 | when hook requests it, independently of grub_errno. | |
28617 | (pc_partition_map_probe): Do not fail when find_func() caused | |
28618 | early abortion of pc_partition_map_iterate(). | |
28619 | ||
28620 | * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration | |
28621 | when hook requests it, independently of grub_errno. | |
28622 | (gpt_partition_map_probe): Do not fail when find_func() caused | |
28623 | early abortion of gpt_partition_map_iterate(). | |
28624 | ||
28625 | * kern/partition.c (grub_partition_iterate): Abort parent iteration | |
28626 | when hook requests it, independently of grub_errno. Do not fail when | |
28627 | part_map_iterate_hook() caused early abortion of p->iterate(). | |
28628 | ||
28629 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail | |
28630 | when grub_partition_iterate() returned with non-zero. | |
28631 | ||
277d0de9 | 28632 | 2008-07-03 Pavel Roskin <proski@gnu.org> |
28633 | ||
28634 | * disk/ata.c (grub_ata_pio_write): Check status before writing, | |
28635 | like we do in grub_ata_pio_read(). | |
28636 | (grub_ata_readwrite): Always write individual sectors. Fix the | |
28637 | sector count for the remainder. | |
28638 | (grub_ata_write): Enable writing to ATA devices. Correctly | |
28639 | report error for ATAPI devices. | |
28640 | ||
d4c9b428 | 28641 | 2008-07-02 Pavel Roskin <proski@gnu.org> |
28642 | ||
e43fc690 | 28643 | * boot/i386/pc/cdboot.S: Add _start entry to fix a linker |
28644 | warning. | |
28645 | ||
f707af42 | 28646 | * disk/ata.c (grub_ata_readwrite): Don't increment sector number |
28647 | for every read sector, we already increment it for the whole | |
28648 | batch. This fixes reading more than 256 sectors at once. | |
28649 | ||
11e16b15 | 28650 | * util/grub-editenv.c (cmd_info): Cast argument to long |
28651 | explicitly. ptrdiff_t reduces to int on i386. | |
28652 | ||
cbabfdd4 | 28653 | * util/grub-editenv.c (main): Be specific which parameter is |
28654 | missing. | |
28655 | ||
b8fbce0a | 28656 | * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings. |
28657 | (memdisk): Make memdisk_orig_addr a pointer. | |
28658 | ||
c9c8e606 | 28659 | * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t |
28660 | for file offsets, use grub_off_t instead. Fix printf format | |
28661 | warnings. | |
28662 | ||
ca62e598 | 28663 | * fs/reiserfs.c: Remove #warning, TODO list items don't belong |
28664 | there. Real unexpected warnings should not drown in the noise | |
28665 | about known problems. | |
28666 | ||
ce8d1766 | 28667 | * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of |
28668 | grub_disk_addr_t for memory addresses. | |
28669 | ||
00c7a56a | 28670 | * loader/aout.c (grub_aout_load): Cast load_addr to pointer |
28671 | explicitly to fix a warning. | |
28672 | ||
08d3ef09 | 28673 | * util/grub-editenv.c (cmd_info): Fix warning in printf format. |
28674 | ||
cb71ba20 | 28675 | * Makefile.in (MODULE_LDFLAGS): New variable. |
28676 | * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if | |
28677 | the linker accepts --build-id=none. | |
28678 | * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute | |
28679 | MODULE_LDFLAGS. | |
28680 | * genmk.rb: Use MODULE_LDFLAGS when linking modules. | |
28681 | ||
d4c9b428 | 28682 | * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to |
28683 | those in Linux XFS code. Provide a way to access 64-bit parent | |
28684 | inode. | |
28685 | (grub_xfs_iterate_dir): Use the new names. Avoid reading past | |
28686 | the end of struct grub_xfs_dir_header. | |
28687 | ||
d4156eee | 28688 | 2008-07-02 Bean <bean123ch@gmail.com> |
28689 | ||
28690 | * include/grub/ieee1275.h (grub_ieee1275_flag): New constant | |
28691 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
28692 | and GRUB_IEEE1275_FLAG_NO_ANSI. | |
28693 | ||
28694 | * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag | |
28695 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
28696 | and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware. | |
28697 | ||
28698 | * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return | |
28699 | immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set. | |
28700 | ||
28701 | * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if | |
28702 | GRUB_IEEE1275_FLAG_FORCE_CLAIM is set. | |
28703 | ||
28704 | * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output | |
28705 | esc sequence on non ANSI terminal. | |
28706 | (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal. | |
28707 | ||
28708 | * util/elf/grub-mkimage.c (add_segments): Move ELF header to the | |
28709 | beginning of file. | |
28710 | ||
2270f77b | 28711 | 2008-07-02 Bean <bean123ch@gmail.com> |
28712 | ||
28713 | * conf/common.rmk (bin_UTILITIES): Add grub-editenv. | |
28714 | (grub_editenv_SOURCES): New variable. | |
28715 | (pkglib_MODULES): Add loadenv.mod. | |
28716 | (loadenv_mod_SOURCES): New variable. | |
28717 | (loadenv_mod_CFLAGS): Likewise. | |
28718 | (loadenv_mod_LDFLAGS): Likewise. | |
28719 | ||
28720 | * include/grub/envblk.h: New file. | |
28721 | ||
28722 | * util/envblk.c: New file. | |
28723 | ||
28724 | * util/grub-editenv.c: New file. | |
28725 | ||
28726 | * commands/loadenv.c: New file. | |
28727 | ||
0e9e51ec | 28728 | 2008-07-01 Pavel Roskin <proski@gnu.org> |
28729 | ||
d89b7634 | 28730 | * include/multiboot2.h (struct multiboot_tag_module): Use char, |
28731 | not unsigned char. This fixes warnings and is consistent with | |
28732 | other tags. | |
28733 | ||
bf1835b1 | 28734 | * disk/fs_uuid.c (search_fs_uuid): Correctly increment count. |
28735 | ||
8222a04b | 28736 | * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings. |
28737 | ||
6a42d99d | 28738 | * term/tparm.c (analyze): Always set *popcount. |
28739 | ||
10b159d1 | 28740 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless |
28741 | cast to fix a warning. | |
28742 | ||
b8789f6c | 28743 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use |
28744 | cast to suppress a warning. | |
28745 | ||
29d7e38a | 28746 | * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as |
28747 | grub_fshelp_read_file() expects. | |
28748 | ||
f341f669 | 28749 | * fs/fat.c: Fix UUID calculation on big-endian systems. We |
28750 | write uuid as a 32-bit value in CPU byte order, so declare and | |
28751 | use it as such. | |
28752 | ||
0e9e51ec | 28753 | * disk/raid.c: Cast grub_dprintf() arguments to unsigned long |
28754 | long if the format specifier expects it. | |
28755 | * partmap/gpt.c (gpt_partition_map_iterate): Likewise. | |
28756 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
28757 | * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long | |
28758 | long to fix a warning. | |
28759 | * fs/reiserfs.c (grub_reiserfs_read): Change casts in | |
28760 | grub_dprintf() arguments to fix warnings. | |
28761 | ||
3aefa857 | 28762 | 2008-06-30 Pavel Roskin <proski@gnu.org> |
28763 | ||
56c7668b | 28764 | * util/i386/pc/grub-setup.c (setup): Write install_dos_part and |
28765 | install_bsd_part immediately before core.img is embedded or | |
28766 | modified on disk. This fixes core.img verification if core.img | |
28767 | cannot be embedded. | |
28768 | ||
3aefa857 | 28769 | * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not |
28770 | core_path to calculate the blocklist. | |
28771 | Patch from Javier Martín <lordhabbit@gmail.com> | |
28772 | ||
5444088d | 28773 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
28774 | ||
28775 | * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem | |
28776 | block to disk block. | |
28777 | (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result. | |
28778 | Patch from Niels Böhm <bitbucket@arcor.de> | |
28779 | ||
674835c8 | 28780 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
28781 | ||
28782 | * util/update-grub_lib.in (font_path): Search for fonts in | |
28783 | /boot/grub first, which is more likely to be readable (we aren't | |
28784 | deciding where fonts live, just looking for them). | |
28785 | ||
f527dbc8 | 28786 | 2008-06-26 Pavel Roskin <proski@gnu.org> |
28787 | ||
6c2d8df6 | 28788 | * util/biosdisk.c (read_device_map): Don't leave dead map |
28789 | entries for devices failing stat() check. | |
28790 | ||
f527dbc8 | 28791 | * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use |
28792 | core_path_dev for the core.img path on the target device. | |
28793 | ||
aebe3d13 | 28794 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
28795 | ||
28796 | * disk/fs_uuid.c: New file. | |
28797 | * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'. | |
28798 | (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS) | |
28799 | (fs_uuid_mod_LDFLAGS): New variables. | |
28800 | * include/grub/disk.h (grub_disk_dev_id): Add | |
28801 | `GRUB_DISK_DEVICE_UUID_ID'. | |
28802 | * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to | |
28803 | implement iterate(). | |
28804 | ||
37aaf354 | 28805 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
28806 | ||
28807 | * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either | |
28808 | "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a | |
28809 | Linux image includes no initrd. | |
28810 | ||
25ff262a | 28811 | 2008-06-21 Javier Martín <lordhabbit@gmail.com> |
28812 | ||
28813 | * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a | |
28814 | call to resolve the core image location that effectively appended the | |
28815 | name twice. | |
28816 | ||
76a2bd44 | 28817 | 2008-06-21 Robert Millan <rmh@aybabtu.com> |
28818 | ||
28819 | * util/grub.d/00_header.in: Move last prepare_grub_to_access_device() | |
28820 | call from here ... | |
28821 | ||
28822 | * util/grub.d/10_hurd.in: ... to here ... | |
28823 | * util/grub.d/10_linux.in: ... and here. | |
28824 | ||
650e1c79 | 28825 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
28826 | ||
fe987087 | 28827 | * kern/main.c (grub_main): Export `prefix' variable immediately |
650e1c79 | 28828 | after it has been set by grub_machine_set_prefix(). |
28829 | ||
6ce63911 | 28830 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
28831 | ||
28832 | * commands/search.c (search_label, search_fs_uuid, search_file): Print | |
28833 | search result when not saving to variable, not the other way around. | |
28834 | When saving to variable, abort iteration as soon as a match is found. | |
28835 | ||
73940cec | 28836 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
28837 | ||
28838 | * util/update-grub_lib.in (prepare_grub_to_access_device): Remove | |
28839 | check for partition that provides /boot/grub. Its logic is flawed, | |
28840 | as it prevents prepare_grub_to_access_device() from being called | |
28841 | multiple times. | |
28842 | ||
3c62a39d | 28843 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
28844 | ||
28845 | * util/update-grub_lib.in (prepare_grub_to_access_device): Issue | |
28846 | "insmod" command directly when abstraction modules are needed, | |
fe987087 | 28847 | instead of relying on GRUB_PRELOAD_MODULES (which had no effect |
3c62a39d | 28848 | since it had already been processed). |
28849 | ||
47395a42 | 28850 | 2008-06-19 Pavel Roskin <proski@gnu.org> |
28851 | ||
28852 | * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has | |
28853 | changed. This is needed in case GRUB_LIBDIR changes. | |
28854 | * conf/i386-ieee1275.rmk: Likewise. | |
28855 | * conf/i386-linuxbios.rmk: Likewise. | |
28856 | * conf/i386-pc.rmk: Likewise. | |
28857 | * conf/powerpc-ieee1275.rmk: Likewise. | |
28858 | ||
a145ac2d | 28859 | 2008-06-18 Pavel Roskin <proski@gnu.org> |
28860 | ||
28861 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename | |
28862 | kernel_elf_symlist.c to symlist.c for consistency with other | |
28863 | architectures. Update all users. | |
28864 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
28865 | ||
7847c51e | 28866 | 2008-06-18 Robert Millan <rmh@aybabtu.com> |
28867 | ||
28868 | * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend | |
28869 | it in prefix. | |
28870 | ||
28871 | * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set | |
28872 | `must_embed' to 1 when root_dev is a RAID device. When dest_dev is | |
28873 | a RAID device, run setup() for all members independently on whether | |
28874 | LVM abstraction is being used. | |
28875 | (setup): Don't handle prefix at all; let grub-mkimage take care of it. | |
28876 | If grub-mkimage has set `*install_dos_part == -2', don't override this | |
28877 | value. | |
28878 | Perform *install_dos_part adjustments independently on whether | |
28879 | we're embedding or not. | |
28880 | Clarify error message when image is too big for embedding. | |
28881 | Remove duplicate *install_dos_part stanza. | |
28882 | ||
b23e5644 | 28883 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
28884 | ||
28885 | * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables. | |
28886 | (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New | |
28887 | variables. | |
28888 | (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store | |
28889 | values in grub_ofconsole_normal_color and | |
28890 | grub_ofconsole_highlight_color (they're not directly related to | |
28891 | background and foreground). | |
28892 | (grub_ofconsole_setcolorstate): Extract background and foreground | |
28893 | from grub_ofconsole_normal_color and grub_ofconsole_highlight_color. | |
28894 | ||
0aac2f79 | 28895 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
28896 | ||
28897 | * util/update-grub_lib.in (prepare_grub_to_access_device): Use | |
28898 | /boot/grub for the check in last commit, not /boot (they could be | |
28899 | different partitions). | |
28900 | ||
3cca7ef3 | 28901 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
28902 | ||
28903 | * util/update-grub_lib.in (prepare_grub_to_access_device): If we were | |
28904 | asked to setup access for the same partition that provides /boot, | |
28905 | don't bother using UUIDs since our root already has the value we | |
28906 | want. | |
28907 | ||
347396d8 | 28908 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
28909 | ||
28910 | * util/biosdisk.c (convert_system_partition_to_system_disk): Detect | |
28911 | I2O devices. | |
28912 | Patch from Sven Mueller <sven@debian.org>. | |
28913 | ||
991477f8 | 28914 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
28915 | ||
28916 | * util/update-grub.in: Check for $EUID instead of $UID. | |
28917 | Reported by Vincent Zweije. | |
28918 | ||
d31a32a1 | 28919 | 2008-06-16 Bean <bean123ch@gmail.com> |
28920 | ||
fe987087 | 28921 | * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state. |
d31a32a1 | 28922 | (grub_ext2_read_block): Likewise. |
28923 | (grub_ext2_read_inode): Likewise. | |
28924 | (grub_ext2_mount): Likewise. | |
28925 | (grub_ext2_close): Likewise. | |
28926 | (grub_ext3_get_journal): Removed. | |
28927 | ||
fe987087 | 28928 | * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state. |
d31a32a1 | 28929 | (grub_reiserfs_read_symlink): Likewise. |
28930 | (grub_reiserfs_mount): Likewise. | |
28931 | (grub_reiserfs_open): Likewise. | |
28932 | (grub_reiserfs_read): Likewise. | |
28933 | (grub_reiserfs_close): Likewise. | |
28934 | (grub_reiserfs_get_journal): Removed. | |
28935 | ||
28936 | * fs/fshelp.c (grub_fshelp_read): Removed. | |
28937 | (grub_fshelp_map_block): Likewise. | |
28938 | ||
28939 | * include/grub/fshelp.h (grub_fshelp_journal_type): Removed. | |
28940 | (grub_fshelp_journal): Likewise. | |
28941 | (grub_fshelp_read): Likewise. | |
28942 | (grub_fshelp_map_block): Likewise. | |
28943 | ||
3540a760 | 28944 | 2008-06-16 Pavel Roskin <proski@gnu.org> |
28945 | ||
28946 | * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use | |
28947 | floating point anymore. | |
28948 | * include/grub/powerpc/libgcc.h: Leave only necessary exports. | |
28949 | ||
95614c84 | 28950 | 2008-06-15 Pavel Roskin <proski@gnu.org> |
28951 | ||
28952 | * commands/ls.c (grub_ls_list_files): Use integer calculations | |
28953 | for human readable format, avoid floating point use. | |
28954 | * kern/misc.c (grub_ftoa): Remove. | |
28955 | (grub_vsprintf): Remove floating point support. | |
28956 | ||
50465dd6 | 28957 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
28958 | ||
fe6b695a | 28959 | * util/grub.d/10_linux.in: Use the underlying device for loop-AES |
50465dd6 | 28960 | devices. |
28961 | Reported by Max Vozeler. | |
28962 | ||
a9207284 | 28963 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
28964 | ||
28965 | * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive | |
28966 | in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be | |
28967 | skipped later. | |
28968 | (main): If a memdisk was requested, add "(memdisk)" drive explicitly to | |
28969 | the beginning of the prefix. | |
28970 | ||
28971 | * kern/i386/pc/init.c (make_install_device): Remove memdisk check. | |
28972 | It is assumed that if we have a memdisk, grub-mkimage has set | |
28973 | grub_prefix to include the "(memdisk)" drive in it. | |
28974 | ||
a7cbd45a | 28975 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
28976 | ||
28977 | * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init): | |
28978 | Initialize keyboard controller after registering the terminal, so that | |
28979 | grub_printf() can be called from grub_keyboard_controller_init(). | |
28980 | ||
21cf716a | 28981 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
28982 | ||
28983 | * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in | |
28984 | extent-btree which is written as big endian on disk. | |
28985 | Reported by Alain Greppin <al@chilibi.org>. | |
28986 | ||
23a64d8e | 28987 | 2008-06-14 Robert Millan <rmh@aybabtu.com> |
28988 | ||
28989 | * util/i386/efi/grub-install.in (modules): Remove `_chain'. | |
28990 | * util/i386/pc/grub-install.in (modules): Likewise. | |
28991 | ||
d687651c | 28992 | 2008-06-13 Pavel Roskin <proski@gnu.org> |
28993 | ||
28994 | * commands/ls.c (grub_ls_list_files): Fix format warnings. | |
28995 | ||
dfe9ddd4 | 28996 | 2008-06-13 Bean <bean123ch@gmail.com> |
28997 | ||
28998 | * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition. | |
28999 | ||
29000 | * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling. | |
29001 | ||
29002 | * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used | |
29003 | to indicate sparse block. | |
29004 | ||
16ae7781 | 29005 | 2008-06-12 Pavel Roskin <proski@gnu.org> |
29006 | ||
e6d1a308 | 29007 | * fs/ext2.c (grub_ext2_read_inode): Don't normalize block |
29008 | number, grub_fshelp_read() does it for us. | |
29009 | ||
16ae7781 | 29010 | * fs/fshelp.c (grub_fshelp_read): New function. Implement |
29011 | linear disk read with journal translation. | |
29012 | * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read(). | |
29013 | * include/grub/fshelp.h: Declare grub_fshelp_read(). | |
29014 | ||
40fd3a2b | 29015 | 2008-06-09 Pavel Roskin <proski@gnu.org> |
29016 | ||
29017 | * fs/minix.c (grub_minix_mount): Handle error reading | |
29018 | superblock. | |
29019 | ||
f5679726 | 29020 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
29021 | ||
29022 | * util/i386/pc/grub-setup.c (main): If install drive is an LVM, | |
29023 | don't append the RAID prefix afterwards. | |
29024 | Reported by Clint Adams. | |
29025 | ||
ce525529 | 29026 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
29027 | ||
29028 | Based on description from Pavel: | |
29029 | * kern/disk.c (grub_disk_check_range): Rename to ... | |
29030 | (grub_disk_adjust_range): ... this. Add a comment explaining the | |
29031 | tasks performed by this function. | |
29032 | ||
ad4936a0 | 29033 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
29034 | ||
29035 | * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to | |
29036 | `num_serial' (for consistency with other variables). | |
29037 | (struct grub_ntfs_data): Add `uuid' member. | |
29038 | * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'. | |
29039 | (grub_ntfs_uuid): New function. | |
29040 | (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member. | |
29041 | ||
dc20b0f9 | 29042 | 2008-06-07 Pavel Roskin <proski@gnu.org> |
29043 | ||
29044 | * util/biosdisk.c (open_device): Revert last change to the | |
29045 | function, it broke installation. The sector needs to be | |
29046 | different dependent on which device is opened. | |
29047 | ||
c5e3cfba | 29048 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
29049 | ||
29050 | Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the | |
29051 | rest of GRUB, and breakage doesn't happen if its value were modified. | |
29052 | ||
29053 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
29054 | Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of | |
29055 | a constant (same value). | |
29056 | * kern/i386/pc/startup.S: Replace hardcoded `0x50' with | |
29057 | `GRUB_KERNEL_MACHINE_DATA_END' (same value). | |
29058 | ||
26a1f8c4 | 29059 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
29060 | ||
29061 | * util/biosdisk.c (open_device): Do not modify sector offset when | |
29062 | accessing a partition. kern/disk.c already handles this for us. | |
29063 | ||
25d6b327 | 29064 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
29065 | ||
29066 | * util/grub-emu.c (grub_machine_init): Move code in this function from | |
29067 | here ... | |
29068 | (main): ... to here (before grub_util_biosdisk_init() call, to prevent | |
29069 | segfault in case grub_printf() is called). | |
29070 | ||
29071 | * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to | |
29072 | grub_probe. Update all users not to explicitly add it again. | |
29073 | (grub_device): New variable; contains corresponding device for grubdir. | |
29074 | (fs_module, partmap_module, devabstraction_module): Pass | |
29075 | `--device ${grub_device}' to grub_probe to avoid traversing /dev | |
29076 | every time. | |
29077 | ||
9ece62fb | 29078 | 2008-06-05 Robert Millan <rmh@aybabtu.com> |
29079 | ||
29080 | * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID | |
29081 | is found, print it (same layout as with labels). | |
29082 | ||
1ad36d37 | 29083 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
29084 | ||
29085 | * util/biosdisk.c (get_drive): Rename to ... | |
29086 | (find_grub_drive): ... this. Update all users. | |
29087 | ||
29088 | (get_os_disk): Rename to ... | |
29089 | (convert_system_partition_to_system_disk): ... this. Update all users. | |
29090 | ||
29091 | (find_drive): Rename to ... | |
29092 | (find_system_device): ... this. Update all users. | |
29093 | ||
e6a30859 | 29094 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
29095 | ||
29096 | * util/biosdisk.c (get_os_disk): Handle IDA devices. | |
29097 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
29098 | (make_device_map): Likewise. | |
29099 | ||
00c108a4 | 29100 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
29101 | ||
29102 | * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL | |
29103 | before dereferencing it. | |
29104 | ||
29105 | * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a | |
29106 | union with fat12/fat16-specific ones. Add some new fields, including | |
29107 | `num_serial' for both versions. | |
29108 | (struct grub_fat_data): Add `uuid' member. | |
29109 | (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new | |
29110 | names. Initialize `data->uuid' using `num_serial'. | |
29111 | (grub_fat_uuid): New function. | |
29112 | (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member. | |
29113 | ||
29114 | * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field. | |
29115 | (grub_reiserfs_uuid): New function. | |
29116 | (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct | |
29117 | member. | |
29118 | ||
29119 | * fs/xfs.c (grub_xfs_sblock): Add `uuid' field. | |
29120 | (grub_xfs_uuid): New function. | |
29121 | (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member. | |
29122 | ||
1385c5bb | 29123 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
29124 | ||
29125 | * util/update-grub_lib.in (prepare_grub_to_access_device): Generate | |
29126 | code that is backward compatible with pre-uuid search command. | |
29127 | ||
c682dfd7 | 29128 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
29129 | ||
29130 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through | |
29131 | floppies after everything else, to ensure floppy drive isn't accessed | |
29132 | unnecessarily (patch from Bean). | |
29133 | ||
b7db5d47 | 29134 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
29135 | ||
29136 | * commands/search.c (search_label, search_fs_uuid, search_file): Do | |
29137 | not print device names when we were asked to set a variable. | |
29138 | ||
6e037aa9 | 29139 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
29140 | ||
29141 | * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement | |
29142 | using "cursor-on" and "cursor-off" commands (understood at least by | |
29143 | the Open Firmware flavour on OLPC). | |
29144 | ||
41305bc8 | 29145 | 2008-05-31 Michael Gorven <michael@gorven.za.net> |
29146 | ||
29147 | * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor | |
29148 | on and off sequences. | |
29149 | ||
69ba137e | 29150 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
29151 | ||
29152 | * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'. | |
29153 | * util/update-grub.in: Likewise. | |
29154 | ||
520ae21b | 29155 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
29156 | ||
29157 | * util/biosdisk.c (linux_find_partition): Simplify logic and | |
29158 | make the code more universal. Keep special processing for | |
29159 | devfs, but use a simple rule for all other devices. If the | |
29160 | device ends with a number, append 'p' and the partition number. | |
29161 | Otherwise, append only the partition number. | |
29162 | ||
5786569b | 29163 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29164 | ||
29165 | * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable. | |
29166 | * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and | |
29167 | GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as | |
29168 | the `root' parameter to Linux. | |
29169 | ||
51500452 | 29170 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29171 | ||
29172 | * commands/search.c (options): Rename --fs_uuid to --fs-uuid. | |
29173 | * util/update-grub_lib.in (prepare_grub_to_access_device): Replace | |
29174 | --fs_uuid with --fs-uuid. | |
29175 | * util/update-grub.in: Allow filesystem UUID probes to fail (since not | |
29176 | all filesystems support them). | |
29177 | ||
811d3878 | 29178 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29179 | ||
29180 | * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as | |
f19dbdb7 | 29181 | grub_printf() flags, since we're printing in units of 2 bytes. |
811d3878 | 29182 | |
cab63c95 | 29183 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29184 | ||
29185 | * util/grub.d/00_header.in: Remove obsolete comment referencing | |
29186 | convert_system_path_to_grub_path(). | |
29187 | * util/update-grub.in: Likewise. | |
29188 | * util/update-grub_lib.in (is_path_readable_by_grub): New function. | |
29189 | (convert_system_path_to_grub_path): Add a warning message explaining | |
29190 | that this function is deprecated. Rely on is_path_readable_by_grub() | |
29191 | for the readability checks. | |
29192 | (font_path): Use is_path_readable_by_grub() for the readability | |
29193 | check rather than convert_system_path_to_grub_path(). | |
29194 | ||
972e2f7a | 29195 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29196 | ||
29197 | * util/update-grub_lib.in (prepare_grub_to_access_device): New function. | |
29198 | * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without | |
29199 | converting it first. | |
29200 | * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup | |
29201 | grub.cfg for access to font file, and afterwards call it again to set | |
29202 | the root device. | |
29203 | ||
62191274 | 29204 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29205 | ||
29206 | * commands/search.c (options): Add --fs_uuid option. | |
29207 | (search_fs_uuid): New function. | |
29208 | (grub_cmd_search): Fix --set argument passing. | |
29209 | Use search_fs_uuid() when requested via --fs_uuid. | |
29210 | (grub_search_init): Update help message. | |
29211 | * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid' | |
29212 | and redeclare it as an array of 16-bit words. | |
29213 | (grub_ext2_uuid): New function. | |
29214 | (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member. | |
29215 | * include/grub/fs.h (struct grub_fs): Add `uuid' struct member. | |
29216 | * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT) | |
29217 | (GRUB_DEVICE_BOOT_UUID): New variables. | |
29218 | (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove. | |
29219 | * util/grub.d/00_header.in: Set root using `search --fs_uuid' command | |
29220 | whenever possible. | |
29221 | * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead, | |
29222 | just assume `root' variable has the right value. | |
29223 | * util/grub.d/10_linux.in: Likewise. | |
29224 | * util/grub-probe.c (probe): Probe for filesystem UUID when requested | |
29225 | via PRINT_FS_UUID. | |
29226 | (main): Recognise `-t fs_uuid' argument. | |
29227 | ||
01b73ec8 | 29228 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
29229 | ||
29230 | * util/biosdisk.c (map): Redefine structure to hold information | |
29231 | about GRUB drive name. | |
fe6b695a | 29232 | (get_drive): Reimplement without assuming (and verifying) BIOS-like |
01b73ec8 | 29233 | drive names. |
29234 | (call_hook): Remove. | |
29235 | (grub_util_biosdisk_iterate): Access drive names via `.drive' struct | |
29236 | member. Assume drive has partitions. | |
29237 | (grub_util_biosdisk_open): Access device names via `.device' struct | |
29238 | member. | |
29239 | (open_device): Likewise. | |
29240 | (find_drive): Likewise. | |
29241 | (read_device_map): Adjust map[] usage to match the new struct | |
29242 | definition. Don't check for duplicates (still possible, but not cheap | |
29243 | anymore). | |
29244 | (grub_util_biosdisk_fini): Free malloced buffers referenced by map[]. | |
29245 | (make_device_name): Remove assumption of BIOS-like drive names. | |
29246 | ||
22f16596 | 29247 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
29248 | ||
29249 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as | |
29250 | compiling execute.c doesn't need grub_script.tab.h anymore. | |
29251 | (normal/command.c_DEPENDENCIES): Likewise. | |
29252 | (normal/function.c_DEPENDENCIES): Likewise. | |
29253 | * conf/i386-ieee1275.rmk: Likewise. | |
29254 | * conf/i386-linuxbios.rmk: Likewise. | |
29255 | * conf/i386-pc.rmk: Likewise. | |
29256 | * conf/powerpc-ieee1275.rmk: Likewise. | |
29257 | * conf/sparc64-ieee1275.rmk: Likewise. | |
29258 | ||
528ad8f2 | 29259 | 2008-05-29 Pavel Roskin <proski@gnu.org> |
29260 | ||
d1dff95d | 29261 | * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end |
29262 | when scanning metadata for volume group name. | |
29263 | ||
528ad8f2 | 29264 | * include/grub/script.h: Don't include grub_script.tab.h. It's |
29265 | a generated file, which may only be included from the files with | |
29266 | DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE, | |
29267 | use union YYSTYPE, as the later allows forward declaration. | |
29268 | * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE. | |
29269 | ||
47248e08 | 29270 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
29271 | ||
29272 | * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'. | |
29273 | (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros. | |
29274 | [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes | |
29275 | (grub_console_checkkey): Add grub_dprintf() call to report unknown | |
29276 | scan codes. | |
29277 | ||
ee632529 | 29278 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
29279 | ||
29280 | * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for | |
29281 | control key combinations. | |
29282 | ||
eee96e08 | 29283 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
29284 | ||
29285 | * util/powerpc/ieee1275/grub-install.in: Move from here ... | |
29286 | * util/ieee1275/grub-install.in: ... to here. | |
29287 | * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location. | |
29288 | * i386-ieee1275.rmk (sbin_SCRIPTS): New variable. | |
29289 | (grub_install_SOURCES): Likewise. | |
29290 | ||
da9a6a94 | 29291 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
29292 | ||
29293 | * fs/affs.c: Update copyright year. | |
29294 | * fs/ext2.c: Likewise. | |
29295 | * fs/fshelp.c: Likewise. | |
29296 | * fs/hfsplus.c: Likewise. | |
29297 | * fs/ntfs.c: Likewise. | |
29298 | * fs/xfs.c: Likewise. | |
29299 | * include/grub/fshelp.h: Likewise. | |
29300 | * util/grub-mkdevicemap.c: Likewise. | |
29301 | ||
12e65f3a | 29302 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
29303 | ||
29304 | * util/update-grub.in: Allow chmod call to fail, since /boot/grub/ | |
29305 | might need to be fatfs to support some firmware implementations | |
29306 | (e.g. OFW or EFI). | |
29307 | ||
23023641 | 29308 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
29309 | ||
29310 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC | |
29311 | devices. | |
29312 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
29313 | (make_device_map): Likewise. | |
29314 | ||
887d2619 | 29315 | 2008-05-20 Bean <bean123ch@gmail.com> |
29316 | ||
29317 | * fs/fshelp.c (grub_fshelp_map_block): New function. | |
29318 | (grub_fshelp_find_file): Use 64-bit type for pos and block address. | |
29319 | Use `>>' and `&' operator to avoid 64-bit divide and modulo. | |
29320 | ||
29321 | * include/grub/fshelp.h (grub_fshelp_journal_type): New enum. | |
29322 | (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro. | |
29323 | (grub_fshelp_journal): New structure. | |
29324 | (grub_fshelp_map_block): New function prototype. | |
29325 | (grub_fshelp_read_file): Use grub_disk_addr_t as block type. | |
29326 | (grub_fshelp_map_block): Likewise. | |
29327 | ||
29328 | * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro. | |
29329 | (EXT3_JOURNAL_MAGIC_NUMBER): Likewise. | |
29330 | (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise. | |
29331 | (EXT3_JOURNAL_COMMIT_BLOCK): Likewise. | |
29332 | (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise. | |
29333 | (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise. | |
29334 | (EXT3_JOURNAL_REVOKE_BLOCK): Likewise. | |
29335 | (EXT3_JOURNAL_FLAG_ESCAPE): Likewise. | |
29336 | (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise. | |
29337 | (EXT3_JOURNAL_FLAG_DELETED): Likewise. | |
29338 | (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise. | |
29339 | (grub_ext2_sblock): New members for journal support. | |
29340 | (grub_ext3_journal_header): New structure. | |
29341 | (grub_ext3_journal_revoke_header): Likewise. | |
29342 | (grub_ext3_journal_block_tag): Likewise. | |
29343 | (grub_ext3_journal_sblock): Likewise. | |
29344 | (grub_fshelp_node): New members logfile and journal. | |
29345 | (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use | |
29346 | grub_fshelp_map_block to get real block number. | |
29347 | (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block | |
29348 | number. | |
29349 | (grub_ext2_read_inode): Likewise. | |
29350 | (grub_ext3_get_journal): New function. | |
29351 | (grub_read_inode): Initialize journal using grub_ext3_get_journal. | |
29352 | (grub_ext2_close): Release memory used by journal. | |
29353 | ||
29354 | * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr". | |
29355 | (REISERFS_MAGIC_DESC_BLOCK): New macro. | |
29356 | (grub_reiserfs_transaction_header): Renamed to | |
29357 | grub_reiserfs_description_block, replace field data with real_blocks. | |
29358 | (grub_reiserfs_commit_block): New structure. | |
29359 | (grub_reiserfs_data): New member journal. | |
29360 | (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block | |
29361 | number. | |
29362 | (grub_reiserfs_read_symlink): Likewise. | |
29363 | (grub_reiserfs_iterate_dir): Likewise. | |
29364 | (grub_reiserfs_open): Likewise. | |
29365 | (grub_reiserfs_read): Likewise. | |
29366 | (grub_reiserfs_get_journal): New function. | |
29367 | (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are | |
29368 | three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal | |
29369 | using grub_reiserfs_get_journal. | |
29370 | (grub_reiserfs_close): Release memory used by journal. | |
29371 | ||
29372 | * fs/affs.c (grub_affs_read_block): Change block type to | |
29373 | grub_disk_addr_t. Use grub_divmod64 to do 64-bit division. | |
29374 | ||
29375 | * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t. | |
29376 | ||
29377 | * fs/hfsplus.c (grub_hfsplus_read_block): Likewise. | |
29378 | ||
29379 | * fs/ntfs.c (grub_ntfs_read_block): Likewise. | |
29380 | ||
29381 | * fs/udf.c (grub_udf_read_block): Change block type to | |
29382 | grub_disk_addr_t. Use type cast to avoid warning. | |
29383 | ||
29384 | * fs/xfs.c (grub_xfs_read_block): Likewise. | |
29385 | ||
b7c6bed5 | 29386 | 2008-05-16 Christian Franke <franke@computer.org> |
29387 | ||
29388 | * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue | |
29389 | to ensure that break with ESC will always work. | |
29390 | * commands/sleep.c (grub_interruptible_millisleep): Likewise. | |
29391 | Remove ESC from keyboard queue. | |
29392 | ||
eedf167f | 29393 | 2008-05-16 Christian Franke <franke@computer.org> |
29394 | ||
29395 | * util/biosdisk.c: [__CYGWIN__] Add includes. | |
29396 | (grub_util_biosdisk_open): Use Linux code also for Cygwin. | |
29397 | (get_os_disk): Move variable declarations to OS specific | |
29398 | parts to avoid warning. | |
29399 | [__GNU__] (get_os_disk): Fix /dev/sdXsN case. | |
29400 | [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names. | |
29401 | (grub_util_biosdisk_get_grub_dev): Use Linux code also for | |
29402 | Cygwin. | |
29403 | * util/getroot.c: [__CYGWIN__] Add includes. | |
29404 | (strip_extra_slashes): Fix "/" case. | |
29405 | [__CYGWIN__] (get_win32_path): New function. | |
29406 | [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path. | |
29407 | [__CYGWIN__] (find_root_device): Disable. | |
29408 | [__CYGWIN__] (get_bootsec_serial): New function. | |
29409 | [__CYGWIN__] (find_cygwin_root_device): Likewise. | |
29410 | [__linux__] (grub_guess_root_device): Add early returns to simplify | |
29411 | structure. | |
29412 | [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device. | |
29413 | [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID | |
29414 | check for Linux only. | |
29415 | ||
a079699e | 29416 | 2008-05-15 Bean <bean123ch@gmail.com> |
29417 | ||
29418 | * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the | |
29419 | keyboard hang problem in apple's intel mac. | |
29420 | ||
1cf4059a | 29421 | 2008-05-09 Robert Millan <rmh@aybabtu.com> |
29422 | ||
29423 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio | |
29424 | devices. | |
29425 | * util/grub-mkdevicemap.c (get_virtio_disk_name) | |
29426 | (make_device_map): Likewise. | |
29427 | Reported by Aurelien Jarno <aurel32@debian.org> | |
29428 | ||
ed759390 | 29429 | 2008-05-07 Ian Campbell <ijc@hellion.org.uk> |
29430 | ||
29431 | * util/biosdisk.c (get_os_disk): Recognise xvd type disks. | |
29432 | * util/grub-mkdevicemap.c (get_xvd_disk_name): New function. | |
29433 | (make_device_map): Output entries for xvd type disks. | |
29434 | ||
b56c4eaa | 29435 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
29436 | ||
29437 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS | |
29438 | devices. | |
29439 | * util/grub-mkdevicemap.c (get_cciss_disk_name) | |
29440 | (make_device_map): Likewise. | |
29441 | Reported by Roland Dreier <rdreier@cisco.com> | |
29442 | ||
7f8866ed | 29443 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
29444 | ||
29445 | * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional | |
29446 | grub_strstr() call. Correct a few mistakes in failure path handling. | |
29447 | ||
b0346e0f | 29448 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
29449 | ||
29450 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
29451 | Do not print a trailing slash (therefore, the root directory is an | |
29452 | empty string). | |
29453 | (convert_system_path_to_grub_path): Do not remove trailing slash | |
29454 | from make_system_path_relative_to_its_root() output. | |
29455 | ||
29456 | * util/i386/pc/grub-install.in: Add trailing slash to output from | |
29457 | make_system_path_relative_to_its_root(). | |
29458 | ||
6cf12cbd | 29459 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
29460 | ||
29461 | * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This | |
29462 | ensures that output lines aren't intermangled with those sent to | |
29463 | stderr (via grub_util_info()). | |
29464 | * util/grub-probe.c (grub_refresh): Likewise. | |
29465 | * util/i386/pc/grub-setup.c (grub_refresh): Likewise. | |
29466 | ||
0fbb3117 | 29467 | 2008-05-05 Christian Franke <franke@computer.org> |
29468 | ||
29469 | * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]: | |
29470 | Add Cygwin device names. | |
29471 | (get_ide_disk_name) [__CYGWIN__]: Likewise. | |
29472 | (get_scsi_disk_name) [__CYGWIN__]: Likewise. | |
29473 | (check_device): Return error instead of success on empty name. | |
29474 | (make_device_map): Move label inside linux specific code to | |
29475 | prevent compiler warning. | |
29476 | ||
8124cdb7 | 29477 | 2008-04-30 Robert Millan <rmh@aybabtu.com> |
29478 | ||
29479 | Based on patch from Fabian Greffrath <greffrath@leat.rub.de> | |
29480 | * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the | |
29481 | first boot option. | |
29482 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT. | |
29483 | ||
094c01d0 | 29484 | 2008-04-29 Robert Millan <rmh@aybabtu.com> |
29485 | ||
29486 | * docs/grub.cfg: New file (example GRUB configuration). | |
29487 | ||
f4b1fc02 | 29488 | 2008-04-26 Robert Millan <rmh@aybabtu.com> |
29489 | ||
329ce2a5 | 29490 | * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add |
29491 | `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c' | |
29492 | and `disk/ieee1275/nand.c'. | |
f4b1fc02 | 29493 | |
25f16ec1 | 29494 | 2008-04-25 Bean <bean123ch@gmail.com> |
f19dbdb7 | 29495 | |
25f16ec1 | 29496 | * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and |
29497 | i386-linuxbios. | |
29498 | ||
29499 | * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device, | |
29500 | change the buffer size to 4096 for cdrom device. | |
29501 | ||
29502 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod | |
29503 | and nand.mod. | |
29504 | (_linux_mod_SOURCES): New variable. | |
29505 | (_linux_mod_CFLAGS): Likewise. | |
29506 | (_linux_mod_LDFLAGS): Likewise. | |
29507 | (linux_mod_SOURCES): Likewise. | |
29508 | (linux_mod_CFLAGS): Likewise. | |
29509 | (linux_mod_LDFLAGS): Likewise. | |
29510 | (nand_mod_SOURCES): Likewise. | |
29511 | (nand_mod_CFLAGS): Likewise. | |
29512 | (nand_mod_LDFLAGS): Likewise. | |
29513 | ||
29514 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return | |
29515 | GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device | |
29516 | type property. (nand device in olpc don't have this property) | |
29517 | ||
29518 | * include/grub/disk.h (grub_disk_dev_id): New macro | |
29519 | GRUB_DISK_DEVICE_NAND_ID. | |
29520 | ||
29521 | * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New | |
29522 | function prototype. | |
29523 | (grub_rescue_cmd_initrd): Likewise. | |
29524 | ||
29525 | * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro. | |
29526 | (linux_kernel_params): Add new member ofw_signature, ofw_num_items, | |
29527 | ofw_cif_handler and ofw_idt, adjust padding number. | |
f19dbdb7 | 29528 | |
25f16ec1 | 29529 | * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if |
29530 | GRUB_MACHINE_IEEE1275 is defined. | |
29531 | ||
29532 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): | |
29533 | Use NESTED_FUNC_ATTR attribute on the hook parameter. | |
29534 | ||
29535 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR | |
29536 | on nested function heap_init. | |
29537 | (grub_upper_mem): New variable for i386-ieee1275. | |
29538 | (grub_get_extended_memory): New function for i386-ieee1275. | |
29539 | (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275. | |
29540 | ||
29541 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use | |
29542 | NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type | |
29543 | property. | |
f19dbdb7 | 29544 | |
25f16ec1 | 29545 | * loader/i386/ieee1275/linux.c: New file. |
29546 | ||
29547 | * loader/i386/ieee1275/linux_normal.c: New file. | |
29548 | ||
29549 | * disk/ieee1275/nand.c: New file. | |
29550 | ||
e89d61e9 | 29551 | 2008-04-18 Thomas Schwinge <tschwinge@gnu.org> |
29552 | ||
29553 | * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct | |
29554 | value. | |
29555 | * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise. | |
29556 | ||
602566f6 | 29557 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
29558 | ||
29559 | Restructures early code path on ieee1275 to unify grub_main() as | |
29560 | the first C function that is executed in every platform. | |
29561 | ||
29562 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype. | |
29563 | * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of | |
29564 | cmain(). | |
29565 | * kern/powerpc/ieee1275/crt0.S (_start): Likewise. | |
29566 | * kern/ieee1275/cmain.c (cmain): Rename to ... | |
29567 | * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this. | |
29568 | * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init() | |
29569 | at the beginning. | |
29570 | ||
57490c2b | 29571 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
29572 | ||
29573 | * util/update-grub.in: Fix syntax error when setting | |
29574 | `GRUB_PRELOAD_MODULES'. | |
29575 | Reported by Stephane Chazelas <stephane@artesyncp.com> | |
29576 | ||
1977517d | 29577 | 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com> |
29578 | ||
29579 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text | |
29580 | section into account, newer toolchains generate unique build ids | |
29581 | * configure.ac: remove the test for --build-id=none acceptance, | |
e0c5dacb | 29582 | we want build ids to be preserved |
1977517d | 29583 | * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id |
29584 | far from other sections don't cause the raw binary images grow | |
29585 | size | |
29586 | ||
bfb1f1a2 | 29587 | 2008-04-15 Robert Millan <rmh@aybabtu.com> |
29588 | ||
29589 | * disk/lvm.c: Update copyright year. | |
29590 | * kern/misc.c: Likewise. | |
29591 | ||
01979850 | 29592 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
29593 | ||
29594 | * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when | |
f19dbdb7 | 29595 | there is no memory left for physical volume name. |
01979850 | 29596 | |
0a1150e2 | 29597 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
29598 | ||
29599 | * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical | |
29600 | volume name mapping to support bigger than 9 character names properly. | |
29601 | ||
82ead3fe | 29602 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
29603 | ||
29604 | * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check, | |
29605 | as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm | |
29606 | ||
e54a72f5 | 29607 | 2008-04-13 Christian Franke <franke@computer.org> |
29608 | ||
29609 | * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy | |
29610 | to create a floppy emulation boot CD when non emulation mode | |
29611 | does not work. | |
29612 | Enable Joliet CD filesystem extension. | |
29613 | ||
9fe86034 | 29614 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
29615 | ||
29616 | * kern/misc.c (grub_strncat): Fix off-by-one error. | |
29617 | Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
29618 | ||
29619 | * kern/env.c (grub_env_context_close): Clear current context, not | |
29620 | previous one. | |
29621 | Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
29622 | ||
29623 | * kern/misc.c (grub_strcat): Minor speed optimization (same code size). | |
29624 | ||
7ceeee39 | 29625 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
29626 | ||
29627 | Improve robustness when handling LVM. | |
29628 | ||
29629 | * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL | |
f19dbdb7 | 29630 | (and leave `*p' unmodified). |
7ceeee39 | 29631 | (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating |
29632 | through it. | |
29633 | (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when | |
29634 | iterating through it. | |
29635 | (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating | |
29636 | through it. | |
fe6b695a | 29637 | (grub_lvm_scan_device): Check the return value (and fail gracefully |
7ceeee39 | 29638 | when due) on each grub_lvm_getvalue() or grub_strstr() call. |
29639 | Don't assume `vg->pvs != NULL' when iterating through it. | |
29640 | ||
58cd3d85 | 29641 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
29642 | ||
29643 | * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'. | |
29644 | * genmk.rb (partmap): New variable. | |
29645 | (CLEANFILES, PARTMAPFILES): Add #{partmap}. | |
29646 | (#{partmap}): New target rule. | |
29647 | * genpartmaplist.sh: New file. | |
29648 | * Makefile.in (pkglib_DATA): Add partmap.lst. | |
29649 | (partmap.lst): New target rule. | |
29650 | * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed | |
29651 | modules (including all partition maps), instead of preloading them. | |
29652 | ||
78b51059 | 29653 | 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de> |
29654 | ||
29655 | * util/grub.d/30_os-prober.in: New script. Use `os-prober' and | |
29656 | `linux-boot-prober' (if installed) to detect other operating | |
29657 | systems which are installed on the computer and add them to | |
29658 | the boot menu. | |
29659 | * conf/common.rmk: Build and install 30_os-prober. | |
29660 | ||
a91627b4 | 29661 | 2008-04-12 Robert Millan <rmh@aybabtu.com> |
29662 | ||
29663 | * kern/powerpc/ieee1275/init.c: Move from here ... | |
29664 | * kern/ieee1275/init.c: ... to here. Update all users. | |
29665 | ||
29666 | * kern/powerpc/ieee1275/cmain.c: Move from here ... | |
29667 | * kern/ieee1275/cmain.c: ... to here. Update all users. | |
29668 | ||
29669 | * kern/powerpc/ieee1275/openfw.c: Move from here ... | |
29670 | * kern/ieee1275/openfw.c: ... to here. Update all users. | |
29671 | ||
29672 | * loader/powerpc/ieee1275/multiboot2.c: Move from here ... | |
29673 | * loader/ieee1275/multiboot2.c: ... to here. Update all users. | |
29674 | ||
322562ea | 29675 | 2008-04-10 Pavel Roskin <proski@gnu.org> |
29676 | ||
29677 | * configure.ac: Always use "_cv_" in cache variables for | |
29678 | compatibility with Autoconf 2.62. | |
29679 | ||
a02a73c5 | 29680 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
29681 | ||
29682 | Revert grub/machine/init.h addition by Pavel (since it breaks on | |
29683 | i386-ieee1275 and others): | |
29684 | * util/i386/pc/misc.c: Remove grub/machine/init.h. | |
29685 | * util/powerpc/ieee1275/misc.c: Likewise. | |
29686 | ||
25c024b1 | 29687 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
29688 | ||
29689 | * util/grub-probe.c (probe): Improve error message. | |
29690 | ||
3cbd2f98 | 29691 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
29692 | ||
29693 | * util/biosdisk.c (read_device_map): Skip devices that don't exist | |
29694 | (this prevents the presence of a bogus entry from ruining the whole | |
29695 | thing). | |
29696 | ||
87a297bf | 29697 | 2008-04-06 Pavel Roskin <proski@gnu.org> |
29698 | ||
36747a62 | 29699 | * util/biosdisk.c: Include grub/util/biosdisk.h. |
29700 | * util/grub-fstest.c (execute_command): Make static. | |
29701 | * util/grub-mkdevicemap.c (check_device): Likewise. | |
29702 | * util/i386/pc/misc.c: Include grub/machine/init.h. | |
29703 | * util/powerpc/ieee1275/misc.c: Likewise. | |
29704 | * util/lvm.c: Include grub/util/lvm.h. | |
29705 | * util/misc.c: Include grub/kernel.h, grub/misc.h and | |
29706 | grub/cache.h. | |
29707 | * util/raid.c: Include grub/util/raid.h. | |
29708 | (grub_util_getdiskname): Make static. | |
29709 | ||
87a297bf | 29710 | * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and |
29711 | grub_hostfs_fini(), as they are called from grub_init_all() and | |
29712 | grub_fini_all() respectively. This fixes an infinite loop in | |
29713 | grub-fstest due to double registration of hostfs. | |
29714 | Reported by Christian Franke <Christian.Franke@t-online.de> | |
29715 | ||
f6ce7629 | 29716 | 2008-04-05 Pavel Roskin <proski@gnu.org> |
29717 | ||
29718 | * bus/pci.c (grub_pci_iterate): For multifunction devices, probe | |
29719 | all 8 functions. Otherwise, probe function 0 only. | |
29720 | ||
070e49e4 | 29721 | 2008-04-04 Pavel Roskin <proski@gnu.org> |
29722 | ||
8b088a4c | 29723 | * commands/lspci.c (grub_lspci_iter): Print the bus number |
29724 | correctly. | |
29725 | ||
4f657021 | 29726 | * commands/lspci.c (grub_pci_classes): Fix typos. |
29727 | (grub_lspci_iter): Don't print func twice. Print vendor ID | |
29728 | before device ID, as it's normally done. | |
29729 | ||
070e49e4 | 29730 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): |
29731 | Fix signedness warnings. | |
29732 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): | |
29733 | Likewise. | |
29734 | * util/ieee1275/get_disk_name.c: Include config.h so that | |
29735 | _GNU_SOURCE is defined and getline() is declared. Mark an | |
29736 | unused argument as such. Fix a signedness warning. | |
29737 | ||
ba7328dc | 29738 | 2008-04-02 Pavel Roskin <proski@gnu.org> |
29739 | ||
26887f22 | 29740 | * genkernsyms.sh.in: Use more robust assignments for CC and |
29741 | srcdir. Quote srcdir. | |
29742 | * gensymlist.sh.in: Likewise. Assert at the compile time that | |
29743 | the symbol table is not empty. | |
29744 | ||
ba7328dc | 29745 | * disk/raid.c (grub_raid_memberlist): Fix a signedness warning. |
29746 | * fs/cpio.c (grub_cpio_read): Likewise. | |
29747 | ||
0f582c6b | 29748 | 2008-04-01 Pavel Roskin <proski@gnu.org> |
29749 | ||
4b6e1995 | 29750 | * disk/ata.c (grub_ata_open): Don't lose precision in disk->id. |
29751 | * disk/host.c (grub_host_open): Likewise. | |
29752 | * disk/loopback.c (grub_loopback_open): Likewise. | |
29753 | * disk/memdisk.c (grub_memdisk_open): Use a string pointer for | |
29754 | disk->id as in disk/host.c, not a multi-character constant. | |
29755 | ||
828a2768 | 29756 | * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The |
29757 | later is obsolete, potentially dangerous and sets a bad example. | |
29758 | * util/i386/efi/grub-mkimage.c (make_header): Likewise. | |
29759 | * util/misc.c (grub_util_get_image_size): Likewise. | |
29760 | ||
2bb4fb47 | 29761 | * disk/loopback.c (options): Improve help for "--partitions". |
29762 | ||
0f582c6b | 29763 | * normal/arg.c (grub_arg_show_help): Fix spacing of the long |
29764 | options to align them with the short options, e.g. "echo -e". | |
29765 | ||
a33224e0 | 29766 | 2008-03-31 Bean <bean123ch@gmail.com> |
29767 | ||
29768 | * video/reader/png.c (grub_png_data): New member is_16bit and | |
29769 | image_data. | |
29770 | (grub_png_decode_image_header): Detect 16 bit png image. | |
29771 | (grub_png_convert_image): New function to convert 16 bit image to 8 bit. | |
29772 | (grub_png_decode_png): Call grub_png_convert_image for 16 bit image. | |
29773 | (grub_video_reader_png): Release memory occupied by image_data. | |
29774 | ||
29775 | * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than | |
29776 | 4096 bytes. | |
29777 | (grub_nfs_mount): Skip the test for sector per cluster. | |
29778 | ||
29779 | * include/grub/ntfs.h (MAX_SPC): Removed. | |
29780 | ||
86cb4f54 | 29781 | 2008-03-31 Bean <bean123ch@gmail.com> |
29782 | ||
29783 | * conf/common.rmk (pkgdata_MODULES): Add afs.mod. | |
29784 | (grub_probe_SOURCES): Add fs/afs.c. | |
29785 | (grub_fstest_SOURCES): Likewise. | |
29786 | (afs_mod_SOURCES): New variable. | |
29787 | (afs_mod_CFLAGS): Likewise. | |
29788 | (afs_mod_LDFLAGS): Likewise. | |
29789 | ||
29790 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c. | |
29791 | (grub_emu_SOURCES): Likewise. | |
29792 | ||
29793 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
29794 | ||
29795 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
29796 | ||
29797 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
29798 | ||
29799 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
29800 | ||
29801 | * fs/afs.c: New file. | |
29802 | ||
17c74c21 | 29803 | 2008-03-30 Pavel Roskin <proski@gnu.org> |
29804 | ||
4cb68e89 | 29805 | * disk/host.c: Include grub/misc.h to fix a warning. |
29806 | * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix | |
29807 | warnings about implicit declarations. | |
29808 | ||
8790bb04 | 29809 | * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a |
29810 | variable. | |
29811 | * include/grub/i386/loader.h: Change declaration of | |
29812 | grub_linux_boot() to match what grub_loader_set() expects. | |
29813 | * util/getroot.c (grub_guess_root_device): Return const char* to | |
29814 | fix a warning. | |
29815 | * util/grub-probe.c (probe): Fix a warning about uninitialized | |
29816 | abstraction_name variable. | |
29817 | * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark | |
29818 | second argument as unused to fix a warning. | |
29819 | ||
9a3f3296 | 29820 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add |
29821 | missing grub_error() call. | |
29822 | ||
0ecef90d | 29823 | * util/update-grub_lib.in: Define datarootdir, since Autoconf |
29824 | 2.60 and newer uses it to define datadir. | |
29825 | ||
0bf6d401 | 29826 | * commands/sleep.c: Fix warning about implicit declaration. |
29827 | * disk/memdisk.c: Likewise. | |
29828 | * loader/aout.c: Likewise. | |
29829 | * loader/i386/bsd_normal.c: Likewise. | |
29830 | * util/grub-probe.c: Likewise. | |
29831 | ||
7cdacf97 | 29832 | * commands/i386/cpuid.c (has_longmode): Make static. |
29833 | * disk/i386/pc/biosdisk.c (cd_drive): Likewise. | |
29834 | * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused. | |
29835 | ||
17c74c21 | 29836 | * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load |
29837 | GDT. This is more robust, as %ds can change. | |
29838 | (grub_biosdisk_rw_int13_extensions): Don't clear %ds before | |
29839 | calling real_to_prot(). | |
29840 | (grub_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
29841 | ||
80a3e68b | 29842 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
29843 | ||
29844 | * kern/i386/pc/startup.S: Assert that uncompressed functions | |
29845 | don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE. | |
29846 | * kern/i386/pc/lzo1x.S: Remove all .align directives in the | |
29847 | code, as they push parts of the code (error handlers) beyond | |
29848 | GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this | |
29849 | code as correctness and size. | |
29850 | ||
77bcd272 | 29851 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
29852 | ||
29853 | * kern/i386/pc/startup.S | |
29854 | (grub_biosdisk_get_diskinfo_int13_extensions): When converting | |
29855 | data block address to the real mode, keep offset minimal. This | |
29856 | works around a bug in AWARD BIOS on old Athlon systems, which | |
29857 | makes CD detection hang. | |
29858 | ||
c5dfd43b | 29859 | 2008-03-26 Pavel Roskin <proski@gnu.org> |
29860 | ||
29861 | * normal/color.c (grub_parse_color_name_pair): Make `name' a | |
29862 | const. | |
29863 | * include/grub/normal.h: Add grub_parse_color_name_pair() | |
29864 | declaration. | |
29865 | ||
bf962df2 | 29866 | 2008-03-24 Bean <bean123ch@gmail.com> |
29867 | ||
29868 | * disk/i386/pc/biosdisk.c (cd_start): Removed. | |
29869 | (cd_count): Removed. | |
29870 | (cd_drive): New variable. | |
29871 | (grub_biosdisk_get_drive): Don't check for (cdN) device. | |
29872 | (grub_biosdisk_call_hook): Likewise. | |
29873 | (grub_biosdisk_iterate): Change cdrom detection method. | |
29874 | (grub_biosdisk_open): Replace cd_start with cd_drive. | |
29875 | (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to | |
29876 | detect cdrom device. | |
29877 | ||
29878 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START): | |
29879 | Removed. | |
29880 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed. | |
29881 | (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro. | |
29882 | (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise. | |
29883 | (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise. | |
29884 | (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise. | |
29885 | (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise. | |
29886 | (GRUB_BIOSDISK_CDTYPE_MASK): Likewise. | |
29887 | (grub_biosdisk_cdrp): New structure. | |
29888 | (grub_biosdisk_get_cdinfo_int13_extensions): New function. | |
29889 | ||
29890 | * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable. | |
29891 | ||
29892 | * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root | |
29893 | device. | |
29894 | ||
29895 | * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions): | |
29896 | New function. | |
29897 | ||
68e7fc7a | 29898 | 2008-03-20 Robert Millan <rmh@aybabtu.com> |
29899 | ||
29900 | Remove 2 TiB limit in ata.mod. | |
29901 | * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t. | |
29902 | (grub_ata_dumpinfo): Print sector count with 0x%llx. | |
29903 | (grub_ata_identify): Interpret `&info16[100]' as a pointer to | |
29904 | grub_uint64_t instead of grub_uint32_t. | |
29905 | ||
38ad2cf5 | 29906 | 2008-03-05 Bean <bean123ch@gmail.com> |
29907 | ||
29908 | * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function. | |
29909 | (grub_multiboot): Set boot device. | |
29910 | ||
29911 | * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF. | |
29912 | ||
2b89344e | 29913 | 2008-03-02 Bean <bean123ch@gmail.com> |
29914 | ||
29915 | * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of | |
29916 | symlink_buffer. | |
29917 | ||
87a95d1f | 29918 | 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> |
29919 | ||
29920 | * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and | |
29921 | texinfo.tex. | |
29922 | ||
29923 | * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly | |
29924 | modified. | |
29925 | ||
29926 | * docs/fdl.texi: New file. | |
f19dbdb7 | 29927 | |
87a95d1f | 29928 | * docs/mdate-sh: New file. Copied from gnulib. |
29929 | * docs/texinfo.tex: Likewise. | |
29930 | ||
29931 | * config.guess: Updated from gnulib. | |
29932 | * install-sh: Likewise. | |
29933 | ||
7dc15d8e | 29934 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
29935 | ||
29936 | * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod. | |
29937 | (aout_mod_SOURCES): New variable. | |
29938 | (aout_mod_CFLAGS): Likewise. | |
29939 | (aout_mod_LDFLAGS): Likewise. | |
29940 | ||
29941 | * conf/i386-ieee1275.rmk: Likewise. | |
29942 | ||
b00ab696 | 29943 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
29944 | ||
29945 | * util/update-grub.in: Reorganise terminal validity check. Accept | |
29946 | `ieee1275:console' (OLPC) and `*:gfxterm' as valid too. | |
29947 | Based on suggestion by Franklin PIAT. | |
29948 | ||
79ca2d78 | 29949 | 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de> |
29950 | ||
29951 | * include/grub/util/getroot.h (grub_util_check_block_device): Export new | |
29952 | function. | |
29953 | * util/getroot.c (grub_util_check_block_device): New function that | |
29954 | returns the given argument if it is a block device and returns NULL else. | |
29955 | * util/grub-probe.c (argument_is_device): New variable. | |
29956 | (probe): Promote device_name from a variable to an argument. Receive | |
29957 | device_name from grub_util_check_block_device() if path is NULL and from | |
29958 | grub_guess_root_device() else. Do not free() device_name anymore. | |
f19dbdb7 | 29959 | (options): Introduce new parameter '-d, --device'. |
79ca2d78 | 29960 | (main): Add description of the new parameter to the help screen. |
29961 | Rename path variable to argument. Set argument_is_device if the '-d' | |
29962 | option is given. Pass argument to probe() depending on | |
29963 | argument_is_device. | |
29964 | ||
0d16e571 | 29965 | 2008-02-24 Bean <bean123ch@gmail.com> |
29966 | ||
29967 | * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro. | |
29968 | (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise. | |
29969 | (GRUB_ISO9660_VOLDESC_SUPP): Likewise. | |
29970 | (GRUB_ISO9660_VOLDESC_PART): Likewise. | |
29971 | (GRUB_ISO9660_VOLDESC_END): Likewise. | |
29972 | (grub_iso9660_primary_voldesc): New member escape. | |
29973 | (grub_iso9660_data): New member joliet. | |
29974 | (grub_iso9660_convert_string): New function. | |
29975 | (grub_iso9660_mount): Detect joliet extension. | |
29976 | (grub_iso9660_iterate_dir): Convert filename when joliet is detected. | |
29977 | (grub_iso9660_iso9660_label): Likewise. | |
29978 | ||
29979 | * conf/common.rmk (pkgdata_MODULES): Add udf.mod. | |
29980 | (grub_setup_SOURCES): Add fs/udf.c. | |
29981 | (grub_fstest_SOURCES): Likewise. | |
29982 | (udf_mod_SOURCES): New variable. | |
29983 | (udf_mod_CFLAGS): Likewise. | |
29984 | (udf_mod_LDFLAGS): Likewise. | |
29985 | ||
29986 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c. | |
29987 | (grub_emu_SOURCES): Likewise. | |
29988 | ||
29989 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
29990 | ||
29991 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
29992 | ||
29993 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
29994 | ||
29995 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
29996 | ||
29997 | * fs/udf.c: New file. | |
29998 | ||
8a594a17 | 29999 | 2008-02-24 Robert Millan <rmh@aybabtu.com> |
30000 | ||
30001 | * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES) | |
30002 | (normal/lexer.c_DEPENDENCIES): New variables. | |
30003 | * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
30004 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
30005 | * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES) | |
30006 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
30007 | * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES) | |
30008 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
30009 | * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
30010 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
30011 | * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
30012 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
30013 | ||
2dc33c03 | 30014 | 2008-02-23 Robert Millan <rmh@aybabtu.com> |
30015 | ||
30016 | * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member, | |
30017 | since they were intended to be in hex. This didn't break previously | |
30018 | because of a bug in gpt_partition_map_iterate() (see below). | |
30019 | ||
30020 | (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp' | |
30021 | when checking the validity of GPT header. | |
30022 | Remove `partno', since it always provides the same information as `i'. | |
30023 | ||
f6f4cfb0 | 30024 | 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org> |
30025 | ||
30026 | * include/grub/efi/time.h: Fix a wrong comment. | |
30027 | ||
79ff665f | 30028 | 2008-02-19 Pavel Roskin <proski@gnu.org> |
30029 | ||
30030 | * kern/rescue.c (grub_enter_rescue_mode): Improve initial | |
30031 | message. | |
30032 | ||
d38e24c2 | 30033 | 2008-02-19 Bean <bean123ch@gmail.com> |
30034 | ||
30035 | * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod. | |
30036 | (aout_mod_SOURCES): New variable. | |
30037 | (aout_mod_CFLAGS): Likewise. | |
30038 | (aout_mod_LDFLAGS): Likewise. | |
30039 | (_bsd_mod_SOURCES): New variable. | |
30040 | (_bsd_mod_CFLAGS): Likewise. | |
30041 | (_bsd_mod_LDFLAGS): Likewise. | |
30042 | (bsd_mod_SOURCES): New variable. | |
30043 | (bsd_mod_CFLAGS): Likewise. | |
30044 | (bsd_mod_LDFLAGS): Likewise. | |
30045 | ||
30046 | * include/grub/aout.h: New file. | |
30047 | ||
30048 | * include/grub/i386/loader.h (grub_unix_real_boot): New function. | |
30049 | ||
30050 | * include/grub/i386/bsd.h: New file. | |
30051 | ||
30052 | * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC | |
30053 | to make it public. | |
30054 | ||
30055 | * kern/elf.c (grub_elf32_load): Get the physical address after the hook | |
30056 | function is called, so that it's possible to change it inside the hook. | |
30057 | (grub_elf64_load): Likewise. | |
30058 | (grub_elf_file): Don't close the file if elf header is not found. | |
30059 | (grub_elf_close): Close the file if grub_elf_file fails (The new | |
30060 | grub_elf_file won't close it). | |
30061 | (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize. | |
30062 | (grub_elf64_size): Likewise. | |
30063 | ||
30064 | * kern/i386/loader.S (grub_unix_real_boot): New function. | |
30065 | ||
30066 | * loader/aout.c: New file. | |
30067 | ||
30068 | * loader/i386/bsd.c: New file. | |
30069 | ||
30070 | * loader/i386/bsd_normal.c: New file. | |
30071 | ||
30072 | * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format. | |
30073 | ||
30074 | * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it | |
fe987087 | 30075 | can test other formats. |
d38e24c2 | 30076 | |
b93bdb0f | 30077 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
30078 | ||
30079 | * partmap/gpt.c: Include `<grub/gpt_partition.h>'. | |
30080 | (grub_gpt_partition_type_empty): Redefine with macro from | |
30081 | `<grub/gpt_partition.h>'. | |
30082 | (gpt_partition_map_iterate): Adjust partition type comparison. | |
30083 | ||
30084 | Export `entry' as partmap-specific `part.data' struct. | |
30085 | (grub_gpt_header, grub_gpt_partentry): Move from here ... | |
30086 | ||
30087 | * include/grub/gpt_partition.h (grub_gpt_header) | |
30088 | (grub_gpt_partentry): ... to here (new file). | |
30089 | ||
30090 | * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'. | |
30091 | ||
30092 | (grub_gpt_partition_type_bios_boot): New const variable, defined | |
30093 | with macro from `<grub/gpt_partition.h>'. | |
30094 | ||
30095 | (setup): Replace `first_start' with `embed_region', which keeps | |
30096 | track of the embed region (and is partmap-agnostic). | |
30097 | ||
30098 | Replace find_first_partition_start() with find_usable_region(), | |
30099 | which finds a usable region for embedding using partmap-specific | |
30100 | knowledge (supports PC/MSDOS and GPT). | |
30101 | ||
30102 | Fix all assumptions that the embed region start at sector 1, using | |
30103 | `embed_region.start' from now on. Similarly, use `embed_region.end' | |
30104 | rather than `first_start' to calculate available size. | |
30105 | ||
30106 | In grub_util_info() message, replace "into after the MBR" with an | |
30107 | indication of the specific sector our embed region starts at. | |
30108 | ||
66cb40f6 | 30109 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
30110 | ||
30111 | * DISTLIST: Replace `commands/ieee1275/halt.c' and | |
30112 | `commands/ieee1275/reboot.c' with `commands/halt.c' and | |
30113 | `commands/reboot.c'. | |
30114 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
30115 | (halt_mod_SOURCES): Likewise. | |
30116 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
30117 | (halt_mod_SOURCES): Likewise. | |
30118 | ||
b7202015 | 30119 | 2008-02-17 Christian Franke <franke@computer.org> |
30120 | ||
30121 | * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key. | |
30122 | ||
32b0fc49 | 30123 | 2008-02-17 Robert Millan <rmh@aybabtu.com> |
30124 | ||
30125 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
30126 | set `first_start' to 0 for non-PC/MSDOS partition maps. | |
30127 | ||
aca63502 | 30128 | 2008-02-16 Robert Millan <rmh@aybabtu.com> |
30129 | ||
30130 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
30131 | do not assume partition map is PC/MSDOS before performing checks that | |
30132 | are specific to that layout. | |
30133 | ||
0de8be86 | 30134 | 2008-02-13 Robert Millan <rmh@aybabtu.com> |
30135 | ||
30136 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove | |
30137 | `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'. | |
30138 | * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs. | |
30139 | ||
c3db8364 | 30140 | 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org> |
30141 | ||
30142 | * configure.ac: Only a cosmetic change on the handling of | |
30143 | -fno-stack-protector. | |
30144 | ||
f714229e | 30145 | 2008-02-12 Alexandre Boeglin <alex@boeglin.org> |
30146 | ||
c3db8364 | 30147 | * conf/i386-efi.rmk (grub_emu_SOURCES): Replace |
30148 | commands/i386/pc/halt.c and reboot.c by commands/halt.c and | |
30149 | reboot.c. | |
f714229e | 30150 | (grub_install_SOURCES): Add halt.mod and reboot.mod. |
30151 | (halt_mod_SOURCES): New variable. | |
30152 | (halt_mod_CFLAGS): Likewise. | |
30153 | (halt_mod_LDFLAGS): Likewise. | |
30154 | (reboot_mod_SOURCES): Likewise. | |
30155 | (reboot_mod_CFLAGS): Likewise. | |
30156 | (reboot_mod_LDFLAGS): Likewise. | |
30157 | ||
c3db8364 | 30158 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace |
30159 | commands/ieee1275/halt.c and reboot.c by commands/halt.c and | |
30160 | reboot.c. | |
f714229e | 30161 | (halt_mod_SOURCES): Likewise. |
30162 | (reboot_mod_SOURCES): Likewise. | |
30163 | ||
c3db8364 | 30164 | * conf/i386-pc.rmk (grub_emu_SOURCES): Replace |
30165 | commands/i386/pc/reboot.c by commands/reboot.c. | |
f714229e | 30166 | (reboot_mod_SOURCES): Likewise. |
30167 | ||
30168 | * commands/i386/pc/reboot.c: merge this file ... | |
30169 | ||
30170 | * commands/ieee1275/reboot.c: ... and this file ... | |
30171 | ||
30172 | * commands/reboot.c: ... to this file. | |
c3db8364 | 30173 | Add some precompiler directive to include the correct header for |
30174 | each machine. | |
f714229e | 30175 | |
30176 | * commands/ieee1275/halt.c: move this file ... | |
30177 | ||
30178 | * commands/halt.c: ... to here. | |
c3db8364 | 30179 | Add some precompiler directive to include the correct header for |
30180 | each machine. | |
f714229e | 30181 | |
30182 | * include/grub/efi/efi.h (grub_reboot): New function declaration. | |
30183 | (grub_halt): Likewise. | |
30184 | ||
30185 | * kern/efi/efi.c (grub_reboot): New function. | |
30186 | (grub_halt): Likewise. | |
30187 | ||
c74493e0 | 30188 | 2008-02-12 Robert Millan <rmh@aybabtu.com> |
30189 | ||
30190 | * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before | |
30191 | /dev (like it is done for /dev/mapper). This doesn't provide support | |
30192 | for EVMS, but at least it is now easy to identify the problem when it | |
30193 | arises. | |
30194 | ||
d0db4b04 | 30195 | 2008-02-11 Robert Millan <rmh@aybabtu.com> |
30196 | ||
30197 | * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition) | |
30198 | (grub_util_biosdisk_get_grub_dev): Check open() exit status by | |
30199 | comparing it with -1, not 0. | |
30200 | ||
bf748642 | 30201 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
30202 | ||
30203 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and | |
30204 | `disk/lvm.c'. | |
30205 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
30206 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
30207 | ||
30208 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and | |
30209 | `disk/lvm.c' to the end of the list. | |
30210 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
30211 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
30212 | ||
b5db202a | 30213 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
30214 | ||
30215 | * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call | |
30216 | grub_print_error() instead. This will let user know why we're entering | |
30217 | rescue mode. | |
30218 | Based on suggestions from Sam Morris. | |
30219 | ||
83abee31 | 30220 | 2008-02-10 Alexandre Boeglin <alex@boeglin.org> |
30221 | ||
30222 | * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg() | |
30223 | on remaining N args, instead of "--" arg N times. | |
30224 | ||
78d5a08b | 30225 | 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi> |
30226 | ||
30227 | * font/manager.c (unknown_glyph): Added variable for unknown glyph. | |
30228 | (fill_with_default_glyph): Changed to use unknown_glyph for fill | |
30229 | pattern for unknown glyphs. | |
30230 | ||
68807e5f | 30231 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30232 | ||
30233 | * configure.ac: Probe for `help2man'. | |
30234 | * Makefile.in (builddir): New variable. | |
30235 | (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it, | |
30236 | or otherwise add a few flags/options to it. | |
30237 | (install-local): For every executable utility or script that is | |
30238 | installed, invoke $(HELP2MAN) to install a manpage based on --help | |
30239 | output. | |
30240 | ||
30241 | * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so | |
30242 | that it doesn't prevent --help from working in build tree. | |
30243 | ||
30244 | * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org' | |
30245 | with `bug-grub@gnu.org'. | |
30246 | * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise. | |
30247 | * util/update-grub.in (usage): New function. | |
30248 | Implement proper argument check, with support for --help and --version | |
30249 | (as well as existing -y). | |
30250 | ||
30251 | 2008-02-09 Christian Franke <franke@computer.org> | |
0d9ff7f0 | 30252 | |
30253 | * commands/cat.c (grub_cmd_cat): Print '\r' as hex to | |
30254 | avoid overwriting previous output. | |
30255 | * kern/rescue.c (grub_rescue_cmd_cat): Likewise. | |
30256 | ||
c1962162 | 30257 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30258 | ||
30259 | * normal/menu.c (run_menu): If timeout is set to zero, don't bother | |
30260 | drawing the menu. | |
30261 | ||
3dac2e3f | 30262 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30263 | ||
30264 | * commands/sleep.c: New file. | |
30265 | * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'. | |
30266 | (sleep_mod_SOURCES): New variable. | |
30267 | (sleep_mod_CFLAGS): Likewise. | |
30268 | (sleep_mod_LDFLAGS): Likewise. | |
30269 | ||
7a634e08 | 30270 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30271 | ||
30272 | * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for | |
30273 | situations in which we can deduce the RAID size and the superblock | |
30274 | doesn't match it. | |
30275 | ||
b92f0c18 | 30276 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30277 | ||
30278 | * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct | |
30279 | and return a grub_diskmemberlist_t composed of LVM physical volumes. | |
30280 | [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member. | |
30281 | ||
30282 | * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct | |
30283 | and return a grub_diskmemberlist_t composed of physical array members. | |
30284 | [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member. | |
30285 | ||
30286 | * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct | |
30287 | prototype. | |
30288 | [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer. | |
30289 | [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration. | |
30290 | [GRUB_UTIL] (grub_disk_memberlist_t): New typedef. | |
30291 | ||
30292 | * util/grub-probe.c (probe): Move partmap probing code from here ... | |
30293 | (probe_partmap): ... to here. | |
30294 | (probe): Use probe_partmap() once for the disk we're probing, and | |
30295 | additionally, when such disk contains a memberlist() struct member, | |
30296 | once for each disk that is contained in the structure returned by | |
30297 | memberlist(). | |
30298 | ||
91a4bf68 | 30299 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
30300 | ||
30301 | * util/grub-probe.c (main): When `verbosity > 1', set `debug' | |
30302 | environment variable to 'all' in order to obtain debug output from | |
30303 | non-util/ code. | |
30304 | * util/i386/pc/grub-setup.c (main): Likewise. | |
30305 | ||
a96f9caa | 30306 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
30307 | ||
30308 | * disk/raid.c (grub_raid_scan_device): Check for | |
30309 | `array->device[sb.this_disk.number]' rather than for | |
30310 | `array->device[sb.this_disk.number]->name', since the latter is not | |
fe6b695a | 30311 | guaranteed to be accessible. |
a96f9caa | 30312 | |
b37a9222 | 30313 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
30314 | ||
30315 | * disk/raid.c: Update copyright. | |
30316 | * fs/cpio.c: Likewise. | |
30317 | * include/grub/raid.h: Likewise. | |
30318 | * loader/i386/pc/multiboot.c: Likewise. | |
30319 | * util/hostfs.c: Likewise. | |
30320 | ||
5626aee1 | 30321 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
30322 | ||
30323 | * include/grub/raid.h (struct grub_raid_array): Change type of `device' | |
30324 | to a grub_disk_t array. | |
30325 | * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with | |
30326 | `device[x]'. | |
30327 | (grub_raid_scan_device): Replace `device[x].name' accesses with | |
30328 | `device[x]->name'. Simplify initialization of `array->device[x]'. | |
30329 | ||
554f0187 | 30330 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
30331 | ||
30332 | * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few | |
30333 | grub_dprintf() calls. | |
30334 | * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range | |
30335 | error message. | |
30336 | ||
1ec8425d | 30337 | 2008-02-07 Christian Franke <franke@computer.org> |
30338 | ||
30339 | * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello | |
30340 | instead of fseek and ftell to support large files. | |
30341 | (grub_hostfs_read): Likewise. | |
30342 | ||
f2156fda | 30343 | 2008-02-07 Robert Millan <rmh@aybabtu.com> |
30344 | ||
30345 | Patch from Jeroen Dekkers. | |
30346 | * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk | |
fe6b695a | 30347 | failure, since successfully reading all array members might not be |
f2156fda | 30348 | required. |
30349 | ||
9216e0e7 | 30350 | 2008-02-06 Robert Millan <rmh@aybabtu.com> |
30351 | ||
30352 | * util/grub-probe.c (probe): Simplify partmap probing (with the | |
30353 | assumption that the first word up to the underscore equals to | |
30354 | the module name). | |
30355 | ||
b0dfd29a | 30356 | 2008-02-06 Christian Franke <franke@computer.org> |
30357 | ||
30358 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE | |
30359 | (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on | |
30360 | last block of a cpio or tar stream. | |
30361 | Check for "TRAILER!!!" instead of any empty data | |
30362 | block to detect last block of a cpio stream. | |
30363 | (grub_cpio_dir): Fix constness of variable np. | |
30364 | (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if | |
30365 | cpio or tar trailer is detected. This fixes a crash | |
30366 | on open of a non existing file. | |
30367 | ||
c32865bf | 30368 | 2008-02-05 Bean <bean123ch@gmail.com> |
30369 | ||
30370 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical | |
30371 | address of entry. | |
30372 | (grub_multiboot_load_elf64): Likewise. | |
30373 | (grub_multiboot): Initialize mbi structure. | |
30374 | ||
30375 | * util/grub-fstest.c: Don't include unused header file script.h. | |
30376 | ||
fe6b695a | 30377 | * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning |
c32865bf | 30378 | of file. |
30379 | (grub_fstest_SOURCES): Likewise. | |
30380 | ||
409480b7 | 30381 | 2008-02-05 Robert Millan <rmh@aybabtu.com> |
30382 | ||
30383 | * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT) | |
30384 | (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END) | |
30385 | (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC) | |
30386 | (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros. | |
30387 | ||
30388 | * kern/i386/pc/startup.S: Include `<grub/term.h>'. | |
30389 | (translation_table): Replace hardcoded values with macros | |
30390 | provided by `<grub/term.h>'. | |
30391 | ||
30392 | * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'. | |
30393 | (keyboard_map): Correct/add a few values, with macros provided | |
30394 | by `<grub/term.h>'. | |
30395 | (keyboard_map_shift): Zero values that don't differ from their | |
30396 | `keyboard_map' equivalents. | |
30397 | (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling. | |
30398 | Discard the second scan code that is always sent by Caps lock. | |
30399 | Only use `keyboard_map_shift' when it provides a non-zero value, | |
30400 | otherwise fallback to `keyboard_map'. | |
30401 | ||
99fadbaa | 30402 | 2008-02-04 Bean <bean123ch@gmail.com> |
30403 | ||
30404 | * Makefile.in (enable_grub_fstest): New variable. | |
30405 | ||
30406 | * conf/common.rmk (grub_fstest_init.lst): New rule. | |
30407 | (grub_fstest_init.h): Likewise. | |
30408 | (grub_fstest_init.c): Likewise. | |
30409 | (util/grub-fstest.c_DEPENDENCIES): New variable. | |
30410 | (grub_fstest_SOURCES): Likewise. | |
30411 | ||
30412 | * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest. | |
30413 | ||
30414 | * util/grub-fstest.c: New file. | |
30415 | ||
bf567c50 | 30416 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
30417 | ||
30418 | Make grub-setup handle a separate root device. | |
f19dbdb7 | 30419 | |
bf567c50 | 30420 | * util/i386/pc/grub-setup.c (setup): Always open the root device, |
30421 | so that the root device can be compared with the destination | |
30422 | device. | |
30423 | When embedding the core image, if the root and destination devices | |
30424 | are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to | |
30425 | 0xFF. | |
30426 | When not embedding, set ROOT_DRIVE to 0xFF. | |
f19dbdb7 | 30427 | |
9be6b98b | 30428 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
30429 | ||
30430 | Add support for having a grub directory in a different drive. This | |
30431 | is still only the data handling part. | |
f19dbdb7 | 30432 | |
9be6b98b | 30433 | * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF. |
30434 | (codestart): Save %dh in GRUB_ROOT_DRIVE. | |
30435 | (grub_root_drive): New variable. | |
30436 | ||
30437 | * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE | |
30438 | instead of GRUB_BOOT_DRIVE to construct a device name. Set | |
30439 | GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it | |
30440 | as it was. | |
30441 | ||
30442 | * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype. | |
30443 | ||
30444 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New | |
30445 | macro. | |
30446 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f. | |
30447 | ||
30448 | * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this | |
30449 | is bogus, because PXE booting does not specify any drive | |
30450 | correctly. | |
30451 | ||
30452 | * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I | |
30453 | am not sure if this is really correct. | |
30454 | ||
30455 | * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive | |
30456 | is always identical to the boot drive when booting from a CD. | |
30457 | ||
30458 | * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any | |
30459 | longer. | |
30460 | (root_drive): New variable. | |
30461 | (real_start): Unconditionally set %dh to ROOT_DRIVE. | |
30462 | (setup_sectors): Push %dx right after popping it, because %dh will | |
30463 | be modified later. | |
30464 | (copy_buffer): Restore %dx. | |
30465 | ||
e0ca0677 | 30466 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
30467 | ||
30468 | * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to | |
30469 | use `cdboot.img' for cdrom images. | |
30470 | ||
3b3f6629 | 30471 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
30472 | ||
30473 | * util/grub.d/00_header.in: Issue scripting commands for GRUB to | |
30474 | only setup gfxterm when `font' command has succeeded. | |
30475 | ||
d42b3672 | 30476 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
30477 | ||
30478 | * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS] | |
30479 | (grub_rescue_cmd_multiboot_loader) | |
30480 | (grub_rescue_cmd_module_loader): Enable multiboot1 calls. | |
30481 | ||
fa370ea6 | 30482 | 2008-02-03 Pavel Roskin <proski@gnu.org> |
30483 | ||
e0c5dacb | 30484 | * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop |
fa370ea6 | 30485 | %edx and %esi from stack only after grub_gate_a20() is called. |
30486 | grub_gate_a20() clobbers %edx. | |
30487 | ||
f2a76e1d | 30488 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
30489 | ||
30490 | * configure.ac (AC_INIT): Bumped to 1.96. | |
30491 | ||
30492 | * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c, | |
30493 | commands/lspci.c,disk/memdisk.c, include/grub/pci.h, | |
30494 | include/grub/i386/pc/pci.h, video/readers/jpeg.c, and | |
30495 | video/readers/png.c. | |
30496 | ||
90fd32d1 | 30497 | 2008-02-03 Bean <bean123ch@gmail.com> |
9be665dd | 30498 | |
30499 | * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img. | |
30500 | (cdboot_img_SOURCES): New variable. | |
30501 | (cdboot_img_ASFLAGS): New variable. | |
30502 | (cdboot_img_LDFLAGS): New variable. | |
30503 | ||
30504 | * boot/i386/pc/cdboot.S: New file. | |
30505 | ||
30506 | * disk/i386/pc/biosdisk.c (cd_start): New variable. | |
30507 | (cd_count): Likewise. | |
30508 | (grub_biosdisk_get_drive): Add support for cd device. | |
30509 | (grub_biosdisk_call_hook): Likewise. | |
30510 | (grub_biosdisk_iterate): Likewise. | |
30511 | (grub_biosdisk_open): Likewise. | |
30512 | (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro. | |
30513 | (grub_biosdisk_rw): Support reading from cd device. | |
30514 | (GRUB_MOD_INIT): Iterate cd devices. | |
30515 | ||
30516 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro. | |
30517 | (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise. | |
30518 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise. | |
30519 | ||
30520 | * kern/i386/pc/init.c (make_install_device): Check for cd device. | |
30521 | ||
4020aa53 | 30522 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
30523 | ||
30524 | * commands/read.c: New file. | |
30525 | * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'. | |
30526 | (read_mod_SOURCES): New variable. | |
30527 | (read_mod_CFLAGS): Likewise. | |
30528 | (read_mod_LDFLAGS): Likewise. | |
30529 | ||
e03a1132 | 30530 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
30531 | ||
30532 | * normal/main.c (grub_normal_execute): Check for `menu->size' when | |
30533 | determining whether menu has to be displayed. | |
30534 | ||
58c69220 | 30535 | 2008-02-02 Marco Gerards <marco@gnu.org> |
30536 | ||
30537 | * bus/pci.c: New file. | |
30538 | ||
30539 | * include/grub/pci.h: Likewise. | |
30540 | ||
30541 | * include/grub/i386/pc/pci.h: Likewise. | |
30542 | ||
30543 | * commands/lspci.c: Likewise. | |
30544 | ||
30545 | * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and | |
30546 | `lspci.mod'. | |
30547 | (pci_mod_SOURCES): New variable. | |
30548 | (pci_mod_CFLAGS): Likewise. | |
30549 | (pci_mod_LDFLAGS): Likewise. | |
30550 | (lspci_mod_SOURCES): Likewise. | |
30551 | (lspci_mod_CFLAGS): Likewise. | |
f19dbdb7 | 30552 | (lspci_mod_LDFLAGS): Likewise. |
58c69220 | 30553 | |
c004e1b4 | 30554 | 2008-02-02 Bean <bean123ch@gmail.com> |
30555 | ||
30556 | * fs/ufs.c (INODE_BLKSZ): Fix incorrect value. | |
30557 | (grub_ufs_get_file_block): Fix indirect block calculation problem. | |
30558 | ||
30559 | * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk. | |
30560 | (grub_xfs_btree_node): New structure. | |
30561 | (grub_xfs_btree_root): New structure. | |
30562 | (grub_xfs_inode): New members nblocks, extsize, nextents and btree. | |
30563 | (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents. | |
30564 | (GRUB_XFS_EXTENT_BLOCK): Likewise. | |
30565 | (GRUB_XFS_EXTENT_SIZE): Likewise. | |
30566 | (grub_xfs_read_block): Support btree format type. | |
30567 | (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook. | |
30568 | Use directory block as basic unit. | |
30569 | ||
30570 | * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block. | |
30571 | ||
30572 | * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as | |
30573 | __attribute__ ((__regparm__ (1))). | |
30574 | ||
f95562bf | 30575 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
30576 | ||
30577 | Correct a mistake in previous commit. | |
30578 | ||
30579 | * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
30580 | top. | |
30581 | (normal/command.c_DEPENDENCIES): New variable. | |
30582 | ||
7d31f41f | 30583 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
30584 | ||
30585 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
30586 | top. | |
30587 | (normal/command.c_DEPENDENCIES): New variable. | |
30588 | (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables. | |
30589 | * conf/i386-ieee1275.rmk: Likewise. | |
30590 | * conf/i386-linuxbios.rmk: Likewise. | |
30591 | * conf/i386-pc.rmk: Likewise. | |
30592 | * conf/sparc64-ieee1275.rmk: Likewise. | |
30593 | * conf/powerpc-ieee1275.rmk: Likewise. | |
30594 | (grub_emu_SOURCES): Add `fs/fshelp.c'. | |
30595 | ||
30596 | * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it. | |
30597 | ||
60b6be74 | 30598 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
30599 | ||
30600 | * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf() | |
30601 | call at beginning of function. | |
30602 | ||
078522ab | 30603 | 2008-01-31 Pavel Roskin <proski@gnu.org> |
30604 | ||
30605 | * util/powerpc/ieee1275/grub-mkrescue.in: New file. | |
d2c11005 | 30606 | * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable. |
30607 | (grub_mkrescue_SOURCES): Likewise. | |
078522ab | 30608 | * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in. |
30609 | ||
ccaa8a5f | 30610 | 2008-01-30 Robert Millan <rmh@aybabtu.com> |
30611 | ||
30612 | * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
30613 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ... | |
30614 | * conf/common.rmk (util/grub-probe.c_DEPENDENCIES) | |
30615 | (grub_probe_SOURCES): ... to here. | |
30616 | ||
30617 | * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
30618 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove. | |
30619 | * conf/i386-ieee1275.rmk: Likewise. | |
30620 | * conf/i386-linuxbios.rmk: Likewise. | |
30621 | * conf/powerpc-ieee1275.rmk: Likewise. | |
30622 | ||
ae5a9cd7 | 30623 | 2008-01-30 Tristan Gingold <gingold@free.fr> |
30624 | ||
30625 | * kern/rescue.c: Silently accept empty lines. | |
30626 | ||
70bc2ef2 | 30627 | 2008-01-29 Bean <bean123ch@gmail.com> |
30628 | ||
30629 | * boot/i386/pc/lnxboot.S (data_start): Code cleanup. | |
30630 | (real_code_2): Code cleanup and change comment style. | |
30631 | (move_memory): Avoid using 32-bit address mode. | |
30632 | ||
6a4d50ea | 30633 | 2008-01-29 Bean <bean123ch@gmail.com> |
30634 | ||
30635 | * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'. | |
30636 | (png_mod_SOURCES): New variable. | |
30637 | (png_mod_CFLAGS): Likewise. | |
30638 | (png_mod_LDFLAGS): Likewise. | |
30639 | ||
30640 | * video/readers/png.c: New file. | |
30641 | ||
11cc30ac | 30642 | 2008-01-28 Robert Millan <rmh@aybabtu.com> |
30643 | ||
30644 | * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro. | |
30645 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove | |
30646 | `ifndef GRUB_MOD_GAP' hack. | |
30647 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
30648 | ||
3abc589f | 30649 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
30650 | ||
30651 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip | |
30652 | `GRUB_MOD_GAP' for platforms in which it's not defined. | |
962ca133 | 30653 | * util/elf/grub-mkimage.c (add_segments): Likewise. |
3abc589f | 30654 | |
e1907778 | 30655 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
30656 | ||
30657 | Get grub-emu to build again (including parallel builds). | |
30658 | ||
30659 | * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable. | |
30660 | Split into ... | |
30661 | (util/grub-emu.c_DEPENDENCIES): ... this, ... | |
30662 | (normal/execute.c_DEPENDENCIES): ... this, ... | |
30663 | (grub-emu_DEPENDENCIES): ... and this. | |
30664 | ||
30665 | * conf/i386-efi.rmk: Likewise. | |
30666 | * conf/i386-linuxbios.rmk: Likewise. | |
30667 | * conf/i386-ieee1275.rmk: Likewise. | |
30668 | * conf/powerpc-ieee1275.rmk: Likewise. | |
30669 | (grub_emu_SOURCES): Remove duplicated `kern/file.c'. | |
30670 | ||
2216b101 | 30671 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
30672 | ||
30673 | * NEWS: Add a few items. | |
30674 | ||
f75172d9 | 30675 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
30676 | ||
30677 | Fix parallel builds with grub-emu. Based on earlier commit for | |
30678 | grub-probe and grub-setup. | |
30679 | ||
30680 | * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
30681 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
30682 | * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
30683 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
30684 | * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
30685 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
30686 | * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
30687 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
30688 | * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
30689 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
30690 | ||
3f51de77 | 30691 | 2008-01-27 Pavel Roskin <proski@gnu.org> |
30692 | ||
30693 | * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP | |
30694 | to create a gap between _end and the modules added to the image | |
30695 | with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC. | |
30696 | * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP. | |
30697 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
30698 | ||
2033f53e | 30699 | 2008-01-26 Pavel Roskin <proski@gnu.org> |
30700 | ||
30701 | * kern/dl.c (grub_dl_load): Don't abort if prefix is not set, | |
30702 | just return an error. | |
30703 | ||
22da1f6f | 30704 | 2008-01-26 Bean <bean123ch@gmail.com> |
30705 | ||
30706 | * fs/reiserfs.c (grub_fshelp_node): New member next_offset. | |
30707 | (grub_reiserfs_get_item): Save offset of the next item. | |
30708 | (grub_reiserfs_iterate_dir): Use next_offset to find next item. | |
30709 | ||
2a9525e6 | 30710 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
30711 | ||
30712 | * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to | |
30713 | make all filesystem sources appear together (possibly fixing omissions | |
30714 | while at it). | |
30715 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
30716 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
30717 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
30718 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
30719 | ||
30720 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally, | |
30721 | add `kern/file.c'. | |
30722 | * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise. | |
30723 | * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
30724 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise. | |
30725 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
30726 | ||
30727 | * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'. | |
30728 | (probe): Add a sanity check to make sure of our ability to read | |
30729 | requested files when probing for filesystem type. | |
30730 | ||
30731 | * genmk.rb: Update copyright year (2007). | |
30732 | ||
30733 | * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init) | |
30734 | (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init) | |
30735 | (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init) | |
30736 | (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init) | |
30737 | (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init) | |
30738 | : Remove function prototypes. | |
30739 | ||
b95f71b5 | 30740 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
30741 | ||
30742 | Revert my previous commits (based on wrong assumption of how grub_errno | |
30743 | works). | |
30744 | ||
fe6b695a | 30745 | * kern/disk.c (grub_disk_open): Stop resetting grub_errno. |
b95f71b5 | 30746 | * kern/file.c (grub_file_open): Likewise. |
30747 | ||
d08bbb49 | 30748 | 2008-01-24 Pavel Roskin <proski@gnu.org> |
30749 | ||
30750 | * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares | |
30751 | that hang if GRUB tries to setup colors. | |
30752 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set | |
30753 | colors for firmwares that don't support it. | |
30754 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): | |
30755 | Recognize Open Hack'Ware, set flags to work around its | |
30756 | limitations. | |
30757 | ||
605e36ed | 30758 | 2008-01-24 Robert Millan <rmh@aybabtu.com> |
30759 | ||
30760 | * kern/file.c (grub_file_open): Do not account previous failures of | |
30761 | unrelated functions when grub_errno is checked for. | |
30762 | Reported by Oleg Strikov. | |
30763 | ||
bac332a1 | 30764 | 2008-01-24 Bean <bean123ch@gmail.com> |
30765 | ||
30766 | * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro. | |
30767 | (grub_ufs_sblock): New member volume name. | |
30768 | (grub_ufs_find_file): Fix string copy bug. | |
30769 | (grub_ufs_label): Implement this function properly. | |
30770 | ||
30771 | * fs/hfs.c (grub_hfs_cnid_type): New enum. | |
30772 | (grub_hfs_iterate_records): Use the correct file number for extents | |
30773 | and catalog file. Fix problem in next index calculation. | |
30774 | (grub_hfs_find_node): Replace recursive function call with loop. | |
30775 | (grub_hfs_iterate_dir): Replace recursive function call with loop. | |
30776 | ||
15c80c09 | 30777 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30778 | ||
30779 | * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>', | |
30780 | `<grub/symbol.h>' and `<grub/multiboot.h>'. | |
30781 | (grub_multiboot2_real_boot): New function prototype. | |
30782 | ||
30783 | * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'. | |
30784 | [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable. | |
30785 | ||
30786 | * kern/i386/ieee1275/init.c (grub_os_area_addr) | |
30787 | (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables. | |
30788 | ||
305338fd | 30789 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30790 | ||
30791 | * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with | |
30792 | #ifdef'ed out grub_printf(). | |
30793 | ||
3ea52685 | 30794 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30795 | ||
30796 | * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out | |
30797 | grub_dprintf calls, since they make "debug=all" mode unusable. | |
30798 | (grub_console_checkkey): Likewise. | |
30799 | ||
5882ae4b | 30800 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30801 | ||
30802 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add | |
30803 | `term/i386/pc/at_keyboard.c'. | |
30804 | (pkglib_MODULES): Add `serial.mod'. | |
30805 | (serial_mod_SOURCES): New variable. | |
30806 | (serial_mod_CFLAGS): Likewise. | |
30807 | (serial_mod_LDFLAGS): Likewise. | |
30808 | ||
30809 | * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove | |
30810 | `<grub/powerpc/ieee1275/console.h>'. | |
30811 | (grub_keyboard_controller_init): New function prototype. | |
30812 | (grub_console_checkkey): Likewise. | |
30813 | (grub_console_getkey): Likewise. | |
30814 | ||
30815 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT | |
30816 | keyboard on i386. | |
30817 | ||
30818 | * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use | |
30819 | grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input. | |
30820 | ||
06ab5303 | 30821 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30822 | ||
30823 | * kern/i386/pc/init.c (make_install_device): When memdisk image is | |
30824 | present, "(memdisk)/boot/grub" becomes the default prefix. | |
30825 | ||
30826 | * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus | |
30827 | a memdisk tarball with all the modules. Add --overlay=DIR option that | |
30828 | allows users to overlay additional files into the image. | |
30829 | ||
dbb475a4 | 30830 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
30831 | ||
30832 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h' | |
30833 | and `machine/memory.h'. | |
30834 | (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'. | |
30835 | (_multiboot_mod_SOURCES): New variable. | |
30836 | (_multiboot_mod_CFLAGS): Likewise. | |
30837 | (_multiboot_mod_LDFLAGS): Likewise. | |
30838 | (multiboot_mod_SOURCES): Likewise. | |
30839 | (multiboot_mod_CFLAGS): Likewise. | |
30840 | (multiboot_mod_LDFLAGS): Likewise. | |
30841 | ||
30842 | * include/grub/i386/ieee1275/loader.h: New file. | |
30843 | ||
30844 | * include/grub/i386/ieee1275/machine.h: Likewise. | |
30845 | ||
30846 | * include/grub/i386/ieee1275/memory.h: Likewise. | |
30847 | ||
30848 | * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant) | |
30849 | variable declaration. | |
30850 | (grub_os_area_size): Likewise. | |
30851 | ||
30852 | * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size) | |
30853 | (grub_lower_mem, grub_upper_mem): New variables. | |
30854 | (grub_stop_floppy): New function (just to make | |
30855 | grub_multiboot2_real_boot() happy). | |
30856 | ||
30857 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>', | |
30858 | `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'. | |
30859 | (grub_stop): New function. | |
30860 | Include `"../realmode.S"' and `"../loader.S"'. | |
30861 | ||
30862 | * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'. | |
30863 | Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'. | |
30864 | ||
30865 | * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386, | |
30866 | rely on grub_multiboot2_real_boot() for final boot. | |
30867 | ||
25638629 | 30868 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
30869 | ||
30870 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When | |
30871 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any | |
30872 | device that doesn't look like an SD card. | |
30873 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
30874 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag. | |
30875 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect | |
30876 | OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when | |
30877 | found. | |
30878 | ||
9dad816d | 30879 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
30880 | ||
30881 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to | |
30882 | avoid claiming over our own code. | |
30883 | ||
34842f2d | 30884 | 2008-01-22 Bean <bean123ch@gmail.com> |
30885 | ||
30886 | * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'. | |
30887 | (jpeg_mod_SOURCES): New variable. | |
30888 | (jpeg_mod_CFLAGS): Likewise. | |
30889 | (jpeg_mod_LDFLAGS): Likewise. | |
30890 | ||
30891 | * video/readers/jpeg.c : New file. | |
30892 | ||
44023a28 | 30893 | 2008-01-22 Bean <bean123ch@gmail.com> |
30894 | ||
30895 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when | |
30896 | there are no more items. | |
30897 | ||
bc2d8ac6 | 30898 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30899 | ||
30900 | * kern/mm.c (grub_mm_init_region): Improve debug message. | |
30901 | ||
261bd4bc | 30902 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30903 | ||
30904 | * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable. | |
30905 | (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link | |
30906 | address. | |
30907 | (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as | |
30908 | a C macro. | |
30909 | * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro. | |
30910 | Indicates start of upper memory. | |
30911 | * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'. | |
30912 | (generate_image): Abort when image size is big enough to corrupt | |
30913 | upper memory. | |
30914 | ||
30915 | * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'. | |
30916 | (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'. | |
30917 | * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
30918 | instead of hardcoding 0xA0000. | |
30919 | * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'. | |
30920 | (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
30921 | instead of hardcoding 0xA0000. | |
30922 | ||
f970b55e | 30923 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30924 | ||
30925 | * disk/memdisk.c (memdisk_size): New variable. | |
30926 | (grub_memdisk_open): Replace grub_arch_memdisk_size() call with | |
30927 | `memdisk_size'. | |
30928 | (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk | |
30929 | image to dynamic memory. | |
30930 | (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with | |
30931 | `memdisk_size'. Free memdisk block. | |
30932 | ||
1a8b0526 | 30933 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30934 | ||
30935 | Fix detection of very small filesystems (like tar). | |
30936 | ||
30937 | * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to | |
30938 | contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than | |
30939 | GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's | |
30940 | a problem with this disk). | |
30941 | ||
6e9b4aab | 30942 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30943 | ||
30944 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message | |
30945 | on grub_biosdisk_rw_standard() error. | |
30946 | ||
0d8837b2 | 30947 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30948 | ||
30949 | * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for | |
30950 | recent changes. | |
30951 | * kern/elf.c: Likewise. | |
30952 | * kern/ieee1275/ieee1275.c: Likewise. | |
30953 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
30954 | * term/ieee1275/ofconsole.c: Likewise. | |
30955 | ||
ffd36e34 | 30956 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30957 | ||
30958 | * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'. | |
30959 | ||
3f0093d0 | 30960 | * include/grub/kernel.h (grub_arch_memdisk_addr) |
30961 | (grub_arch_memdisk_size): Moved from here ... | |
ffd36e34 | 30962 | |
3f0093d0 | 30963 | * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr) |
30964 | (grub_arch_memdisk_size): ... to here. | |
ffd36e34 | 30965 | |
6c391b21 | 30966 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30967 | ||
30968 | Mostly based on bugfix from Bean. | |
30969 | ||
30970 | * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
30971 | attribute with hook() parameter. | |
30972 | (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment() | |
30973 | declaration. | |
30974 | (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
30975 | attribute with hook() parameter. | |
30976 | (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment() | |
30977 | declaration. | |
30978 | ||
55a581dc | 30979 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
30980 | ||
30981 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'. | |
30982 | (pkglib_MODULES): Add `memdisk.mod'. | |
30983 | (memdisk_mod_SOURCES): New variable. | |
30984 | (memdisk_mod_CFLAGS): Likewise. | |
30985 | (memdisk_mod_LDFLAGS): Likewise. | |
30986 | ||
30987 | * disk/memdisk.c: New file. | |
30988 | ||
30989 | * include/grub/disk.h (grub_disk_dev_id): Add | |
30990 | `GRUB_DISK_DEVICE_MEMDISK_ID'. | |
30991 | ||
30992 | * include/grub/i386/pc/kernel.h | |
30993 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro. | |
30994 | (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4. | |
30995 | (grub_kernel_image_size): New variable declaration. | |
30996 | (grub_total_module_size): Likewise. | |
30997 | (grub_memdisk_image_size): Likewise. | |
30998 | ||
30999 | * include/grub/i386/pc/memory.h | |
31000 | (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro. | |
31001 | ||
31002 | * include/grub/kernel.h: Include `<grub/symbol.h>'. | |
31003 | (grub_arch_memdisk_addr): New variable declaration. | |
31004 | (grub_arch_memdisk_size): Likewise. | |
31005 | ||
31006 | * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function. | |
31007 | (grub_arch_memdisk_size): Likewise. | |
31008 | ||
31009 | * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable. | |
31010 | (codestart): Replace hardcoded `0x100000' with | |
31011 | `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro. | |
31012 | ||
31013 | * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'. | |
31014 | (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is | |
31015 | not NULL, append the contents of the file it refers to, at the end of | |
31016 | the compressed kernel image. Initialize `grub_memdisk_image_size' | |
31017 | variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset). | |
31018 | (options): Add "memdisk"|'m' option. | |
31019 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
31020 | parameter to generate_image(). | |
31021 | ||
3d7f54c9 | 31022 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
31023 | ||
31024 | * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug | |
31025 | grub_dprintf() calls from here ... | |
31026 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here. | |
31027 | ||
0bf74728 | 31028 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
31029 | ||
31030 | Fix detection of "real mode" when /options/real-mode? doesn't exist. | |
31031 | ||
31032 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable | |
31033 | declaration. | |
31034 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable. | |
31035 | (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set | |
31036 | `GRUB_IEEE1275_FLAG_REAL_MODE'. | |
fe6b695a | 31037 | (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer |
0bf74728 | 31038 | property). |
31039 | * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized | |
31040 | `grub_ieee1275_mmu' rather than obtaining a handler on every call. | |
31041 | ||
33bf70a7 | 31042 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
31043 | ||
fe6b695a | 31044 | Get rid of confusing function (superseded by |
33bf70a7 | 31045 | `grub_ieee1275_get_integer_property') |
31046 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove | |
31047 | prototype. | |
31048 | * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove | |
31049 | function. | |
31050 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of | |
31051 | grub_ieee1275_decode_int_4(), by obtaining integer properties directly | |
fe987087 | 31052 | in native endianness from grub_ieee1275_get_integer_property(). |
33bf70a7 | 31053 | |
e2da7d26 | 31054 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
31055 | ||
31056 | * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off" | |
31057 | command after "shut-down", since implementations differ on which | |
31058 | the command for halt is. | |
31059 | ||
59f1fd8d | 31060 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
31061 | ||
31062 | * include/grub/i386/linuxbios/console.h: Add header protection. | |
31063 | (grub_keyboard_controller_init): New function prototype. | |
31064 | * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro. | |
31065 | (KEYBOARD_COMMAND_READ): Likewise. | |
31066 | (KEYBOARD_COMMAND_WRITE): Likewise. | |
31067 | (KEYBOARD_SCANCODE_SET1): Likewise. | |
31068 | (grub_keyboard_controller_write): New function. | |
31069 | (grub_keyboard_controller_read): Likewise. | |
31070 | (grub_keyboard_controller_init): Likewise. | |
31071 | ||
31072 | * term/i386/pc/console.c: Include `<grub/machine/machine.h>'. | |
31073 | (grub_console_init): On coreboot/LinuxBIOS, call | |
31074 | grub_keyboard_controller_init(). | |
31075 | ||
5f5a7c15 | 31076 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
31077 | ||
31078 | PowerPC changes provided by Pavel Roskin. | |
31079 | ||
31080 | * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments. | |
31081 | * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn, | |
31082 | don't rely on cmain() doing it. | |
31083 | * kern/i386/ieee1275/startup.S (_start): Store %eax in | |
31084 | grub_ieee1275_entry_fn, don't rely on cmain() doing it. | |
31085 | ||
1210e168 | 31086 | 2008-01-16 Robert Millan <rmh@aybabtu.com> |
31087 | ||
31088 | * include/grub/i386/linuxbios/memory.h | |
31089 | (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro. | |
31090 | * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not | |
31091 | receive `table_header' as argument. Instead, probe for it in the | |
31092 | known memory ranges where it can be present. | |
31093 | (grub_available_iterate): Do not pass a fixed `table_header' address | |
31094 | to grub_linuxbios_table_iterate(). | |
31095 | ||
3d04eab8 | 31096 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
31097 | ||
31098 | * configure.ac: Add `i386-ieee1275' to the list of supported targets. | |
31099 | * conf/i386-ieee1275.rmk: New file. | |
31100 | * include/grub/i386/ieee1275/console.h: Likewise. | |
31101 | * include/grub/i386/ieee1275/ieee1275.h: Likewise. | |
31102 | * include/grub/i386/ieee1275/kernel.h: Likewise. | |
31103 | * include/grub/i386/ieee1275/time.h: Likewise. | |
31104 | * kern/i386/ieee1275/init.c: Likewise. | |
31105 | * kern/i386/ieee1275/startup.S: Likewise. | |
31106 | ||
d1bc1b73 | 31107 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
31108 | ||
31109 | * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero | |
31110 | when pointers are 32-bit (but still do set it to one when they are | |
31111 | 64-bit). | |
31112 | ||
66a65807 | 31113 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
31114 | ||
31115 | * include/grub/ieee1275/ieee1275.h | |
31116 | (grub_ieee1275_get_integer_property): New function prototype. | |
31117 | ||
31118 | * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'. | |
31119 | (grub_ieee1275_get_integer_property): New function. Wraps around | |
fe987087 | 31120 | grub_ieee1275_get_property() to handle endianness. |
66a65807 | 31121 | |
31122 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace | |
31123 | grub_ieee1275_get_property() with grub_ieee1275_get_integer_property() | |
fe6b695a | 31124 | where appropriate. |
66a65807 | 31125 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise. |
31126 | (grub_map): Likewise. | |
31127 | * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise. | |
31128 | ||
a83ccafd | 31129 | 2008-01-15 Bean <bean123ch@gmail.com> |
31130 | ||
31131 | * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable. | |
31132 | (grub_script_execute_cmdline): Reset grub_errno. | |
31133 | ||
31134 | * normal/main.c (read_config_file): Reset grub_errno. | |
31135 | ||
31136 | * normal/parse.y (script_init): New. | |
31137 | (script): Move function and menuentry here. | |
31138 | (delimiter): New. | |
31139 | (command): Add delimiter at the end of command. | |
31140 | (commands): Adjust to match the new command. | |
31141 | (commandblock): Remove grub_script_lexer_record_start. | |
f19dbdb7 | 31142 | (menuentry): Add grub_script_lexer_record_start, use the new commands. |
a83ccafd | 31143 | (if): Use the new commands. |
31144 | ||
31145 | * conf/common.rmk (pkgdata_MODULES): Add echo.mod. | |
31146 | ||
df6ecfc6 | 31147 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
31148 | ||
31149 | * normal/menu.c (run_menu): Move timeout message from here ... | |
31150 | (print_timeout): ... to here. | |
31151 | (run_menu): Use print_timeout() once during initial draw to print | |
31152 | the whole message, and again in every clock tick to update only | |
31153 | the number of seconds. | |
31154 | ||
87ae25eb | 31155 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
31156 | ||
31157 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain | |
31158 | actual size of `available' from grub_ieee1275_get_property(), and | |
31159 | restrict parsing to that bound. | |
31160 | ||
47bf09a4 | 31161 | 2008-01-15 Christian Franke <franke@computer.org> |
31162 | ||
31163 | * util/grub-emu.c: Replace <argp.h> by <getopt.h>. | |
31164 | (argp_program_version): Remove variable. | |
31165 | (argp_program_bug_address): Likewise. | |
31166 | (options): Convert from struct argp_option to struct option. | |
31167 | (struct arguments): Remove. | |
31168 | (parse_opt): Remove. | |
31169 | (usage): New function. | |
31170 | (main): Replace struct args members by simple variables. | |
31171 | Replace argp_parse() by getopt_long(). | |
31172 | Add switch to evaluate options. | |
31173 | Add missing "(...)" around root_dev in prefix string. | |
31174 | ||
c86f1469 | 31175 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
31176 | ||
31177 | * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper | |
31178 | for grub_ieee1275_exit(), in order to improve portability. | |
31179 | ||
e622c559 | 31180 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
31181 | ||
31182 | * util/grub.d/10_linux.in (prefix): Define. | |
31183 | (exec_prefix): Likewise. Both definitions are later used by `libdir'. | |
31184 | ||
44cb1ec8 | 31185 | 2008-01-13 Pavel Roskin <proski@gnu.org> |
31186 | ||
31187 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use | |
31188 | grub_errno if no errors have been detected. | |
31189 | ||
1eb8c802 | 31190 | 2008-01-12 Robert Millan <rmh@aybabtu.com> |
31191 | ||
31192 | * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum. | |
31193 | (grub_util_get_dev_abstraction): New function prototype. | |
31194 | ||
31195 | * util/getroot.c: Include `<grub/util/getroot.h>' | |
31196 | (grub_util_get_grub_dev): Move detection of abstraction type to ... | |
31197 | (grub_util_get_dev_abstraction): ... here (new function). | |
31198 | ||
31199 | * util/grub-probe.c: Convert PRINT_* to an enum. Add | |
31200 | `PRINT_ABSTRACTION'. | |
31201 | (probe): Probe for abstraction type when requested. | |
31202 | (main): Understand `--target=abstraction'. | |
31203 | ||
31204 | * util/i386/efi/grub-install.in: Add abstraction module to core | |
31205 | image when it is found to be necessary. | |
31206 | * util/i386/pc/grub-install.in: Likewise. | |
31207 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
31208 | ||
31209 | * util/update-grub_lib.in (font_path): Return system path without | |
31210 | converting to GRUB path. | |
31211 | * util/update-grub.in: Convert system path returned by font_path() | |
31212 | to a GRUB path. Use `grub-probe -t abstraction' to determine what | |
31213 | abstraction module is needed for loading fonts (if any). Export | |
31214 | that as `GRUB_PRELOAD_MODULES'. | |
31215 | * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print | |
31216 | insmod commands). | |
31217 | ||
52bd3de9 | 31218 | 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org> |
31219 | ||
31220 | Remove some unused code from reiserfs. | |
f19dbdb7 | 31221 | |
52bd3de9 | 31222 | * fs/reiserfs.c (struct grub_reiserfs_key) |
31223 | [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type. | |
31224 | (struct grub_reiserfs_node_body): Removed. | |
31225 | (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31226 | Likewise. | |
31227 | (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31228 | Likewise. | |
31229 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31230 | Likewise. | |
31231 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31232 | Likewise. | |
31233 | (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31234 | Likewise. | |
31235 | (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
31236 | Likewise. | |
31237 | (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
31238 | (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
31239 | (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
31240 | ||
2f80039d | 31241 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
31242 | ||
31243 | * util/update-grub_lib.in (grub_file_is_not_garbage): New function. | |
31244 | Determines if a file is garbage left by packaging systems, etc. | |
31245 | * util/update-grub.in: Use grub_file_is_not_garbage() as a condition | |
31246 | for processing /etc/grub.d scripts. | |
31247 | * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison. | |
31248 | * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage() | |
31249 | as a condition for processing Linux images. | |
31250 | ||
87888032 | 31251 | 2008-01-10 Pavel Roskin <proski@gnu.org> |
31252 | ||
31253 | * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed | |
31254 | to compile reiserfs.c on PowerPC. | |
31255 | ||
7e54fced | 31256 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
de9993e0 | 31257 | |
31258 | * kern/device.c (grub_device_iterate): Do not abort device iteration | |
31259 | when one of the devices cannot be opened. | |
31260 | * kern/disk.c (grub_disk_open): Do not account previous failures of | |
31261 | unrelated functions when grub_errno is checked for. | |
31262 | ||
5aa541e6 | 31263 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
31264 | ||
31265 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For | |
31266 | `! grub_linux_is_bzimage', change order of address comparison to make | |
31267 | it more intuitive, and improve "too big zImage" error message. | |
31268 | ||
7076340d | 31269 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
31270 | ||
31271 | * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and | |
31272 | `$(update-grub_DATA)'. | |
31273 | (distcheck): Fix race condition when invoking `$(MAKE)' on multiple | |
31274 | targets. | |
31275 | ||
9ca70333 | 31276 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
31277 | ||
31278 | * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating | |
31279 | which instruction is modified by grub-setup during installation | |
31280 | (since it wasn't obvious by only looking at this file). | |
31281 | ||
38ccf575 | 31282 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
31283 | ||
31284 | * TODO: Rewrite. Just refer to the wiki and the BTS instead of | |
31285 | listing actual TODO items. | |
31286 | ||
f5db4291 | 31287 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
31288 | ||
868967cf | 31289 | * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness |
31290 | correctly. | |
31291 | (grub_reiserfs_get_key_offset): Likewise. | |
31292 | (grub_reiserfs_set_key_offset): Likewise. | |
31293 | (grub_reiserfs_set_key_type): Likewise. | |
fe6b695a | 31294 | (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0. |
868967cf | 31295 | |
31296 | (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be | |
31297 | better to remove the bitfield version completely. | |
f19dbdb7 | 31298 | |
868967cf | 31299 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
f19dbdb7 | 31300 | |
f5db4291 | 31301 | * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be |
31302 | allocated from the heap, due to the fshelp implementation. | |
31303 | (grub_reiserfs_dir): Free NODE, due to the same reason. | |
31304 | ||
492e6d9d | 31305 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
31306 | ||
31307 | Mostly from Vincent Pelletier: | |
f19dbdb7 | 31308 | |
492e6d9d | 31309 | * fs/reiserfs.c: New file. |
f19dbdb7 | 31310 | |
492e6d9d | 31311 | * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod. |
31312 | (reiserfs_mod_SOURCES): New variable. | |
31313 | (reiserfs_mod_CFLAGS): Likewise. | |
31314 | (reiserfs_mod_LDFLAGS): Likewise. | |
31315 | ||
31316 | * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c, | |
31317 | disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c, | |
31318 | include/grub/ntfs.h, include/grub/i386/pc/machine.h, and | |
31319 | normal/color.c. | |
31320 | ||
9ce3e7c1 | 31321 | 2008-01-06 Robert Millan <rmh@aybabtu.com> |
31322 | ||
31323 | * normal/color.c: Remove `<grub/env.h>'. | |
31324 | ||
f3b58148 | 31325 | 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx> |
31326 | ||
31327 | * include/grub/normal.h: Include <grub/env.h>. | |
31328 | ||
7ac3bcfa | 31329 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31330 | ||
31331 | * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in | |
31332 | usage example with `(hd0,1)'. | |
fb358190 | 31333 | Reported by Samuel Thibault. |
7ac3bcfa | 31334 | |
c8ee99d7 | 31335 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31336 | ||
31337 | * kern/i386/loader.S (grub_linux_is_bzimage): New variable. | |
31338 | (grub_linux_boot_zimage): Rename to ... | |
31339 | (grub_linux_boot): ... this. | |
31340 | (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'. | |
31341 | (grub_linux_boot_zimage): Conditionalize zImage copy. | |
31342 | ||
31343 | * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype. | |
31344 | (grub_linux_boot_bzimage): Remove prototype. | |
31345 | (grub_linux_boot_zimage): Rename to ... | |
31346 | (grub_linux_boot): ... this. | |
31347 | ||
31348 | * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'. | |
31349 | (grub_linux_boot): Remove function. | |
31350 | ||
0ece25b1 | 31351 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31352 | ||
31353 | * include/grub/normal.h (grub_env_write_color_normal): New prototype. | |
31354 | (grub_env_write_color_highlight): Likewise. | |
31355 | (grub_wait_after_message): Likewise. | |
31356 | ||
31357 | * normal/color.c: New file. | |
31358 | ||
31359 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
31360 | (normal_mod_DEPENDENCIES): Likewise. | |
31361 | ||
31362 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
31363 | (normal_mod_DEPENDENCIES): Likewise. | |
31364 | ||
31365 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
31366 | (normal_mod_DEPENDENCIES): Likewise. | |
31367 | ||
31368 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
31369 | (normal_mod_DEPENDENCIES): Likewise. | |
31370 | ||
31371 | * normal/menu_entry.c (run): Rely on grub_wait_after_message() | |
31372 | for waiting after a message is printed. | |
31373 | * normal/main.c (read_config_file): Likewise. | |
31374 | (grub_normal_init): Register grub_env_write_color_normal() and | |
31375 | grub_env_write_color_highlight() hooks. Mark `color_normal' and | |
31376 | `color_highlight' variables as global. | |
31377 | ||
31378 | * normal/menu.c (grub_wait_after_message): New function. | |
31379 | (grub_color_menu_normal): New variable. Replaces ... | |
31380 | (GRUB_COLOR_MENU_NORMAL): ... this macro. | |
31381 | (grub_color_menu_highlight): New variable. Replaces ... | |
31382 | (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro. | |
31383 | (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of | |
31384 | `GRUB_TERM_COLOR_STANDARD'. | |
31385 | (print_message): Use `grub_setcolorstate' to reload colors. Rename | |
31386 | `normal_code' and `highlight_code' to `old_color_normal' and | |
31387 | `old_color_highlight', respectively. | |
31388 | (grub_menu_init_page): Update colors when drawing the menu, based on | |
31389 | `menu_color_normal' and `menu_color_highlight' variables. | |
31390 | (grub_menu_run): Rely on grub_wait_after_message() for waiting after | |
31391 | a message is printed. | |
31392 | ||
182dd4e5 | 31393 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31394 | ||
31395 | * kern/env.c (grub_env_context_open): Propagate hooks for global | |
31396 | variables to new context. | |
31397 | ||
31398 | * kern/main.c (grub_set_root_dev): Export `root' variable. | |
31399 | ||
ddf8f6ad | 31400 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31401 | ||
31402 | * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI | |
fe6b695a | 31403 | discs unconditionally, since udev and others have options to provide |
ddf8f6ad | 31404 | them. |
31405 | ||
d8b43d9b | 31406 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
31407 | ||
31408 | * normal/completion.c (iterate_dir): Skip `.' and `..' directories. | |
31409 | ||
2bff2de3 | 31410 | 2008-01-04 Christian Franke <franke@computer.org> |
31411 | ||
31412 | * kern/i386/pc/init.c (grub_machine_init): Fix evaluation | |
31413 | of eisa_mmap. | |
31414 | ||
97eab917 | 31415 | 2008-01-03 Pavel Roskin <proski@gnu.org> |
31416 | ||
31417 | * kern/i386/linuxbios/init.c: Put "void" to all function | |
31418 | declarations with no arguments. | |
31419 | * kern/powerpc/ieee1275/init.c: Likewise. | |
31420 | * term/i386/pc/at_keyboard.c: Likewise. | |
31421 | * term/i386/pc/vga_text.c: Likewise. | |
31422 | * util/grub-mkdevicemap.c: Likewise. | |
31423 | ||
b9416d00 | 31424 | 2008-01-02 Robert Millan <rmh@aybabtu.com> |
31425 | ||
31426 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error | |
31427 | message when loaded image is out of bounds. | |
31428 | (grub_multiboot_load_elf64): Likewise. | |
31429 | ||
92695df9 | 31430 | 2008-01-02 Pavel Roskin <proski@gnu.org> |
31431 | ||
31432 | * util/grub.d/10_linux.in: Try version without ".old" when | |
31433 | looking for initrd. It's better to use initrd from the newer | |
31434 | kernel of the same version than no initrd at all. | |
31435 | ||
d98d9cad | 31436 | 2008-01-01 Robert Millan <rmh@aybabtu.com> |
31437 | ||
31438 | * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs. | |
31439 | ||
dbfdce36 | 31440 | 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi> |
31441 | ||
f19dbdb7 | 31442 | * include/grub/video.h: Added grub_video_unmap_color and |
dbfdce36 | 31443 | grub_video_get_active_render_target. |
31444 | (grub_video_adapter): Added unmap_color and get_active_render_target. | |
31445 | ||
f19dbdb7 | 31446 | * video/video.c: Added grub_video_unmap_color and |
dbfdce36 | 31447 | grub_video_get_active_render_target. |
31448 | (grub_video_get_info): Changed method to accept NULL pointer as an | |
31449 | argument to allow detection of active video adapter. | |
31450 | ||
31451 | * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as | |
31452 | grub_video_vbe_unmap_color_int. | |
31453 | Added grub_video_vbe_unmap_color and | |
31454 | grub_video_vbe_get_active_render_target. | |
31455 | (grub_video_vbe_adapter): Added unmap_color and | |
31456 | get_active_render_target. | |
31457 | ||
f19dbdb7 | 31458 | * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage |
dbfdce36 | 31459 | with grub_video_vbe_unmap_color_int. |
31460 | ||
31461 | * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added. | |
31462 | (DEFAULT_NORMAL_COLOR): Likewise. | |
31463 | (DEFAULT_HIGHLIGHT_COLOR) Likewise. | |
31464 | (DEFAULT_FG_COLOR): Removed. | |
31465 | (DEFAULT_BG_COLOR): Likewise. | |
31466 | (DEFAULT_CURSOR_COLOR): Changed value. | |
31467 | (grub_virtual_screen): Added standard_color_setting, | |
31468 | normal_color_setting, highlight_color_setting and term_color. | |
31469 | (grub_virtual_screen): Removed fg_color_setting and bg_color_setting. | |
31470 | (bitmap_width): Added. | |
31471 | (bitmap_height): Likewise. | |
31472 | (bitmap): Likewise. | |
31473 | (set_term_color): Likewise. | |
31474 | (grub_virtual_screen_setup): Changed to use new terminal coloring | |
31475 | settings. | |
31476 | (grub_gfxterm_init): Added init for bitmap. | |
31477 | (grub_gfxterm_fini): Added destroy for bitmap. | |
31478 | (redraw_screen_rect): Updated to use background bitmap and new | |
31479 | terminal coloring. | |
31480 | (scroll_up): Added optimization for case when there is no bitmap. | |
31481 | (grub_gfxterm_cls): Fixed to use correct background color. | |
31482 | (grub_virtual_screen_setcolorstate): Changed to use new terminal | |
31483 | coloring. | |
31484 | (grub_virtual_screen_setcolor): Likewise. | |
31485 | (grub_virtual_screen_getcolor): Added. | |
31486 | (grub_gfxterm_background_image_cmd): Likewise. | |
31487 | (grub_video_term): Added setcolor and getcolor. | |
31488 | (MOD_INIT): Added registration of background_image command. | |
31489 | (MOD_TERM): Added unregistration for background_image command. | |
31490 | ||
c3c20931 | 31491 | 2007-12-30 Pavel Roskin <proski@gnu.org> |
31492 | ||
31493 | * loader/multiboot_loader.c: Fix multiboot command | |
31494 | unregistration. Fix all typos in the word "multiboot". | |
31495 | ||
df266716 | 31496 | 2007-12-29 Pavel Roskin <proski@gnu.org> |
94239199 | 31497 | |
31498 | * util/grub.d/10_linux.in: Refactor search for initrd. Add | |
31499 | support for initrd names used in Fedora. | |
31500 | ||
fc6e896c | 31501 | 2007-12-26 Bean <bean123ch@gmail.com> |
31502 | ||
31503 | * conf/common.rmk (pkgdata_MODULES): Add cpio.mod. | |
31504 | (cpio_mod_SOURCES): New variable. | |
31505 | (cpio_mod_CFLAGS): Likewise. | |
31506 | (cpio_mod_LDFLAGS): Likewise. | |
31507 | ||
31508 | * fs/cpio.c: New file. | |
31509 | ||
31510 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c. | |
31511 | ||
31512 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
31513 | ||
31514 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
31515 | ||
31516 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
31517 | ||
533110ad | 31518 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
31519 | ||
31520 | * include/grub/term.h (struct grub_term): Add `getcolor' function. | |
31521 | (grub_getcolor): New function. | |
31522 | ||
31523 | * kern/term.c (grub_getcolor): New function. | |
31524 | * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro. | |
31525 | (GRUB_COLOR_MENU_HIGHLIGHT): New macro. | |
31526 | (print_entry): Set normal and highlight colors to | |
31527 | `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT', | |
31528 | respectively, before printing and restore them to old | |
31529 | values afterwards. | |
31530 | (grub_menu_init_page): Likewise. Fill an additional colored space | |
31531 | that would otherwise be left blank. | |
31532 | ||
31533 | * term/efi/console.c (grub_console_getcolor): New function. | |
31534 | (struct grub_console_term.getcolor): New variable. | |
31535 | * term/i386/pc/console.c (grub_console_getcolor): New function. | |
31536 | (struct grub_console_term.getcolor): New variable. | |
31537 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function. | |
31538 | (struct grub_console_term.getcolor): New variable. | |
31539 | ||
31540 | * term/i386/pc/serial.c (grub_serial_setcolor): Remove function. | |
31541 | (struct grub_console_term.setcolor): Remove variable. | |
31542 | * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function. | |
31543 | (struct grub_console_term.setcolor): Remove variable. | |
31544 | * term/i386/pc/vga.c (grub_vga_setcolor): Remove function. | |
31545 | (struct grub_console_term.setcolor): Remove variable. | |
31546 | * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function. | |
31547 | (struct grub_console_term.setcolor): Remove variable. | |
31548 | ||
4931827f | 31549 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
31550 | ||
31551 | * configure.ac: Search for possible unifont.hex locations, and | |
31552 | define UNIFONT_HEX if found. | |
31553 | ||
31554 | * Makefile.in (UNIFONT_HEX): Define variable. | |
31555 | (DATA): Rename to ... | |
31556 | (PKGLIB): ... this. Update all users. | |
31557 | (PKGDATA): New variable. | |
31558 | (pkgdata_IMAGES): Rename to ... | |
31559 | (pkglib_IMAGES): ... this. Update all users. | |
31560 | (pkgdata_MODULES): Rename to ... | |
31561 | (pkglib_MODULES): ... this. Update all users. | |
31562 | (pkgdata_PROGRAMS): Rename to ... | |
31563 | (pkglib_PROGRAMS): ... this. Update all users. | |
31564 | (pkgdata_DATA): Rename to ... | |
31565 | (pkglib_DATA): ... this. Update all users. | |
31566 | (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'. | |
31567 | (unicode.pff, ascii.pff): New rules. | |
31568 | (all-local): Add `$(PKGDATA)' dependency. | |
31569 | (install-local): Process `$(PKGDATA)'. | |
31570 | ||
31571 | * util/update-grub_lib.in (font_path): Search for *.pff files in | |
31572 | a few more locations, including `${pkgdata}'. | |
31573 | ||
57e57e31 | 31574 | 2007-12-23 Robert Millan <rmh@aybabtu.com> |
31575 | ||
31576 | Patch from Bean <bean123ch@gmail.com>: | |
31577 | * disk/loopback.c (grub_loopback_read): Add missing bit shift to | |
31578 | `size'. | |
31579 | ||
4bc72aa9 | 31580 | 2007-12-21 Bean <bean123ch@gmail.com> |
31581 | ||
31582 | * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod. | |
31583 | (ntfscomp_mod_SOURCES): New variable. | |
31584 | (ntfscomp_mod_CFLAGS): Likewise. | |
31585 | (ntfscomp_mod_LDFLAGS): Likewise. | |
31586 | ||
31587 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c. | |
31588 | (grub_probe_SOURCES): Likewise. | |
31589 | (grub_emu_SOURCES): Likewise. | |
31590 | ||
31591 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
31592 | (grub_emu_SOURCES): Likewise. | |
31593 | ||
31594 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
31595 | (grub_emu_SOURCES): Likewise. | |
31596 | ||
31597 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
31598 | (grub_emu_SOURCES): Likewise. | |
31599 | ||
31600 | * fs/ntfs.c (grub_ntfscomp_func): New variable. | |
31601 | (read_run_list): Renamed to grub_ntfs_read_run_list. | |
31602 | (decomp_nextvcn): Moved to ntfscomp.c. | |
31603 | (decomp_getch): Likewise. | |
31604 | (decomp_get16): Likewise. | |
31605 | (decomp_block): Likewise. | |
31606 | (read_block): Likewise. | |
31607 | (read_data): Partially moved to ntfscomp.c. | |
31608 | (fixup): Change unsigned to grub_uint16_t. | |
31609 | (read_mft): Change unsigned long to grub_uint32_t. | |
31610 | (read_attr): Likewise. | |
31611 | (read_data): Likewise. | |
31612 | (read_run_data): Likewise. | |
31613 | (read_run_list): Likewise. | |
31614 | (read_mft): Likewise. | |
31615 | ||
31616 | * fs/ntfscomp.c: New file. | |
31617 | ||
31618 | * include/grub/ntfs.h: New file. | |
31619 | ||
af680a87 | 31620 | 2007-12-16 Robert Millan <rmh@aybabtu.com> |
31621 | ||
31622 | * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for | |
31623 | IDE disk check, since Linux is known to support 20 IDE disks. | |
31624 | Reported by Colin Watson. | |
31625 | ||
84be7599 | 31626 | 2007-12-15 Bean <bean123ch@gmail.com> |
31627 | ||
31628 | * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img. | |
31629 | (lnxboot_img_SOURCES): New variable. | |
31630 | (lnxboot_img_ASFLAGS): Likewise. | |
31631 | (lnxboot_img_LDFLAGS): Likewise. | |
31632 | ||
31633 | * boot/i386/pc/lnxboot.S: New file. | |
31634 | ||
6af9db01 | 31635 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
31636 | ||
31637 | * configure.ac: Test if '--build-id=none' is supported by the | |
31638 | linker. If yes, add it to TARGET_LDFLAGS. Build ID causes | |
31639 | objcopy to generate incorrect binary files (binutils | |
31640 | 2.17.50.0.18-1 as shipped by Fedora 8). | |
31641 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when | |
31642 | linking, so that build ID doesn't break the test. | |
31643 | ||
7361cfe6 | 31644 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
31645 | ||
31646 | * include/grub/i386/time.h: use "void" in the argument list | |
31647 | of grub_cpu_idle(). | |
31648 | * include/grub/powerpc/time.h: Likewise. | |
31649 | * include/grub/sparc64/time.h: Likewise. | |
31650 | ||
1593e10c | 31651 | 2007-11-18 Christian Franke <franke@computer.org> |
31652 | ||
31653 | * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping, | |
31654 | now return control chars instead of GRUB_CONSOLE_KEY_* constants. | |
31655 | This fixes the problem that function keys did not work in grub-emu. | |
31656 | ||
3b8db1a8 | 31657 | 2007-11-18 Christian Franke <franke@computer.org> |
31658 | ||
31659 | * disk/host.c (grub_host_open): Remove attribute unused from | |
31660 | name parameter. Add check for "host". This fixes the problem | |
31661 | that grub-emu does not find partitions. | |
31662 | ||
2e29408d | 31663 | 2007-11-18 Christian Franke <franke@computer.org> |
31664 | ||
31665 | * util/hostfs.c (is_dir): New function. | |
31666 | (grub_hostfs_dir): Handle missing dirent.d_type case. | |
31667 | (grub_hostfs_read): Add missing fseek(). | |
31668 | (grub_hostfs_label): Clear label pointer. This fixes a crash | |
31669 | of grub-emu on "ls (host)". | |
31670 | ||
398cd047 | 31671 | 2007-11-18 Christian Franke <franke@computer.org> |
31672 | ||
31673 | * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry): | |
31674 | Add attribute packed, gcc 3.4.4 on Cygwin aligns this | |
31675 | to 64 bit boundary by default. | |
31676 | ||
c405c391 | 31677 | 2007-11-18 Bean <bean123ch@gmail.com> |
31678 | ||
31679 | * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod. | |
31680 | (hexdump_mod_SOURCES): New variable. | |
31681 | (hexdump_mod_CFLAGS): Likewise. | |
31682 | (hexdump_mod_LDFLAGS): Likewise. | |
f19dbdb7 | 31683 | |
c405c391 | 31684 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c. |
31685 | ||
31686 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
31687 | ||
31688 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
31689 | ||
31690 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
31691 | ||
31692 | * include/grub/hexdump.h: New file. | |
31693 | ||
31694 | * commands/hexdump.c: New file. | |
31695 | ||
5cced7fd | 31696 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
31697 | ||
31698 | * commands/i386/pc/play.c (beep_off): Switch order of arguments | |
31699 | in grub_outb() calls. | |
31700 | (beep_on): Likewise. | |
31701 | ||
8b714eb0 | 31702 | 2007-11-10 Christian Franke <franke@computer.org> |
31703 | ||
31704 | * normal/menu.c (run_menu): Check for empty menu to avoid crash. | |
31705 | (grub_menu_run): Likewise. | |
31706 | ||
ce0f1839 | 31707 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
31708 | ||
31709 | * include/grub/i386/efi/machine.h: New file. | |
31710 | * include/grub/i386/linuxbios/machine.h: Likewise. | |
31711 | * include/grub/i386/pc/machine.h: Likewise. | |
31712 | * include/grub/powerpc/ieee1275/machine.h: Likewise. | |
31713 | * include/grub/sparc64/ieee1275/machine.h: Likewise. | |
31714 | ||
31715 | * term/i386/pc/serial.c: Include <grub/machine/machine.h>. | |
31716 | (serial_hw_io_addr): New variable. | |
31717 | (serial_hw_get_port): Obtain port address from `serial_hw_io_addr' | |
31718 | instead of `(unsigned short *) 0x400'. | |
31719 | ||
270c237d | 31720 | 2007-11-10 Bean <bean123ch@gmail.com> |
31721 | ||
31722 | * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks. | |
31723 | ||
a87783bf | 31724 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
31725 | ||
31726 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod. | |
31727 | (vga_mod_SOURCES): Added. | |
31728 | (vga_mod_CFLAGS): Likewise. | |
31729 | (vga_mod_LDFLAGS): Likewise. | |
31730 | ||
31731 | * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in | |
31732 | grub_outb() calls. | |
31733 | (set_map_mask): Likewise. | |
31734 | (set_read_map): Likewise. | |
31735 | (set_read_address): Likewise. | |
31736 | (vga_font): Removed variable. | |
31737 | (get_vga_glyph): Removed function. | |
31738 | (invalidate_char): Likewise. | |
31739 | (write_char): Changed to use grub_font_get_glyph() for font | |
31740 | information. | |
31741 | (grub_vga_putchar): Likewise. | |
31742 | (grub_vga_getcharwidth): Likewise. | |
31743 | ||
6433b448 | 31744 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
31745 | ||
31746 | * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target | |
31747 | flags. | |
31748 | (pxeboot_img_LDFLAGS): Likewise. | |
31749 | (diskboot_img_LDFLAGS): Likewise. | |
31750 | (kernel_img_LDFLAGS): Likewise. | |
31751 | ||
49178511 | 31752 | 2007-11-06 Robert Millan <rmh@aybabtu.com> |
31753 | ||
31754 | * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments | |
31755 | in grub_outb() calls. | |
31756 | (serial_hw_init): Likewise. | |
31757 | ||
53b052de | 31758 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
31759 | ||
31760 | * util/update-grub.in: Allow files in ${update_grub_dir} to contain | |
31761 | spaces. Skip non-regular files. | |
31762 | ||
5ab33bba | 31763 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
31764 | ||
31765 | * kern/disk.c (grub_disk_firmware_fini) | |
31766 | (grub_disk_firmware_is_tainted): New variables. | |
31767 | ||
31768 | * include/grub/disk.h (grub_disk_firmware_fini) | |
31769 | (grub_disk_firmware_is_tainted): Likewise. | |
31770 | ||
31771 | * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ... | |
31772 | (grub_disk_biosdisk_fini): ... to here. | |
31773 | (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini(). | |
31774 | (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted' | |
31775 | is set. Register grub_disk_biosdisk_fini() in | |
31776 | `grub_disk_firmware_fini'. | |
31777 | ||
31778 | * disk/ata.c: Remove `<grub/machine/biosdisk.h>'. | |
31779 | (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call. | |
31780 | Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini' | |
31781 | to finish existing firmware disk interface. | |
31782 | ||
31783 | * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'. | |
31784 | (ata_mod_SOURCES): New variable. | |
31785 | (ata_mod_CFLAGS): Likewise. | |
31786 | (ata_mod_LDFLAGS): Likewise. | |
31787 | ||
0149ab7c | 31788 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
31789 | ||
31790 | * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'. | |
31791 | (grub_ata_wait): Reimplement using grub_millisleep(). | |
31792 | ||
31793 | * include/grub/misc.h (grub_div_roundup): Fix parenthesization. | |
31794 | * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction. | |
31795 | ||
be7ac41e | 31796 | 2007-11-03 Marco Gerards <marco@gnu.org> |
31797 | ||
31798 | * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>. | |
31799 | (CRTC_ADDR_PORT): New macro. | |
31800 | (CRTC_DATA_PORT): Likewise. | |
31801 | (CRTC_CURSOR): Likewise. | |
31802 | (CRTC_CURSOR_ADDR_HIGH): Likewise. | |
31803 | (CRTC_CURSOR_ADDR_LOW): Likewise. | |
31804 | (update_cursor): New function. | |
31805 | (grub_console_real_putchar): Call `update_cursor'. | |
31806 | (grub_console_gotoxy): Likewise. | |
31807 | (grub_console_cls): Set the default color when clearing the | |
31808 | screen. | |
31809 | (grub_console_setcursor): Implemented. | |
31810 | ||
bb06ab2e | 31811 | 2007-11-03 Marco Gerards <marco@gnu.org> |
31812 | ||
31813 | * disk/ata.c (grub_ata_pio_read): Don't wait for the command to | |
31814 | become activate. | |
31815 | (grub_ata_pio_write): Likewise. | |
31816 | ||
31817 | (grub_atapi_identify): Wait after issuing an ATA command. | |
31818 | (grub_atapi_packet): Likewise. | |
31819 | (grub_ata_identify): Likewise. | |
31820 | (grub_ata_readwrite): Likewise. | |
31821 | ||
cf8f780b | 31822 | 2007-11-03 Marco Gerards <marco@gnu.org> |
31823 | ||
31824 | * disk/ata.c (grub_ata_pio_read): Detect and return the error code. | |
31825 | (grub_ata_pio_write): Likewise. | |
31826 | (grub_ata_readwrite): Use `grub_error', instead of | |
31827 | returning `grub_errno'. | |
31828 | ||
ed649e54 | 31829 | 2007-11-03 Marco Gerards <marco@gnu.org> |
31830 | ||
31831 | * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and | |
31832 | grub_ata_pio_write once for every single sector, instead of for | |
31833 | multiple sectors. | |
31834 | ||
ca25d8f0 | 31835 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
31836 | ||
31837 | * configure.ac: Add `i386-linuxbios' to the list of supported targets. | |
31838 | ||
31839 | * conf/i386-linuxbios.rmk: New file. | |
31840 | ||
31841 | * kern/i386/pc/hardware.c: Likewise. | |
31842 | * term/i386/pc/at_keyboard.c: Likewise. | |
31843 | * term/i386/pc/vga_text.c: Likewise. | |
31844 | ||
31845 | * include/grub/i386/linuxbios/boot.h: Likewise. | |
31846 | * include/grub/i386/linuxbios/console.h: Likewise. | |
31847 | * include/grub/i386/linuxbios/init.h: Likewise. | |
31848 | * include/grub/i386/linuxbios/kernel.h: Likewise. | |
31849 | * include/grub/i386/linuxbios/loader.h: Likewise. | |
31850 | * include/grub/i386/linuxbios/memory.h: Likewise. | |
31851 | * include/grub/i386/linuxbios/serial.h: Likewise. | |
31852 | * include/grub/i386/linuxbios/time.h: Likewise. | |
31853 | ||
31854 | * kern/i386/linuxbios/init.c: Likewise. | |
31855 | * kern/i386/linuxbios/startup.S: Likewise. | |
31856 | * kern/i386/linuxbios/table.c: Likewise. | |
31857 | ||
e911ecc1 | 31858 | 2007-10-31 Marco Gerards <marco@gnu.org> |
31859 | ||
31860 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'. | |
31861 | (ata_mod_SOURCES): New variable. | |
31862 | (ata_mod_CFLAGS): Likewise. | |
31863 | (ata_mod_LDFLAGS): Likewise. | |
31864 | ||
31865 | * disk/ata.c: New file. | |
31866 | ||
31867 | * include/grub/disk.h (grub_disk_dev_id): Add | |
31868 | `GRUB_DISK_DEV_ATA_ID'. | |
f19dbdb7 | 31869 | |
7f66d0e0 | 31870 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
31871 | ||
31872 | * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ... | |
31873 | * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here. | |
31874 | ||
31875 | * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ... | |
31876 | * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here. | |
31877 | ||
31878 | * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and | |
31879 | `<grub/types.h>'. | |
31880 | ||
31881 | * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'. | |
31882 | ||
5cd7dd46 | 31883 | 2007-10-27 Robert Millan <rmh@aybabtu.com> |
31884 | ||
3236ca65 | 31885 | * include/grub/types.h (ULONG_MAX): Define macro. |
5cd7dd46 | 31886 | |
2ebfc90f | 31887 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
31888 | ||
31889 | * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include | |
31890 | `"../realmode.S"'. | |
31891 | Remove `"kern/i386/loader.S"'. Include `"../loader.S"'. | |
31892 | ||
73fcb0f3 | 31893 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
31894 | ||
31895 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'. | |
31896 | (pkgdata_MODULES): Add `biosdisk.mod'. | |
31897 | (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New | |
31898 | variables. | |
31899 | ||
31900 | * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'. | |
31901 | (grub_biosdisk_init): Replace with ... | |
31902 | (GRUB_MOD_INIT(biosdisk)): ... this. | |
31903 | (grub_biosdisk_fini): Replace with ... | |
31904 | (GRUB_MOD_FINI(biosdisk)): ... this. | |
31905 | ||
31906 | * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'. | |
31907 | (grub_machine_init): Remove call to grub_biosdisk_init(). | |
31908 | (grub_machine_fini): Remove call to grub_machine_fini(). | |
31909 | ||
31910 | * util/i386/pc/grub-install.in (modules): Add `biosdisk'. | |
31911 | ||
3381d274 | 31912 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
31913 | ||
31914 | * include/grub/time.h: New file. | |
31915 | * include/grub/i386/time.h: Likewise. | |
31916 | * include/grub/powerpc/time.h: Likewise. | |
31917 | * include/grub/sparc64/time.h: Likewise. | |
31918 | ||
31919 | * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all | |
31920 | instances to ... | |
31921 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
31922 | * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
31923 | instances to ... | |
31924 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
31925 | * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
31926 | instances to ... | |
31927 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
31928 | ||
31929 | * kern/i386/efi/init.c: Include `<grub/time.h>'. | |
31930 | (grub_millisleep): New function. | |
31931 | * kern/i386/pc/init.c: Include `<grub/time.h>'. | |
31932 | (grub_millisleep): New function. | |
31933 | * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'. | |
31934 | Remove `grub/machine/time.h' include. | |
31935 | (grub_millisleep): New function. | |
31936 | * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'. | |
31937 | Remove `grub/machine/time.h' include. | |
31938 | (grub_millisleep): New function. | |
31939 | ||
31940 | * include/grub/misc.h (grub_div_roundup): New function. | |
31941 | ||
31942 | * kern/misc.c: Include `<grub/time.h>'. | |
31943 | (grub_millisleep_generic): New function. | |
31944 | ||
31945 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'. | |
31946 | Add `time.h'. | |
31947 | * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'. | |
31948 | Add `time.h'. | |
31949 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove | |
31950 | `machine/time.h'. Add `time.h'. | |
31951 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
31952 | ||
a39a0312 | 31953 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
31954 | ||
31955 | * include/grub/misc.h (grub_max): New function. | |
31956 | ||
2aad70e2 | 31957 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
31958 | ||
31959 | * util/misc.c (grub_util_info): Call fflush() before returning. | |
31960 | ||
54b71c4b | 31961 | 2007-10-20 Robert Millan <rmh@aybabtu.com> |
31962 | ||
31963 | * genmk.rb (Image): Copy `extra_flags' from here ... | |
31964 | (PModule): ... to here. Use it in `#{obj}: #{src}' rule. | |
31965 | ||
31966 | * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused)) | |
31967 | to `argc' and `args' arguments. | |
31968 | ||
a979f513 | 31969 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
31970 | ||
31971 | * kern/i386/loader.S: New file. | |
31972 | ||
31973 | * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ... | |
31974 | * kern/i386/loader.S (grub_linux_prot_size)... to here. | |
31975 | * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ... | |
31976 | * kern/i386/loader.S (grub_linux_tmp_addr)... to here. | |
31977 | * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ... | |
31978 | * kern/i386/loader.S (grub_linux_real_addr)... to here. | |
31979 | * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ... | |
31980 | * kern/i386/loader.S (grub_linux_boot_zimage)... to here. | |
31981 | * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ... | |
31982 | * kern/i386/loader.S (grub_linux_boot_bzimage)... to here. | |
31983 | * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ... | |
31984 | * kern/i386/loader.S (grub_multiboot_real_boot)... to here. | |
31985 | * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ... | |
31986 | * kern/i386/loader.S (grub_multiboot2_real_boot)... to here. | |
31987 | ||
31988 | * kern/i386/realmode.S: New file. | |
31989 | ||
31990 | * kern/i386/pc/startup.S (protstack): Moved from here ... | |
31991 | * kern/i386/realmode.S (protstack)... to here. | |
31992 | * kern/i386/pc/startup.S (gdt): Moved from here ... | |
31993 | * kern/i386/realmode.S (gdt)... to here. | |
31994 | * kern/i386/pc/startup.S (prot_to_real): Moved from here ... | |
31995 | * kern/i386/realmode.S (prot_to_real)... to here. | |
31996 | ||
31997 | * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and | |
31998 | `kern/i386/realmode.S'. | |
31999 | ||
825fc8fd | 32000 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
32001 | ||
32002 | * include/grub/i386/loader.h: New file. | |
32003 | ||
32004 | * include/grub/i386/pc/loader.h (grub_linux_prot_size) | |
32005 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
32006 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
32007 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
32008 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ... | |
32009 | * include/grub/i386/loader.h (grub_linux_prot_size) | |
32010 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
32011 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
32012 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
32013 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here. | |
32014 | ||
32015 | * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'. | |
32016 | ||
e179b2f4 | 32017 | 2007-10-15 Robert Millan <rmh@aybabtu.com> |
32018 | ||
32019 | * normal/misc.c (grub_normal_print_device_info): Do not probe for | |
32020 | filesystem when dev->disk is unset. | |
32021 | Do probe for filesystem even when dev->disk->has_partitions is set. | |
32022 | In case a filesystem is found, always report it. | |
32023 | In case it isn't, if dev->disk->has_partitions is set, report that | |
32024 | a partition table was found instead of reporting that no filesystem | |
32025 | could be identified. | |
32026 | ||
5db82af6 | 32027 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
32028 | ||
32029 | * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference | |
32030 | to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c. | |
32031 | ||
68f6ac74 | 32032 | * include/grub/types.h (grub_host_to_target16): New macro. |
32033 | (grub_host_to_target32): Likewise. | |
32034 | (grub_host_to_target64): Likewise. | |
32035 | (grub_target_to_host16): Likewise. | |
32036 | (grub_target_to_host32): Likewise. | |
32037 | (grub_target_to_host64): Likewise. | |
5db82af6 | 32038 | |
32039 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
32040 | Renamed from to ... | |
32041 | (GRUB_MOD_ALIGN): ...this. Update all users. | |
32042 | ||
68f6ac74 | 32043 | * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with |
32044 | grub_host_to_target32. | |
32045 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
32046 | (load_modules): Likewise. | |
32047 | (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16. | |
32048 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
32049 | Replace grub_cpu_to_be16 with grub_host_to_target16. | |
32050 | Replace grub_cpu_to_be32 grub_host_to_target32. | |
5db82af6 | 32051 | |
3cf497cc | 32052 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
32053 | ||
32054 | * util/powerpc/ieee1275/grub-mkimage.c: Moved to ... | |
32055 | * util/elf/grub-mkimage.c: ... here. | |
32056 | ||
32057 | * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove | |
32058 | `util/powerpc/ieee1275/grub-mkimage.c'. | |
32059 | ||
c8cc3692 | 32060 | 2007-10-07 Robert Millan <rmh@aybabtu.com> |
adbc4c9d | 32061 | |
c8cc3692 | 32062 | * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR, |
32063 | and make it easier to figure out. | |
32064 | Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions. | |
32065 | (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter. | |
32066 | Do not avoid claiming a region above HEAP_MAX_ADDR if that would | |
32067 | leave us with less than HEAP_MIN_SIZE total heap. | |
32068 | Avoid our total amount of heap to surpass HEAP_MAX_SIZE. | |
adbc4c9d | 32069 | |
5c58b791 | 32070 | 2007-10-03 Robert Millan <rmh@aybabtu.com> |
32071 | ||
32072 | * include/grub/i386/io.h: New file. | |
32073 | * commands/i386/pc/play.c (inb): Removed. | |
32074 | (outb): Removed. | |
32075 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
32076 | with grub_outb(). | |
afcd2ef8 | 32077 | * term/i386/pc/serial.c (inb): Removed. |
32078 | (outb): Removed. | |
32079 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
32080 | with grub_outb(). | |
32081 | * term/i386/pc/vga.c (inb): Removed. | |
32082 | (outb): Removed. | |
32083 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
32084 | with grub_outb(). | |
5c58b791 | 32085 | |
1a477ed6 | 32086 | 2007-10-02 Robert Millan <rmh@aybabtu.com> |
32087 | ||
32088 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c. | |
32089 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
32090 | Reported by Marcin Kurek. | |
32091 | ||
6b5d80fa | 32092 | 2007-09-07 Robert Millan <rmh@aybabtu.com> |
32093 | ||
32094 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect | |
32095 | SmartFirmware version updates (as released by Sven Luther), and avoid | |
32096 | setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or | |
32097 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is | |
32098 | known broken. | |
32099 | ||
5618afbf | 32100 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
32101 | ||
32102 | From Hitoshi Ozeki: | |
32103 | * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS | |
32104 | when merging two regions. | |
32105 | ||
6139dcd9 | 32106 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
32107 | ||
508e39ee | 32108 | * kern/rescue.c (grub_enter_rescue_mode): Free ARGS. |
32109 | * normal/completion.c (grub_normal_do_completion): Likewise. | |
32110 | Reported by Hitoshi Ozeki. | |
32111 | ||
32112 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 32113 | |
6139dcd9 | 32114 | Do not use devices at boot in chainloading. |
f19dbdb7 | 32115 | |
6139dcd9 | 32116 | * loader/i386/pc/chainloader.c (boot_drive): New variable. |
32117 | (boot_part_addr): Likewise. | |
32118 | (grub_chainloader_boot): Simply call grub_chainloader_real_boot | |
32119 | with BOOT_DRIVE and BOOT_PART_ADDR. | |
32120 | (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR. | |
32121 | Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>. | |
32122 | ||
38da6516 | 32123 | 2007-08-29 Robert Millan <rmh@aybabtu.com> |
32124 | ||
32125 | Patch from Simon Peter <dn.tlp@gmx.net>: | |
32126 | * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets. | |
32127 | * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with | |
32128 | util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with | |
32129 | util/i386/pc/grub-setup.c_DEPENDENCIES. | |
32130 | * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with | |
32131 | util/grub-probe.c_DEPENDENCIES. | |
32132 | * conf/powerpc-ieee1275.rmk: Likewise. | |
32133 | ||
29d0928c | 32134 | 2007-08-28 Robert Millan <rmh@aybabtu.com> |
32135 | ||
32136 | * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name() | |
32137 | to tell grub-mkdevicemap how to name devices. | |
32138 | * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a" | |
32139 | feature). | |
32140 | ||
32141 | * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add | |
32142 | util/i386/get_disk_name.c. | |
32143 | * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise. | |
32144 | * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add | |
32145 | util/ieee1275/get_disk_name.c. | |
32146 | ||
32147 | * include/grub/util/misc.h: grub_util_get_disk_name() declaration. | |
32148 | ||
32149 | * DISTLIST: Add util/i386/get_disk_name.c and | |
32150 | util/ieee1275/get_disk_name.c. | |
32151 | ||
32152 | * util/grub-mkdevicemap.c: Replace device naming logic with | |
32153 | grub_util_get_disk_name() calls. | |
32154 | ||
5a0d3cca | 32155 | 2007-08-20 Robert Millan <rmh@aybabtu.com> |
32156 | ||
32157 | * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds" | |
32158 | (so that it works for both plural and singular quantities). | |
32159 | ||
8b72db2f | 32160 | 2007-08-05 Robert Millan <rmh@aybabtu.com> |
32161 | ||
32162 | * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix | |
32163 | so that [xz] isn't taken into account when determining order. | |
32164 | ||
352466bf | 32165 | 2007-08-02 Marco Gerards <marco@gnu.org> |
32166 | ||
32167 | * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h', | |
32168 | `include/multiboot2.h', `include/grub/elfload.h', | |
32169 | `include/multiboot.h', `include/grub/multiboot.h', | |
32170 | `include/grub/multiboot_loader.h', `include/grub/multiboot2.h', | |
32171 | `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h', | |
32172 | `kern/elf.c', `loader/multiboot_loader.c', | |
32173 | `loader/multiboot_loader_normal.c', `loader/multiboot2.c', | |
32174 | `loader/i386/pc/multiboot2.c', | |
32175 | `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and | |
32176 | `util/i386/pc/grub-mkrescue.in'. Remove | |
32177 | `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h', | |
32178 | `include/grub/i386/pc/util/biosdisk.h' and | |
32179 | `include/grub/powerpc/ieee1275/multiboot.h'. | |
32180 | ||
8f096014 | 32181 | 2007-08-02 Bean <bean123ch@gmail.com> |
32182 | ||
32183 | * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod. | |
32184 | (ntfs_mod_SOURCES): New variable. | |
32185 | (ntfs_mod_CFLAGS): Likewise. | |
32186 | (ntfs_mod_LDFLAGS): Likewise. | |
32187 | ||
32188 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c. | |
32189 | (grub_probe_SOURCES): Likewise. | |
32190 | (grub_emu_SOURCES): Likewise. | |
32191 | ||
32192 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
32193 | (grub_emu_SOURCES): Likewise. | |
32194 | ||
32195 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
32196 | (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 32197 | |
8f096014 | 32198 | * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug. |
32199 | ||
32200 | * fs/ntfs.c: New file. | |
32201 | ||
9959f7db | 32202 | 2007-08-02 Bean <bean123ch@gmail.com> |
32203 | ||
32204 | * disk.h (grub_disk): Use NESTED_FUNC_ATTR. | |
32205 | ||
32206 | * file.h (grub_file): Likewise. | |
32207 | ||
32208 | * fshelp.h (grub_fshelp_read_file): Likewise. | |
32209 | ||
32210 | * util/i386/pc/grub-setup.c (setup): Likewise. | |
32211 | (save_first_sector): Likewise. | |
32212 | (save_blocklists): Likewise. | |
f19dbdb7 | 32213 | |
9959f7db | 32214 | * fs/affs.c (grub_affs_read_file): Likewise. |
32215 | ||
32216 | * fs/ext2.c (grub_ext2_read_file): Likewise. | |
32217 | ||
32218 | * fs/fat.c (grub_fat_read_data): Likewise. | |
32219 | ||
32220 | * fs/fshelp.c (grub_fshelp_read_file): Likewise. | |
32221 | ||
32222 | * fs/hfs.c (grub_hfs_read_file): Likewise. | |
32223 | ||
32224 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
32225 | ||
32226 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
32227 | ||
32228 | * fs/minix.c (grub_minix_read_file): Likewise. | |
32229 | ||
32230 | * fs/sfs.c (grub_sfs_read_file): Likewise. | |
32231 | ||
32232 | * fs/ufs.c (grub_ufs_read_file): Likewise. | |
f19dbdb7 | 32233 | |
9959f7db | 32234 | * fs/xfs.c (grub_xfs_read_file): Likewise. |
32235 | ||
32236 | * command/blocklist.c (read_blocklist): Likewise. | |
32237 | (print_blocklist): Likewise. | |
32238 | ||
0a203f83 | 32239 | 2007-08-02 Marco Gerards <marco@gnu.org> |
32240 | ||
32241 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and | |
32242 | `util/hostfs.c'. | |
32243 | ||
32244 | * disk/host.c: New file. | |
32245 | ||
32246 | * util/hostfs.c: Likewise. | |
32247 | ||
32248 | * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk, | |
32249 | return `GRUB_ERR_BAD_FS'. | |
32250 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
32251 | * fs/xfs.c (grub_xfs_mount): Likewise. | |
32252 | ||
32253 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
32254 | `GRUB_DISK_DEVICE_HOST_ID'. | |
32255 | ||
32256 | * util/grub-emu.c (main): Initialize and de-initialize hostfs. | |
32257 | ||
e5dfe777 | 32258 | 2007-07-24 Jerone Young <jerone@gmail.com> |
32259 | ||
f19dbdb7 | 32260 | * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot |
e5dfe777 | 32261 | modules for compilation. |
32262 | * conf/powerpc-ieee1275.rmk: Likewise. | |
32263 | ||
32264 | * include/multiboot.h: Move multiboot definitions to one file. Rename | |
32265 | many definitions to not get grub specific. | |
32266 | * include/multiboot2.h: Create header with multiboot 2 definitions. | |
32267 | * include/grub/multiboot.h: Header for grub specific function | |
32268 | prototypes and definitions. | |
32269 | * include/grub/multiboot2.h: Likewise. | |
32270 | * include/grub/multiboot_loader.h: Likewise. | |
32271 | * include/grub/i386/pc/multiboot.h: Removed. | |
32272 | * include/grub/powerpc/ieee1275/multiboot.h: Removed. | |
32273 | ||
32274 | * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1 | |
32275 | and 2 to allow for one multiboot and module commands. | |
32276 | * loader/multiboot2.c: Add multiboot2 functionality. | |
32277 | * loader/i386/pc/multiboot.c: Modify for new multiboot header location | |
32278 | and definition names. | |
32279 | * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot | |
32280 | 2 functions. | |
32281 | * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc | |
32282 | ieee1275 specific multiboot2 code. | |
32283 | ||
32284 | * kern/i386/pc/startup.S: Change headers and definition names for | |
32285 | multiboot. Add function grub_multiboot2_real_boot for multiboot 2. | |
32286 | ||
daf0f0ba | 32287 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
32288 | ||
32289 | * geninitheader.sh: Process file specified in first parameter rather | |
32290 | than hardcoding grub_modules_init.lst. | |
fe6b695a | 32291 | * geninit.sh: Likewise. Also, construct header name dynamically rather |
daf0f0ba | 32292 | than hardcoding grub_modules_init.h. |
32293 | ||
32294 | * conf/common.rmk: Rename grub_modules_init.[ch] files associated with | |
32295 | grub-emu to grub_emu_init.[ch]. Add rules to build analogous | |
32296 | grub_probe_init.[ch] and grub_setup_init.[ch]. | |
32297 | ||
32298 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace | |
32299 | grub_modules_init.h with grub_emu_init.h. | |
32300 | (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new | |
32301 | grub_probe_init.[ch] files. | |
32302 | * conf/i386-efi.rmk: Likewise. | |
32303 | * conf/i386-pc.rmk: Likewise. | |
32304 | (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new | |
32305 | grub_setup_init.[ch] files. | |
32306 | ||
32307 | * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h. | |
32308 | * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all() | |
32309 | to initialize modules rather than a list of hardcoded functions. | |
32310 | * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use | |
32311 | grub_init_all() to initialize modules rather than a list of hardcoded | |
32312 | functions. | |
32313 | ||
54cdc1cc | 32314 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
32315 | ||
32316 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
32317 | GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware. | |
32318 | ||
ad0686cc | 32319 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
32320 | ||
32321 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
32322 | GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag. | |
32323 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this | |
32324 | flag when running on SmartFirmware. | |
32325 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running | |
32326 | "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT | |
32327 | was set. | |
32328 | ||
32329 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
32330 | Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set, | |
32331 | rather than decreasing it. | |
32332 | ||
32333 | * util/i386/pc/grub-setup.c (setup): When embedding is required, but | |
32334 | there's not enough space to do it, fail in the same way as when it | |
32335 | can't be done because there are no partitions. | |
32336 | ||
32337 | * util/powerpc/ieee1275/grub-install.in: Improve error message shown | |
32338 | when nvsetenv failed. | |
32339 | ||
969c02ec | 32340 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
32341 | ||
32342 | * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue, | |
32343 | because this rule is automatically generated. | |
32344 | (grub-mkrescue): Removed for the same reason as above. | |
32345 | ||
5a79f472 | 32346 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
32347 | ||
32348 | Migrate to GNU General Public License Version 3. | |
f19dbdb7 | 32349 | |
5a79f472 | 32350 | * COPYING: Replaced with the plain text version of GPLv3. |
32351 | ||
32352 | * config.guess: Updated from gnulib. | |
32353 | * config.sub: Likewise. | |
32354 | ||
32355 | * geninit.sh: Output a GPLv3 copyright notice. | |
32356 | * geninitheader.sh: Likewise. | |
32357 | * genmodsrc.sh: Likewise. | |
32358 | * gensymlist.sh.in: Likewise. | |
32359 | ||
32360 | * boot/i386/pc/boot.S: Upgraded to GPLv3. | |
32361 | * boot/i386/pc/diskboot.S: Likewise. | |
32362 | * boot/i386/pc/pxeboot.S: Likewise. | |
32363 | * commands/blocklist.c: Likewise. | |
32364 | * commands/boot.c: Likewise. | |
32365 | * commands/cat.c: Likewise. | |
32366 | * commands/cmp.c: Likewise. | |
32367 | * commands/configfile.c: Likewise. | |
32368 | * commands/echo.c: Likewise. | |
32369 | * commands/help.c: Likewise. | |
32370 | * commands/ls.c: Likewise. | |
32371 | * commands/search.c: Likewise. | |
32372 | * commands/terminal.c: Likewise. | |
32373 | * commands/test.c: Likewise. | |
32374 | * commands/videotest.c: Likewise. | |
32375 | * commands/i386/cpuid.c: Likewise. | |
32376 | * commands/i386/pc/halt.c: Likewise. | |
32377 | * commands/i386/pc/play.c: Likewise. | |
32378 | * commands/i386/pc/reboot.c: Likewise. | |
32379 | * commands/i386/pc/vbeinfo.c: Likewise. | |
32380 | * commands/i386/pc/vbetest.c: Likewise. | |
32381 | * commands/ieee1275/halt.c: Likewise. | |
32382 | * commands/ieee1275/reboot.c: Likewise. | |
32383 | * commands/ieee1275/suspend.c: Likewise. | |
32384 | * disk/loopback.c: Likewise. | |
32385 | * disk/lvm.c: Likewise. | |
32386 | * disk/raid.c: Likewise. | |
32387 | * disk/efi/efidisk.c: Likewise. | |
32388 | * disk/i386/pc/biosdisk.c: Likewise. | |
32389 | * disk/ieee1275/ofdisk.c: Likewise. | |
32390 | * font/manager.c: Likewise. | |
32391 | * fs/affs.c: Likewise. | |
32392 | * fs/ext2.c: Likewise. | |
32393 | * fs/fat.c: Likewise. | |
32394 | * fs/fshelp.c: Likewise. | |
32395 | * fs/hfs.c: Likewise. | |
32396 | * fs/hfsplus.c: Likewise. | |
32397 | * fs/iso9660.c: Likewise. | |
32398 | * fs/jfs.c: Likewise. | |
32399 | * fs/minix.c: Likewise. | |
32400 | * fs/sfs.c: Likewise. | |
32401 | * fs/ufs.c: Likewise. | |
32402 | * fs/xfs.c: Likewise. | |
32403 | * hello/hello.c: Likewise. | |
32404 | * include/grub/acorn_filecore.h: Likewise. | |
32405 | * include/grub/arg.h: Likewise. | |
32406 | * include/grub/bitmap.h: Likewise. | |
32407 | * include/grub/boot.h: Likewise. | |
32408 | * include/grub/cache.h: Likewise. | |
32409 | * include/grub/device.h: Likewise. | |
32410 | * include/grub/disk.h: Likewise. | |
32411 | * include/grub/dl.h: Likewise. | |
32412 | * include/grub/elfload.h: Likewise. | |
32413 | * include/grub/env.h: Likewise. | |
32414 | * include/grub/err.h: Likewise. | |
32415 | * include/grub/file.h: Likewise. | |
32416 | * include/grub/font.h: Likewise. | |
32417 | * include/grub/fs.h: Likewise. | |
32418 | * include/grub/fshelp.h: Likewise. | |
32419 | * include/grub/gzio.h: Likewise. | |
32420 | * include/grub/hfs.h: Likewise. | |
32421 | * include/grub/kernel.h: Likewise. | |
32422 | * include/grub/loader.h: Likewise. | |
32423 | * include/grub/lvm.h: Likewise. | |
32424 | * include/grub/misc.h: Likewise. | |
32425 | * include/grub/mm.h: Likewise. | |
32426 | * include/grub/net.h: Likewise. | |
32427 | * include/grub/normal.h: Likewise. | |
32428 | * include/grub/parser.h: Likewise. | |
32429 | * include/grub/partition.h: Likewise. | |
32430 | * include/grub/pc_partition.h: Likewise. | |
32431 | * include/grub/raid.h: Likewise. | |
32432 | * include/grub/rescue.h: Likewise. | |
32433 | * include/grub/script.h: Likewise. | |
32434 | * include/grub/setjmp.h: Likewise. | |
32435 | * include/grub/symbol.h: Likewise. | |
32436 | * include/grub/term.h: Likewise. | |
32437 | * include/grub/terminfo.h: Likewise. | |
32438 | * include/grub/tparm.h: Likewise. | |
32439 | * include/grub/types.h: Likewise. | |
32440 | * include/grub/video.h: Likewise. | |
32441 | * include/grub/efi/api.h: Likewise. | |
32442 | * include/grub/efi/chainloader.h: Likewise. | |
32443 | * include/grub/efi/console.h: Likewise. | |
32444 | * include/grub/efi/console_control.h: Likewise. | |
32445 | * include/grub/efi/disk.h: Likewise. | |
32446 | * include/grub/efi/efi.h: Likewise. | |
32447 | * include/grub/efi/pe32.h: Likewise. | |
32448 | * include/grub/efi/time.h: Likewise. | |
32449 | * include/grub/i386/linux.h: Likewise. | |
32450 | * include/grub/i386/setjmp.h: Likewise. | |
32451 | * include/grub/i386/types.h: Likewise. | |
32452 | * include/grub/i386/efi/kernel.h: Likewise. | |
32453 | * include/grub/i386/efi/loader.h: Likewise. | |
32454 | * include/grub/i386/efi/time.h: Likewise. | |
32455 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
32456 | * include/grub/i386/pc/boot.h: Likewise. | |
32457 | * include/grub/i386/pc/chainloader.h: Likewise. | |
32458 | * include/grub/i386/pc/console.h: Likewise. | |
32459 | * include/grub/i386/pc/init.h: Likewise. | |
32460 | * include/grub/i386/pc/kernel.h: Likewise. | |
32461 | * include/grub/i386/pc/loader.h: Likewise. | |
32462 | * include/grub/i386/pc/memory.h: Likewise. | |
32463 | * include/grub/i386/pc/multiboot.h: Likewise. | |
32464 | * include/grub/i386/pc/serial.h: Likewise. | |
32465 | * include/grub/i386/pc/time.h: Likewise. | |
32466 | * include/grub/i386/pc/vbe.h: Likewise. | |
32467 | * include/grub/i386/pc/vbeblit.h: Likewise. | |
32468 | * include/grub/i386/pc/vbefill.h: Likewise. | |
32469 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
32470 | * include/grub/i386/pc/vga.h: Likewise. | |
32471 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
32472 | * include/grub/ieee1275/ofdisk.h: Likewise. | |
32473 | * include/grub/powerpc/libgcc.h: Likewise. | |
32474 | * include/grub/powerpc/setjmp.h: Likewise. | |
32475 | * include/grub/powerpc/types.h: Likewise. | |
32476 | * include/grub/powerpc/ieee1275/biosdisk.h: Likewise. | |
32477 | * include/grub/powerpc/ieee1275/console.h: Likewise. | |
32478 | * include/grub/powerpc/ieee1275/ieee1275.h: Likewise. | |
32479 | * include/grub/powerpc/ieee1275/kernel.h: Likewise. | |
32480 | * include/grub/powerpc/ieee1275/loader.h: Likewise. | |
32481 | * include/grub/powerpc/ieee1275/multiboot.h: Likewise. | |
32482 | * include/grub/powerpc/ieee1275/time.h: Likewise. | |
32483 | * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
32484 | * include/grub/sparc64/libgcc.h: Likewise. | |
32485 | * include/grub/sparc64/setjmp.h: Likewise. | |
32486 | * include/grub/sparc64/types.h: Likewise. | |
32487 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
32488 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
32489 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
32490 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
32491 | * include/grub/util/biosdisk.h: Likewise. | |
32492 | * include/grub/util/getroot.h: Likewise. | |
32493 | * include/grub/util/lvm.h: Likewise. | |
32494 | * include/grub/util/misc.h: Likewise. | |
32495 | * include/grub/util/raid.h: Likewise. | |
32496 | * include/grub/util/resolve.h: Likewise. | |
32497 | * io/gzio.c: Likewise. | |
32498 | * kern/device.c: Likewise. | |
32499 | * kern/disk.c: Likewise. | |
32500 | * kern/dl.c: Likewise. | |
32501 | * kern/elf.c: Likewise. | |
32502 | * kern/env.c: Likewise. | |
32503 | * kern/err.c: Likewise. | |
32504 | * kern/file.c: Likewise. | |
32505 | * kern/fs.c: Likewise. | |
32506 | * kern/loader.c: Likewise. | |
32507 | * kern/main.c: Likewise. | |
32508 | * kern/misc.c: Likewise. | |
32509 | * kern/mm.c: Likewise. | |
32510 | * kern/parser.c: Likewise. | |
32511 | * kern/partition.c: Likewise. | |
32512 | * kern/rescue.c: Likewise. | |
32513 | * kern/term.c: Likewise. | |
32514 | * kern/efi/efi.c: Likewise. | |
32515 | * kern/efi/init.c: Likewise. | |
32516 | * kern/efi/mm.c: Likewise. | |
32517 | * kern/i386/dl.c: Likewise. | |
32518 | * kern/i386/efi/init.c: Likewise. | |
32519 | * kern/i386/efi/startup.S: Likewise. | |
32520 | * kern/i386/pc/init.c: Likewise. | |
32521 | * kern/i386/pc/lzo1x.S: Likewise. | |
32522 | * kern/i386/pc/startup.S: Likewise. | |
32523 | * kern/ieee1275/ieee1275.c: Likewise. | |
32524 | * kern/powerpc/cache.S: Likewise. | |
32525 | * kern/powerpc/dl.c: Likewise. | |
32526 | * kern/powerpc/ieee1275/cmain.c: Likewise. | |
32527 | * kern/powerpc/ieee1275/crt0.S: Likewise. | |
32528 | * kern/powerpc/ieee1275/init.c: Likewise. | |
32529 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
32530 | * kern/sparc64/cache.S: Likewise. | |
32531 | * kern/sparc64/dl.c: Likewise. | |
32532 | * kern/sparc64/ieee1275/init.c: Likewise. | |
32533 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
32534 | * loader/efi/chainloader.c: Likewise. | |
32535 | * loader/efi/chainloader_normal.c: Likewise. | |
32536 | * loader/i386/efi/linux.c: Likewise. | |
32537 | * loader/i386/efi/linux_normal.c: Likewise. | |
32538 | * loader/i386/pc/chainloader.c: Likewise. | |
32539 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
32540 | * loader/i386/pc/linux.c: Likewise. | |
32541 | * loader/i386/pc/linux_normal.c: Likewise. | |
32542 | * loader/i386/pc/multiboot.c: Likewise. | |
32543 | * loader/i386/pc/multiboot_normal.c: Likewise. | |
32544 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
32545 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
32546 | * normal/arg.c: Likewise. | |
32547 | * normal/cmdline.c: Likewise. | |
32548 | * normal/command.c: Likewise. | |
32549 | * normal/completion.c: Likewise. | |
32550 | * normal/execute.c: Likewise. | |
32551 | * normal/function.c: Likewise. | |
32552 | * normal/lexer.c: Likewise. | |
32553 | * normal/main.c: Likewise. | |
32554 | * normal/menu.c: Likewise. | |
32555 | * normal/menu_entry.c: Likewise. | |
32556 | * normal/misc.c: Likewise. | |
32557 | * normal/parser.y: Likewise. | |
32558 | * normal/script.c: Likewise. | |
32559 | * normal/i386/setjmp.S: Likewise. | |
32560 | * normal/powerpc/setjmp.S: Likewise. | |
32561 | * normal/sparc64/setjmp.S: Likewise. | |
32562 | * partmap/acorn.c: Likewise. | |
32563 | * partmap/amiga.c: Likewise. | |
32564 | * partmap/apple.c: Likewise. | |
32565 | * partmap/gpt.c: Likewise. | |
32566 | * partmap/pc.c: Likewise. | |
32567 | * partmap/sun.c: Likewise. | |
32568 | * term/gfxterm.c: Likewise. | |
32569 | * term/terminfo.c: Likewise. | |
32570 | * term/efi/console.c: Likewise. | |
32571 | * term/i386/pc/console.c: Likewise. | |
32572 | * term/i386/pc/serial.c: Likewise. | |
32573 | * term/i386/pc/vesafb.c: Likewise. | |
32574 | * term/i386/pc/vga.c: Likewise. | |
32575 | * term/ieee1275/ofconsole.c: Likewise. | |
32576 | * util/biosdisk.c: Likewise. | |
32577 | * util/console.c: Likewise. | |
32578 | * util/genmoddep.c: Likewise. | |
32579 | * util/getroot.c: Likewise. | |
32580 | * util/grub-emu.c: Likewise. | |
32581 | * util/grub-mkdevicemap.c: Likewise. | |
32582 | * util/grub-probe.c: Likewise. | |
32583 | * util/lvm.c: Likewise. | |
32584 | * util/misc.c: Likewise. | |
32585 | * util/raid.c: Likewise. | |
32586 | * util/resolve.c: Likewise. | |
32587 | * util/update-grub.in: Likewise. | |
32588 | * util/update-grub_lib.in: Likewise. | |
32589 | * util/grub.d/00_header.in: Likewise. | |
32590 | * util/grub.d/10_hurd.in: Likewise. | |
32591 | * util/grub.d/10_linux.in: Likewise. | |
32592 | * util/i386/efi/grub-install.in: Likewise. | |
32593 | * util/i386/efi/grub-mkimage.c: Likewise. | |
32594 | * util/i386/pc/grub-install.in: Likewise. | |
32595 | * util/i386/pc/grub-mkimage.c: Likewise. | |
32596 | * util/i386/pc/grub-mkrescue.in: Likewise. | |
32597 | * util/i386/pc/grub-setup.c: Likewise. | |
32598 | * util/i386/pc/misc.c: Likewise. | |
32599 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
32600 | * util/powerpc/ieee1275/grub-mkimage.c: Likewise. | |
32601 | * util/powerpc/ieee1275/misc.c: Likewise. | |
32602 | * video/bitmap.c: Likewise. | |
32603 | * video/video.c: Likewise. | |
32604 | * video/i386/pc/vbe.c: Likewise. | |
32605 | * video/i386/pc/vbeblit.c: Likewise. | |
32606 | * video/i386/pc/vbefill.c: Likewise. | |
32607 | * video/i386/pc/vbeutil.c: Likewise. | |
32608 | * video/readers/tga.c: Likewise. | |
32609 | ||
3572d015 | 32610 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
32611 | ||
32612 | * conf/i386-efi.rmk: Replace obsolete reference to | |
32613 | util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c | |
32614 | with util/getroot.c. | |
32615 | * conf/powerpc-ieee1275.rmk: Likewise. | |
32616 | * conf/sparc64-ieee1275.rmk: Likewise. | |
32617 | ||
32618 | * util/grub-emu.c (main): Fix unchecked pointer handling. | |
32619 | ||
2c2a681b | 32620 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
32621 | ||
32622 | * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap' | |
32623 | invocation to fail, in order to support partition-less media. | |
32624 | ||
32625 | * util/i386/pc/grub-install.in: Likewise. | |
32626 | ||
32627 | * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine | |
32628 | which fs or partmap modules are needed (akin to its sister scripts). | |
32629 | ||
32630 | Also use grub-probe to get rid of unportable /proc/mounts check. | |
32631 | ||
32632 | Print the same informational message that the other scripts do, before | |
fe6b695a | 32633 | exiting. |
2c2a681b | 32634 | |
6193defe | 32635 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
32636 | ||
fe6b695a | 32637 | * util/update-grub_lib.in (font_path): New function. Determine whether |
6193defe | 32638 | a font file can be found and, if so, echo the GRUB path to it. |
32639 | ||
32640 | * util/update-grub.in: Handle multiple terminals depending on user | |
32641 | input, platform availability and font file presence. Propagate | |
32642 | variables of our findings to /etc/grub.d/ children. | |
32643 | ||
32644 | * util/grub.d/00_header.in: Handle multiple terminals, based on | |
32645 | environment setup by update-grub. | |
32646 | ||
eface1dc | 32647 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
32648 | ||
ba50d28f | 32649 | * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod. |
eface1dc | 32650 | |
bf697e28 | 32651 | 2007-06-21 Robert Millan <rmh@aybabtu.com> |
32652 | ||
32653 | * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to | |
32654 | indicate end of data section in kernel image. | |
32655 | * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and | |
32656 | GRUB_KERNEL_MACHINE_DATA_END. | |
32657 | ||
32658 | * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve | |
32659 | space for it. | |
32660 | * kern/i386/efi/startup.S: Likewise. | |
32661 | ||
32662 | * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub | |
32663 | during image generation. Implement --prefix option to override this | |
32664 | patch. | |
32665 | * util/i386/efi/grub-mkimage.c: Likewise. | |
32666 | ||
32667 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Split | |
32668 | code to make path relative to its root into a separate function. | |
32669 | ||
32670 | * util/i386/pc/grub-install.in: Use newly provided | |
32671 | make_system_path_relative_to_its_root() to convert ${grubdir}, then | |
32672 | pass the result to grub-install --prefix. | |
32673 | ||
baa574b4 | 32674 | 2007-06-13 Robert Millan <rmh@aybabtu.com> |
32675 | ||
32676 | * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and | |
32677 | DEFAULT_DEVICE_MAP. | |
32678 | * util/grub-emu.c: Use above definitions from misc.h instead of | |
32679 | defining them. | |
32680 | * util/grub-mkdevicemap.c: Likewise. | |
32681 | * util/i386/pc/grub-setup.c: Likewise. | |
32682 | * util/grub-probe.c: Likewise. | |
32683 | (probe): Abort with grub_util_error() when either | |
32684 | grub_guess_root_device or grub_util_get_grub_dev fails. | |
32685 | ||
0215dcbf | 32686 | 2007-06-12 Robert Millan <rmh@aybabtu.com> |
32687 | ||
32688 | * normal/command.c (grub_command_execute): Use NULL rather than 0 for | |
32689 | "pager" assignment. | |
32690 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for | |
32691 | "pcdata". | |
32692 | * util/grub-probe.c (probe): Likewise for "drive_name". | |
32693 | ||
8af2ab7b | 32694 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
32695 | ||
32696 | * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes, | |
32697 | not just the cdrom one. | |
32698 | ||
59d31694 | 32699 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
32700 | ||
32701 | * util/i386/pc/grub-mkrescue.in: Add "set -e". | |
32702 | Add --pkglibdir=DIR option to override pkglibdir. | |
32703 | Mention --image-type=TYPE in help output. | |
32704 | Fix --grub-mkimage (it was a no-op). | |
fe6b695a | 32705 | Abort gracefully when no parameter is given. |
59d31694 | 32706 | |
7ee367e4 | 32707 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
32708 | ||
32709 | * util/i386/pc/grub-mkrescue.in: New file. | |
32710 | * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS. | |
32711 | * Makefile.in: Handle bin_SCRIPTS. | |
32712 | ||
29b0ed46 | 32713 | 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi> |
32714 | ||
32715 | * term/gfxterm.c (grub_gfxterm_init): Added support for specifying | |
32716 | list of video modes. | |
32717 | ||
c0f90770 | 32718 | 2007-06-06 Robert Millan <rmh@aybabtu.com> |
32719 | ||
32720 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if | |
32721 | file doesn't exist, or if it is in a filesystem grub can't read. | |
32722 | ||
32723 | * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do | |
32724 | not abort if GRUB_DRIVE could not be defined. Rearrange generated | |
32725 | header comment to fit in 80 columns when the variables are resolved. | |
32726 | ||
32727 | * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE | |
32728 | could be identified by update-grub. Remove redundant check for | |
fe6b695a | 32729 | unifont.pff existence (since convert_system_path_to_grub_path now |
c0f90770 | 32730 | handles that). |
32731 | ||
fb36dc26 | 32732 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
32733 | ||
32734 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c. | |
32735 | ||
32736 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. | |
32737 | ||
32738 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c. | |
32739 | ||
0c68c93e | 32740 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
32741 | ||
32742 | * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe. | |
32743 | ||
32744 | * include/grub/partition.h: Declare grub_apple_partition_map_init and | |
32745 | grub_apple_partition_map_fini. | |
32746 | ||
32747 | * util/biosdisk.c | |
32748 | (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed | |
32749 | to access >2 TiB disks). | |
32750 | ||
32751 | Print disk->total_sectors with %llu instead of %lu, since this | |
32752 | variable is always 64-bit (prevents wrong disk size from being displayed | |
32753 | on either >2 TiB disk or big-endian CPU). | |
32754 | ||
32755 | (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling | |
32756 | into a generic case that supports all (sane) partition maps. | |
32757 | ||
32758 | Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually | |
32759 | breaks big-endian. | |
32760 | ||
32761 | * util/grub-probe.c: Call grub_apple_partition_map_init() before probe() | |
32762 | and grub_apple_partition_map_fini() after that. | |
32763 | ||
0f23eb74 | 32764 | 2007-06-01 Robert Millan <rmh@aybabtu.com> |
32765 | ||
32766 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX. | |
32767 | ||
32768 | * util/grub.d/00_header.in: Only enable gfxterm when | |
32769 | convert_system_path_to_grub_path() succeeds. | |
32770 | ||
42c71976 | 32771 | 2007-05-20 Robert Millan <rmh@aybabtu.com> |
32772 | ||
32773 | * util/update-grub_lib.in: New file. | |
32774 | * DISTLIST: Add update-grub_lib.in. | |
32775 | * conf/common.rmk: Generate update-grub_lib and install it in | |
32776 | $(lib_DATA). | |
32777 | * Makefile.in: Add install routine for $(lib_DATA). | |
32778 | ||
32779 | * util/grub.d/00_header.in: Use convert_system_path_to_grub_path() | |
32780 | function provided by update-grub_lib to support arbitrary paths of | |
32781 | unifont.pff. | |
32782 | * util/update-grub.in: Use convert_system_path_to_grub_path() to | |
32783 | initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables. | |
32784 | ||
5beb2291 | 32785 | 2007-05-19 Robert Millan <rmh@aybabtu.com> |
32786 | ||
32787 | * commands/i386/cpuid.c: New module. | |
32788 | * DISTLIST: Add it. | |
32789 | * conf/i386-efi.rmk: Enable cpuid.mod. | |
32790 | * conf/i386-pc.rmk: Likewise. | |
32791 | ||
7262eca1 | 32792 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
32793 | ||
32794 | * kern/disk.c (grub_disk_read): Check return value of | |
32795 | grub_realloc(). | |
32796 | ||
260ba823 | 32797 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
32798 | ||
32799 | * util/getroot.c (grub_util_get_grub_dev): Support partitionable | |
32800 | arrays. | |
32801 | * disk/raid.c (grub_raid_open): Likewise. | |
32802 | ||
1ecb6cf2 | 32803 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
32804 | ||
32805 | * util/biosdisk.c (linux_find_partition): Allocate real_dev on the | |
32806 | stack instead of on the heap. | |
32807 | ||
32808 | * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough | |
32809 | before doing a read on it. | |
32810 | ||
32811 | * configure.ac: Only use -fno-stack-protector for the target | |
32812 | environment. | |
f19dbdb7 | 32813 | |
21c8cbb1 | 32814 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
32815 | ||
32816 | * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add | |
32817 | __attribute_ ((unused)) to mode_type argument. | |
32818 | ||
32819 | * util/getroot.c (grub_guess_root_device): Fix #endif. | |
f19dbdb7 | 32820 | |
21c8cbb1 | 32821 | * kern/misc.c (memcmp): Fix prototype. |
32822 | ||
32823 | * include/grub/partition.h [GRUB_UTIL] | |
32824 | (grub_gpt_partition_map_init): Add prototype. | |
32825 | (grub_gpt_partition_map_fini): Likewise. | |
32826 | ||
32827 | * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed) | |
32828 | at the right place. | |
32829 | ||
32830 | * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U. | |
32831 | (grub_fat_read_data): Likewise. | |
32832 | (grub_fat_find_dir): Likewise. | |
32833 | ||
32834 | * font/manager.c (find_glyph): Make table a const. | |
32835 | (grub_font_get_glyph): Remove bitmap from if statement. | |
f19dbdb7 | 32836 | |
849d55d3 | 32837 | 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx> |
32838 | ||
32839 | * util/getroot.c (grub_guess_root_device): Remove RAID and LVM | |
32840 | code, first search for device in /dev/mapper, then in /dev. | |
32841 | (grub_util_get_grub_dev): New function. | |
32842 | * include/grub/util/getroot.h (grub_util_get_grub_dev): Add | |
32843 | prototype. | |
32844 | * util/grub-probe.c (probe): Remove check for RAID, call | |
32845 | grub_util_get_grub_dev() instead of | |
32846 | grub_util_biosdisk_get_grub_dev(). | |
32847 | * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of | |
32848 | grub_util_biosdisk_get_grub_dev(). | |
32849 | * util/i386/pc/grub-setup.c (main): Likewise. | |
32850 | ||
8fff7c2f | 32851 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
32852 | ||
32853 | * DISTLIST: Update for the latest changes. | |
32854 | * conf/i386-pc.rmk: Use the new paths for util/getroot.c, | |
32855 | util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c. | |
32856 | * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with | |
32857 | grub/util/biosdisk.h. | |
32858 | * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with | |
32859 | grub/util/biosdisk.h. | |
32860 | ||
48e12b52 | 32861 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
32862 | ||
32863 | * util/grub.d/00_header.in: Set default gfxmode to `640x480'. | |
32864 | ||
46b9d128 | 32865 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
32866 | ||
32867 | * util/i386/efi/grub-install.in: New. | |
32868 | * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the | |
32869 | newly added grub-install. | |
32870 | * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h | |
32871 | include. | |
32872 | * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with | |
32873 | grub/util/biosdisk.h. | |
32874 | * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with | |
32875 | grub/util/biosdisk.h. | |
32876 | ||
2d1a40a9 | 32877 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
32878 | ||
32879 | * include/grub/i386/pc/util/biosdisk.h: Moved to ... | |
32880 | * include/grub/util/biosdisk.h: ... here. | |
32881 | * util/i386/pc/biosdisk.c: Moved to ... | |
32882 | * util/biosdisk.c: ... here. | |
32883 | * util/i386/pc/getroot.c: Moved to ... | |
32884 | * util/getroot.c: ... here. | |
32885 | * util/i386/pc/grub-mkdevicemap.c: Moved to ... | |
32886 | * util/grub-mkdevicemap.c: ... here. | |
32887 | * util/i386/pc/grub-probe.c: Moved to ... | |
32888 | * util/grub-probe.c: ... here. | |
32889 | ||
9e26e3bc | 32890 | 2007-05-15 Robert Millan <rmh@aybabtu.com> |
32891 | ||
32892 | * util/update-grub.in: Remove duplicated line in grub.cfg header | |
32893 | message. | |
32894 | ||
57f96397 | 32895 | 2007-05-13 Robert Millan <rmh@aybabtu.com> |
32896 | ||
32897 | * util/update-grub.in: Fix a few assumptions about the devices holding | |
32898 | /, /boot and /boot/grub being the same. | |
32899 | * util/grub.d/00_header.in: Likewise. | |
32900 | * util/grub.d/10_hurd.in: Likewise. | |
32901 | * util/grub.d/10_linux.in: Likewise. | |
32902 | ||
32903 | * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary | |
32904 | patterns. Use that to define the `.old' suffix as older than `'. | |
32905 | ||
32906 | * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'. | |
32907 | ||
32908 | * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in | |
32909 | the grub.cfg header message. | |
32910 | ||
2e610d62 | 32911 | 2007-05-11 Robert Millan <rmh@aybabtu.com> |
32912 | ||
32913 | * util/update-grub.in: Create device.map if it doesn't already exist, | |
32914 | before attempting to run grub-probe. | |
32915 | Check for grub-probe and grub-mkdevicemap with the same code | |
32916 | grub-install is using. | |
32917 | Remove test mode. | |
32918 | ||
3f6a10ef | 32919 | 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx> |
32920 | ||
32921 | * Makefile.in: Add the datarootdir autoconf variable. | |
32922 | ||
02e7b75e | 32923 | 2007-05-09 Robert Millan <rmh@aybabtu.com> |
32924 | ||
32925 | * util/i386/pc/grub-probe.c (probe): When detecting partition map, | |
f19dbdb7 | 32926 | fail gracefully if dev->disk->partition == NULL. |
02e7b75e | 32927 | |
75f396cc | 32928 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
32929 | ||
32930 | * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to | |
32931 | determine partition map module. | |
32932 | * util/i386/pc/grub-install.in: Use this feature to decide which | |
32933 | partition module to load, instead of hardcoding pc and gpt. | |
32934 | ||
da65cb36 | 32935 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
32936 | ||
32937 | * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when | |
32938 | source directory differs from build directory. | |
32939 | ||
b57d6a91 | 32940 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
32941 | ||
32942 | * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir | |
32943 | initialisation. | |
32944 | ||
509d00f1 | 32945 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
32946 | ||
32947 | * util/update-grub.in: Create ${grub_prefix} if it doesn't exist. | |
32948 | ||
c48f23ef | 32949 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
32950 | ||
32951 | * util/grub.d/10_linux.in: Allow the administrator to insert Linux | |
32952 | command-line arguments via ${GRUB_CMDLINE_LINUX}. | |
32953 | ||
20b97658 | 32954 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
32955 | ||
32956 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c. | |
32957 | (grub_probe_SOURCES): Likewise. | |
32958 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect | |
32959 | GPT and initialize dos_part and bsd_part accordingly. | |
32960 | * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and | |
32961 | install_bsd_part. | |
32962 | (main): Activate gpt module for use during partition identification, | |
32963 | and deactivate it afterwards. | |
32964 | * util/i386/pc/grub-install.in: Add gpt module to core.img. | |
32965 | * util/i386/pc/grub-probe.c (main): Activate gpt module for use during | |
32966 | partition identification, and deactivate it afterwards. | |
32967 | ||
99123174 | 32968 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
32969 | ||
32970 | * term/i386/pc/console.c (grub_console_fini): Call | |
32971 | grub_term_set_current() before grub_term_unregister(). | |
32972 | ||
ebd97f6e | 32973 | 2007-05-04 Robert Millan <rmh@aybabtu.com> |
32974 | ||
32975 | * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in, | |
32976 | util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README. | |
32977 | * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS | |
32978 | and update-grub_DATA. | |
32979 | * conf/common.rmk: Build and install update-grub components. | |
32980 | * conf/common.mk: Regenerate. | |
32981 | * util/update-grub.in: New. Core of update-grub. | |
32982 | * util/grub.d/00_header.in: New. Generates grub.cfg header. | |
32983 | * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd. | |
32984 | * util/grub.d/10_linux.in: New. Generates boot entries for Linux. | |
32985 | * util/grub.d/README: New. Document grub.d directory layout. | |
32986 | ||
b06a264d | 32987 | 2007-05-01 Robert Millan <rmh@aybabtu.com> |
32988 | ||
32989 | * util/grub-emu.c: Move initialization functions | |
32990 | grub_util_biosdisk_init() and grub_init_all() before | |
32991 | grub_util_biosdisk_get_grub_dev(), which relies on them. | |
32992 | ||
41f0050e | 32993 | 2007-04-19 Robert Millan <rmh@aybabtu.com> |
32994 | ||
32995 | * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since | |
32996 | it is used later. | |
32997 | ||
04582bb3 | 32998 | 2007-04-18 Jerone Young <jerone@gmail.com> |
32999 | ||
f19dbdb7 | 33000 | * kernel/elf.c: Add missing parenthesis for conditional statement |
04582bb3 | 33001 | stanza. |
33002 | ||
08db4632 | 33003 | 2007-04-10 Jerone Young <jerone@gmail.com> |
49892fdf | 33004 | |
08db4632 | 33005 | * util/i386/pc/getroot.c: Update so that if root device is /dev/root , |
33006 | continue on and look for device node with real device name. | |
33007 | ||
801b76be | 33008 | 2007-04-10 Jerone Young <jerone@gmail.com> |
f19dbdb7 | 33009 | |
fe6b695a | 33010 | * configure.ac: Add argument for autoconf to use transformation |
1d543c3e | 33011 | ability. |
33012 | * Makefile.in: Add autoconf package transformation code. | |
33013 | * util/i386/pc/grub-install.in: Likewise. | |
33014 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
33015 | ||
6795c4e1 | 33016 | 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
33017 | ||
33018 | * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro. | |
33019 | (EXT2_GOOD_OLD_INODE_SIZE): Likewise. | |
33020 | (EXT2_REVISION): Likewise. | |
33021 | (EXT2_INODE_SIZE): Likewise. | |
33022 | (struct grub_ext2_block_group): Added a missing member | |
33023 | "used_dirs". | |
33024 | (grub_ext2_read_inode): Divide by the inode size in a superblock | |
33025 | instead of 128 to obtain INODES_PER_BLOCK. | |
33026 | Use the macro EXT2_INODE_SIZE instead of directly using | |
33027 | SBLOCK->INODE_SIZE. | |
33028 | ||
d70af616 | 33029 | 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
33030 | ||
33031 | * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a | |
33032 | superblock instead of the structure size to compute an | |
33033 | offset. This fixes the problem that GRUB could not read a | |
33034 | filesystem when inode size is different from 128-byte. | |
33035 | ||
3b801603 | 33036 | 2007-03-05 Marco Gerards <marco@gnu.org> |
33037 | ||
33038 | * normal/main.c (read_config_file): When "menu" is not set, create | |
33039 | an initial context. | |
33040 | ||
4785bfe4 | 33041 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
33042 | ||
33043 | * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed. | |
33044 | (HEAP_LIMIT): New macro. | |
33045 | (grub_claim_heap): Claim memory up to `heaplimit'. | |
33046 | ||
a0cbb023 | 33047 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
33048 | ||
33049 | * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB. | |
33050 | * kern/powerpc/ieee1275/init.c (_end): Add declaration. | |
33051 | (_start): Likewise. | |
33052 | (grub_arch_modules_addr): Return address after `_end'. | |
33053 | * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h. | |
33054 | (load_modules): Use new parameter as `p_paddr' and `p_vaddr'. | |
33055 | (add_segments): Calculate `_end' from phdr size and location. | |
33056 | (ALIGN_UP): Moved to ... | |
33057 | * include/grub/misc.h: here. | |
33058 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
33059 | New macro. | |
33060 | (GRUB_IEEE1275_MODULE_BASE): Removed. | |
33061 | ||
fd7d8eba | 33062 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
33063 | ||
33064 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct | |
33065 | loop boundary. | |
33066 | ||
9b09e6fc | 33067 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
33068 | ||
33069 | * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t. | |
33070 | All users updated. | |
33071 | (grub_elf64_load_hook_t): Likewise. | |
33072 | * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve | |
33073 | debug output. | |
33074 | ||
3ce27299 | 33075 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
33076 | ||
33077 | * kern/mm.c: Update copyright. | |
33078 | (grub_mm_debug): Correct syntax error. | |
33079 | (grub_mm_dump_free): New function. | |
33080 | (grub_debug_free): Call `grub_free'. | |
33081 | * include/grub/mm.h: Update copyright. | |
33082 | (grub_mm_dump_free): Add declaration. | |
33083 | ||
077d5fee | 33084 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
33085 | ||
33086 | * include/grub/ieee1275/ieee1275.h: Update copyright. | |
33087 | * kern/powerpc/ieee1275/init.c: Likewise. | |
33088 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
33089 | ||
33090 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
33091 | * include/grub/elfload.h: Likewise. | |
33092 | * kern/elf.c: Likewise. | |
33093 | (grub_elf32_load): Pass `base' and `size' parameters. Update all | |
33094 | callers. | |
33095 | (grub_elf64_load): Likewise. | |
33096 | (grub_elf32_load_segment): Move to a nested function. | |
33097 | (grub_elf64_load_segment): Likewise. | |
33098 | ||
dc946850 | 33099 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
33100 | ||
33101 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New | |
33102 | prototype. | |
33103 | * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed. | |
33104 | (grub_heap_len): Likewise. | |
33105 | (HEAP_SIZE): New macro. | |
33106 | (grub_claim_heap): New function. | |
33107 | (grub_machine_init): Don't claim heap directly. Call | |
33108 | `grub_claim_heap'. | |
33109 | * kern/powerpc/ieee1275/openfw.c: Include alloca.h. | |
33110 | (grub_available_iterate): New function. | |
33111 | ||
baa2a121 | 33112 | 2007-02-03 Thomas Schwinge <tschwinge@gnu.org> |
33113 | ||
33114 | * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition. | |
33115 | * configure.ac: Use it for testing the HOST and TARGET compilers. | |
33116 | ||
4fe9862e | 33117 | 2006-12-13 Thomas Schwinge <tschwinge@gnu.org> |
33118 | ||
33119 | * Makefile.in (enable_grub_emu): New variable. | |
33120 | * configure.ac (--enable-grub-emu): New option. | |
33121 | Do the checks for (n)curses only if `--enable-grub-emu' is requested. | |
33122 | * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested. | |
33123 | * conf/i386-pc.rmk: Likewise. | |
33124 | * conf/powerpc-ieee1275.rmk: Likewise. | |
33125 | * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise. | |
33126 | ||
a8aa5762 | 33127 | 2006-12-12 Marco Gerards <marco@gnu.org> |
33128 | ||
33129 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'. | |
33130 | ||
33131 | * kern/env.c (grub_env_unset): Don't free the member `value' when | |
33132 | the type is GRUB_ENV_VAR_DATA, in this case it's a user defined | |
33133 | pointer. | |
33134 | ||
33135 | * normal/main.c (current_menu): Removed. | |
33136 | (free_menu): Unset the `menu' environment variable. | |
33137 | (grub_normal_menu_addentry): Make use of the environment variable | |
33138 | `menu', instead of using the global `current_menu'. Allocate | |
33139 | memory for the sourcecode of this entry. | |
33140 | (read_config_file): New argument `nested', changed all callers. | |
33141 | Only in the case of a new context, initialize a new menu. Set the | |
33142 | `menu' environment variable. | |
33143 | (grub_normal_execute): Don't set and unset the environment | |
33144 | variable `menu' here anymore. Only free the menu when leaving the | |
33145 | context. | |
33146 | ||
33147 | * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory | |
33148 | leak. | |
33149 | ||
957b3a3e | 33150 | 2006-12-11 Marco Gerards <marco@gnu.org> |
33151 | ||
33152 | * normal/menu_entry.c (run): Fix off by one bug so the last line | |
33153 | is executed. Move the loader check to outside the loop. | |
33154 | ||
ef875714 | 33155 | 2006-12-08 Hollis Blanchard <hollis@penguinppc.org> |
33156 | ||
33157 | * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'. | |
33158 | ||
4e739985 | 33159 | 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org> |
33160 | ||
33161 | * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of | |
33162 | the number of sectors. Reported by Andrey Shuvikov | |
33163 | <mr_hyro@yahoo.com>. | |
f19dbdb7 | 33164 | |
790707f2 | 33165 | 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx> |
33166 | ||
33167 | * kern/disk.c (grub_disk_read): When there is a read error, always | |
33168 | try to read only the necessary data. | |
f19dbdb7 | 33169 | |
790707f2 | 33170 | * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and |
33171 | disk/raid.c. | |
33172 | * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New | |
33173 | prototype. | |
33174 | [GRUB_UTIL] (grub_raid_fini): Likewise. | |
33175 | [GRUB_UTIL] (grub_lvm_init): Likewise. | |
f19dbdb7 | 33176 | [GRUB_UTIL] (grub_lvm_fini): Likewise. |
790707f2 | 33177 | * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is |
33178 | RAID device and copy DEVICE_NAME to DRIVE_NAME in that case. | |
33179 | (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini() | |
33180 | and grub_raid_fini(). | |
f19dbdb7 | 33181 | |
03e58196 | 33182 | 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
33183 | ||
33184 | * include/grub/types.h (__unused): Rename to UNUSED. | |
33185 | * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused. | |
33186 | (grub_elf64_size): Likewise. | |
f19dbdb7 | 33187 | |
ae4f23bf | 33188 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
33189 | ||
33190 | * kern/elf.c (grub_elf_file): Call grub_file_seek. Call | |
33191 | grub_error_push and grub_error_pop in the error-handling path. | |
33192 | (grub_elf32_load_segment): Only call grub_file_read with non-zero | |
33193 | length. | |
33194 | ||
2166cc83 | 33195 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
33196 | ||
33197 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c. | |
33198 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
33199 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
33200 | (kernel_elf_SOURCES): Likewise. | |
33201 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h. | |
33202 | * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise. | |
33203 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
33204 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
33205 | * conf/common.rmk (pkgdata_MODULES): Add elf.mod. | |
33206 | (elf_mod_SOURCES): New variable. | |
33207 | (elf_mod_CFLAGS): Likewise. | |
33208 | (elf_mod_LDFLAGS): Likewise. | |
33209 | * include/grub/types.h (__unused): New macro. | |
33210 | * include/grub/elfload.h: New file. | |
33211 | * kern/elf.c: Likewise. | |
33212 | * loader/powerpc/ieee1275/linux.c: Include elfload.h. | |
33213 | (ELF32_LOADMASK): New macro. | |
33214 | (ELF64_LOADMASK): Likewise. | |
33215 | (vmlinux): Removed. | |
33216 | (grub_linux_load32): New function. | |
33217 | (grub_linux_load64): Likewise. | |
33218 | (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64. | |
33219 | Use grub_elf_t instead of grub_file_t. | |
33220 | ||
a09d5aa5 | 33221 | 2006-11-02 Hollis Blanchard <hollis@penguinppc.org> |
33222 | ||
33223 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add | |
33224 | `catch_result' to struct set_color_args. | |
33225 | ||
d976fc51 | 33226 | 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
33227 | ||
33228 | * normal/menu.c: Include grub/script.h. | |
33229 | * normal/menu_entry.c: Likewise. | |
33230 | * include/grub/normal.h: Do not include grub/script.h. | |
33231 | ||
67507549 | 33232 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
33233 | ||
33234 | * kern/disk.c (grub_disk_read): Correct debug printf formatting. | |
33235 | ||
69203a99 | 33236 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
33237 | ||
33238 | * kern/disk.c (grub_disk_open): Print debug messages when opening a | |
33239 | disk. | |
33240 | (grub_disk_close): Print debug messages when closing a disk. | |
33241 | (grub_disk_read): Print debug messages when disk read fails. | |
33242 | * kern/fs.c (grub_fs_probe): Print debug messages when detecting | |
33243 | filesystem type. | |
33244 | * kern/partition.c: Include misc.h. | |
33245 | (grub_partition_iterate): Print debug messages when detecting | |
33246 | partition type. | |
33247 | ||
e2b8278c | 33248 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
33249 | ||
33250 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status' | |
33251 | is negative. | |
33252 | * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0. | |
33253 | ||
97b2f2ff | 33254 | 2006-10-26 Hollis Blanchard <hollis@penguinppc.org> |
33255 | ||
33256 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
33257 | Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test. | |
33258 | ||
6555d655 | 33259 | 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx> |
33260 | ||
33261 | * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes | |
33262 | instead of sizeof(lv). Patch by Michael Guntsche. | |
33263 | ||
4d42b77f | 33264 | 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx> |
33265 | ||
33266 | * disk/lvm.c: Rename VGS to VG_LIST. | |
33267 | (grub_lvm_iterate): Change VGS->LV to VG-LV. | |
33268 | (grub_lvm_open): Likewise. | |
33269 | Thanks to Michael Guntsche for finding this bug. | |
33270 | ||
5d74d927 | 33271 | 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
33272 | ||
33273 | * configure.ac (AC_INIT): Bumped to 1.95. | |
33274 | ||
a1bb27e4 | 33275 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
33276 | ||
33277 | * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev | |
33278 | with "/dev/.static/dev/md". | |
33279 | ||
e0994b8b | 33280 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
33281 | ||
33282 | * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of | |
33283 | DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open | |
33284 | DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and | |
33285 | DRIVE_NAME are always freed. | |
33286 | ||
33287 | * util/i386/pc/biosdisk.c (make_device_name): Add one into | |
33288 | DOS_PART, as a DOS partition is counted from one instead of zero | |
33289 | now. Reported by Robert Millan. | |
33290 | ||
ddd5cee9 | 33291 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
33292 | ||
33293 | * util/i386/pc/getroot.c (grub_guess_root_device): Stop using | |
33294 | grub_util_biosdisk_get_grub_dev to convert system device to GRUB device. | |
33295 | * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the | |
33296 | string returned by grub_guess_root_device. | |
33297 | * util/i386/pc/grub-setup.c: Likewise. | |
33298 | * util/i386/pc/grub-probefs.c: Likewise. | |
33299 | ||
33300 | * util/i386/pc/grub-probefs.c: Rename to ... | |
33301 | * util/i386/pc/grub-probe.c: ... this. | |
33302 | * DISTLIST: Remove grub-probefs, add grub-probe. | |
33303 | * conf/i386-efi.rmk: Likewise. | |
33304 | * conf/i386-pc.rmk: Likewise. | |
33305 | * util/i386/pc/grub-install.in: Likewise. | |
33306 | ||
33307 | * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to | |
33308 | choose which information we want to print. | |
33309 | ||
2b002173 | 33310 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
33311 | ||
33312 | * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c, | |
33313 | include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h, | |
33314 | include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h, | |
33315 | include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c, | |
33316 | video/readers/tga.c and video/i386/pc/vbeutil.c. | |
33317 | ||
33318 | 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx> | |
33319 | ||
33320 | Added support for RAID and LVM. | |
f19dbdb7 | 33321 | |
2b002173 | 33322 | * disk/lvm.c: New file. |
33323 | * disk/raid.c: Likewise. | |
33324 | * include/grub/lvm.h: Likewise. | |
f19dbdb7 | 33325 | * include/grub/raid.h: Likewise. |
2b002173 | 33326 | * include/grub/util/lvm.h: Likewise. |
33327 | * include/grub/util/raid.h: Likewise. | |
33328 | * util/lvm.c: Likewise. | |
33329 | * util/raid.c: Likewise. | |
33330 | ||
33331 | * include/grub/disk.h (grub_disk_dev_id): Add | |
33332 | GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID. | |
33333 | (grub_disk_get_size): New prototype. | |
33334 | * kern/disk.c (grub_disk_open): Check whether grub_partition_probe() | |
33335 | returns a partition. | |
33336 | (grub_disk_get_size): New function. | |
f19dbdb7 | 33337 | |
2b002173 | 33338 | * kern/i386/pc/init.c (make_install_device): Copy the prefix |
33339 | verbatim if grub_install_dos_part is -2. | |
33340 | ||
33341 | * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID | |
33342 | and LVM devices. | |
33343 | ||
33344 | * util/i386/pc/grub-setup.c (setup): New argument | |
33345 | MUST_EMBED. Force embedding of GRUB when the argument is | |
33346 | true. Close FILE before returning. | |
33347 | (main): Add support for RAID and LVM. | |
f19dbdb7 | 33348 | |
2b002173 | 33349 | * conf/common.rmk: Add RAID and LVM modules. |
33350 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and | |
33351 | util/lvm.c. | |
33352 | (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c. | |
33353 | ||
33354 | * kern/misc.c (grub_strstr): New function. | |
33355 | * include/grub/misc.h (grub_strstr): New prototype. | |
33356 | ||
050548d0 | 33357 | 2006-10-10 Tristan Gingold <tristan.gingold@bull.net> |
33358 | ||
33359 | * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant. | |
33360 | ||
da849d2d | 33361 | 2006-10-05 Tristan Gingold <tristan.gingold@bull.net> |
33362 | ||
33363 | * kern/misc.c (grub_strtoull): Guess the base only if not | |
33364 | specified. | |
33365 | ||
97b2f2ff | 33366 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
4f0acd39 | 33367 | |
33368 | * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World | |
33369 | PowerMac support. | |
33370 | ||
97b2f2ff | 33371 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
fba51f48 | 33372 | |
33373 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long. | |
33374 | ||
33375 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property): | |
33376 | Remove `flags' argument. All callers changed. | |
33377 | * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed. | |
33378 | (IEEE1275_IHANDLE_INVALID): New variable. | |
33379 | (IEEE1275_CELL_INVALID): New variable. | |
33380 | (grub_ieee1275_finddevice, grub_ieee1275_get_property, | |
33381 | grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package, | |
33382 | grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path, | |
33383 | grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open, | |
33384 | grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return | |
33385 | codes from Open Firmware. All callers updated. | |
33386 | (grub_ieee1275_next_property): Directly return Open Firmware return | |
33387 | code. | |
33388 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): | |
33389 | Standardize error checking from `grub_ieee1275_get_property'. | |
33390 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename | |
33391 | `devalias' to `aliases'. Correct comments. Consolidate error paths. | |
33392 | ||
97b2f2ff | 33393 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
cc6d3df3 | 33394 | |
33395 | * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename | |
33396 | `instance_to_package_args' to `instance_to_path_args'. | |
33397 | ||
33398 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Use | |
33399 | `grub_ieee1275_chosen'. | |
33400 | ||
33401 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call | |
33402 | `grub_ieee1275_interpret'. | |
33403 | ||
97b2f2ff | 33404 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
02bb8acc | 33405 | |
33406 | * util/powerpc/ieee1275/grub-mkimage.c: Include config.h. | |
33407 | ||
97b2f2ff | 33408 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
663b72f0 | 33409 | |
33410 | * include/grub/powerpc/libgcc.h (__floatdisf): New prototype. | |
33411 | (__cmpdi): Likewise. | |
33412 | ||
33413 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as | |
33414 | `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type | |
33415 | `grub_ssize_t'. | |
33416 | ||
02bb8acc | 33417 | * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h. |
663b72f0 | 33418 | |
33419 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual' | |
33420 | to type `grub_ssize_t'. | |
33421 | (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'. | |
33422 | ||
7f9a8531 | 33423 | 2006-09-22 Marco Gerards <marco@gnu.org> |
33424 | ||
33425 | * normal/script.c (grub_script_create_cmdmenu): Skip leading | |
33426 | newlines. | |
33427 | ||
b5ef1102 | 33428 | 2006-09-22 Marco Gerards <marco@gnu.org> |
33429 | ||
33430 | * commands/echo.c: New file. | |
33431 | ||
33432 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'. | |
33433 | ||
33434 | * conf/common.rmk (echo_mod_SOURCES): New variable. | |
33435 | (echo_mod_CFLAGS): Likewise. | |
33436 | (echo_mod_LDFLAGS): Likewise. | |
33437 | ||
2cff3677 | 33438 | 2006-09-22 Marco Gerards <marco@gnu.org> |
33439 | ||
33440 | * normal/main.c (get_line): Malloc memory instead of using | |
33441 | preallocated memory. Removed the arguments `cmdline' and | |
33442 | `max_len'. Updated all callers. | |
33443 | ||
6ba4688b | 33444 | 2006-09-22 Marco Gerards <marco@gnu.org> |
33445 | ||
33446 | * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable. | |
33447 | (normal_mod_DEPENDENCIES): Likewise. | |
33448 | ||
33449 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise. | |
33450 | (normal_mod_DEPENDENCIES): Likewise. | |
33451 | ||
33452 | * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise. | |
33453 | ||
e02ac02c | 33454 | 2006-09-22 Johan Rydberg <jrydberg@gnu.org> |
33455 | ||
33456 | * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and | |
33457 | programs. | |
33458 | * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare. | |
33459 | (normal_mod_DEPENDENCIES): Likewise. | |
33460 | * conf/i386-pc.mk: Regenerate. | |
33461 | * conf/i386-efi.mk: Likewise | |
33462 | * conf/common.mk: Likewise. | |
33463 | * conf/powerpc-ieee1275.mk: Likewise. | |
33464 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 33465 | |
8d252e44 | 33466 | 2006-09-22 Robert Millan <rmh@aybabtu.com> |
33467 | ||
33468 | Sync with i386 version. | |
33469 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage. | |
33470 | * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu. | |
33471 | ||
209bf7ac | 33472 | 2006-09-21 Robert Millan <rmh@aybabtu.com> |
33473 | ||
33474 | Import from GRUB Legacy (lib/device.c): | |
33475 | * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function. | |
33476 | (init_device_map) [__linux__]: Add support for I2O devices. | |
33477 | ||
6b146090 | 33478 | 2006-09-14 Marco Gerards <marco@gnu.org> |
33479 | ||
33480 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of | |
33481 | `-melf_i386'. | |
33482 | ||
e38600a8 | 33483 | 2006-09-14 Robert Millan <rmh@aybabtu.com> |
2952da5d | 33484 | |
33485 | * util/i386/pc/grub-install.in: Skip menu.lst when removing | |
33486 | /boot/grub/*.lst. | |
78fa1790 | 33487 | |
2952da5d | 33488 | * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static"). |
6b146090 | 33489 | |
2952da5d | 33490 | * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists |
33491 | before adding it to device.map. | |
33492 | ||
01b82a64 | 33493 | 2006-08-15 Johan Rydberg <jrydberg@gnu.org> |
33494 | ||
fe6b695a | 33495 | * genmk.rb: Let GCC generate dependencies the first time it |
01b82a64 | 33496 | compiles a file; using the -MD option. |
33497 | * conf/common.mk: Regenerate. | |
33498 | * conf/i386-pc.mk: Likewise. | |
33499 | * conf/i386-efi.mk: Likewise. | |
33500 | * conf/powerpc-ieee1275.mk: Likewise. | |
33501 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 33502 | |
1064790d | 33503 | 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org> |
33504 | ||
33505 | Move the prototypes of grub_setjmp and grub_longjmp to | |
33506 | cpu/setjmp.h, so that each architecture may specify different | |
33507 | attributes. | |
f19dbdb7 | 33508 | |
1064790d | 33509 | * include/grub/i386/setjmp.h (grub_setjmp): New prototype. |
33510 | (grub_longjmp): Likewise. | |
33511 | * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.. | |
33512 | (grub_longjmp): Likewise. | |
33513 | * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise.. | |
33514 | (grub_longjmp): Likewise. | |
33515 | ||
33516 | * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed. | |
33517 | [!GRUB_UTIL] (grub_longjmp): Removed. | |
33518 | ||
29dda3ed | 33519 | 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr> |
33520 | ||
33521 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275 | |
33522 | "color!" method does not return any value. | |
33523 | ||
ad2a06ed | 33524 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
33525 | ||
33526 | * include/grub/bitmap.h: New file. | |
33527 | ||
33528 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
33529 | ||
33530 | * video/bitmap.c: Likewise. | |
33531 | ||
33532 | * video/readers/tga.c: Likewise. | |
33533 | ||
33534 | * video/i386/pc/vbeutil.c: Likewise. | |
33535 | ||
33536 | * commands/videotest.c: Code cleanup and updated to reflect to new | |
33537 | video API. | |
33538 | ||
33539 | * term/gfxterm.c: Likewise. | |
33540 | ||
33541 | * video/video.c: Likewise. | |
33542 | ||
33543 | * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod. | |
33544 | (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c. | |
33545 | (bitmap_mod_SOURCES): New entry. | |
33546 | (bitmap_mod_CFLAGS): Likewise. | |
33547 | (bitmap_mod_LDFLAGS): Likewise. | |
33548 | (tga_mod_SOURCES): Likewise. | |
33549 | (tga_mod_CFLAGS): Likewise. | |
33550 | (tga_mod_LDFLAGS): Likewise. | |
33551 | ||
33552 | * include/grub/video.h (grub_video_blit_operators): New enum type. | |
33553 | (grub_video_render_target): Changed as forward declaration and moved | |
33554 | actual definition to be video driver specific. | |
33555 | (grub_video_adapter.blit_bitmap): Added blitting operator. | |
33556 | (grub_video_adapter.blit_render_target): Likewise. | |
33557 | (grub_video_blit_bitmap): Likewise. | |
33558 | (grub_video_blit_render_target): Likewise. | |
33559 | ||
33560 | * include/grub/i386/pc/vbe.h (grub_video_render_target): Added | |
33561 | driver specific render target definition. | |
33562 | (grub_video_vbe_map_rgba): Added driver internal helper. | |
33563 | (grub_video_vbe_unmap_color): Updated to use | |
33564 | grub_video_i386_vbeblit_info. | |
33565 | (grub_video_vbe_get_video_ptr): Likewise. | |
33566 | ||
33567 | * include/grub/i386/pc/vbeblit.h | |
33568 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use | |
33569 | grub_video_i386_vbeblit_info. | |
33570 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
33571 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
33572 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
33573 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
33574 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
33575 | (grub_video_i386_vbeblit_index_index): Likewise. | |
33576 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function. | |
33577 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
33578 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
33579 | (grub_video_i386_vbeblit_blend): Added generic blitter for blend | |
33580 | operator. | |
33581 | (grub_video_i386_vbeblit_replace): Added generic blitter for replace | |
33582 | operator. | |
33583 | ||
33584 | * video/i386/pc/vbeblit.c: Updated to reflect changes on | |
33585 | include/grub/i386/pc/vbeblit.h. | |
33586 | ||
33587 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8): | |
33588 | Updated to use grub_video_i386_vbeblit_info. | |
33589 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
33590 | (grub_video_i386_vbefill_index): Likewise. | |
33591 | (grub_video_i386_vbefill): Added generic filler. | |
33592 | ||
33593 | * video/i386/pc/vbefill.c: Updated to reflect changes on | |
33594 | include/grub/i386/pc/vbefill.h. | |
33595 | ||
33596 | * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use | |
33597 | grub_video_i386_vbeblit_info. | |
33598 | (grub_video_vbe_unmap_color): Likewise. | |
33599 | (grub_video_vbe_blit_glyph): Likewise. | |
33600 | (grub_video_vbe_scroll): Likewise. | |
33601 | (grub_video_vbe_draw_pixel): Removed function. | |
33602 | (grub_video_vbe_get_pixel): Likewise. | |
33603 | (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and | |
33604 | updated code to use it. | |
33605 | (common_blitter): Added common blitter for render target and bitmap. | |
33606 | (grub_video_vbe_blit_bitmap): Updated to use common_blitter. | |
33607 | (grub_video_vbe_blit_render_target): Likewise. | |
33608 | ||
bc8c036d | 33609 | 2006-07-30 Johan Rydberg <jrydberg@gnu.org> |
33610 | ||
33611 | * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already | |
33612 | is in text mode if there is no console control protocol instance | |
33613 | available. | |
33614 | ||
684a8eff | 33615 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
33616 | ||
33617 | * include/grub/video.h: Code cleanup. | |
33618 | ||
33619 | * include/grub/i386/pc/vbe.h: Likewise. | |
33620 | ||
33621 | * video/i386/pc/vbe.c: Likewise. | |
33622 | ||
33623 | * video/i386/pc/vbeblit.c: Likewise. | |
33624 | ||
33625 | * video/i386/pc/vbefill.c: Likewise. | |
33626 | ||
33627 | * video/video.c: Likewise. Also added more comments. | |
33628 | ||
5915059b | 33629 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
33630 | ||
33631 | * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ... | |
33632 | (struct grub_biosdisk_dap): Likewise. | |
33633 | ||
33634 | * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected | |
33635 | linkage settings for all functions. | |
33636 | ||
90ce5d56 | 33637 | 2006-07-12 Marco Gerards <marco@gnu.org> |
33638 | ||
33639 | * configure.ac (--enable-mm-debug): Fix typo. | |
33640 | ||
33641 | * genkernsyms.sh.in: Use proper quoting for `CC'. | |
33642 | ||
43e7f879 | 33643 | 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx> |
33644 | ||
33645 | * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32". | |
33646 | (normal_mod_ASFLAGS): Remove "-m32". | |
33647 | ||
4889bdec | 33648 | 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org> |
33649 | ||
33650 | * util/misc.c: Include config.h. | |
33651 | [!HAVE_MEMALIGN]: Do not include malloc.h. | |
33652 | (grub_memalign): Use posix_memalign, if present. Then, use | |
33653 | memalign, if present. Otherwise, emit an error. | |
33654 | ||
33655 | * util/grub-emu.c: Do not include malloc.h. | |
33656 | ||
33657 | * include/grub/util/misc.h: Include unistd.h. This is required for | |
33658 | FreeBSD, because off_t is defined in unistd.h. Reported by Harley | |
33659 | D. Eades III <hde@foobar-qux.org>. | |
33660 | ||
33661 | * configure.ac (AC_GNU_SOURCE): Added. | |
33662 | (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host | |
33663 | type. | |
33664 | ||
fd39d4da | 33665 | 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org> |
33666 | ||
33667 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that | |
33668 | ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS. | |
33669 | ||
b786f3b5 | 33670 | 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx> |
33671 | ||
33672 | * include/grub/types.h (grub_host_addr_t): Rename to | |
33673 | grub_target_addr_t. | |
33674 | (grub_host_off_t): Rename to grub_target_off_t. | |
33675 | (grub_host_size_t): Rename to grub_target_size_t. | |
33676 | (grub_host_ssize_t): Rename to grub_target_ssize_t. | |
33677 | Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables. | |
33678 | ||
33679 | * include/grub/kernel.h (struct grub_module_header): Change type | |
33680 | of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t. | |
33681 | (grub_module_info): Likewise. | |
f19dbdb7 | 33682 | |
051988bb | 33683 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
33684 | ||
33685 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional | |
33686 | of checking LINUX_MEM_SIZE was reverse. Reported by Jesus | |
33687 | Velazquez <jesus.velazquez@gmail.com>. | |
33688 | ||
deae281b | 33689 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
33690 | ||
33691 | Count partitions from 1 instead of 0 in the string representation | |
33692 | of partitions. Still use 0-based internally. | |
f19dbdb7 | 33693 | |
deae281b | 33694 | * partmap/sun.c (grub_sun_is_valid): A cosmetic change. |
33695 | (sun_partition_map_iterate): Use grub_partition_t instead of | |
33696 | struct grub_partition *. Cast DESC->START_CYLINDER to | |
33697 | grub_uint64_t after converting the endian. | |
33698 | (sun_partition_map_probe): Subtract 1 for PARTNUM. | |
33699 | (sun_partition_map_get_name): Add 1 to P->INDEX. | |
33700 | ||
33701 | * partmap/pc.c (grub_partition_parse): Subtract 1 for | |
33702 | PCDATA->DOS_PART. | |
33703 | (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART. | |
33704 | ||
33705 | * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to | |
33706 | zero instead of one. | |
33707 | (gpt_partition_map_probe): Subtract 1 for PARTNUM. | |
33708 | (gpt_partition_map_get_name): Add 1 into P->INDEX. | |
33709 | ||
33710 | * partmap/apple.c (apple_partition_map_iterate): Change the type | |
33711 | of POS to unsigned. | |
33712 | (apple_partition_map_probe): Subtract 1 for PARTNUM. | |
33713 | (apple_partition_map_get_name): Add 1 into P->INDEX. | |
33714 | ||
33715 | * partmap/amiga.c (amiga_partition_map_iterate): Change the type | |
33716 | of POS to unsigned. | |
33717 | (amiga_partition_map_iterate): Cast NEXT to grub_off_t to | |
33718 | calculate the offset of a partition. | |
33719 | (amiga_partition_map_probe): Subtract 1 for PARTNUM. | |
33720 | (amiga_partition_map_get_name): Add 1 into P->INDEX. | |
33721 | ||
33722 | * partmap/acorn.c (acorn_partition_map_find): Change the type of | |
33723 | SECTOR to grub_disk_addr_t. | |
33724 | (acorn_partition_map_iterate): Likewise. | |
33725 | (acorn_partition_map_probe): Subtract 1 for PARTNUM. | |
33726 | Change the type of SECTOR to grub_disk_addr_t. Declare P on the | |
33727 | top. | |
33728 | (acorn_partition_map_get_name): Add 1 into P->INDEX. | |
33729 | ||
33730 | * kern/i386/pc/init.c (make_install_device): Add 1 into | |
33731 | GRUB_INSTALL_DOS_PART. | |
33732 | ||
33733 | * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed | |
33734 | conditional. | |
33735 | ||
524a1e6a | 33736 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
33737 | ||
33738 | Clean up the code to support 64-bit addressing in disks and | |
33739 | files. This change is not enough for filesystems yet. | |
f19dbdb7 | 33740 | |
524a1e6a | 33741 | * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the |
33742 | type of "start" to grub_uint64_t. | |
33743 | (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to | |
33744 | grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in | |
33745 | save_first_sector and save_blocklists. Use grub_le_to_cpu64 to | |
33746 | convert addresses. | |
33747 | ||
33748 | * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR | |
33749 | to grub_disk_addr_t. | |
33750 | ||
33751 | * partmap/gpt.c (gpt_partition_map_iterate): Fix the format | |
33752 | string. | |
33753 | ||
33754 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
33755 | ||
33756 | * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC | |
33757 | to char *. | |
33758 | ||
33759 | * normal/script.c (grub_script_parse): Remove unused MEMFREE. | |
33760 | ||
33761 | * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro. | |
33762 | ||
33763 | * normal/lexer.c (grub_script_yyerror): Specify unused to LEX. | |
33764 | ||
33765 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1 | |
33766 | to grub_off_t, to detect an error from grub_file_seek. | |
33767 | (grub_multiboot_load_elf32): Likewise. | |
33768 | ||
33769 | * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the | |
33770 | maximum unsigned long value when an overflow is detected. | |
33771 | (grub_strtoull): New function. | |
33772 | (grub_divmod64): Likewise. | |
33773 | (grub_lltoa): use grub_divmod64. | |
33774 | ||
33775 | * kern/fs.c (struct grub_fs_block): Change the type of "offset" to | |
33776 | grub_disk_addr_t. | |
33777 | (grub_fs_blocklist_open): Increase P if P is not NULL to advance | |
33778 | the pointer to next character. Use grub_strtoull instead of | |
33779 | grub_strtoul. | |
33780 | (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and | |
33781 | SIZE to grub_disk_addr_t, grub_off_t and grub_size_t, | |
33782 | respectively. | |
33783 | ||
fe6b695a | 33784 | * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the |
524a1e6a | 33785 | return value is signed. |
33786 | (grub_file_seek): Change the type of OLD to grub_off_t. Do not | |
33787 | test if OFFSET is less than zero, as OFFSET is unsigned now. | |
33788 | ||
33789 | * kern/disk.c (struct grub_disk_cache): Change the type of | |
33790 | "sector" to grub_disk_addr_t. | |
33791 | (grub_disk_cache_get_index): Change the type of SECTOR to | |
33792 | grub_disk_addr_t. Calculate the hash with SECTOR casted to | |
33793 | unsigned after shifting. | |
33794 | (grub_disk_cache_invalidate): Change the type of SECTOR to | |
33795 | grub_disk_addr_t. | |
33796 | (grub_disk_cache_unlock): Likewise. | |
33797 | (grub_disk_cache_store): Likewise. | |
33798 | (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE, | |
33799 | START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t, | |
33800 | grub_disk_addr_t and grub_uint64_t, respectively. | |
33801 | (grub_disk_read): Use an unsigned variable REAL_OFFSET for the | |
33802 | body, as the value of OFFSET is tweaked by | |
33803 | grub_disk_check_range. Change the types of START_SECTOR, LEN and | |
33804 | POS to grub_disk_addr_t, grub_size_t and grub_size_t, | |
33805 | respectively. | |
33806 | (grub_disk_write): Use an unsigned variable REAL_OFFSET for the | |
33807 | body, as the value of OFFSET is tweaked by | |
33808 | grub_disk_check_range. Change the types of LEN and N to | |
33809 | grub_size_t. | |
33810 | ||
33811 | * io/gzio.c (struct grub_gzio): Change the types of "data_offset" | |
33812 | and "saved_offset" to grub_off_t. | |
33813 | (test_header): Cast BUF to char *. | |
33814 | (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF | |
33815 | to char *. | |
33816 | (grub_gzio_read): Change the types of OFFSET and SIZE to | |
33817 | grub_off_t and grub_size_t, respectively. | |
33818 | ||
33819 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA): | |
33820 | Removed. | |
33821 | (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c. | |
33822 | (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40. | |
33823 | (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42. | |
33824 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e. | |
33825 | (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12. | |
33826 | ||
33827 | * include/grub/types.h (grub_off_t): Unconditionally set to | |
33828 | grub_uint64_t. | |
33829 | (grub_disk_addr_t): Changed to grub_uint64_t. | |
33830 | ||
33831 | * include/grub/partition.h (struct grub_partition): Change the | |
33832 | types of "start", "len" and "offset" to grub_disk_addr_t, | |
33833 | grub_uint64_t and grub_disk_addr_t, respectively. | |
33834 | (grub_partition_get_start): Return grub_disk_addr_t. | |
33835 | (grub_partition_get_len): Return grub_uint64_t. | |
33836 | ||
33837 | * include/grub/misc.h (grub_strtoull): New prototype. | |
33838 | (grub_divmod64): Likewise. | |
33839 | ||
33840 | * include/grub/fshelp.h (grub_fshelp_read_file): Change the types | |
33841 | of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and | |
33842 | grub_off_t, respectively. | |
33843 | All callers and references changed. | |
33844 | ||
33845 | * include/grub/fs.h (struct grub_fs): Change the type of LEN to | |
33846 | grub_size_t in "read". | |
33847 | All callers and references changed. | |
33848 | ||
33849 | * include/grub/file.h (struct grub_file): Change the types of | |
33850 | "offset" and "size" to grub_off_t and grub_off_t, | |
33851 | respectively. Change the type of SECTOR to grub_disk_addr_t in | |
33852 | "read_hook". | |
33853 | (grub_file_read): Change the type of LEN to grub_size_t. | |
33854 | (grub_file_seek): Return grub_off_t. Change the type of OFFSET to | |
33855 | grub_off_t. | |
33856 | (grub_file_size): Return grub_off_t. | |
33857 | (grub_file_tell): Likewise. | |
33858 | All callers and references changed. | |
33859 | ||
33860 | * include/grub/disk.h (struct grub_disk_dev): Change the types of | |
33861 | SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and | |
33862 | "write". | |
33863 | (struct grub_disk): Change the type of "total_sectors" to | |
33864 | grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in | |
f19dbdb7 | 33865 | "read_hook". |
524a1e6a | 33866 | (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to |
33867 | grub_disk_addr_t, grub_off_t and grub_size_t, respectively. | |
33868 | (grub_disk_write): Likewise. | |
33869 | All callers and references changed. | |
33870 | ||
33871 | * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to | |
33872 | char * for grub_strncmp to silence gcc. | |
33873 | (grub_iso9660_mount): Likewise. | |
33874 | (grub_iso9660_mount): Likewise. | |
33875 | (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense | |
33876 | return statement. | |
33877 | (grub_iso9660_iterate_dir): Likewise. | |
33878 | (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *. | |
33879 | ||
33880 | * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and | |
33881 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
33882 | ||
33883 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
33884 | ||
33885 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
33886 | ||
33887 | * fs/minix.c (grub_jfs_read_file): Likewise. | |
33888 | ||
33889 | * fs/sfs.c (grub_jfs_read_file): Likewise. | |
33890 | ||
33891 | * fs/ufs.c (grub_jfs_read_file): Likewise. | |
33892 | ||
33893 | * fs/xfs.c (grub_jfs_read_file): Likewise. | |
33894 | ||
33895 | * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN | |
33896 | and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t, | |
33897 | respectively. | |
33898 | ||
33899 | * fs/ext2.c (grub_ext2_read_block): When an error happens, set | |
33900 | BLKNR to -1 instead of returning GRUB_ERRNO. | |
33901 | (grub_ext2_read_file): Change the types of SECTOR and | |
33902 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
33903 | ||
33904 | * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and | |
33905 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
33906 | ||
33907 | * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for | |
33908 | grub_file_read. | |
33909 | ||
33910 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format | |
33911 | string. Do not cast SECTOR explicitly. | |
33912 | ||
33913 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of | |
33914 | TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS. | |
33915 | (grub_biosdisk_rw): Change the types of SECTOR and SIZE to | |
33916 | grub_disk_addr_t and grub_size_t, respectively. If the sector is | |
33917 | over 2TB and LBA mode is not supported, raise an error. | |
33918 | (get_safe_sectors): New function. | |
33919 | (grub_biosdisk_read): Use get_safe_sectors. | |
33920 | (grub_biosdisk_write): Likewise. | |
33921 | ||
33922 | * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string. | |
33923 | (grub_efidisk_write): Likewise. | |
33924 | ||
33925 | * disk/loopback.c (delete_loopback): Cosmetic changes. | |
33926 | (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME | |
33927 | correctly. | |
33928 | (grub_loopback_open): Likewise. | |
33929 | (grub_loopback_read): Likewise. Also, change the type of POS to | |
33930 | grub_off_t, and fix the usage of grub_memset. | |
33931 | ||
33932 | * commands/i386/pc/play.c: Include grub/machine/time.h. | |
33933 | ||
33934 | * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to | |
33935 | print FILE->SIZE. | |
33936 | ||
33937 | * commands/configfile.c: Include grub/env.h. | |
33938 | ||
33939 | * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use | |
33940 | GRUB_ERRNO directly instead. Change the type of POS to | |
33941 | grub_off_t. Follow the coding standard. | |
33942 | ||
33943 | * commands/blocklist.c: Include grub/partition.h. | |
33944 | (grub_cmd_blocklist): Return an error if the underlying device is | |
33945 | not a disk. Take the starting sector of a partition into account, | |
33946 | if a partition is used. | |
33947 | ||
33948 | * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of | |
33949 | a length field. | |
33950 | (lba_mode): Support 64-bit addresses. | |
33951 | (chs_mode): Likewise. | |
33952 | (copy_buffer): Adapted to the new offsets of a length field and a | |
33953 | segment field. | |
33954 | (blocklist_default_start): Allocate 64-bit space. | |
33955 | ||
33956 | * boot/i386/pc/boot.S (force_lba): Removed. | |
33957 | (boot_drive): Moved to under KERNEL_SECTOR. | |
fe987087 | 33958 | (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit |
524a1e6a | 33959 | space. |
33960 | (real_start): Set %si earlier. Remove code for FORCE_LBA, since it | |
33961 | is useless. | |
33962 | (lba_mode): Refactored to support a 64-bit address. More size | |
33963 | optimization. | |
33964 | (setup_sectors): Likewise. | |
33965 | ||
53af98ad | 33966 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
33967 | ||
33968 | * DISTLIST: Added include/grub/i386/linux.h. Removed | |
33969 | include/grub/i386/pc/linux.h | |
33970 | ||
33971 | * configure.ac (AC_INIT): Bumped to 1.94. | |
33972 | ||
33973 | * config.guess: Updated from gnulib. | |
33974 | * config.sub: Likewise. | |
33975 | * install-sh: Likewise. | |
33976 | * mkinstalldirs: Likewise. | |
33977 | ||
b4c1940a | 33978 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
33979 | ||
33980 | * conf/common.rmk (grub_modules_init.lst): Depended on | |
33981 | grub_emu_SOURCES, excluding grub_emu_init.c, instead of | |
33982 | MODSRCFILES. | |
33983 | ||
33984 | * genmk.rb (PModule::rule): Reverted the previous change. | |
33985 | ||
cfca1cfd | 33986 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
33987 | ||
33988 | * conf/common.rmk (grub_modules_init.lst): Depends on | |
33989 | $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure | |
33990 | that the target does not exist before producing. | |
33991 | (grub_modules_init.h): Remove the target before generating. | |
33992 | (grub_emu_init.c): Likewise. | |
33993 | ||
33994 | * genmk.rb (PModule::rule): Add source files into MODSRCFILES. | |
33995 | ||
aa6d7826 | 33996 | 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx> |
33997 | ||
33998 | * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS | |
33999 | for the target-specific tests. Make sure that we also have the | |
34000 | up-to-date target variables for those tests. | |
34001 | ||
26c607b9 | 34002 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
34003 | ||
34004 | * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_. | |
34005 | (PModule::rule): Likewise. | |
34006 | ||
0162321a | 34007 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
34008 | ||
34009 | * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of | |
34010 | TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why | |
34011 | target-specific flags should be prefixed. | |
34012 | (PModule::rule): Likewise. | |
34013 | ||
6c826348 | 34014 | 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org> |
34015 | ||
34016 | * configure.ac (CMP): Check if cmp is available explicitly. | |
34017 | ||
b977bf01 | 34018 | 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org> |
34019 | ||
34020 | * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed. | |
34021 | (target_cpu): New variable. | |
34022 | (pkglibdir): Use target_cpu instead of host_cpu. | |
f19dbdb7 | 34023 | |
b977bf01 | 34024 | * util/i386/pc/grub-install.in (host_cpu): Removed. |
34025 | (target_cpu): New variable. | |
34026 | (pkglibdir): Use target_cpu instead of host_cpu. | |
34027 | ||
34028 | * util/genmoddep.c: Removed. | |
f19dbdb7 | 34029 | |
b977bf01 | 34030 | * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P |
34031 | instead of GRUB_HOST_SIZEOF_VOID_P. | |
34032 | * kern/dl.c: Likewise. | |
34033 | ||
34034 | * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to | |
34035 | ... | |
34036 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
34037 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
34038 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
34039 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
34040 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
34041 | * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
34042 | to ... | |
34043 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
34044 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
34045 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
34046 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
34047 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
34048 | * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
34049 | to ... | |
34050 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
34051 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
34052 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
34053 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
34054 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
34055 | ||
34056 | * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use | |
34057 | GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P. | |
34058 | [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG | |
34059 | instead of GRUB_HOST_SIZEOF_LONG. | |
34060 | [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of | |
34061 | GRUB_HOST_WORDS_BIGENDIAN to define or undefine | |
34062 | GRUB_CPU_WORDS_BIGENDIAN. | |
34063 | Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to | |
34064 | define grub_host_addr_t, grub_host_off_t, grub_host_size_t and | |
34065 | grub_host_ssize_t. | |
34066 | ||
34067 | * conf/i386-efi.rmk (noinst_UTILITIES): Removed. | |
34068 | (genmoddep_SOURCES): Likewise. | |
34069 | * conf/i386-pc.rmk (noinst_UTILITIES): Likewise. | |
34070 | (genmoddep_SOURCES): Likewise. | |
34071 | * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise. | |
34072 | (genmoddep_SOURCES): Likewise. | |
34073 | * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES): | |
34074 | Likewise. | |
34075 | (genmoddep_SOURCES): Likewise. | |
34076 | ||
34077 | * genmoddep.awk: New file. | |
34078 | ||
34079 | * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS, | |
34080 | TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC, | |
34081 | CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively. | |
34082 | (PModule::rule): Likewise. | |
34083 | (Program::rule): Likewise. | |
34084 | (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of | |
34085 | BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS, | |
34086 | respectively. | |
34087 | ||
34088 | * configure.ac: Rewritten intensively to use host and target | |
34089 | instead of build and host, respectively. | |
34090 | ||
34091 | * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu. | |
34092 | (host_cpu): Removed. | |
34093 | (target_cpu): New variable. | |
34094 | (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\". | |
34095 | (BUILD_CC): Removed. | |
34096 | (BUILD_CFLAGS): Likewise. | |
34097 | (BUILD_CPPFLAGS): Likewise. | |
34098 | (TARGET_CC): New variable. | |
34099 | (TARGET_CFLAGS): Likewise. | |
34100 | (TARGET_CPPFLAGS): Likewise. | |
34101 | (TARGET_LDFLAGS): Likewise. | |
34102 | (AWK): Likewise. | |
34103 | (include): Use target_cpu instead of host_cpu. | |
34104 | (moddep.lst:): Use genmoddep.awk instead of genmoddep. | |
f19dbdb7 | 34105 | |
b977bf01 | 34106 | * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c. |
34107 | ||
f09771a1 | 34108 | 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi> |
34109 | ||
34110 | * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to | |
34111 | 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed | |
34112 | field 'false' to 'exec_on_false'. | |
34113 | (grub_script_create_cmdif): Renamed argument names to reflect above | |
34114 | changes. | |
34115 | ||
34116 | * normal/execute.c (grub_script_execute_cmdif): Likewise. | |
34117 | ||
34118 | * normal/script.c (grub_script_create_cmdif): Likewise. | |
34119 | ||
118f4fb3 | 34120 | 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org> |
34121 | ||
34122 | * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the | |
34123 | top. | |
34124 | (grub_hfsplus_btree_recptr): Likewise. | |
34125 | (grub_hfsplus_find_block): Do not take RETRY any longer. Use | |
34126 | FILEBLOCK both to pass a block number and store next block | |
34127 | number. | |
34128 | (grub_hfsplus_read_block): Rewritten heavily to support an extent | |
34129 | overflow file correctly. Specify errors appropriately, because | |
34130 | fshelp expects that GRUB_ERRNO is set when fails. Reuse | |
34131 | grub_hfsplus_btree_recptr to get the pointer to a found key. | |
34132 | (grub_hfsplus_btree_search): Return 1 instead of 0 when no match | |
34133 | is found. | |
34134 | ||
34135 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and | |
34136 | linux.mod. | |
34137 | (_linux_mod_SOURCES): New variable. | |
34138 | (_linux_mod_CFLAGS): Likewise. | |
34139 | (_linux_mod_LDFLAGS): Likewise. | |
34140 | (linux_mod_SOURCES): Likewise. | |
34141 | (linux_mod_CFLAGS): Likewise. | |
34142 | (linux_mod_LDFLAGS): Likewise. | |
34143 | ||
34144 | * DISTLIST: Added loader/i386/efi/linux.c, | |
34145 | loader/i386/efi/linux_normal.c and | |
34146 | include/grub/i386/efi/loader.h. | |
34147 | ||
34148 | * loader/i386/efi/linux.c: New file. | |
34149 | * loader/i386/efi/linux_normal.c: Likewise. | |
34150 | * include/grub/i386/efi/loader.h: Likewise. | |
34151 | ||
89a7d726 | 34152 | 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org> |
34153 | ||
34154 | * commands/blocklist.c: New file. | |
34155 | ||
34156 | * DISTLIST: Added commands/blocklist.c. | |
34157 | ||
34158 | * term/efi/console.c (grub_console_highlight_color): Use a lighter | |
43b553ad | 34159 | color for the background, and a darker color for the foreground. |
89a7d726 | 34160 | (grub_console_checkkey): Return READ_KEY. |
34161 | (grub_console_cls): Set the background to | |
34162 | GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen. | |
34163 | ||
34164 | * kern/efi/efi.c (grub_efi_exit_boot_services): New function. | |
34165 | ||
34166 | * include/grub/i386/linux.h (struct linux_kernel_params): Fixed | |
34167 | the size of "padding5", "hd0_drive_info" and "hd1_drive_info". | |
34168 | ||
34169 | * include/grub/efi/efi.h (grub_efi_exit_boot_services): New | |
34170 | prototype. | |
34171 | ||
34172 | * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift | |
34173 | BG. The spec is wrong again. | |
34174 | ||
34175 | * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New | |
34176 | prototype. | |
34177 | [GRUB_UTIL] (grub_blocklist_fini): Likewise. | |
34178 | ||
34179 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
34180 | commands/blocklist.c. | |
34181 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 34182 | |
89a7d726 | 34183 | * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod. |
34184 | (blocklist_mod_SOURCES): New variable. | |
34185 | (blocklist_mod_CFLAGS): Likewise. | |
34186 | (blocklist_mod_LDFLAGS): Likewise. | |
34187 | ||
75c8f258 | 34188 | 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org> |
34189 | ||
34190 | * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate | |
34191 | duplication. | |
34192 | (lba_mode): Use %eax more intensively to reduce the code size. | |
34193 | ||
da2eb181 | 34194 | 2006-05-20 Marco Gerards <marco@gnu.org> |
34195 | ||
34196 | * normal/lexer.c (grub_script_yylex): Don't filter out newlines. | |
34197 | ||
34198 | * normal/parser.y (commandblock): Defined as <cmd>. A subroutine | |
34199 | for `menuentry'. | |
34200 | (script): Accept leading newlines. | |
34201 | (newlines): New rule to describe 0 or more newlines. | |
34202 | (commands): Accept `command' with trailing newline. Fixed the | |
34203 | order in which arguments were passed to `grub_script_add_cmd'. | |
34204 | Accept commands separated by newlines. | |
34205 | (function): Changed to accept newlines. | |
34206 | (menuentry) Rewritten. | |
34207 | ||
34208 | * normal/script.c (grub_script_create_cmdmenu): Add new entries in | |
34209 | front of the list, instead of to the end. | |
34210 | ||
577b4050 | 34211 | 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org> |
34212 | ||
34213 | * util/i386/pc/grub-install.in (bindir): New variable. | |
34214 | (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee | |
34215 | Shaver <lbgwjl@gmail.com>. | |
34216 | ||
0d6e1189 | 34217 | 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org> |
34218 | ||
34219 | * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of | |
34220 | grub/machine/linux.h | |
34221 | * loader/i386/pc/linux.c: Likewise. | |
34222 | ||
34223 | * include/grub/i386/pc/linux.h: Moved to ... | |
34224 | * include/grub/i386/linux.h: ... here. | |
34225 | ||
34226 | * include/grub/i386/linux.h (struct linux_kernel_params): New | |
34227 | struct. | |
f19dbdb7 | 34228 | |
31b86e9f | 34229 | 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi> |
34230 | ||
34231 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds | |
34232 | checking. | |
34233 | (grub_video_vbe_blit_glyph): Likewise. | |
34234 | (grub_video_vbe_blit_bitmap): Likewise. | |
34235 | (grub_video_vbe_blit_render_target): Likewise. | |
34236 | ||
83b984de | 34237 | 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org> |
34238 | ||
34239 | * configure.ac (--with-platform): Properly quote the square | |
34240 | brackets. | |
34241 | ||
5f0413bd | 34242 | 2006-05-08 Marco Gerards <marco@gnu.org> |
34243 | ||
34244 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from | |
34245 | this... | |
34246 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
34247 | (grubof_symlist.c): Renamed from this... | |
34248 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
34249 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
34250 | (grubof_SOURCES): Renamed from this... | |
34251 | (kernel_elf_SOURCES): ...to this. | |
34252 | (grubof_HEADERS): Renamed from this... | |
34253 | (kernel_elf_HEADERS): ...to this. | |
34254 | (grubof_CFLAGS): Renamed from this... | |
34255 | (kernel_elf_CFLAGS): ...to this. | |
34256 | (grubof_ASFLAGS): Renamed from this... | |
34257 | (kernel_elf_ASFLAGS): ...to this. | |
34258 | (grubof_LDFLAGS): Renamed from this... | |
34259 | (kernel_elf_LDFLAGS): ...to this. | |
34260 | ||
34261 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from | |
34262 | this... | |
34263 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
34264 | (grubof_symlist.c): Renamed from this... | |
34265 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
34266 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
34267 | (grubof_SOURCES): Renamed from this... | |
34268 | (kernel_elf_SOURCES): ...to this. | |
34269 | (grubof_HEADERS): Renamed from this... | |
34270 | (kernel_elf_HEADERS): ...to this. | |
34271 | (grubof_CFLAGS): Renamed from this... | |
34272 | (kernel_elf_CFLAGS): ...to this. | |
34273 | (grubof_ASFLAGS): Renamed from this... | |
34274 | (kernel_elf_ASFLAGS): ...to this. | |
34275 | (grubof_LDFLAGS): Renamed from this... | |
34276 | (kernel_elf_LDFLAGS): ...to this. | |
34277 | ||
34278 | * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use | |
34279 | `kernel.elf' instead of `grubof'. | |
34280 | ||
05568c2e | 34281 | 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org> |
34282 | ||
34283 | Add --with-platform to configure. Use pkglibdir instead of | |
34284 | pkgdatadir. This is reported by Roger Leigh. | |
34285 | ||
34286 | * util/powerpc/ieee1275/grub-install.in (datadir): Removed. | |
34287 | (host_vendor): Likewise. | |
34288 | (host_os): Likewise. | |
34289 | (pkgdatadir): Likewise. | |
34290 | (platform): New variable. | |
34291 | (pkglibdir): Likewise. | |
34292 | Use PKGLIBDIR instead of PKGDATADIR. | |
f19dbdb7 | 34293 | |
05568c2e | 34294 | * util/i386/pc/grub-install.in (datadir): Removed. |
34295 | (host_vendor): Likewise. | |
34296 | (host_os): Likewise. | |
34297 | (pkgdatadir): Likewise. | |
34298 | (platform): New variable. | |
34299 | (pkglibdir): Likewise. | |
34300 | Use PKGLIBDIR instead of PKGDATADIR. | |
34301 | ||
34302 | * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR | |
34303 | instead of GRUB_DATADIR. | |
34304 | (main): Likewise. | |
34305 | * util/i386/pc/grub-mkimage.c (usage): Likewise. | |
34306 | (main): Likewise. | |
34307 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
34308 | (main): Likewise. | |
34309 | ||
34310 | * configure.ac (--with-platform): New option. | |
34311 | Use PLATFORM instead of HOST_VENDOR to specify a platform. | |
34312 | ||
34313 | * Makefile.in: Include a makefile based on PLATFORM instead of | |
34314 | HOST_VENDOR. | |
34315 | (pkgdatadir): Not appended by the machine type. | |
34316 | (pkglibdir): Appended by the machine type. | |
34317 | (host_vendor): Removed. | |
34318 | (platform): New variable. | |
34319 | (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR. | |
34320 | (install-local): Use PKGLIBDIR instead of PKGDATADIR. | |
34321 | (uninstall): Likewise. | |
34322 | ||
4e93851c | 34323 | 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org> |
34324 | ||
34325 | Use the environment context in the menu. Remove the commands | |
34326 | "default" and "timeout", and use variables instead. | |
f19dbdb7 | 34327 | |
4e93851c | 34328 | * normal/menu.c: Include grub/env.h. |
34329 | (print_entry): Cast TITLE to silence gcc. | |
34330 | (get_timeout): New function. | |
34331 | (set_timeout): Likewise. | |
34332 | (get_entry_number): Likewise. | |
34333 | (run_menu): Use a default entry, a fallback entry and a timeout | |
34334 | in the environment variables "default", "fallback" and | |
34335 | "timeout". Also, tweak the default entry if it is not within the | |
34336 | current menu entries. | |
34337 | (grub_menu_run): Use a fallback entry in the environment variable | |
34338 | "fallback". | |
34339 | ||
34340 | * normal/main.c (read_config_file): Do not initialize | |
34341 | NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or | |
34342 | NEWMENU->TIMEOUT. | |
34343 | (grub_normal_execute): Use a data slot to store the menu. | |
34344 | ||
34345 | * include/grub/normal.h (struct grub_menu): Removed default_entry, | |
34346 | fallback_entry and timeout. | |
34347 | (struct grub_menu_list): Removed. | |
34348 | (grub_menu_list_t): Likewise. | |
34349 | (struct grub_context): Likewise. | |
34350 | (grub_context_t): Likewise. | |
34351 | (grub_context_get): Likewise. | |
34352 | (grub_context_get_current_menu): Likewise. | |
34353 | (grub_context_push_menu): Likewise. | |
34354 | (grub_context_pop_menu): Likewise. | |
34355 | (grub_default_init): Likewise. | |
34356 | (grub_default_fini): Likewise. | |
34357 | (grub_timeout_init): Likewise. | |
34358 | (grub_timeout_fini): Likewise. | |
34359 | ||
34360 | * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod | |
34361 | and timeout.mod. | |
34362 | (normal_mod_SOURCES): Removed normal/context.c. | |
34363 | ||
34364 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed | |
34365 | commands/default.c, commands/timeout.c and normal/context.c. | |
34366 | (normal_mod_SOURCES): Removed normal/context.c. | |
34367 | ||
34368 | * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c, | |
34369 | commands/timeout.c and normal/context.c. | |
34370 | (normal_mod_SOURCES): Removed normal/context.c. | |
34371 | ||
34372 | * conf/i386-efi.rmk (grub_emu_SOURCES): Removed | |
34373 | commands/default.c, commands/timeout.c and normal/context.c. | |
34374 | (normal_mod_SOURCES): Removed normal/context.c. | |
34375 | ||
34376 | * conf/common.rmk (pkgdata_MODULES): Removed default.mod and | |
34377 | timeout.mod. | |
34378 | (default_mod_SOURCES): Removed. | |
34379 | (default_mod_CFLAGS): Likewise. | |
34380 | (default_mod_LDFLAGS): Likewise. | |
34381 | (timeout_mod_SOURCES): Removed. | |
34382 | (timeout_mod_CFLAGS): Likewise. | |
34383 | (timeout_mod_LDFLAGS): Likewise. | |
34384 | ||
34385 | * DISTLIST: Removed commands/default.c, commands/timeout.c and | |
34386 | normal/context.c. | |
34387 | ||
34388 | * commands/default.c: Removed. | |
34389 | * commands/timeout.c: Likewise. | |
34390 | * normal/context.c: Likewise. | |
34391 | ||
1eb9cc1d | 34392 | 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi> |
34393 | ||
34394 | * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag. | |
34395 | ||
385bd9c1 | 34396 | 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org> |
34397 | ||
34398 | * kern/env.c (struct grub_env_context): Removed "sorted". Renamed | |
34399 | "next" to "prev" for readability. | |
34400 | (struct grub_env_sorted_var): New struct. | |
34401 | (grub_env_context): Renamed to ... | |
34402 | (initial_context): ... this. | |
34403 | (grub_env_var_context): Renamed to ... | |
34404 | (current_context): ... this. | |
34405 | (grub_env_find): Look only at CURRENT_CONTEXT. | |
34406 | (grub_env_context_open): Rewritten to copy exported variables from | |
34407 | previous context. | |
34408 | (grub_env_context_close): Rewritten according to the new | |
34409 | scheme. Also, add an assertion to prevent the initial context from | |
34410 | removed. | |
34411 | (grub_env_insert): Removed the code for the sorted list. | |
34412 | (grub_env_remove): Likewise. | |
34413 | (grub_env_export): Simply mark the variable with | |
34414 | GRUB_ENV_VAR_GLOBAL. | |
34415 | (grub_env_set): A cosmetic change for naming consistency. | |
34416 | (grub_env_get): Likewise. | |
34417 | (grub_env_unset): Likewise. | |
34418 | (grub_env_iterate): Rewritten to sort variables within this | |
34419 | function. | |
34420 | (grub_register_variable_hook): Fixed for naming consistency. Call | |
34421 | grub_env_find again, only if NAME is not found at the first time. | |
34422 | (mangle_data_slot_name): New function. | |
34423 | (grub_env_set_data_slot): Likewise. | |
34424 | (grub_env_get_data_slot): Likewise. | |
34425 | (grub_env_unset_data_slot): Likewise. | |
34426 | ||
34427 | * include/grub/env.h (grub_env_var_type): New enum. | |
34428 | (GRUB_ENV_VAR_LOCAL): New constant. | |
34429 | (GRUB_ENV_VAR_GLOBAL): Likewise. | |
34430 | (GRUB_ENV_VAR_DATA): Likewise. | |
34431 | (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added | |
34432 | "type". | |
34433 | (grub_env_set): Replace VAR with NAME for consistency. | |
34434 | (grub_register_variable_hook): Likewise. | |
34435 | (grub_env_export): Specify the name of the argument. | |
34436 | (grub_env_set_data_slot): New prototype. | |
34437 | (grub_env_get_data_slot): Likewise. | |
34438 | (grub_env_unset_data_slot): Likewise. | |
34439 | ||
7f362539 | 34440 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
34441 | ||
34442 | Extend the loader so that GRUB can accept a loader which comes | |
34443 | back to GRUB when a loaded image exits. Also, this change adds | |
34444 | support for a chainloader on EFI. | |
f19dbdb7 | 34445 | |
7f362539 | 34446 | * term/efi/console.c: Include grub/misc.h. |
34447 | (grub_console_checkkey): Display a scan code on the top for | |
34448 | debugging. This will be removed once the EFI port gets stable. | |
34449 | Correct the scan code mapping. | |
34450 | ||
34451 | * kern/efi/mm.c (sort_memory_map): Sort in a descending order to | |
34452 | allocate memory from larger regions, in order to reduce the number | |
34453 | of allocated regions. Otherwise, the MacOSX loader panics. | |
34454 | (filter_memory_map): Avoid less than 1MB for compatibility with | |
34455 | other loaders. | |
34456 | (add_memory_regions): Allocate from the tail of a region, if | |
34457 | possible, to avoid allocating a region near to 1MB, for the MacOSX | |
34458 | loader. | |
34459 | ||
34460 | * kern/efi/init.c (grub_efi_set_prefix): Specify | |
34461 | GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image. | |
34462 | ||
34463 | * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new | |
34464 | argument IMAGE_HANDLE and specify it to get a loaded image. | |
34465 | (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to | |
34466 | grub_efi_get_loaded_image. | |
fe6b695a | 34467 | (grub_efi_get_filename): Divide the length by the size of |
7f362539 | 34468 | grub_efi_char16_t. |
34469 | (grub_efi_get_device_path): New function. | |
34470 | (grub_efi_print_device_path): Print End Device Path nodes. Divide | |
34471 | the length by the size of grub_efi_char16_t for a file path device | |
34472 | path node. | |
34473 | ||
34474 | * kern/loader.c (grub_loader_noreturn): New variable. | |
34475 | (grub_loader_set): Accept a new argument NORETURN. Set | |
34476 | GRUB_LOADER_NORETURN to NORETURN. | |
34477 | All callers changed. | |
34478 | (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call | |
34479 | grub_machine_fini. | |
34480 | ||
34481 | * include/grub/efi/efi.h (grub_efi_get_device_path): New | |
34482 | prototype. | |
34483 | (grub_efi_get_loaded_image): Take an argument to specify an image | |
34484 | handle. | |
34485 | ||
34486 | * include/grub/loader.h (grub_loader_set): Added one more argument | |
34487 | NORETURN. | |
34488 | ||
34489 | * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path | |
34490 | instead of grub_efi_open_protocol. | |
34491 | (grub_efidisk_get_device_name): Likewise. | |
34492 | (grub_efidisk_close): Print a newline. | |
34493 | (grub_efidisk_get_device_handle): Fixed to use | |
34494 | GRUB_EFI_DEVICE_PATH_SUBTYPE instead of | |
34495 | GRUB_EFI_DEVICE_PATH_TYPE. | |
34496 | ||
34497 | * disk/efi/efidisk.c (device_path_guid): Moved to ... | |
34498 | * kern/efi/efi.c (device_path_guid): ... here. | |
34499 | ||
34500 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and | |
34501 | chain.mod. | |
34502 | (kernel_mod_HEADERS): Added efi/disk.h. | |
34503 | (_chain_mod_SOURCES): New variable. | |
34504 | (_chain_mod_CFLAGS): Likewise. | |
34505 | (_chain_mod_LDFLAGS): Likewise. | |
34506 | (chain_mod_SOURCES): Likewise. | |
34507 | (chain_mod_CFLAGS): Likewise. | |
34508 | (chain_mod_LDFLAGS): Likewise. | |
34509 | ||
34510 | * DISTLIST: Added include/grub/efi/chainloader.h, | |
34511 | loader/efi/chainloader.c and loader/efi/chainloader_normal.c. | |
34512 | ||
34513 | * include/grub/efi/chainloader.h: New file. | |
34514 | * loader/efi/chainloader.c: Likewise. | |
34515 | * loader/efi/chainloader_normal.c: Likewise. | |
34516 | ||
c0111d6e | 34517 | 2006-04-30 Marco Gerards <marco@gnu.org> |
34518 | ||
34519 | * commands/configfile.c (grub_cmd_source): New function. | |
34520 | (GRUB_MOD_INIT): Register the commands `source' and `.'. | |
34521 | (GRUB_MOD_FINI): De-register the commands `source' and `.'. | |
34522 | ||
df5341da | 34523 | 2006-04-30 Marco Gerards <marco@gnu.org> |
34524 | ||
34525 | * normal/execute.c (grub_script_execute_cmd): Change the return | |
34526 | type to `grub_err_t'. Correctly return the error. | |
34527 | (grub_script_execute_cmdline): In case a command line is not a | |
34528 | command or a function, try to interpret it as an assignment. | |
34529 | ||
f85934bd | 34530 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
34531 | ||
34532 | * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak. | |
34533 | (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also, | |
34534 | skip a node whose name is obviously invalid as UTF-16, | |
34535 | i.e. contains a NUL character. Stop the iteration when the last | |
34536 | directory entry is found. Instead of using the return value of | |
34537 | grub_hfsplus_btree_iterate_node, store the value in RET and use | |
34538 | it, because the iterator can be stopped by the last directory | |
34539 | entry. | |
34540 | ||
8f8a2cf8 | 34541 | 2006-04-30 Marco Gerards <marco@gnu.org> |
34542 | ||
34543 | * include/grub/env.h (grub_env_export): New prototype. Reported | |
34544 | by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>. | |
34545 | ||
a27e84ce | 34546 | 2006-04-30 Marco Gerards <marco@gnu.org> |
34547 | ||
34548 | * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the | |
34549 | size of the extents in a catalog file record. | |
34550 | ||
eaef0553 | 34551 | 2006-04-29 Marco Gerards <marco@gnu.org> |
34552 | ||
34553 | * commands/configfile.c (grub_cmd_configfile): Execute the | |
34554 | configfile within its own context. | |
34555 | ||
34556 | * include/grub/env.h (grub_env_context_open): New prototype. | |
34557 | (grub_env_context_close): Likewise. | |
34558 | ||
34559 | * kern/env.c (grub_env): Removed. | |
34560 | (grub_env_sorted): Likewise. | |
34561 | (grub_env_context): New variable. | |
34562 | (grub_env_var_context): Likewise. | |
34563 | (grub_env_find): Search both the active context and the global | |
34564 | context. | |
34565 | (grub_env_context_open): New function. | |
34566 | (grub_env_context_close): Likewise. | |
34567 | (grub_env_insert): Likewise. | |
34568 | (grub_env_remove): Likewise. | |
34569 | (grub_env_export): Likewise. | |
34570 | (grub_env_set): Changed to use helper functions to avoid code | |
34571 | duplication. | |
34572 | (grub_env_iterate): Rewritten so both the current context and the | |
34573 | global context are being used. | |
34574 | ||
34575 | * normal/command.c (export_command): New function. | |
34576 | (grub_command_init): Register the `export' function. | |
34577 | ||
7b455f4d | 34578 | 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org> |
34579 | ||
34580 | * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments | |
34581 | explicitly to suppress gcc's warnings. | |
34582 | * fs/fat.c (grub_fat_find_dir): Likewise. | |
34583 | (grub_fat_label): Likewise. | |
34584 | * fs/xfs.c (grub_xfs_read_inode): Likewise. | |
34585 | (grub_xfs_mount): Likewise. | |
34586 | (grub_xfs_label): Likewise. | |
34587 | * fs/affs.c (grub_affs_mount): Likewise. | |
34588 | (grub_affs_label): Likewise. | |
34589 | (grub_affs_iterate_dir): Likewise. | |
34590 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
34591 | (grub_sfs_iterate_dir): Likewise. | |
34592 | * fs/ufs.c (grub_ufs_lookup_symlink): Likewise. | |
34593 | * fs/hfs.c (grub_hfs_mount): Likewise. | |
34594 | (grub_hfs_cmp_catkeys): Likewise. | |
34595 | (grub_hfs_find_dir): Likewise. | |
34596 | (grub_hfs_dir): Likewise. | |
34597 | (grub_hfs_label): Likewise. | |
34598 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
34599 | (grub_jfs_opendir): Likewise. | |
34600 | (grub_jfs_getent): Likewise. | |
34601 | (grub_jfs_lookup_symlink): Likewise. | |
34602 | (grub_jfs_label): Likewise. | |
34603 | * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise. | |
34604 | (grub_hfsplus_iterate_dir): Likewise. | |
34605 | (grub_hfsplus_btree_iterate_node): Made static. | |
34606 | ||
34607 | * util/grub-emu.c (prefix): New variable. | |
34608 | (grub_machine_set_prefix): New function. | |
34609 | (main): Do not set the environment variable "prefix" here. Only | |
34610 | set PREFIX, which is used later by grub_machine_set_prefix. | |
34611 | ||
34612 | * include/grub/video.h: Do not include grub/symbol.h. | |
34613 | (grub_video_register): Not exported. This symbol is not defined in | |
34614 | the kernel. | |
34615 | (grub_video_unregister): Likewise. | |
34616 | (grub_video_iterate): Likewise. | |
34617 | (grub_video_setup): Likewise. | |
34618 | (grub_video_restore): Likewise. | |
34619 | (grub_video_get_info): Likewise. | |
34620 | (grub_video_get_blit_format): Likewise. | |
34621 | (grub_video_set_palette): Likewise. | |
34622 | (grub_video_get_palette): Likewise. | |
34623 | (grub_video_set_viewport): Likewise. | |
34624 | (grub_video_get_viewport): Likewise. | |
34625 | (grub_video_map_color): Likewise. | |
34626 | (grub_video_map_rgb): Likewise. | |
34627 | (grub_video_map_rgba): Likewise. | |
34628 | (grub_video_fill_rect): Likewise. | |
34629 | (grub_video_blit_glyph): Likewise. | |
34630 | (grub_video_blit_bitmap): Likewise. | |
34631 | (grub_video_blit_render_target): Likewise. | |
34632 | (grub_video_scroll): Likewise. | |
34633 | (grub_video_swap_buffers): Likewise. | |
34634 | (grub_video_create_render_target): Likewise. | |
34635 | (grub_video_delete_render_target): Likewise. | |
34636 | (grub_video_set_active_render_target): Likewise. | |
34637 | ||
34638 | * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC): | |
34639 | Undefined. | |
34640 | [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise. | |
34641 | ||
34642 | * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on | |
34643 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
34644 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
34645 | instead of $(srcdir)/genkernsyms.sh. | |
34646 | ||
34647 | * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on | |
34648 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
34649 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
34650 | instead of $(srcdir)/genkernsyms.sh. | |
34651 | ||
34652 | * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use | |
34653 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
34654 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
34655 | instead of $(srcdir)/genkernsyms.sh. | |
34656 | ||
34657 | * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use | |
34658 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
34659 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
34660 | instead of $(srcdir)/genkernsyms.sh. | |
34661 | ||
34662 | * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and | |
34663 | genkernsyms.sh. | |
34664 | ||
34665 | * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and | |
34666 | genkernsyms.sh. | |
34667 | (gensymlist.sh): New target. | |
34668 | (genkernsyms.sh): Likewise. | |
34669 | ||
34670 | * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added | |
34671 | genkernsyms.sh.in and gensymlist.sh.in. | |
34672 | ||
34673 | * genkernsyms.sh: Removed. | |
34674 | * gensymlist.sh: Likewise. | |
f19dbdb7 | 34675 | |
7b455f4d | 34676 | * genkernsyms.sh.in: New file. |
34677 | * gensymlist.sh.in: Likewise. | |
34678 | ||
1885bb27 | 34679 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
34680 | ||
34681 | * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not | |
34682 | clobber "prefix", since we may have already set it manually. | |
34683 | ||
71538dff | 34684 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
34685 | ||
34686 | * kern/misc.c (abort): New alias for grub_abort. | |
34687 | ||
2965c7cc | 34688 | 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org> |
34689 | ||
34690 | A new machine-specific function "grub_machine_set_prefix" is | |
34691 | defined. This is called after loading modules, so that a prefix | |
34692 | initialization can use modules. Also, this change adds an | |
34693 | intensive debugging feature for the memory manager via the | |
34694 | configure option "--enable-mm-debug". | |
f19dbdb7 | 34695 | |
2965c7cc | 34696 | * partmap/gpt.c (gpt_partition_map_iterate): Add one more into |
34697 | PART.LEN. | |
34698 | ||
34699 | * kern/sparc64/ieee1275/init.c (abort): Removed. | |
34700 | (grub_stop): Likewise. | |
34701 | (grub_exit): New function. | |
34702 | (grub_set_prefix): Renamed to ... | |
34703 | (grub_machine_set_prefix): ... this. | |
34704 | (grub_machine_init): Do not call grub_set_prefix. | |
34705 | ||
34706 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ... | |
34707 | (grub_machine_set_prefix): ... this. | |
34708 | (grub_machine_init): Do not call grub_set_prefix. | |
34709 | ||
34710 | * kern/i386/pc/init.c (grub_machine_set_prefix): New function. | |
34711 | (grub_machine_init): Do not set the prefix here. | |
34712 | ||
34713 | * kern/i386/efi/init.c (grub_machine_set_prefix): New function. | |
34714 | ||
34715 | * kern/efi/init.c: Include grub/mm.h. | |
34716 | (grub_efi_set_prefix): New function. | |
34717 | ||
34718 | * kern/efi/efi.c (grub_exit): Call grub_efi_fini. | |
34719 | (grub_efi_get_filename): New function. | |
34720 | (grub_print_device_path): Renamed to ... | |
34721 | (grub_efi_print_device_path): ... this. | |
34722 | ||
34723 | * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined. | |
34724 | [MM_DEBUG] (grub_realloc): Likewise. | |
34725 | [MM_DEBUG] (grub_free): Likewise. | |
34726 | [MM_DEBUG] (grub_memalign): Likewise. | |
34727 | [MM_DEBUG] (grub_mm_debug): New variable. | |
34728 | [MM_DEBUG] (grub_debug_malloc): New function. | |
34729 | [MM_DEBUG] (grub_debug_free): New function. | |
34730 | [MM_DEBUG] (grub_debug_realloc): New function. | |
34731 | [MM_DEBUG] (grub_debug_memalign): New function. | |
34732 | ||
34733 | * kern/misc.c (grub_abort): Print a newline to distinguish | |
34734 | the message. | |
34735 | ||
34736 | * kern/main.c (grub_main): Call grub_machine_set_prefix and | |
34737 | grub_set_root_dev after loading modules. This is necessary when | |
34738 | setting a prefix depends on modules. | |
34739 | ||
34740 | * include/grub/efi/efi.h (grub_print_device_path): Renamed to ... | |
34741 | (grub_efi_print_device_path): ... this. | |
34742 | (grub_efi_get_filename): New prototype. | |
34743 | (grub_efi_set_prefix): Likewise. | |
34744 | ||
34745 | * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h | |
34746 | and grub/disk.h. | |
34747 | (grub_efidisk_get_device_handle): New prototype. | |
34748 | (grub_efidisk_get_device_name): Likewise. | |
34749 | ||
34750 | * include/grub/mm.h: Include config.h. | |
34751 | (MM_DEBUG): Removed. | |
34752 | [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype. | |
34753 | [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro. | |
34754 | [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise. | |
34755 | [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise. | |
34756 | [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise. | |
34757 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype. | |
34758 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype. | |
34759 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype. | |
34760 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype. | |
34761 | ||
34762 | * include/grub/kernel.h (grub_machine_set_prefix): New prototype. | |
34763 | ||
34764 | * disk/efi/efidisk.c: Include grub/partition.h. | |
34765 | (iterate_child_devices): New function. | |
34766 | (add_device): First, compare only last device path nodes, so that | |
34767 | devices are sorted by the types. | |
34768 | (grub_efidisk_get_device_handle): New function. | |
34769 | (grub_efidisk_get_device_name): Likewise. | |
34770 | ||
34771 | * configure.ac (--enable-mm-debug): New option to enable the | |
34772 | memory manager debugging feature. This makes the binary much | |
34773 | bigger, so is disabled by default. | |
34774 | ||
9cacaa17 | 34775 | 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org> |
34776 | ||
34777 | Use grub_abort instead of grub_stop, and grub_exit must be | |
34778 | define in each architecture now. Also, this change adds support | |
34779 | for EFI disks. | |
f19dbdb7 | 34780 | |
9cacaa17 | 34781 | * util/i386/pc/grub-probefs.c: Include grub/term.h. |
34782 | (grub_getkey): New function. | |
34783 | (grub_term_get_current): Likewise. | |
34784 | ||
34785 | * util/i386/pc/grub-setup.c: Include grub/term.h. | |
34786 | (grub_getkey): New function. | |
34787 | (grub_term_get_current): Likewise. | |
34788 | ||
34789 | * util/misc.c (grub_stop): Renamed to ... | |
34790 | (grub_exit): ... this. | |
34791 | ||
34792 | * kern/powerpc/ieee1275/init.c (abort): Renamed to ... | |
34793 | (grub_exit): ... this. | |
34794 | (grub_machine_init): Use grub_abort instead of abort. | |
34795 | (grub_stop): Removed. | |
34796 | ||
34797 | * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of | |
34798 | abort. | |
34799 | ||
34800 | * kern/i386/pc/startup.S (grub_exit): New function. | |
34801 | (cold_reboot): New label. | |
34802 | ||
34803 | * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h. | |
34804 | (grub_efi_init): Call grub_efidisk_init. | |
34805 | (grub_efi_fini): Call grub_efidisk_fini. | |
34806 | ||
34807 | * kern/efi/efi.c: Include grub/mm.h. | |
34808 | (grub_efi_console_control_guid): Renamed to ... | |
34809 | (console_control_guid): ... this. | |
34810 | (grub_efi_loaded_image_guid): Renamed to ... | |
34811 | (loaded_image_guid): ... this. | |
34812 | (grub_efi_locate_handle): New function. | |
34813 | (grub_efi_open_protocol): Likewise. | |
34814 | (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of | |
34815 | GRUB_EFI_CONSOLE_CONTROL_GUID. | |
34816 | (grub_efi_exit): Removed. | |
34817 | (grub_stop): Likewise. | |
34818 | (grub_efi_get_loaded_image): Use grub_efi_open_protocol. | |
34819 | (grub_exit): New function. | |
34820 | (grub_print_device_path): Likewise. | |
34821 | ||
34822 | * kern/rescue.c (grub_rescue_cmd_exit): New function. | |
34823 | (grub_enter_rescue_mode): Register "exit". | |
34824 | ||
34825 | * kern/misc.c (grub_real_dprintf): A cosmetic change. | |
34826 | (grub_abort): New function. | |
34827 | ||
34828 | * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop. | |
34829 | ||
34830 | * include/grub/sparc64/ieee1275/kernel.h (abort): Removed. | |
34831 | ||
34832 | * include/grub/powerpc/ieee1275/kernel.h (abort): Removed. | |
34833 | ||
34834 | * include/grub/efi/efi.h (grub_efi_exit): Removed. | |
34835 | (grub_print_device_path): New prototype. | |
34836 | (grub_efi_locate_handle): Likewise. | |
34837 | (grub_efi_open_protocol): Likewise. | |
34838 | ||
34839 | * include/grub/efi/disk.h (grub_efidisk_fini): New file. | |
34840 | * disk/efi/efidisk.c: Likewise. | |
34841 | ||
34842 | * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h. | |
34843 | ||
34844 | * include/grub/efi/console_control.h | |
34845 | (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes. | |
34846 | ||
34847 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the | |
34848 | last 8 bytes as an array. | |
34849 | (GRUB_EFI_DISK_IO_GUID): New macro. | |
34850 | (GRUB_EFI_BLOCK_IO_GUID): Likewise. | |
34851 | (GRUB_EFI_DEVICE_PATH_GUID): Likewise. | |
34852 | (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from | |
34853 | grub_uint8_t. | |
34854 | (struct grub_efi_guid): Use an array to specify the last 8 bytes. | |
34855 | (struct grub_efi_device_path): Rename the member "sub_type" to | |
34856 | "subtype". | |
34857 | (GRUB_EFI_DEVICE_PATH_TYPE): New macro. | |
34858 | (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise. | |
34859 | (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise. | |
34860 | (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise. | |
34861 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise. | |
34862 | (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise. | |
34863 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise. | |
34864 | (GRUB_EFI_NEXT_DEVICE_PATH): Likewise. | |
34865 | (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise. | |
34866 | (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise. | |
34867 | (struct grub_efi_pci_device_path): New structure. | |
34868 | (grub_efi_pci_device_path_t): New type. | |
34869 | (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro. | |
34870 | (struct grub_efi_pccard_device_path): New structure. | |
34871 | (grub_efi_pccard_device_path_t): New type. | |
34872 | (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro. | |
34873 | (struct grub_efi_memory_mapped_device_path): New structure. | |
34874 | (grub_efi_memory_mapped_device_path_t): New type. | |
34875 | (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro. | |
34876 | (struct grub_efi_vendor_device_path): New structure. | |
34877 | (grub_efi_vendor_device_path_t): New type. | |
34878 | (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro. | |
34879 | (struct grub_efi_controller_device_path): New structure. | |
34880 | (grub_efi_controller_device_path_t): New type. | |
34881 | (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro. | |
34882 | (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise. | |
34883 | (struct grub_efi_acpi_device_path): New structure. | |
34884 | (grub_efi_acpi_device_path_t): New type. | |
34885 | (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro. | |
34886 | (struct grub_efi_expanded_acpi_device_path): New structure. | |
34887 | (grub_efi_expanded_acpi_device_path_t): New type. | |
34888 | (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro. | |
34889 | (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise. | |
34890 | (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise. | |
34891 | (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise. | |
34892 | (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise. | |
34893 | (struct grub_efi_atapi_device_path): New structure. | |
34894 | (grub_efi_atapi_device_path_t): New type. | |
34895 | (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro. | |
34896 | (struct grub_efi_fibre_channel_device_path): New structure. | |
34897 | (grub_efi_fibre_channel_device_path_t): New type. | |
34898 | (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro. | |
34899 | (struct grub_efi_1394_device_path): New structure. | |
34900 | (grub_efi_1394_device_path_t): New type. | |
34901 | (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro. | |
34902 | (struct grub_efi_usb_device_path): New structure. | |
34903 | (grub_efi_usb_device_path_t): New type. | |
34904 | (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro. | |
34905 | (struct grub_efi_usb_class_device_path): New structure. | |
34906 | (grub_efi_usb_class_device_path_t): New type. | |
34907 | (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro. | |
34908 | (struct grub_efi_i2o_device_path): New structure. | |
34909 | (grub_efi_i2o_device_path_t): New type. | |
34910 | (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro. | |
34911 | (struct grub_efi_mac_address_device_path): New structure. | |
34912 | (grub_efi_mac_address_device_path_t): New type. | |
34913 | (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro. | |
34914 | (struct grub_efi_ipv4_device_path): New structure. | |
34915 | (grub_efi_ipv4_device_path_t): New type. | |
34916 | (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro. | |
34917 | (struct grub_efi_ipv6_device_path): New structure. | |
34918 | (grub_efi_ipv6_device_path_t): New type. | |
34919 | (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro. | |
34920 | (struct grub_efi_infiniband_device_path): New structure. | |
34921 | (grub_efi_infiniband_device_path_t): New type. | |
34922 | (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro. | |
34923 | (struct grub_efi_uart_device_path): New structure. | |
34924 | (grub_efi_uart_device_path_t): New type. | |
34925 | (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro. | |
34926 | (struct grub_efi_vendor_messaging_device_path): New structure. | |
34927 | (grub_efi_vendor_messaging_device_path_t): New type. | |
34928 | (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro. | |
34929 | (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise. | |
34930 | (struct grub_efi_hard_drive_device_path): New structure. | |
34931 | (grub_efi_hard_drive_device_path_t): New type. | |
34932 | (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro. | |
34933 | (struct grub_efi_cdrom_device_path): New structure. | |
34934 | (grub_efi_cdrom_device_path_t): New type. | |
34935 | (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro. | |
34936 | (struct grub_efi_vendor_media_device_path): New structure. | |
34937 | (grub_efi_vendor_media_device_path_t): New type. | |
34938 | (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro. | |
34939 | (struct grub_efi_file_path_device_path): New structure. | |
34940 | (grub_efi_file_path_device_path_t): New type. | |
34941 | (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro. | |
34942 | (struct grub_efi_protocol_device_path): New structure. | |
34943 | (grub_efi_protocol_device_path_t): New type. | |
34944 | (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro. | |
34945 | (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise. | |
34946 | (struct grub_efi_bios_device_path): New structure. | |
34947 | (grub_efi_bios_device_path_t): New type. | |
34948 | (struct grub_efi_disk_io): New structure. | |
34949 | (grub_efi_disk_io_t): New type. | |
34950 | (struct grub_efi_block_io_media): New structure. | |
34951 | (grub_efi_block_io_media_t): New type. | |
34952 | (struct grub_efi_block_io): New structure. | |
34953 | (grub_efi_block_io_t): New type. | |
34954 | ||
34955 | * include/grub/misc.h (grub_stop): Removed. | |
34956 | (grub_exit): New prototype. | |
34957 | (grub_abort): Likewise. | |
34958 | ||
34959 | * include/grub/disk.h (enum grub_disk_dev_id): Added | |
34960 | GRUB_DISK_DEVICE_EFIDISK_ID. | |
34961 | ||
34962 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added | |
34963 | disk/efi/efidisk.c. | |
34964 | (kernel_syms.lst): Remove the target if an error occurs. | |
34965 | ||
49986a9f | 34966 | 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org> |
34967 | ||
34968 | * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part, | |
34969 | as it was simply too buggy. | |
34970 | ||
970d3b8a | 34971 | 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org> |
34972 | ||
34973 | * kern/misc.c (grub_lltoa): New function. | |
34974 | (grub_vsprintf): Added support for the long long suffix, | |
34975 | i.e. "ll". | |
34976 | ||
ff04ec24 | 34977 | 2006-04-20 Hollis Blanchard <hollis@penguinppc.org> |
34978 | ||
34979 | * Makefile.in (LDFLAGS): Add variable. | |
34980 | (LD): Remove variable. | |
34981 | * configure.ac: Add -m32 to LDFLAGS. | |
34982 | * genmk.rb (PModule#rule): Use $(CC) instead of $(LD). | |
34983 | * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable. | |
34984 | (grubof_LDFLAGS): Use $(COMMON_LDFLAGS). | |
34985 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS, | |
34986 | suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New | |
34987 | variables. | |
34988 | * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
34989 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
34990 | * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
34991 | ||
37e5e1a4 | 34992 | 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi> |
34993 | ||
34994 | * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character | |
34995 | length for unknown glyph. | |
34996 | ||
c352d8dd | 34997 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> |
34998 | ||
2eab1c0d | 34999 | Add support for pre-loaded modules into the EFI port. |
f19dbdb7 | 35000 | |
2eab1c0d | 35001 | * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten |
35002 | completely. Accept one more argument DIR. The caller has changed. | |
35003 | ||
35004 | * kern/i386/efi/init.c (grub_arch_modules_addr): Removed. | |
35005 | ||
35006 | * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h. | |
35007 | (grub_efi_loaded_image_guid): New variable. | |
35008 | (grub_efi_get_loaded_image): New function. | |
35009 | (grub_arch_modules_addr): Likewise. | |
35010 | ||
35011 | * include/grub/efi/efi.h (grub_efi_get_loaded_image): New | |
35012 | prototype. | |
35013 | ||
35014 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro. | |
35015 | (struct grub_efi_loaded_image): New structure. | |
35016 | (grub_efi_loaded_image_t): New type. | |
35017 | ||
35018 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 35019 | |
c352d8dd | 35020 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file |
35021 | size with GRUB_OS_AREA_SIZE as grub_size_t instead of | |
35022 | grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>. | |
35023 | ||
6d01d6b4 | 35024 | 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org> |
35025 | ||
35026 | * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'. | |
35027 | ||
976a4ea0 | 35028 | 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org> |
35029 | ||
35030 | * DISTLIST: Added include/grub/efi/console.h, | |
35031 | include/grub/efi/time.h, include/grub/i386/efi/kernel.h, | |
35032 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
35033 | ||
35034 | * include/grub/efi/console.h: New file. | |
35035 | * include/grub/efi/time.h: Likewise. | |
35036 | * include/grub/i386/efi/kernel.h: Likewise. | |
35037 | * kern/efi/init.c: Likewise. | |
35038 | * kern/efi/mm.c: Likewise. | |
35039 | * term/efi/console.c: Likewise. | |
f19dbdb7 | 35040 | |
976a4ea0 | 35041 | * kern/i386/efi/init.c: Do not include grub/machine/time.h. |
35042 | (grub_stop): Removed. | |
35043 | (grub_get_rtc): Likewise. | |
35044 | (grub_machine_init): Simply call grub_efi_init. | |
35045 | (grub_machine_fini): Call grub_efi_fini. | |
35046 | ||
35047 | * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h. | |
35048 | (grub_efi_output_string): Removed. | |
35049 | (grub_efi_stall): New function. | |
35050 | (grub_stop): Likewise. | |
35051 | (grub_get_rtc): Likewise. | |
35052 | ||
35053 | * include/grub/efi/efi.h (grub_efi_output_string): Removed. | |
35054 | (grub_efi_stall): New prototype. | |
35055 | (grub_efi_allocate_pages): Likewise. | |
35056 | (grub_efi_free_pages): Likewise. | |
35057 | (grub_efi_get_memory_map): Likewise. | |
35058 | (grub_efi_mm_init): Likewise. | |
35059 | (grub_efi_mm_fini): Likewise. | |
35060 | (grub_efi_init): Likewise. | |
35061 | (grub_efi_fini): Likewise. | |
35062 | ||
35063 | * include/grub/i386/efi/time.h: Do not include | |
35064 | grub/symbol.h. Include grub/efi/time.h. | |
35065 | (GRUB_TICKS_PER_SECOND): Removed. | |
35066 | (grub_get_rtc): Likewise. | |
35067 | ||
35068 | * include/grub/efi/api.h (struct grub_efi_memory_descriptor): | |
35069 | Added padding. The EFI spec is buggy. | |
35070 | (GRUB_EFI_BLACK): New macro. | |
35071 | (GRUB_EFI_BLUE): Likewise. | |
35072 | (GRUB_EFI_GREEN): Likewise. | |
35073 | (GRUB_EFI_CYAN): Likewise. | |
35074 | (GRUB_EFI_RED): Likewise. | |
35075 | (GRUB_EFI_MAGENTA): Likewise. | |
35076 | (GRUB_EFI_BROWN): Likewise. | |
35077 | (GRUB_EFI_LIGHTGRAY): Likewise. | |
35078 | (GRUB_EFI_BRIGHT): Likewise. | |
35079 | (GRUB_EFI_DARKGRAY): Likewise. | |
35080 | (GRUB_EFI_LIGHTBLUE): Likewise. | |
35081 | (GRUB_EFI_LIGHTGREEN): Likewise. | |
35082 | (GRUB_EFI_LIGHTCYAN): Likewise. | |
35083 | (GRUB_EFI_LIGHTRED): Likewise. | |
35084 | (GRUB_EFI_LIGHTMAGENTA): Likewise. | |
35085 | (GRUB_EFI_YELLOW): Likewise. | |
35086 | (GRUB_EFI_WHITE): Likewise. | |
35087 | (GRUB_EFI_BACKGROUND_BLACK): Likewise. | |
35088 | (GRUB_EFI_BACKGROUND_BLUE): Likewise. | |
35089 | (GRUB_EFI_BACKGROUND_GREEN): Likewise. | |
35090 | (GRUB_EFI_BACKGROUND_CYAN): Likewise. | |
35091 | (GRUB_EFI_BACKGROUND_RED): Likewise. | |
35092 | (GRUB_EFI_BACKGROUND_MAGENTA): Likewise. | |
35093 | (GRUB_EFI_BACKGROUND_BROWN): Likewise. | |
35094 | (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise. | |
35095 | (GRUB_EFI_TEXT_ATTR): Likewise. | |
35096 | ||
35097 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c, | |
35098 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
35099 | (kernel_mod_HEADERS): Added efi/time.h. | |
35100 | ||
83709125 | 35101 | 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org> |
35102 | ||
35103 | * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk, | |
35104 | include/grub/efi/api.h, include/grub/efi/console_control.h, | |
35105 | include/grub/efi/efi.h, include/grub/efi/pe32.h, | |
35106 | include/grub/i386/efi/time.h, kern/efi/efi.c, | |
35107 | kern/i386/efi/init.c, kern/i386/efi/startup.S, | |
35108 | and util/i386/efi/grub-mkimage.c. | |
35109 | ||
35110 | * Makefile.in (RMKFILES): Added i386-efi.rmk. | |
35111 | ||
35112 | * genmk.rb (PModule#rule): Do not export symbols if | |
35113 | #{prefix}_EXPORTS is set to "no". | |
35114 | ||
35115 | * conf/i386-efi.mk: New file. | |
35116 | * conf/i386-efi.rmk: Likewise. | |
35117 | * include/grub/efi/api.h: Likewise. | |
35118 | * include/grub/efi/console_control.h: Likewise. | |
35119 | * include/grub/efi/efi.h: Likewise. | |
35120 | * include/grub/efi/pe32.h: Likewise. | |
35121 | * include/grub/i386/efi/time.h: Likewise. | |
35122 | * kern/efi/efi.c: Likewise. | |
35123 | * kern/i386/efi/init.c: Likewise. | |
35124 | * kern/i386/efi/startup.S: Likewise. | |
35125 | * util/i386/efi/grub-mkimage.c: Likewise. | |
35126 | ||
35127 | 2006-04-17 Marco Gerards <marco@gnu.org> | |
bfa2bd9e | 35128 | |
35129 | * include/grub/script.h: Include <grub/parser.h> and | |
35130 | "grub_script.tab.h". | |
35131 | (struct grub_lexer_param): New struct. | |
35132 | (struct grub_parser_param): Likewise. | |
35133 | (grub_script_create_arglist): Pass the state in an argument. | |
35134 | (grub_script_add_arglist): Likewise. | |
35135 | (grub_script_create_cmdline): Likewise. | |
35136 | (grub_script_create_cmdblock): Likewise. | |
35137 | (grub_script_create_cmdif): Likewise. | |
35138 | (grub_script_create_cmdmenu): Likewise. | |
35139 | (grub_script_add_cmd): Likewise. | |
35140 | (grub_script_arg_add): Likewise. | |
35141 | (grub_script_lexer_ref): Likewise. | |
35142 | (grub_script_lexer_deref): Likewise. | |
35143 | (grub_script_lexer_record_start): Likewise. | |
35144 | (grub_script_lexer_record_stop): Likewise. | |
35145 | (grub_script_mem_record): Likewise. | |
35146 | (grub_script_mem_record_stop): Likewise. | |
35147 | (grub_script_malloc): Likewise. | |
35148 | (grub_script_yylex): Likewise. | |
35149 | (grub_script_yyparse): Likewise. | |
35150 | (grub_script_yyerror): Likewise. | |
35151 | (grub_script_yylex): Likewise. | |
35152 | (grub_script_lexer_init): Return the state. | |
35153 | ||
35154 | * normal/lexer.c (grub_script_lexer_state): Removed variable. | |
35155 | (grub_script_lexer_done): Likewise. | |
35156 | (grub_script_lexer_getline): Likewise. | |
35157 | (grub_script_lexer_refs): Likewise. | |
35158 | (script): Likewise. | |
35159 | (newscript): Likewise. | |
35160 | (record): Likewise. | |
35161 | (recording): Likewise. | |
35162 | (recordpos): Likewise. | |
35163 | (recordlen): Likewise. | |
35164 | (grub_script_lexer_init): Return the state instead of setting | |
35165 | global variables. | |
35166 | (grub_script_lexer_ref): Use the newly added argument for state | |
35167 | instead of globals. | |
35168 | (grub_script_lexer_deref): Likewise. | |
35169 | (grub_script_lexer_record_start): Likewise. | |
35170 | (grub_script_lexer_record_stop): Likewise. | |
35171 | (recordchar): Likewise. | |
35172 | (nextchar): Likewise. | |
35173 | (grub_script_yylex2): Likewise. | |
35174 | (grub_script_yylex): Likewise. | |
35175 | (grub_script_yyerror): Likewise. | |
35176 | ||
35177 | * normal/parser.y (func_mem): Removed variable. | |
35178 | (menu_entry): Likewise. | |
35179 | (err): Likewise. | |
35180 | (%lex-param): New parser option. | |
35181 | (%parse-param): Likewise. | |
35182 | (script): Always return the AST. | |
35183 | (argument): Pass the state around. | |
35184 | (arguments): Likewise. | |
35185 | (grubcmd): Likewise. | |
35186 | (commands): Likewise. | |
35187 | (function): Likewise. | |
35188 | (menuentry): Likewise. | |
35189 | (if_statement): Likewise. | |
35190 | (if): Likewise. | |
35191 | ||
35192 | * normal/script.c (grub_script_memused): Removed variable. | |
35193 | (grub_script_parsed): Likewise. | |
35194 | (grub_script_malloc): Added a state argument. Use that instead of | |
35195 | global variables. | |
35196 | (grub_script_mem_record): Likewise. | |
35197 | (grub_script_mem_record_stop): Likewise. | |
35198 | (grub_script_arg_add): Likewise. | |
35199 | (grub_script_add_arglist): Likewise. | |
35200 | (grub_script_create_cmdline): Likewise. | |
35201 | (grub_script_create_cmdif): Likewise. | |
35202 | (grub_script_create_cmdmenu): Likewise. | |
35203 | (grub_script_add_cmd): Likewise. | |
35204 | (grub_script_parse): Setup the state before calling the parser. | |
f19dbdb7 | 35205 | |
e2a8c904 | 35206 | 2006-04-16 Marco Gerards <marco@gnu.org> |
6de2ee99 | 35207 | |
35208 | * normal/command.c (grub_command_init): Remove the title command. | |
35209 | ||
35210 | * normal/lexer.c (grub_script_yylex): Renamed from this... | |
35211 | (grub_script_yylex2): ... to this. | |
35212 | (grub_script_yylex): New function. Temporary | |
35213 | introduced to filter some tokens. | |
35214 | (grub_script_yyerror): Print a newline. | |
35215 | ||
35216 | * normal/main.c (read_config_file): Output information about the | |
35217 | lines that contain errors. Wait for a key after all lines have | |
35218 | been processed. Don't return an empty menu. | |
35219 | ||
35220 | * normal/parser.y (func_mem): Don't initialize. | |
35221 | (menu_entry): Likewise. | |
35222 | (err): New variable. | |
35223 | (script): Don't return anything when an error was encountered. | |
35224 | (ws, returns): Removed rules. | |
35225 | (argument): Disabled concatenated variable support. | |
35226 | (arguments): Remove explicit separators. | |
35227 | (grubcmd): Likewise. | |
35228 | (function): Likewise. | |
35229 | (menuentry): Likewise. | |
35230 | (if): Likewise. | |
35231 | (commands): Likewise. Add error handling. | |
35232 | ||
35233 | * normal/script.c (grub_script_create_cmdline): If | |
35234 | `grub_script_parsed' is 0, assume the parser encountered an error. | |
35235 | ||
c9a86192 | 35236 | 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org> |
35237 | ||
35238 | * configure.ac: Add support for EFI. Fix the typo | |
35239 | BUILD_LDDFLAGS. Restore the LDFLAGS after testing. | |
35240 | ||
70f3b243 | 35241 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
35242 | ||
35243 | * util/unifont2pff.rb: Removed unnecessary byte ordering. Now | |
35244 | foreign multibyte characters should be shown correctly. | |
35245 | ||
65f201ad | 35246 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
35247 | ||
35248 | * normal/main.c (grub_normal_menu_addentry): Fixed menu size | |
35249 | calculation. | |
35250 | (read_config_file): Made it to close file before returning. | |
35251 | ||
b4b93674 | 35252 | 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi> |
35253 | ||
35254 | * DISTLIST: Added include/grub/i386/pc/vbeblit.h, | |
35255 | include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c, | |
35256 | video/i386/pc/vbefill.c. | |
35257 | ||
35258 | * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c, | |
35259 | video/i386/pc/vbefill.c. | |
35260 | ||
35261 | * include/grub/video.h (grub_video_blit_format): New enum. | |
35262 | (grub_video_mode_info): Added new member blit_format. | |
35263 | (grub_video_get_blit_format): New function prototype. | |
35264 | ||
35265 | * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New | |
35266 | function prototype. | |
35267 | (grub_video_vbe_map_rgb): Likewise. | |
35268 | (grub_video_vbe_unmap_color): Likewise. | |
35269 | ||
35270 | * include/grub/i386/pc/vbeblit.h: New file. | |
35271 | ||
35272 | * include/grub/i386/pc/vbefill.h: New file. | |
35273 | ||
35274 | * video/video.c (grub_video_get_blit_format): New function. | |
35275 | (grub_video_vbe_get_video_ptr): Re-declared as non-static. | |
35276 | (grub_video_vbe_map_rgb): Likewise. | |
35277 | (grub_video_vbe_unmap_color): Likewise. | |
35278 | ||
35279 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more | |
35280 | optimized fills. | |
35281 | (grub_video_vbe_blit_render_target): Changed to use more optimized | |
35282 | blits. | |
35283 | (grub_video_vbe_setup): Added detection for optimized settings. | |
35284 | (grub_video_vbe_create_render_target): Likewise. | |
35285 | ||
35286 | * video/i386/pc/vbeblit.c: New file. | |
35287 | ||
35288 | * video/i386/pc/vbefill.c: New file. | |
35289 | ||
c2379b9c | 35290 | 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi> |
35291 | ||
35292 | * font/manager.c (grub_font_get_glyph): Removed font fixup from | |
35293 | here... | |
35294 | ||
35295 | * util/unifont2pff.rb: ... and moved it to here. Improved argument | |
35296 | parsing to support both hex and dec ranges. If filename was missing | |
35297 | show usage information. | |
35298 | ||
bd0d7896 | 35299 | 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi> |
35300 | ||
35301 | * DISTLIST: Added include/grub/video.h, term/gfxterm.c, | |
35302 | video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c. | |
35303 | ||
35304 | * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod, | |
35305 | gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod. | |
35306 | (video_mod_SOURCES): Added. | |
35307 | (video_mod_CFLAGS): Likewise. | |
35308 | (video_mod_LDFLAGS): Likewise. | |
35309 | (gfxterm_mod_SOURCES): Likewise. | |
35310 | (gfxterm_mod_CFLAGS): Likewise. | |
35311 | (gfxterm_mod_LDFLAGS): Likewise. | |
35312 | (videotest_mod_SOURCES): Likewise. | |
35313 | (videotest_mod_CFLAGS): Likewise. | |
35314 | (videotest_mod_LDFLAGS): Likewise. | |
35315 | (vesafb_mod_SOURCES): Removed. | |
35316 | (vesafb_mod_CFLAGS): Likewise. | |
35317 | (vesafb_mod_LDFLAGS): Likewise. | |
35318 | (vga_mod_SOURCES): Likewise. | |
35319 | (vga_mod_CFLAGS): Likewise. | |
35320 | (vga_mod_LDFLAGS): Likewise. | |
35321 | ||
35322 | * commands/videotest.c: New file. | |
35323 | ||
35324 | * font/manager.c (fill_with_default_glyph): Modified to use | |
35325 | grub_font_glyph. | |
35326 | (grub_font_get_glyph): Likewise. | |
35327 | (fontmanager): Renamed from this... | |
35328 | (font_manager): ... to this. | |
35329 | ||
35330 | * include/grub/font.h (grub_font_glyph): Added new structure. | |
35331 | (grub_font_get_glyph): Modified to use grub_font_glyph. | |
35332 | ||
35333 | * include/grub/misc.h (grub_abs): Added as inline function. | |
35334 | ||
35335 | * include/grub/video.h: New file. | |
35336 | ||
35337 | * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro. | |
35338 | (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise. | |
35339 | (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise. | |
35340 | (grub_vbe_get_controller_info): Renamed from this... | |
35341 | (grub_vbe_bios_get_controller_info): ... to this. | |
35342 | (grub_vbe_get_mode_info): Renamed from this... | |
35343 | (grub_vbe_bios_get_mode_info): ... to this. | |
35344 | (grub_vbe_set_mode): Renamed from this... | |
35345 | (grub_vbe_bios_set_mode): ... to this. | |
35346 | (grub_vbe_get_mode): Renamed from this... | |
35347 | (grub_vbe_bios_get_mode): ... to this. | |
35348 | (grub_vbe_set_memory_window): Renamed from this... | |
35349 | (grub_vbe_bios_set_memory_window): ... to this. | |
35350 | (grub_vbe_get_memory_window): Renamed from this... | |
35351 | (grub_vbe_bios_get_memory_window): ... to this. | |
35352 | (grub_vbe_set_scanline_length): Renamed from this... | |
35353 | (grub_vbe_set_scanline_length): ... to this. | |
35354 | (grub_vbe_get_scanline_length): Renamed from this... | |
35355 | (grub_vbe_bios_get_scanline_length): ... to this. | |
35356 | (grub_vbe_set_display_start): Renamed from this... | |
35357 | (grub_vbe_bios_set_display_start): ... to this. | |
35358 | (grub_vbe_get_display_start): Renamed from this... | |
35359 | (grub_vbe_bios_get_display_start): ... to this. | |
35360 | (grub_vbe_set_palette_data): Renamed from this... | |
35361 | (grub_vbe_bios_set_palette_data): ... to this. | |
35362 | (grub_vbe_set_pixel_rgb): Removed. | |
35363 | (grub_vbe_set_pixel_index): Likewise. | |
35364 | ||
35365 | * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed | |
35366 | from this... | |
35367 | (grub_vbe_bios_get_controller_info): ... to this. | |
35368 | (grub_vbe_get_mode_info): Renamed from this... | |
35369 | (grub_vbe_bios_get_mode_info): ... to this. | |
35370 | (grub_vbe_set_mode): Renamed from this... | |
35371 | (grub_vbe_bios_set_mode): ... to this. | |
35372 | (grub_vbe_get_mode): Renamed from this... | |
35373 | (grub_vbe_bios_get_mode): ... to this. | |
35374 | (grub_vbe_set_memory_window): Renamed from this... | |
35375 | (grub_vbe_bios_set_memory_window): ... to this. | |
35376 | (grub_vbe_get_memory_window): Renamed from this... | |
35377 | (grub_vbe_bios_get_memory_window): ... to this. | |
35378 | (grub_vbe_set_scanline_length): Renamed from this... | |
35379 | (grub_vbe_set_scanline_length): ... to this. | |
35380 | (grub_vbe_get_scanline_length): Renamed from this... | |
35381 | (grub_vbe_bios_get_scanline_length): ... to this. | |
35382 | (grub_vbe_set_display_start): Renamed from this... | |
35383 | (grub_vbe_bios_set_display_start): ... to this. | |
35384 | (grub_vbe_get_display_start): Renamed from this... | |
35385 | (grub_vbe_bios_get_display_start): ... to this. | |
35386 | (grub_vbe_set_palette_data): Renamed from this... | |
35387 | (grub_vbe_bios_set_palette_data): ... to this. | |
35388 | (grub_vbe_bios_get_controller_info): Fixed problem with registers | |
35389 | getting corrupted after calling it. Added more pushes and pops. | |
35390 | (grub_vbe_bios_set_mode): Likewise. | |
35391 | (grub_vbe_bios_get_mode): Likewise. | |
35392 | (grub_vbe_bios_get_memory_window): Likewise. | |
35393 | (grub_vbe_bios_set_scanline_length): Likewise. | |
35394 | (grub_vbe_bios_get_scanline_length): Likewise. | |
35395 | (grub_vbe_bios_get_display_start): Likewise. | |
35396 | (grub_vbe_bios_set_palette_data): Likewise. | |
35397 | ||
35398 | * normal/cmdline.c (cl_set_pos): Refresh the screen. | |
35399 | (cl_insert): Likewise. | |
35400 | (cl_delete): Likewise. | |
35401 | ||
35402 | * term/gfxterm.c: New file. | |
35403 | ||
35404 | * term/i386/pc/vesafb.c: Removed file. | |
35405 | ||
35406 | * video/video.c: New file. | |
35407 | ||
35408 | * video/i386/pc/vbe.c (real2pm): Added new function. | |
35409 | (grub_video_vbe_draw_pixel): Likewise. | |
35410 | (grub_video_vbe_get_video_ptr): Likewise. | |
35411 | (grub_video_vbe_get_pixel): Likewise | |
35412 | (grub_video_vbe_init): Likewise. | |
35413 | (grub_video_vbe_fini): Likewise. | |
35414 | (grub_video_vbe_setup): Likewise. | |
35415 | (grub_video_vbe_get_info): Likewise. | |
35416 | (grub_video_vbe_set_palette): Likewise. | |
35417 | (grub_video_vbe_get_palette): Likewise. | |
35418 | (grub_video_vbe_set_viewport): Likewise. | |
35419 | (grub_video_vbe_get_viewport): Likewise. | |
35420 | (grub_video_vbe_map_color): Likewise. | |
35421 | (grub_video_vbe_map_rgb): Likewise. | |
35422 | (grub_video_vbe_map_rgba): Likewise. | |
35423 | (grub_video_vbe_unmap_color): Likewise. | |
35424 | (grub_video_vbe_fill_rect): Likewise. | |
35425 | (grub_video_vbe_blit_glyph): Likewise. | |
35426 | (grub_video_vbe_blit_bitmap): Likewise. | |
35427 | (grub_video_vbe_blit_render_target): Likewise. | |
35428 | (grub_video_vbe_scroll): Likewise. | |
35429 | (grub_video_vbe_swap_buffers): Likewise. | |
35430 | (grub_video_vbe_create_render_target): Likewise. | |
35431 | (grub_video_vbe_delete_render_target): Likewise. | |
35432 | (grub_video_vbe_set_active_render_target): Likewise. | |
35433 | (grub_vbe_set_pixel_rgb): Remove function. | |
35434 | (grub_vbe_set_pixel_index): Likewise. | |
35435 | (index_color_mode): Remove static variable. | |
35436 | (active_mode): Likewise. | |
35437 | (framebuffer): Likewise. | |
35438 | (bytes_per_scan_line): Likewise. | |
35439 | (grub_video_vbe_adapter): Added new static variable. | |
35440 | (framebuffer): Likewise. | |
35441 | (render_target): Likewise. | |
35442 | (initial_mode): Likewise. | |
35443 | (mode_in_use): Likewise. | |
35444 | (mode_list): Likewise. | |
35445 | ||
5f97350b | 35446 | 2006-03-10 Marco Gerards <marco@gnu.org> |
35447 | ||
35448 | * configure.ac (AC_INIT): Bumped to 1.93. | |
35449 | ||
35450 | * DISTLIST: Added `include/grub/hfs.h'. | |
35451 | ||
a3c5c6f8 | 35452 | 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org> |
35453 | ||
35454 | * boot/i386/pc/boot.S (general_error): Before looping, try INT | |
35455 | 18H, which might help the BIOS falling back to next boot media. | |
35456 | ||
6de53d26 | 35457 | 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org> |
35458 | ||
35459 | * util/i386/pc/grub-install.in: Escape a backslash. Reported by | |
35460 | Poe Chen <poe.poechen@gmail.com>. | |
35461 | ||
77c4a393 | 35462 | 2006-01-17 Marco Gerards <marco@gnu.org> |
35463 | ||
35464 | * include/grub/normal.h: Include <grub/script.h>. | |
35465 | (grub_command_list): Removed struct. | |
35466 | (grub_command_list_t): Removed type. | |
35467 | (grub_menu_entry): Remove members `num' and `command_list'. Add | |
35468 | members `commands' and `sourcecode'. | |
35469 | * include/grub/script.h: Add inclusion guards. | |
35470 | (grub_script_cmd_menuentry): New struct. | |
35471 | (grub_script_execute_menuentry): New prototype. | |
35472 | (grub_script_lexer_record_start): Likewise. | |
35473 | (grub_script_lexer_record_stop): Likewise. | |
35474 | * normal/execute.c (grub_script_execute_menuentry): New function. | |
35475 | * normal/lexer.c (record, recording, recordpos, recordlen): New | |
35476 | variables. | |
35477 | (grub_script_lexer_record_start): New function. | |
35478 | (grub_script_lexer_record_stop): Likewise. | |
35479 | (recordchar): Likewise. | |
35480 | (nextchar): Likewise. | |
35481 | (grub_script_yylex): Use `nextchar' to fetch new characters. Use | |
35482 | 2048 as the buffer size. Add the tokens `menuentry' and `@'. | |
35483 | * normal/main.c: Include <grub/parser.h> and <grub/script.h> | |
35484 | (current_menu): New variable. | |
35485 | (free_menu): Mainly rewritten. | |
35486 | (grub_normal_menu_addentry): New function. | |
35487 | (read_config_file): Rewritten. | |
35488 | * normal/menu.c (run_menu_entry): Mainly rewritten. | |
fe987087 | 35489 | * normal/menu_entry.c (make_screen): Rewritten the code to insert |
77c4a393 | 35490 | the menu entry. |
35491 | (run): Mainly rewritten. | |
35492 | * normal/parser.y (menu_entry): New variable. | |
35493 | (GRUB_PARSER_TOKEN_MENUENTRY): New token. | |
35494 | (menuentry): New rule. | |
35495 | (command): Add `menuentry'. | |
35496 | (if_statement): Allow additional returns before `fi'. | |
35497 | * normal/script.c (grub_script_create_cmdmenu): New function. | |
35498 | ||
144f1f98 | 35499 | 2006-01-03 Marco Gerards <marco@gnu.org> |
35500 | ||
35501 | * INSTALL: GNU Bison is required. | |
35502 | * configure.ac: Rewritten the test to detect Bison. | |
35503 | * Makefile.in (YACC): New variable. Reported by Xun Sun | |
35504 | <xun.sun.cn@gmail.com>. | |
35505 | ||
af4b2d89 | 35506 | 2006-01-03 Marco Gerards <marco@gnu.org> |
35507 | ||
35508 | * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of | |
35509 | the HFS+ filesystem to filesystem blocks. | |
35510 | (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a | |
35511 | GCC warning is silenced. | |
35512 | ||
15643b71 | 35513 | 2006-01-03 Marco Gerards <marco@gnu.org> |
35514 | ||
35515 | * partmap/apple.c (apple_partition_map_iterate): Convert the data | |
35516 | read from disk from big endian to host byte order. | |
35517 | ||
00905879 | 35518 | 2006-01-03 Hollis Blanchard <hollis@penguinppc.org> |
35519 | ||
35520 | * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official | |
35521 | documentation. | |
35522 | (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro. | |
35523 | (grub_hfs_mount): Grammar fix in error. Make sure this is not an | |
35524 | embedded HFS+ filesystem. | |
35525 | (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t) | |
35526 | (grub_hfs_sblock): Move from here... | |
35527 | * include/grub/hfs.h: To here... New file. | |
35528 | * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official | |
35529 | documentation. | |
35530 | (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK): | |
35531 | New macros. | |
35532 | (grub_hfsplus_volheader): Change type of member `magic' to | |
35533 | `grub_uint16_t'. | |
35534 | (grub_hfsplus_data): Add new member `embedded_offset'. | |
35535 | (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the | |
35536 | returned block. | |
35537 | (grub_hfsplus_mount): Read the HFS+ wrapper if it exists. | |
35538 | Calculate the offset. | |
35539 | ||
8899bc3e | 35540 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
35541 | ||
35542 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR): | |
35543 | Removed. | |
35544 | (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise. | |
35545 | ||
ae8c0277 | 35546 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
35547 | ||
35548 | * kern/env.c (grub_env_set): Check if ENV->VALUE instead of | |
35549 | ENV->NAME is NULL after allocating ENV->VALUE. | |
35550 | ||
07084456 | 35551 | 2005-12-25 Marco Gerards <marco@gnu.org> |
35552 | ||
35553 | * kern/env.c (grub_env_set): Rewritten the error handling code. | |
35554 | ||
4750f5f1 | 35555 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
35556 | ||
35557 | * geninit.sh: Made more robust, and more portable. | |
35558 | ||
50214199 | 35559 | 2005-12-25 Marco Gerards <marco@gnu.org> |
35560 | ||
35561 | Add support for Apple HFS+ filesystems. | |
f19dbdb7 | 35562 | |
50214199 | 35563 | * fs/hfsplus.c: New file. |
35564 | ||
35565 | * DISTLIST: Added `fs/hfsplus.c'. | |
35566 | ||
35567 | * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'. | |
35568 | (hfsplus_mod_SOURCES): New variable. | |
35569 | (hfsplus_mod_CFLAGS): Likewise. | |
35570 | (hfsplus_mod_LDFLAGS): Likewise. | |
35571 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'. | |
35572 | (grub_setup_SOURCES): Likewise. | |
35573 | (grub_mkdevicemap_SOURCES): Likewise. | |
35574 | (grub_emu_SOURCES): Likewise. | |
35575 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
35576 | ||
35577 | * fs/fshelp.c (grub_fshelp_log2blksize): New function. | |
35578 | ||
35579 | * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype. | |
35580 | ||
befaed6c | 35581 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
35582 | ||
35583 | * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c, | |
35584 | commands/i386/pc/play.c, conf/common.mk, conf/common.rmk, | |
35585 | include/grub/parser.h, include/grub/script.h, kern/parser.c, | |
35586 | kern/sparc64/cache.S, normal/execute.c, normal/function.c, | |
35587 | normal/lexer.c, normal/parser.y, normal/script.c, and | |
35588 | partmap/gpt.c. | |
35589 | Removed kern/sparc64/cache.c. | |
35590 | ||
35591 | * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c, | |
35592 | grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h, | |
35593 | grub_emu_init.c. | |
35594 | ||
35595 | * configure.ac (AC_INIT): Bumped to 1.92. | |
35596 | ||
6a124103 | 35597 | 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi> |
35598 | ||
35599 | * kern/err.c (grub_error_push): Added new function to support error | |
35600 | stacks. | |
35601 | (grub_error_pop): Likewise. | |
35602 | (grub_error_stack_items): New local variable to support error stacks. | |
35603 | (grub_error_stack_pos): Likewise. | |
35604 | (grub_error_stack_assert): Likewise. | |
35605 | (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error | |
35606 | stack depth. | |
35607 | (grub_print_error): Added support to print errors from error stack. | |
35608 | ||
35609 | * include/grub/err.h (grub_error_push): Added function prototype. | |
35610 | (grub_error_pop): Likewise. | |
35611 | ||
be973c1b | 35612 | 2005-12-09 Hollis Blanchard <hollis@penguinppc.org> |
35613 | ||
35614 | * configure.ac: Accept `powerpc64' as host_cpu. | |
35615 | (amd64): Rename to `biarch32'. | |
35616 | ||
35617 | * kern/powerpc/cache.S (grub_arch_sync_caches): Handle | |
35618 | non-cacheline-aligned addresses. | |
35619 | ||
35620 | * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages. | |
35621 | (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches' | |
35622 | if `size' is non-zero. | |
35623 | ||
b04216ab | 35624 | 2005-12-03 Marco Gerards <mgerards@xs4all.nl> |
35625 | ||
35626 | * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"' | |
35627 | and `cd' to make sure the filename is not prefixed with a | |
35628 | directory name. | |
35629 | (pkgdata_MODULES): Add `gpt.mod'. | |
35630 | (gpt_mod_SOURCES): New variable. | |
35631 | (gpt_mod_CFLAGS): Likewise. | |
35632 | (gpt_mod_LDFLAGS): Likewise. | |
35633 | ||
35634 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'. | |
35635 | ||
35636 | * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK): | |
35637 | New macro. | |
35638 | ||
35639 | * partmap/gpt.c: New file. | |
35640 | ||
35641 | * partmap/pc.c (pc_partition_map_iterate): Don't continue when a | |
35642 | GPT partition map is detected. | |
35643 | ||
41730ed9 | 35644 | 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr> |
35645 | ||
35646 | * commands/i386/pc/play.c: New file. | |
35647 | * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod. | |
35648 | (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New | |
35649 | macros. | |
f19dbdb7 | 35650 | |
95dc3643 | 35651 | 2005-11-27 Marco Gerards <mgerards@xs4all.nl> |
35652 | ||
35653 | * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ | |
35654 | ((unused))' to silence gcc warning. | |
35655 | ||
1569ec51 | 35656 | 2005-11-26 Hollis Blanchard <hollis@penguinppc.org> |
35657 | ||
35658 | * configure.ac: Correct `AC_PROG_YACC' test. | |
35659 | ||
9abde152 | 35660 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
35661 | ||
35662 | * util/powerpc/ieee1275/grub-install.in: Run the mount point | |
35663 | check before installing files. | |
35664 | ||
44b83271 | 35665 | 2005-11-22 Mike Small <smallm@panix.com> |
35666 | ||
35667 | * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition | |
35668 | number regex so multidigit numbers are recognized correctly. | |
35669 | ||
35670 | 2005-11-22 Mike Small <smallm@panix.com> | |
35671 | ||
35672 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a | |
35673 | debugging message before attempting to claim memory. | |
35674 | (grub_rescue_cmd_initrd): Add a claim debugging message and try | |
35675 | multiple addresses in case of failure. | |
35676 | ||
9c12956b | 35677 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
35678 | ||
35679 | * term/tparm.c (get_space): Remove empty `if' statement. | |
35680 | ||
35681 | * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'. | |
35682 | ||
35683 | * kern/parser.c (check_varstate): Rename `state' to 's'. | |
35684 | ||
aeaf81d9 | 35685 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
35686 | ||
35687 | * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all | |
35688 | variable definitions to the beginning of each function. Sort stack | |
35689 | variables by size. | |
35690 | (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read' | |
35691 | `buf' argument to `char *'. | |
35692 | ||
79bbb63f | 35693 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
35694 | ||
35695 | * conf/powerpc-ieee1275.rmk: Include conf/common.mk. | |
35696 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 35697 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
79bbb63f | 35698 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
35699 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
35700 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
35701 | configfile.mod, search.mod, gzio.mod and test.mod. | |
35702 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
35703 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
35704 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
35705 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
35706 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
35707 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
35708 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
35709 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
35710 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
35711 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
35712 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
35713 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
35714 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
35715 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
35716 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
35717 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
35718 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
35719 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
35720 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
35721 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
35722 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
35723 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
35724 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed. | |
35725 | ||
35726 | * conf/common.mk (grub_modules_init.lst): Use `find' instead of | |
35727 | `grep --include'. | |
35728 | (pkgdata_MODULES): Add test.mod. | |
35729 | ||
233b1628 | 35730 | 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
35731 | ||
35732 | * genmk.rb: Fixed list rules moved to Makefile.in. Recognise | |
35733 | appending to variables with "+=". | |
35734 | (PModule): Use full pathname to generate *.lst filenames. | |
35735 | ||
35736 | * Makefile.in: Fixed list rules moved from genmk.rb. | |
35737 | (.DELETE_ON_ERROR): New special target. | |
35738 | (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk. | |
35739 | ||
35740 | * conf/i386-pc.rmk: Include conf/common.mk. | |
35741 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 35742 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
233b1628 | 35743 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
35744 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
35745 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
35746 | configfile.mod, search.mod, gzio.mod and test.mod. | |
35747 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
35748 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
35749 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
35750 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
35751 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
35752 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
35753 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
35754 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
35755 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
35756 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
35757 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
35758 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
35759 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
35760 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
35761 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
35762 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
35763 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
35764 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
35765 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
35766 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
35767 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
35768 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
35769 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from | |
35770 | here... | |
35771 | * conf/common.rmk: ... to here. New file. | |
35772 | ||
35773 | * conf/common.mk: New file. | |
35774 | ||
16f820c8 | 35775 | 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org> |
35776 | ||
35777 | * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
35778 | (grub_script.tab.c): ... here. | |
35779 | ||
35780 | * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
35781 | (grub_script.tab.c): ... here. | |
35782 | ||
35783 | * conf/i386-pc.rmk (grub_script.tab.h): Unified to ... | |
35784 | (grub_script.tab.c): ... here. | |
35785 | ||
35786 | * normal/command.c (grub_command_find): Fixed a memory leak of | |
35787 | MODULE_NAME. Reported by Mike Small <smallm@panix.com>. | |
35788 | ||
63ba1554 | 35789 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
35790 | ||
35791 | * include/grub/symbol.h: (FUNCTION): Use double quotes instead of | |
35792 | "@" which marks the start of a comment on ARM. | |
35793 | (VARIABLE): Likewise. | |
35794 | ||
7f67dc13 | 35795 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
35796 | ||
79bbb63f | 35797 | Add support for Linux/ADFS partition tables. |
7f67dc13 | 35798 | |
35799 | * partmap/acorn.c: New file. | |
35800 | ||
35801 | * include/grub/acorn_filecore.h: Likewise. | |
35802 | ||
35803 | * DISTLIST: Added `partmap/acorn.c' and | |
35804 | `include/grub/acorn_filecore.h'. | |
f19dbdb7 | 35805 | |
7f67dc13 | 35806 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add |
35807 | `partmap/acorn.c'. | |
35808 | (pkgdata_MODULES): Add `acorn.mod'. | |
35809 | (acorn_mod_SOURCES): New variable. | |
35810 | (acorn_mod_CFLAGS): Likewise. | |
35811 | ||
35812 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
35813 | `partmap/acorn.c'. | |
35814 | (pkgdata_MODULES): Add `acorn.mod'. | |
35815 | (acorn_mod_SOURCES): New variable. | |
35816 | (acorn_mod_CFLAGS): Likewise. | |
35817 | ||
35818 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. | |
35819 | (pkgdata_MODULES): Add `acorn.mod'. | |
35820 | (acorn_mod_SOURCES): New variable. | |
35821 | (acorn_mod_CFLAGS): Likewise. | |
35822 | (acorn_mod_LDFLAGS): Likewise. | |
35823 | ||
35824 | * include/types.h (grub_disk_addr_t): New typedef. | |
35825 | ||
6d099807 | 35826 | 2005-11-13 Marco Gerards <mgerards@xs4all.nl> |
35827 | ||
35828 | * geninit.sh: New file. | |
35829 | ||
35830 | * geninitheader.sh: Likewise. | |
35831 | ||
35832 | * commands/boot.c (grub_boot_init, grub_boot_fini): Removed. | |
35833 | * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise. | |
35834 | * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise. | |
35835 | * commands/configfile.c (grub_configfile_init) | |
35836 | (grub_configfile_fini): Likewise. | |
35837 | * commands/default.c (grub_default_init, grub_default_fini): | |
35838 | Likewise. | |
35839 | * commands/help.c (grub_help_init, grub_help_fini): Likewise. | |
35840 | * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise. | |
35841 | * commands/search.c (grub_search_init, grub_search_fini): Likewise. | |
35842 | * commands/terminal.c (grub_terminal_init, grub_terminal_fini): | |
35843 | Likewise. | |
35844 | * commands/test.c (grub_test_init, grub_test_fini): Likewise. | |
35845 | * commands/timeout.c (grub_timeout_init, grub_timeout_fini): | |
35846 | Likewise. | |
35847 | * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise. | |
fe6b695a | 35848 | * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini): |
6d099807 | 35849 | Likewise. |
35850 | * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini): | |
35851 | Likewise. | |
fe6b695a | 35852 | * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini): |
6d099807 | 35853 | Likewise. |
35854 | * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise. | |
35855 | * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise. | |
35856 | * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise. | |
35857 | * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise. | |
35858 | * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise. | |
35859 | * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise. | |
35860 | * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise. | |
35861 | * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise. | |
35862 | * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise. | |
35863 | * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise. | |
35864 | * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise. | |
35865 | * normal/main.c (grub_normal_init, grub_normal_fini): Likewise. | |
35866 | * partmap/amiga.c (grub_amiga_partition_map_init) | |
35867 | (grub_amiga_partition_map_fini): Likewise. | |
35868 | * partmap/apple.c (grub_apple_partition_map_init) | |
35869 | (grub_apple_partition_map_fini): Likewise. | |
35870 | * partmap/pc.c (grub_pc_partition_map_init) | |
35871 | (grub_pc_partition_map_fini): Likewise. | |
35872 | * partmap/sun.c (grub_sun_partition_map_init, | |
35873 | grub_sun_partition_map_fini): Likewise. | |
35874 | * term/terminfo.c (grub_terminal_init, grub_terminal_fini): | |
35875 | Likewise. | |
35876 | ||
35877 | * util/grub-emu.c: Include <grub_modules_init.h>. | |
35878 | (main): Don't initialize and de-initialize any modules directly, | |
35879 | use `grub_init_all' and `grub_fini_all' instead. | |
35880 | ||
35881 | * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to | |
35882 | `grub_vesafb_mod_init'. | |
35883 | (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated | |
35884 | all users. | |
35885 | * term/i386/pc/vga.c (grub_vga_init): Renamed to | |
35886 | `grub_vga_mod_init'. Updated all users. | |
35887 | (grub_vga_fini): Renamed to `grub_vga_mod_fini'. | |
f19dbdb7 | 35888 | |
6d099807 | 35889 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'. |
35890 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New | |
35891 | rules. | |
35892 | ||
35893 | * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'. | |
35894 | Generate a function to initialize the module in utilities. | |
35895 | Updated all callers. | |
35896 | (GRUB_MOD_FINI): Add argument `name'. Generate a function to | |
35897 | initialize the module in utilities. Updated all callers. | |
35898 | ||
9046bcf0 | 35899 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
35900 | ||
35901 | * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI | |
35902 | escape sequence and a literal ^L to clear the screen. | |
35903 | ||
35904 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen | |
35905 | when returning from Open Firmware. | |
35906 | ||
d13ea639 | 35907 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
35908 | ||
35909 | * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable. | |
35910 | (grub_ofconsole_height): Likewise. | |
35911 | (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width, | |
35912 | manually insert a '\n'. | |
35913 | (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and | |
35914 | `grub_ofconsole_height'. Return early if these are already set. | |
35915 | ||
a8fcf206 | 35916 | 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr> |
35917 | ||
35918 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
35919 | `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c', | |
35920 | `normal/execute.c', `normal/lexer.c', `io/gzio.c', | |
35921 | `kern/parser.c', `grub_script.tab.c', `normal/function.c' | |
35922 | and `normal/script.c'. | |
35923 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
35924 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
35925 | (test_mod_SOURCES): New variable. | |
35926 | (test_mod_CFLAGS): Likewise. | |
35927 | (test_mod_LDFLAGS): Likewise. | |
35928 | (pkgdata_MODULES): Add `test.mod'. | |
35929 | (grub_script.tab.c): New rule. | |
35930 | (grub_script.tab.h): Likewise. | |
35931 | ||
b6b32745 | 35932 | 2005-11-07 Marco Gerards <mgerards@xs4all.nl> |
35933 | ||
35934 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
35935 | `commands/test.c', `normal/execute.c', `normal/lexer.c', | |
35936 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
35937 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
35938 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
35939 | (test_mod_SOURCES): New variable. | |
35940 | (test_mod_CFLAGS): Likewise. | |
35941 | (pkgdata_MODULES): Add `test.mod'. | |
35942 | (grub_script.tab.c): New rule. | |
35943 | (grub_script.tab.h): Likewise. | |
35944 | ||
daac212a | 35945 | 2005-11-06 Marco Gerards <mgerards@xs4all.nl> |
35946 | ||
35947 | Add initial scripting support. | |
35948 | ||
35949 | * commands/test.c: New file. | |
35950 | * include/grub/script.h: Likewise. | |
35951 | * normal/execute.c: Likewise. | |
35952 | * normal/function.c: Likewise. | |
35953 | * normal/lexer.c: Likewise. | |
35954 | * normal/parser.y: Likewise. | |
35955 | * normal/script.c: Likewise. | |
35956 | ||
35957 | * configure.ac: Add `AC_PROG_YACC' test. | |
f19dbdb7 | 35958 | |
daac212a | 35959 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c', |
35960 | `normal/execute.c', `normal/lexer.c', `grub_script.tab.c', | |
35961 | `normal/function.c' and `normal/script.c'. | |
35962 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
35963 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
b6b32745 | 35964 | (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New |
35965 | variables. | |
daac212a | 35966 | (pkgdata_MODULES): Add `test.mod'. |
35967 | (grub_script.tab.c): New rule. | |
35968 | (grub_script.tab.h): Likewise. | |
35969 | ||
35970 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'. | |
35971 | ||
35972 | * include/grub/normal.h (grub_test_init): New prototype. | |
35973 | (grub_test_fini): Likewise. | |
f19dbdb7 | 35974 | |
daac212a | 35975 | * normal/command.c: Include <grub/script.h>. |
35976 | (grub_command_execute): Rewritten. | |
f19dbdb7 | 35977 | |
daac212a | 35978 | * util/grub-emu.c (main): Call `grub_test_init' and |
35979 | `grub_test_fini'. | |
35980 | ||
77500b2b | 35981 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
35982 | ||
35983 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs' | |
35984 | to 0. | |
35985 | * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if | |
35986 | there are no pending characters. | |
35987 | ||
e45deb9e | 35988 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
35989 | ||
35990 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use | |
35991 | `grub_strndup' to drop device arguments. Replace unnecessary | |
35992 | `grub_strndup' with `grub_strdup'. | |
35993 | ||
4ce32619 | 35994 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
35995 | ||
35996 | * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the | |
35997 | `debug' environment variable has been set. | |
35998 | ||
35999 | 2005-11-02 Hollis Blanchard <hollis@penguinppc.org> | |
f19dbdb7 | 36000 | |
4ce32619 | 36001 | * Makefile.in (install-local): Use $(DATA). |
36002 | (uninstall): Likewise. | |
36003 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage... | |
36004 | (sbin_UTILITIES): ... to here. | |
36005 | (sbin_SCRIPTS): New variable. | |
36006 | (grub_install_SOURCES): New variable. | |
36007 | * util/powerpc/ieee1275/grub-install.in: New file. | |
36008 | * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove | |
36009 | variable. | |
36010 | (add_segments): Call `grub_util_get_path'. | |
36011 | ||
25fe6f03 | 36012 | 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
36013 | ||
36014 | From Timothy Baldwin: | |
36015 | * commands/ls.c (grub_ls_list_files): Close FILE with | |
36016 | grub_file_close. | |
36017 | * kern/misc.c (grub_vsprintf): Terminate the string S with NUL. | |
36018 | ||
04ccf3ec | 36019 | 2005-10-24 Marco Gerards <mgerards@xs4all.nl> |
36020 | ||
36021 | * include/grub/parser.h: New file. | |
36022 | ||
36023 | * kern/parser.c: Likewise. | |
36024 | ||
36025 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'. | |
36026 | (grub_setup_SOURCES): Likewise. | |
36027 | (grub_probefs_SOURCES): Likewise. | |
36028 | (grub_emu_SOURCES): Likewise. | |
36029 | (kernel_img_HEADERS): Add `parser.h'. | |
36030 | ||
36031 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
36032 | (grub_emu_SOURCES): Add `kern/parser.c'. | |
36033 | (grubof_SOURCES): Likewise. | |
36034 | ||
36035 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
36036 | (grubof_SOURCES): Add `kern/parser.c'. | |
36037 | ||
36038 | * include/grub/misc.h (grub_split_cmdline): Removed prototype. | |
36039 | ||
36040 | * kern/misc.c (grub_split_cmdline): Removed function. | |
36041 | ||
36042 | * kern/rescue.c: Include <grub/parser.h>. | |
36043 | (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead | |
36044 | of `grub_split_cmdline'. | |
36045 | ||
36046 | * normal/command.c: Include <grub/parser.h>. | |
36047 | (grub_command_execute): Use `grub_parser_split_cmdline' instead | |
36048 | of `grub_split_cmdline'. | |
36049 | ||
36050 | * normal/completion.c: Include <grub/parser.h>. | |
36051 | (cmdline_state): New variable. | |
36052 | (iterate_dir): End the filename with a quote depending on the | |
36053 | command line state. | |
36054 | (get_state): new function. | |
36055 | (grub_normal_do_completion): Use `grub_parser_split_cmdline' to | |
36056 | split the arguments and determine the current argument. When the | |
36057 | argument string is not quoted, escape all spaces. | |
36058 | ||
6d8f4b0e | 36059 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
36060 | ||
36061 | * normal/sparc64/setjmp.S: New file. | |
36062 | ||
15cf03ed | 36063 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
36064 | ||
36065 | * include/grub/sparc64/libgcc.h: New file. | |
36066 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9. | |
36067 | (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of | |
36068 | normal/sparc64/setjmp.c. | |
36069 | ||
03e8661a | 36070 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
36071 | ||
36072 | * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF. | |
36073 | * kern/sparc64/cache.S: New file. | |
36074 | * kern/sparc64/cache.c: Removed. | |
36075 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9. | |
36076 | (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and | |
36077 | -mtune=ultrasparc. | |
36078 | (COMMON_LDFLAGS): Add -melf64_sparc. | |
36079 | (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h. | |
36080 | (grubof_SOURCES): Use cache.S instead of cache.c. | |
36081 | (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker | |
36082 | --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc". | |
36083 | (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod | |
36084 | commented though. | |
36085 | (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c. | |
36086 | (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES) | |
36087 | (linux_mod_CFLAGS): Commented out. | |
36088 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented | |
36089 | out because module isn't built. | |
36090 | (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS) | |
36091 | (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS) | |
36092 | (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS) | |
36093 | (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS) | |
36094 | (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS) | |
36095 | (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
36096 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
36097 | (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS) | |
36098 | (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS) | |
36099 | (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES) | |
36100 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
36101 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
36102 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES) | |
36103 | (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro. | |
36104 | ||
34eeec8a | 36105 | 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org> |
36106 | ||
36107 | * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and | |
36108 | grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any | |
36109 | longer, because HFS should not be used on PC. | |
36110 | ||
708367a3 | 36111 | 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
36112 | ||
36113 | * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET | |
36114 | consistently within the loop. | |
36115 | ||
6fa1251a | 36116 | 2005-10-15 Marco Gerards <mgerards@xs4all.nl> |
36117 | ||
36118 | * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a | |
36119 | directory can not be read. | |
36120 | ||
4801580b | 36121 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
36122 | ||
36123 | * configure.ac (AC_INIT): Increase the version number to 1.91. | |
36124 | ||
36125 | * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h, | |
36126 | include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and | |
36127 | term/i386/pc/serial.c. | |
36128 | ||
219ad426 | 36129 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
36130 | ||
36131 | * kern/file.c (grub_file_seek): Seeking to an offset equal to a | |
36132 | file size must be permitted. | |
36133 | ||
36134 | * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake | |
36135 | between %ah and %al. | |
36136 | ||
688e5699 | 36137 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
36138 | ||
36139 | * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to | |
36140 | grub_uint64_t. | |
36141 | Call the hook with a NUL-terminated filename. | |
36142 | (grub_xfs_mount): Use grub_be_to_cpu32 instead of | |
36143 | grub_cpu_to_be32. | |
36144 | ||
36145 | * kern/term.c (cursor_state): New variable. | |
36146 | (grub_term_set_current): Reset the cursor state on a new | |
36147 | terminal. | |
36148 | (grub_setcursor): Rewritten to use CURSOR_STATE. | |
36149 | (grub_getcursor): New function. | |
36150 | ||
36151 | * include/grub/term.h (grub_getcursor): New prototype. | |
36152 | ||
36153 | * io/gzio.c (test_header): Align BUF for accessing it as 32-bit | |
36154 | integers on ARM. Reported by Timothy Baldwin | |
36155 | <T.E.Baldwin99@members.leeds.ac.uk>. | |
36156 | ||
bb34586c | 36157 | 2005-10-11 Marco Gerards <mgerards@xs4all.nl> |
36158 | ||
36159 | * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not | |
36160 | allocated. | |
36161 | (grub_sfs_dir): Likewise. | |
36162 | ||
9a909877 | 36163 | 2005-10-09 Marco Gerards <mgerards@xs4all.nl> |
36164 | ||
36165 | Add support for the SFS filesystem. | |
36166 | ||
36167 | * fs/sfs.c: New file. | |
36168 | ||
36169 | * DISTLIST: Added `fs/sfs.c'. | |
36170 | ||
36171 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'. | |
36172 | (grub_probefs_SOURCES): Likewise. | |
36173 | (grub_emu_SOURCES): Likewise. | |
36174 | (pkgdata_MODULES): Add `sfs.mod'. | |
36175 | (sfs_mod_SOURCES): New variable. | |
36176 | (sfs_mod_CFLAGS): Likewise. | |
36177 | (sfs_mod_LDFLAGS): Likewise. | |
36178 | ||
36179 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'. | |
36180 | (pkgdata_MODULES): Add `sfs.mod'. | |
36181 | (sfs_mod_SOURCES): New variable. | |
36182 | (sfs_mod_CFLAGS): Likewise. | |
36183 | ||
36184 | * util/grub-emu.c (main): Call `grub_sfs_init' and | |
36185 | `grub_sfs_fini'. | |
36186 | ||
36187 | * include/grub/fs.h (grub_sfs_init): New prototype. | |
36188 | (grub_sfs_fini): Likewise. | |
36189 | ||
57bdbde3 | 36190 | 2005-10-07 Marco Gerards <mgerards@xs4all.nl> |
36191 | ||
36192 | Add support for the AFFS filesystem. | |
36193 | ||
36194 | * fs/affs.c: New file. | |
36195 | ||
36196 | * DISTLIST: Added `fs/affs.c'. | |
36197 | ||
36198 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'. | |
36199 | (grub_probefs_SOURCES): Likewise. | |
36200 | (grub_emu_SOURCES): Likewise. | |
36201 | (pkgdata_MODULES): Add `affs.mod'. | |
36202 | (affs_mod_SOURCES): New variable. | |
36203 | (affs_mod_CFLAGS): Likewise. | |
36204 | (affs_mod_LDFLAGS): Likewise. | |
36205 | ||
36206 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'. | |
36207 | (pkgdata_MODULES): Add `affs.mod'. | |
36208 | (affs_mod_SOURCES): New variable. | |
36209 | (affs_mod_CFLAGS): Likewise. | |
36210 | ||
36211 | * util/grub-emu.c (main): Call `grub_affs_init' and | |
36212 | `grub_affs_fini'. | |
36213 | ||
36214 | * include/grub/fs.h (grub_affs_init): New prototype. | |
36215 | (grub_affs_fini): Likewise. | |
36216 | ||
047b67e0 | 36217 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
36218 | ||
36219 | * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses. | |
36220 | ||
59b8208a | 36221 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
36222 | ||
36223 | * configure.ac: Accept `x86_64' as host_cpu. In that case add | |
36224 | `-m32' to CFLAGS. | |
36225 | ||
36226 | * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when | |
36227 | linking. | |
f19dbdb7 | 36228 | |
59b8208a | 36229 | * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'. |
36230 | (COMMON_LDFLAGS): New variable. | |
36231 | (kernel_img_LDFLAGS): Include `COMMON_FLAGS'. | |
36232 | (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS) | |
36233 | (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS) | |
36234 | (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS) | |
36235 | (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS) | |
36236 | (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS) | |
36237 | (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS) | |
36238 | (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS) | |
36239 | (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS) | |
36240 | (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS) | |
36241 | (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
36242 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
36243 | (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS) | |
36244 | (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS) | |
36245 | (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New | |
36246 | variables. | |
36247 | (normal_mod_ASFLAGS): Add `-m32'. | |
36248 | ||
36249 | * include/grub/types.h (grub_host_addr_t, grub_host_off_t) | |
36250 | (grub_host_size_t, grub_host_ssize_t): New types. | |
36251 | (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type | |
fe6b695a | 36252 | dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on |
59b8208a | 36253 | `GRUB_HOST_SIZEOF_VOID_P'. |
36254 | ||
36255 | * include/grub/kernel.h (struct grub_module_header): Type of | |
36256 | member offset changed to `grub_host_off_t'. Type of member size | |
36257 | changed to `grub_host_size_t'. | |
36258 | (struct grub_module_info): Type of member offset changed to | |
36259 | `grub_host_off_t'. Type of member size changed to | |
36260 | `grub_host_size_t'. | |
36261 | ||
b4093103 | 36262 | 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org> |
36263 | ||
36264 | Make GRUB's kernel compliant to Multiboot Specification. | |
f19dbdb7 | 36265 | |
b4093103 | 36266 | * kern/i386/pc/startup.S (multiboot_header): New label. |
36267 | (multiboot_entry): Likewise. | |
36268 | (multiboot_trampoline): Likewise. | |
36269 | ||
36270 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
36271 | Increased to 0x4A0. | |
36272 | ||
36273 | * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not | |
36274 | put parentheses after a question mark. | |
36275 | [!GRUB_UTIL] (my_mod): New variable. | |
36276 | ||
36277 | * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini. | |
36278 | ||
b2499b29 | 36279 | 2005-09-28 Marco Gerards <mgerards@xs4all.nl> |
36280 | ||
36281 | Adds support for the XFS filesystem. Btrees are not supported | |
36282 | yet. | |
36283 | ||
36284 | * fs/xfs.c: New file. | |
36285 | ||
36286 | * DISTLIST: Added `fs/xfs.c'. | |
36287 | ||
36288 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'. | |
36289 | (grub_probefs_SOURCES): Likewise. | |
36290 | (grub_emu_SOURCES): Likewise. | |
36291 | (pkgdata_MODULES): Add `xfs.mod'. | |
36292 | (xfs_mod_SOURCES): New variable. | |
36293 | (xfs_mod_CFLAGS): Likewise. | |
36294 | ||
36295 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'. | |
36296 | (pkgdata_MODULES): Add `xfs.mod'. | |
36297 | (xfs_mod_SOURCES): New variable. | |
36298 | (xfs_mod_CFLAGS): Likewise. | |
36299 | ||
36300 | * util/grub-emu.c (main): Call `grub_xfs_init' and | |
36301 | `grub_xfs_fini'. | |
36302 | ||
36303 | * include/grub/fs.h (grub_xfs_init): New prototype. | |
36304 | (grub_xfs_fini): Likewise. | |
36305 | ||
f19dbdb7 | 36306 | |
83d37a62 | 36307 | 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi> |
36308 | ||
36309 | * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed | |
36310 | color modes, allow greater than 16 colors to be configured as | |
36311 | a default palette. | |
36312 | ||
47d2d65e | 36313 | 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
36314 | ||
36315 | * normal/completion.c (complete_arguments): Add the qualifier | |
36316 | const into OPTIONS. | |
36317 | ||
36318 | From Omniflux <omniflux+lists@omniflux.com>: | |
36319 | * include/grub/terminfo.h: New file. | |
36320 | * include/grub/tparm.h: Likewise. | |
36321 | * include/grub/i386/pc/serial.h: Likewise. | |
36322 | * term/terminfo.c: Likewise. | |
36323 | * term/tparm.c: Likewise. | |
36324 | * term/i386/pc/serial.c: Likewise. | |
36325 | * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and | |
36326 | serial.mod. | |
36327 | (terminfo_mod_SOURCES): New variable. | |
36328 | (terminfo_mod_CFLAGS): Likewise. | |
36329 | (serial_mod_SOURCES): Likewise. | |
36330 | (serial_mod_CFLAGS): Likewise. | |
36331 | ||
48b671ff | 36332 | 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org> |
36333 | ||
36334 | * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and | |
36335 | boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S | |
36336 | and kern/powerpc/ieee1275/cmain.c, respectively. | |
36337 | ||
36338 | * boot/powerpc/ieee1275/crt0.S: Moved to ... | |
36339 | * kern/powerpc/ieee1275/crt0.S: ... here. | |
36340 | ||
36341 | * boot/powerpc/ieee1275/cmain.c: Moved to ... | |
36342 | * kern/powerpc/ieee1275/cmain.c: ... here. | |
f19dbdb7 | 36343 | |
48b671ff | 36344 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use |
36345 | kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c | |
36346 | instead of boot/powerpc/ieee1275/crt0.S and | |
36347 | boot/powerpc/ieee1275/cmain.c, respectively. | |
36348 | ||
36349 | * boot/i386/pc/boot.S (lba_mode): Do not store the total number of | |
36350 | sectors. It was not used anyway. | |
36351 | ||
09fc77a7 | 36352 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
36353 | ||
36354 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix | |
36355 | `unused parameter' warning. | |
36356 | ||
003789c7 | 36357 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
36358 | ||
36359 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New | |
36360 | function. | |
36361 | (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as | |
36362 | getcharwidth. | |
36363 | ||
67f44c86 | 36364 | 2005-08-28 Marco Gerards <metgerards@student.han.nl> |
36365 | ||
36366 | * include/grub/normal.h (enum grub_completion_type): Added | |
36367 | `GRUB_COMPLETION_TYPE_ARGUMENT'. | |
36368 | ||
36369 | * normal/cmdline.c (print_completion): Handle | |
36370 | the `GRUB_COMPLETION_TYPE_ARGUMENT' type. | |
36371 | * normal/menu_entry.c (store_completion): Likewise. | |
36372 | ||
36373 | * normal/completion.c (complete_arguments): New function. | |
36374 | (grub_normal_do_completion): Call `complete_arguments' when the | |
36375 | current words start with a dash. | |
36376 | ||
0b5abe02 | 36377 | 2005-08-27 Marco Gerards <metgerards@student.han.nl> |
36378 | ||
36379 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use | |
36380 | `gzio.mod' instead of `io.mod'). | |
36381 | ||
d9864ee1 | 36382 | 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org> |
36383 | ||
36384 | * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh. | |
36385 | (DISTDIRS): Added io and video. | |
36386 | Rewrite the search routine to make an output consistently. | |
36387 | ||
36388 | * DISTLIST: Added conf/sparc64-ieee1275.mk, | |
36389 | conf/sparc64-ieee1275.rmk, include/grub/gzio.h, | |
36390 | include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h, | |
36391 | io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c, | |
36392 | kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and | |
36393 | util/powerpc/ieee1275/misc.c. | |
f19dbdb7 | 36394 | |
d9864ee1 | 36395 | * include/grub/gzio.h: New file. |
36396 | * io/gzio.c: Likewise. | |
f19dbdb7 | 36397 | |
d9864ee1 | 36398 | * kern/file.c (grub_file_close): Call grub_device_close only if |
36399 | FILE->DEVICE is not NULL. | |
36400 | ||
36401 | * include/grub/mm.h [!NULL] (NULL): New macro. | |
36402 | ||
36403 | * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant. | |
36404 | ||
36405 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
36406 | (pkgdata_MODULES): Added gzio.mod. | |
36407 | (gzio_mod_SOURCES): New variable. | |
36408 | (gzio_mod_CFLAGS): Likewise. | |
36409 | ||
36410 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
36411 | (pkgdata_MODULES): Added gzio.mod. | |
36412 | (gzio_mod_SOURCES): New variable. | |
36413 | (gzio_mod_CFLAGS): Likewise. | |
36414 | ||
36415 | * commands/cat.c: Include grub/gzio.h. | |
36416 | (grub_cmd_cat): Use grub_gzfile_open instead of | |
36417 | grub_file_open. | |
f19dbdb7 | 36418 | |
d9864ee1 | 36419 | * commands/cmp.c: Include grub/gzio.h. |
36420 | (grub_cmd_cmp): Use grub_gzfile_open instead of | |
36421 | grub_file_open. | |
36422 | ||
36423 | * loader/i386/pc/multiboot.c: Include grub/gzio.h. | |
36424 | (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of | |
36425 | grub_file_open. | |
36426 | (grub_rescue_cmd_module): Likewise. | |
36427 | ||
fa46f4b5 | 36428 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
36429 | ||
36430 | * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be | |
36431 | kern/sparc64/ieee1275/init.c because it contains _start. | |
36432 | * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk. | |
36433 | ||
e9211b5d | 36434 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
36435 | ||
36436 | * configure.ac: Add support for sparc64 host with ieee1275 | |
36437 | firmware. | |
36438 | * configure: Generated from configure.ac. | |
36439 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t | |
36440 | instead of int. | |
36441 | (grub_ofdisk_read): Likewise. | |
36442 | (grub_ofdisk_open): Use %p to print pointer values, and cast the | |
36443 | pointers as (void *) to remove a warning. | |
36444 | (grub_ofdisk_close): Likewise. | |
36445 | (grub_ofdisk_read): Likewise. | |
36446 | * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never | |
36447 | returns, so make it return void to remove a warning. | |
36448 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit): | |
36449 | Corresponding prototype change. | |
36450 | * kern/mm.c (grub_mm_init_region): Use %p to print pointer | |
36451 | values, and cast the pointers as (void *) to remove a warning. | |
36452 | (grub_mm_dump): Likewise. | |
36453 | * conf/sparc64-ieee1275.mk: New file. | |
36454 | * conf/sparc64-ieee1275.rmk: Likewise. | |
36455 | * include/grub/sparc64/setjmp.h: Likewise. | |
36456 | * include/grub/sparc64/types.h: Likewise. | |
36457 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
36458 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
36459 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
36460 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
36461 | * kern/sparc64/cache.c: Likewise. | |
36462 | * kern/sparc64/dl.c: Likewise. | |
36463 | * kern/sparc64/ieee1275/init.c: Likewise. | |
36464 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
36465 | ||
385c6a92 | 36466 | 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
36467 | ||
36468 | * util/console.c (grub_ncurses_putchar): If C is greater than | |
36469 | 0x7f, set C to a question mark. | |
36470 | (grub_ncurses_getcharwidth): New function. | |
36471 | (grub_ncurses_term): Specify grub_ncurses_getcharwidth as | |
36472 | getcharwidth. | |
36473 | ||
36474 | * normal/menu.c (print_entry): Made aware of Unicode. First, | |
36475 | convert TITLE to UCS-4, and predict the cursor position by | |
36476 | grub_getcharwidth. | |
36477 | ||
36478 | * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier | |
36479 | const to SRC. | |
36480 | * kern/misc.c (grub_utf16_to_utf8): Likewise. | |
36481 | ||
16ccb8b1 | 36482 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
36483 | ||
36484 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify | |
36485 | the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
36486 | grub_strcat. | |
36487 | ||
36488 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot | |
36489 | file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
36490 | grub_strcpy and grub_strlen. Take it into account that a space | |
36491 | character is inserted as a delimiter. | |
36492 | ||
6a85ce79 | 36493 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
36494 | ||
36495 | * partmap/pc.c (pc_partition_map_iterate): Include the value of an | |
fe6b695a | 36496 | invalid magic in the error. |
6a85ce79 | 36497 | |
36498 | * commands/search.c: New file. | |
f19dbdb7 | 36499 | |
6a85ce79 | 36500 | * util/grub-emu.c (main): Call grub_search_init and |
36501 | grub_search_fini. | |
36502 | ||
36503 | * kern/rescue.c (grub_rescue_print_disks): Removed. | |
36504 | (grub_rescue_print_devices): New function. | |
36505 | (grub_rescue_cmd_ls): Use grub_device_iterate with | |
36506 | grub_rescue_print_devices instead of grub_disk_dev_iterate with | |
36507 | grub_rescue_print_disks. | |
36508 | ||
36509 | * kern/partition.c (grub_partition_iterate): Return the result of | |
36510 | PARTMAP->ITERATE instead of GRUB_ERRNO. | |
36511 | ||
36512 | * kern/device.c: Include grub/partition.h. | |
36513 | (grub_device_iterate): New function. | |
36514 | ||
36515 | * include/grub/partition.h (grub_partition_iterate): Return int | |
36516 | instead of grub_err_t. | |
36517 | ||
36518 | * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New | |
36519 | prototype. | |
36520 | [GRUB_UTIL] (grub_search_fini): Likewise. | |
36521 | ||
36522 | * include/grub/device.h (grub_device_iterate): New prototype. | |
36523 | ||
36524 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
36525 | commands/search.c. | |
36526 | (pkgdata_MODULES): Added search.mod. | |
36527 | (search_mod_SOURCES): New variable. | |
36528 | (search_mod_CFLAGS): Likewise. | |
36529 | ||
36530 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c. | |
36531 | (pkgdata_MODULES): Added search.mod. | |
36532 | (search_mod_SOURCES): New variable. | |
36533 | (search_mod_CFLAGS): Likewise. | |
36534 | ||
36535 | * commands/ls.c (grub_ls_list_disks): Renamed to ... | |
36536 | (grub_ls_list_devices): ... this, and use grub_device_iterate. | |
36537 | All callers changed. | |
36538 | ||
36539 | * DISTLIST: Added commands/search.c. | |
36540 | ||
ef095434 | 36541 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
36542 | ||
36543 | * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the | |
36544 | conversion. | |
36545 | (grub_getcharwidth): New function. | |
36546 | ||
36547 | * kern/misc.c (grub_utf8_to_ucs4): New function. | |
36548 | ||
36549 | * include/grub/term.h (struct grub_term): Added a new member | |
36550 | "getcharwidth". | |
36551 | (grub_getcharwidth): New prototype. | |
36552 | ||
36553 | * include/grub/misc.h (grub_utf8_to_ucs4): New prototype. | |
36554 | ||
36555 | * term/i386/pc/console.c (map_char): New function. Segregated from | |
36556 | grub_console_putchar. | |
36557 | (grub_console_putchar): Use map_char. | |
36558 | (grub_console_getcharwidth): New function. | |
36559 | (grub_console_term): Specified grub_console_getcharwidth as | |
36560 | getcharwidth. | |
36561 | ||
36562 | * term/i386/pc/vga.c (grub_vga_getcharwidth): New function. | |
36563 | (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth. | |
36564 | ||
36565 | * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return | |
36566 | GRUB_ERRNO. | |
36567 | (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely | |
36568 | on grub_strtoul completely. | |
36569 | (write_char): Declare local variables in the beginning of the | |
36570 | function. | |
36571 | (grub_vesafb_getcharwidth): New function. | |
36572 | (grub_vesafb_term): Specified grub_vesafb_getcharwidth as | |
36573 | getcharwidth. | |
36574 | ||
1f0a95e4 | 36575 | 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org> |
36576 | ||
36577 | * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and | |
36578 | commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and | |
36579 | commands/i386/pc/vbetest.c. | |
36580 | ||
36581 | * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL, | |
36582 | call grub_vbe_get_controller_info again, because the returned | |
36583 | information is volatile. | |
36584 | (grub_vbe_set_video_mode): Mostly rewritten. | |
36585 | (grub_vbe_get_video_mode): Use grub_vbe_probe and use | |
36586 | grub_vbe_status_t correctly. | |
36587 | (grub_vbe_get_video_mode_info): Likewise. | |
36588 | (grub_vbe_set_pixel_rgb): Use a switch statement rather than | |
36589 | several if statements. | |
36590 | ||
36591 | * commands/i386/pc/vbe_list_modes.c: Renamed to ... | |
36592 | * commands/i386/pc/vbeinfo.c: ... this. | |
36593 | ||
36594 | * commands/i386/pc/vbe_test.c: Renamed to ... | |
36595 | * commands/i386/pc/vbetest.c: ... this. | |
36596 | ||
36597 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to | |
36598 | ... | |
36599 | (grub_cmd_vbeinfo): ... this. Save video modes before | |
36600 | iterating. Skip a video mode, if it is not available, not enough | |
36601 | information is given or it is monochrome. Show the memory | |
36602 | model. Leave the interpretation of MODEVAR to grub_strtoul | |
36603 | completely. | |
36604 | (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo. | |
36605 | (GRUB_MOD_FINI): Likewise. | |
36606 | ||
36607 | * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ... | |
36608 | (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use | |
36609 | grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a | |
36610 | duplicated grub_env_get. Leave the interpretation of MODEVAR to | |
36611 | grub_strtoul completely. | |
36612 | (real2pm): Removed. | |
36613 | (GRUB_MOD_INIT): Rename vbe_test to vbetest. | |
36614 | (GRUB_MOD_FINI): Likewise. | |
36615 | ||
36616 | * normal/misc.c: Include grub/mm.h. | |
36617 | ||
36618 | * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and | |
36619 | vbe_list_modes with vbetest.mod and vbeinfo.mod. | |
36620 | (vbe_list_modes_mod_SOURCES): Removed. | |
36621 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
36622 | (vbe_test_mod_SOURCES): Likewise. | |
36623 | (vbe_test_mod_CFLAGS): Likewise. | |
36624 | (vbeinfo_mod_SOURCES): New variable. | |
36625 | (vbeinfo_mod_CFLAGS): Likewise. | |
36626 | (vbetest_mod_SOURCES): Likewise. | |
36627 | (vbetest_mod_CFLAGS): Likewise. | |
36628 | ||
992ffbbe | 36629 | 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org> |
36630 | ||
36631 | * normal/misc.c: New file. | |
36632 | ||
36633 | * DISTLIST: Added normal/misc.c. | |
f19dbdb7 | 36634 | |
992ffbbe | 36635 | * partmap/amiga.c (amiga_partition_map_iterate): Add an argument |
36636 | DISK to HOOK. Call HOOK with DISK. | |
36637 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
36638 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
36639 | * partmap/sun.c (sun_partition_map_iterate): Likewise. | |
36640 | ||
36641 | * normal/menu_entry.c (struct screen): Added a new member | |
36642 | "completion_shown". | |
36643 | (completion_buffer): New global variable. | |
36644 | (make_screen): Set SCREEN->COMPLETION_SHOWN to zero. | |
36645 | (store_completion): New function. | |
36646 | (complete): Likewise. | |
36647 | (clear_completions): Likewise. | |
36648 | (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero, | |
36649 | call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is | |
36650 | a tab, call complete. | |
36651 | ||
36652 | * normal/completion.c (disk_dev): Removed. | |
36653 | (print_simple_completion): Likewise. | |
36654 | (print_partition_completion): Likewise. | |
36655 | (print_func): New global variable. | |
36656 | (add_completion): Do not take the arguments WHAT or PRINT any | |
36657 | longer. Added a new argument TYPE. Instead of printing directly, | |
36658 | call PRINT_FUNC if not NULL. | |
36659 | All callers changed. | |
36660 | (complete_device): Use a local variable DEV instead of | |
36661 | DISK_DEV. Do not move CURRENT_WORD to the end of a device name. | |
36662 | (grub_normal_do_completion): Take a new argument HOOK. Do not | |
36663 | initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an | |
36664 | empty string, return NULL instead. | |
36665 | All callers changed. | |
36666 | ||
36667 | * normal/cmdline.c (print_completion): New function. | |
36668 | ||
36669 | * kern/partition.c (grub_partition_iterate): Add an argument DISK | |
36670 | to HOOK. | |
36671 | All callers changed. | |
36672 | ||
36673 | * kern/disk.c (grub_print_partinfo): Removed. | |
36674 | ||
36675 | * include/grub/partition.h (struct grub_partition_map): Add a new | |
36676 | argument DISK into HOOK of ITERATE. | |
36677 | (grub_partition_iterate): Add a new argument DISK to HOOK. | |
36678 | ||
36679 | * include/grub/normal.h (enum grub_completion_type): New enum. | |
36680 | (grub_completion_type_t): New type. | |
36681 | (GRUB_COMPLETION_TYPE_COMMAND): New constant. | |
36682 | (GRUB_COMPLETION_TYPE_DEVICE): Likewise. | |
36683 | (GRUB_COMPLETION_TYPE_PARTITION): Likewise. | |
36684 | (GRUB_COMPLETION_TYPE_FILE): Likewise. | |
36685 | (grub_normal_do_completion): Added a new argument HOOK. | |
36686 | (grub_normal_print_device_info): New prototype. | |
36687 | ||
36688 | * include/grub/disk.h (grub_print_partinfo): Removed. | |
36689 | ||
36690 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c. | |
36691 | (normal_mod_SOURCES): Likewise. | |
36692 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
36693 | (normal_mod_SOURCES): Likewise. | |
36694 | ||
36695 | * commands/ls.c (grub_ls_list_disks): Use | |
36696 | grub_normal_print_device_info instead of grub_print_partinfo. Free | |
36697 | PNAME. | |
36698 | (grub_ls_list_files): Use grub_normal_print_device_info instead of | |
36699 | duplicating the code. | |
36700 | ||
0bd41162 | 36701 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
36702 | ||
36703 | * commands/i386/pc/vbe_list_modes.c: Update source formatting to | |
f19dbdb7 | 36704 | follow GCS more precisely. |
36705 | * commands/i386/pc/vbe_test.c: Likewise. | |
36706 | * include/grub/i386/pc/vbe.h: Likewise. | |
36707 | * term/i386/pc/vesafb.c: Likewise. | |
36708 | * video/i386/pc/vbe.c: Likewise. | |
0bd41162 | 36709 | |
6323696a | 36710 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
36711 | ||
36712 | * DISTLIST: Added term/i386/pc/vesafb.c | |
36713 | DISTLIST: Added video/i386/pc/vbe.c | |
36714 | DISTLIST: Added commands/i386/pc/vbe_list_modes.c. | |
36715 | DISTLIST: Added commands/i386/pc/vbe_test.c. | |
36716 | * commands/i386/pc/vbe_list_modes.c: New file. | |
36717 | * commands/i386/pc/vbe_test.c: Likewise. | |
36718 | * term/i386/pc/vesafb.c: Likewise. | |
36719 | * video/i386/pc/vbe.c: Likewise. | |
36720 | * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define. | |
36721 | (grub_vbe_probe) Added prototype. | |
36722 | (grub_vbe_set_video_mode) Likewise. | |
36723 | (grub_vbe_get_video_mode) Likewise. | |
36724 | (grub_vbe_get_video_mode_info) Likewise. | |
36725 | (grub_vbe_set_pixel_rgb) Likewise. | |
36726 | (grub_vbe_set_pixel_index) Likewise. | |
36727 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod. | |
36728 | (pkgdata_MODULES): Added vesafb.mod. | |
36729 | (pkgdata_MODULES): Added vbe_list_modes.mod. | |
36730 | (pkgdata_MODULES): Added vbe_test.mod. | |
36731 | (vbe_mod_SOURCES): Added. | |
36732 | (vbe_mod_CFLAGS): Likewise. | |
36733 | (vesafb_mod_SOURCES): Likewise. | |
36734 | (vesafb_mod_CFLAGS): Likewise. | |
36735 | (vbe_list_modes_mod_SOURCES): Likewise. | |
36736 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
36737 | (vbe_test_mod_SOURCES): Likewise. | |
36738 | (vbe_test_mod_CFLAGS): Likewise. | |
36739 | ||
0a74e62f | 36740 | 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org> |
36741 | ||
0a74e62f | 36742 | * normal/command.c (grub_command_execute): If INTERACTIVE is |
36743 | false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print | |
36744 | CMDLINE. Disable the pager if INTERACTIVE is true. | |
36745 | All callers are changed. | |
36746 | ||
36747 | * normal/main.c (grub_normal_execute): Read command.lst and fs.lst | |
36748 | before reading a config file. | |
36749 | * normal/main.c (read_config_file): Even if a command is not | |
36750 | found, register it if it is within an entry. | |
36751 | ||
36752 | * util/grub-emu.c: Include sys/types.h and unistd.h. | |
36753 | (options): Added --hold. | |
36754 | (struct arguments): Added a new member "hold". | |
36755 | (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is | |
36756 | missing. | |
36757 | (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is | |
36758 | cleared by a debugger, if it is not zero. | |
36759 | ||
36760 | * include/grub/normal.h (grub_command_execute): Add an argument | |
36761 | INTERACTIVE. | |
36762 | ||
e51f85ae | 36763 | 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi> |
36764 | ||
36765 | * DISTLIST: Added include/grub/i386/pc/vbe.h. | |
36766 | ||
e9c6f39b | 36767 | 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org> |
36768 | ||
36769 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test | |
36770 | program with another one, because the old one didn't detect a bug | |
36771 | in gcc-3.4. Always use regparm 2, because the new test is still | |
36772 | not enough for gcc-4.0. Someone must investigate a simple test | |
36773 | case which detects a bug in gcc-4.0. | |
36774 | ||
8de3495c | 36775 | 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org> |
36776 | ||
36777 | * DISTLIST: Added normal/completion.c. | |
36778 | ||
36779 | * normal/completion.c: New file. | |
f19dbdb7 | 36780 | |
8de3495c | 36781 | * term/i386/pc/console.c (grub_console_getwh): New function. |
36782 | (grub_console_term): Assign grub_console_getwh to getwh. | |
36783 | ||
36784 | * normal/cmdline.c (grub_tab_complete): Removed. Now the same | |
36785 | function is defined in normal/completion.c as | |
36786 | grub_normal_do_completion. | |
36787 | (grub_cmdline_get): Use grub_normal_do_completion instead of | |
36788 | grub_tab_complete. | |
36789 | ||
36790 | * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK | |
36791 | returns non-zero, otherwise return 0. | |
36792 | (grub_partition_iterate): First, probe the partition map. Then, | |
36793 | call ITERATE only for this partition map. | |
36794 | ||
36795 | * kern/misc.c (grub_strncmp): Rewritten. | |
36796 | ||
36797 | * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE | |
36798 | returns non-zero. Otherwise return 0. | |
36799 | ||
36800 | * include/grub/partition.h (grub_partition_map_iterate): Return | |
36801 | int instead of void. | |
36802 | ||
36803 | * include/grub/normal.h (grub_normal_do_completion): New prototype. | |
36804 | ||
36805 | * include/grub/misc.h (grub_strncmp): Change the type of N to | |
36806 | grub_size_t. | |
36807 | ||
36808 | * include/grub/disk.h (grub_disk_dev_iterate): Return int instead | |
36809 | of void. | |
36810 | ||
36811 | * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to | |
fe6b695a | 36812 | unsigned explicitly before comparing it with I. |
8de3495c | 36813 | |
36814 | * kern/main.c (grub_env_write_root): Add the attribute unused into | |
36815 | VAR. | |
36816 | ||
36817 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
36818 | normal/completion.c. | |
36819 | (normal_mod_SOURCES): Likewise. | |
36820 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
36821 | (normal_mod_SOURCES): Likewise. | |
36822 | ||
36823 | * normal/command.c (grub_iterate_commands): If ITERATE returns | |
36824 | non-zero, return one immediately. | |
36825 | ||
e85e144b | 36826 | 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi> |
36827 | ||
36828 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h. | |
36829 | * kern/i386/pc/startup.S: Updated Global Descriptor table's | |
36830 | descriptions. | |
36831 | (grub_vbe_get_controller_info): New function. | |
36832 | (grub_vbe_get_mode_info): Likewise. | |
36833 | (grub_vbe_set_mode): Likewise. | |
36834 | (grub_vbe_get_mode): Likewise. | |
36835 | (grub_vbe_set_memory_window): Likewise. | |
36836 | (grub_vbe_get_memory_window): Likewise. | |
36837 | (grub_vbe_set_scanline_length): Likewise. | |
36838 | (grub_vbe_get_scanline_length): Likewise. | |
36839 | (grub_vbe_set_display_start): Likewise. | |
36840 | (grub_vbe_get_display_start): Likewise. | |
36841 | (grub_vbe_set_palette_data): Likewise. | |
36842 | * include/grub/i386/pc/vbe.h: New file. | |
36843 | ||
c46153d2 | 36844 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
36845 | ||
36846 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
36847 | kern/ieee1275/of.c with kern/ieee1275/ieee1275.c. | |
36848 | * DISTLIST: Likewise. | |
36849 | * kern/ieee1275/of.c: Moved to ... | |
36850 | * kern/ieee1275/ieee1275.c: ... here. | |
36851 | ||
0cb90c45 | 36852 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
36853 | ||
36854 | * term/ieee1275/ofconsole.c: Include <grub/mm.h>. | |
36855 | (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t. | |
36856 | Pass 0 as `end' parameter to grub_strtoul(). | |
36857 | ||
a19fb360 | 36858 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
36859 | ||
36860 | * include/grub/powerpc/ieee1275/console.h: Do not include | |
36861 | <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE | |
36862 | ifdef. | |
36863 | (grub_console_cur_color): Remove i386-specific prototype. | |
36864 | (grub_console_real_putchar): Likewise. | |
36865 | (grub_console_checkkey): Likewise. | |
36866 | (grub_console_getkey): Likewise. | |
36867 | (grub_console_getxy): Likewise. | |
36868 | (grub_console_gotoxy): Likewise. | |
36869 | (grub_console_cls): Likewise. | |
36870 | (grub_console_setcursor): Likewise. | |
36871 | * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>. | |
36872 | Include <grub/machine/console.h>. | |
36873 | * term/ieee1275/ofconsole.c: Likewise. | |
36874 | ||
4ac9bd04 | 36875 | 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org> |
36876 | ||
36877 | * Makefile.in (LIBLZO): New variable. | |
36878 | ||
36879 | * configure.ac: Check for LZO version 2. | |
36880 | ||
36881 | * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include | |
36882 | lzo/lzo1x.h instead of lzo1x.h. | |
36883 | ||
36884 | * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead | |
36885 | of -llzo. | |
36886 | ||
36887 | * util/i386/pc/grub-setup.c (main): Do not free PREFIX | |
36888 | twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>. | |
36889 | ||
36890 | * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after | |
36891 | copying the data from PARTITION to P. | |
36892 | ||
f4917dfd | 36893 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
36894 | ||
36895 | * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is | |
36896 | negative, unload the module. | |
36897 | ||
36898 | * util/i386/pc/grub-setup.c (setup): The name of the PC partition | |
36899 | map is "pc_partition_map" but not "pc". | |
36900 | (usage): Fix the description. The options are --boot-image and | |
36901 | --core-image but not --boot-file or --core-file. | |
36902 | (main): If not specified explicitly, make BOOT_FILE and CORE_FILE | |
36903 | based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or | |
36904 | DEFAULT_DIRECTORY. | |
36905 | ||
36906 | * util/i386/pc/grub-install.in: Do not specify --boot-file or | |
36907 | --core-file. Specify INSTALL_DEVICE as an argument. | |
36908 | ||
36909 | * util/console.c: Include config.h. | |
36910 | [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h. | |
36911 | [HAVE_NCURSES_H]: Include ncurses.h. | |
36912 | [HAVE_CURSES_H]: Include curses.h. | |
36913 | [!A_NORMAL] (A_NORMAL): Defined as zero. | |
36914 | [!A_STANDOUT] (A_STANDOUT): Likewise. | |
36915 | ||
36916 | * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of | |
36917 | -lncurses. | |
36918 | * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise. | |
36919 | ||
36920 | * configure.ac: Check for curses libraries and headers. | |
36921 | ||
36922 | * Makefile.in (LIBCURSES): New variable. | |
36923 | ||
36924 | * genmk.rb (Script::rule): Set the executable bits. | |
36925 | ||
36926 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The | |
36927 | name of the PC partition map is "pc_partition_map" but not "pc". | |
36928 | ||
0e143073 | 36929 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
36930 | ||
36931 | * util/i386/pc/grub-install.in (grub_probefs): New variable. | |
36932 | (modules): Likewise. | |
36933 | (usage): Added descriptions for --modules and --grub-probefs. | |
36934 | Handle --modules and --grub-probefs. Save the arguments in MODULES | |
36935 | and GRUB_PROBEFS, respectively. | |
36936 | Auto-detect a filesystem module against GRUBDIR. If the result is | |
36937 | empty and modules are not specified explicitly, abort the | |
36938 | installation. Add the result to MODULES. | |
36939 | ||
36940 | * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c, | |
36941 | disk/powerpc/ieee1275/ofdisk.c, | |
36942 | include/grub/powerpc/ieee1275/init.h and | |
36943 | term/powerpc/ieee1275/ofconsole.c. | |
36944 | Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and | |
36945 | term/ieee1275/ofconsole.c. | |
36946 | ||
36947 | * include/grub/powerpc/ieee1275/console.h: Resurrected. | |
36948 | ||
36949 | * COPYING: Upgraded to the latest version. Only the address of the | |
36950 | FSF office has changed. | |
f19dbdb7 | 36951 | |
efd6e6d5 | 36952 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
36953 | ||
36954 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
36955 | kern/ieee1275.c with kern/ieee1275/of.c. | |
36956 | ||
36957 | * kern/ieee1275.c: Moved to ... | |
36958 | * kern/ieee1275/of.c: ... here. | |
36959 | ||
8ceafda2 | 36960 | 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org> |
36961 | ||
36962 | * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for | |
fe6b695a | 36963 | readability. |
8ceafda2 | 36964 | |
36965 | * config.guess: Updated to the latest version from gnulib. | |
36966 | * config.sub: Likewise. | |
36967 | * install.sh: Likewise. | |
36968 | * mkinstalldirs: Likewise. | |
36969 | ||
36970 | * include/grub/console.h: Removed. This file is arch-specific. Do | |
36971 | not put this in include/grub. | |
36972 | ||
36973 | * include/grub/i386/pc/console.h: Resurrected. | |
36974 | ||
36975 | * util/console.c: Include grub/machine/console.h instead of | |
36976 | grub/console.h. | |
36977 | * util/grub-emu.c: Likewise. | |
36978 | ||
267f6cd9 | 36979 | 2005-08-04 Marco Gerards <metgerards@student.han.nl> |
36980 | ||
36981 | * kern/term.c (grub_putcode): Use `grub_getwh' instead of | |
36982 | hardcoded value. | |
f19dbdb7 | 36983 | |
267f6cd9 | 36984 | From Vincent Pelletier <subdino2004@yahoo.fr> |
36985 | * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT): | |
36986 | Redefined to use grub_getwh. | |
36987 | (grub_term): New member named getwh. | |
36988 | (grub_getwh): New prototype. | |
36989 | * kern/term.c (grub_getwh): New function. | |
36990 | * term/i386/pc/console.c (grub_console_getwh): New function. | |
36991 | (grub_console_term): New member `getwh'. | |
36992 | * term/i386/pc/vga.c (grub_vga_getwh): New function. | |
36993 | (grub_vga_term): New member `getwh'. | |
0b5abe02 | 36994 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use |
267f6cd9 | 36995 | grub_ssize_t. |
36996 | (grub_ofconsole_getw): New function. | |
36997 | (grub_ofconsole_init): Use grub_ssize_t and unsigned char. | |
36998 | (grub_ofconsole_term): New field named getwh and new initial | |
36999 | value. | |
37000 | ||
3be7266d | 37001 | 2005-08-03 Hollis Blanchard <hollis@penguinppc.org> |
37002 | ||
37003 | * include/grub/powerpc/ieee1275/ieee1275.h: Move ... | |
37004 | * include/grub/ieee1275/ieee1275.h: ... to here. All users updated. | |
37005 | Move `abort', `grub_reboot', and `grub_halt' prototypes ... | |
37006 | * include/grub/powerpc/ieee1275/kernel.h: ... to here. | |
37007 | * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead | |
37008 | of <grub/machine/ieee1275.h>. | |
37009 | * commands/ieee1275/reboot.c: Likewise. | |
37010 | * boot/powerpc/ieee1275/ieee1275.c: Move ... | |
37011 | * kern/ieee1275.c: ... to here. All users updated. Change all | |
37012 | parameter structs to use new type `grub_ieee1275_cell_t'. | |
37013 | * term/powerpc/ieee1275/ofconsole.c: Move ... | |
37014 | * term/ieee1275/ofconsole.c: ... to here. All users updated. | |
37015 | * disk/powerpc/ieee1275/ofdisk.c: Move ... | |
37016 | * disk/ieee1275/ofdisk.c: ... to here. All users updated. | |
37017 | * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type | |
37018 | to return int. | |
37019 | * include/grub/i386/pc/console.h: Move to include/grub/console.h. | |
37020 | Remove unused prototypes. All users updated. | |
37021 | * include/grub/powerpc/ieee1275/console.h: Removed. | |
37022 | * include/grub/powerpc/ieee1275/ieee1275.h: Define | |
37023 | `grub_ieee1275_cell_t'. | |
37024 | * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>. | |
37025 | Cast comparisons with -1 to the correct type. | |
37026 | * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter | |
37027 | type to match `grub_ieee1275_entry_fn'. | |
37028 | ||
8b5f3938 | 37029 | 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org> |
37030 | ||
37031 | * DISTLIST: Added util/i386/pc/grub-probefs.c. | |
37032 | ||
37033 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs. | |
37034 | (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and | |
37035 | partmap/sun.c. | |
37036 | (grub_probefs_SOURCES): New variable. | |
37037 | ||
37038 | * util/i386/pc/grub-probefs.c: New file. | |
37039 | ||
37040 | * util/i386/pc/grub-setup.c (main): Call | |
37041 | grub_pc_partition_map_init, grub_ufs_init, grub_minix_init, | |
37042 | grub_hfs_init and grub_jfs_init to initialize the system. Call | |
37043 | grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and | |
37044 | grub_pc_partition_map_fini to finish the system. | |
37045 | ||
ea409713 | 37046 | 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org> |
37047 | ||
37048 | * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New | |
37049 | function. | |
37050 | (grub_multiboot_load_elf32): Likewise. | |
37051 | (grub_multiboot_is_elf64): Likewise. | |
37052 | (grub_multiboot_load_elf64): Likewise. | |
37053 | (grub_multiboot_load_elf): Likewise. | |
37054 | (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load | |
37055 | an ELF32 or ELF64 file. | |
37056 | This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>. | |
37057 | ||
37058 | From Serbinenko Vladimir <serbinenko.vova@list.ru>: | |
37059 | * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not | |
37060 | NULL before calling FS->LABEL. | |
37061 | * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL. | |
37062 | * commands/ls.c (grub_ls_list_files): Show labels, if possible. | |
37063 | (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL | |
37064 | before calling FS->LABEL. | |
37065 | ||
141a288b | 37066 | 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org> |
37067 | ||
37068 | * util/i386/pc/grub-install.in (datadir): New variable. | |
37069 | (libdir): Removed. | |
37070 | (pkgdatadir): New variable. | |
37071 | (pkglibdir): Removed. | |
37072 | ||
0d5f8a54 | 37073 | 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org> |
37074 | ||
37075 | * DISTLIST: Added util/i386/pc/grub-install.in. | |
37076 | ||
37077 | * util/i386/pc/grub-install.in: New file. | |
37078 | ||
37079 | * conf/i386-pc.rmk (sbin_SCRIPTS): New variable. | |
37080 | (grub_install_SOURCES): Likewise. | |
37081 | ||
37082 | * genmk.rb: Added support for scripts. | |
37083 | (Script): New class. | |
37084 | (scripts): New variable. | |
37085 | ||
37086 | * Makefile.in (install-local): Install sbin_SCRIPTS by | |
37087 | INSTALL_SCRIPT. | |
37088 | (uninstall): Remove sbin_SCRIPTS. | |
37089 | ||
37090 | * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB | |
37091 | device, try to get a GRUB device by | |
37092 | grub_util_biosdisk_get_grub_dev. | |
37093 | Free DEST_DEV. | |
37094 | ||
37095 | * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated | |
37096 | description for --device-map. | |
37097 | ||
5f968e1e | 37098 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
37099 | ||
37100 | Change the semantics of variable hooks. They now return strings | |
37101 | instead of error values. | |
f19dbdb7 | 37102 | |
5f968e1e | 37103 | * util/i386/pc/grub-setup.c: Include grub/env.h. |
37104 | (setup): Use grub_device_set_root instead of grub_env_set. | |
37105 | ||
37106 | * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and | |
37107 | grub_env_get instead of grub_device_set_root and | |
37108 | grub_device_get_root, respectively. | |
37109 | ||
37110 | * kern/main.c (grub_env_write_root): New function. | |
37111 | (grub_set_root_dev): Register grub_env_write_hook for "root". Use | |
37112 | grub_env_set instead of grub_device_set_root. | |
37113 | ||
37114 | * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need | |
37115 | many variables. | |
37116 | (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK | |
37117 | rather than calling ENV->WRITE_HOOK afterwards. | |
37118 | (grub_env_get): Return the result of ENV->READ_HOOK rather than | |
37119 | passing a pointer of a pointer. | |
37120 | (grub_register_variable_hook): Change the types of "read_hook" and | |
37121 | "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t, | |
37122 | respectively. | |
37123 | Allocate the default empty string on the heap, because this string | |
37124 | may be freed later. | |
37125 | ||
37126 | * kern/device.c: Include grub/env.h. | |
37127 | (grub_device_set_root): Removed. | |
37128 | (grub_device_get_root): Likewise. | |
37129 | (grub_device_open): Use grub_env_get instead of | |
37130 | grub_device_get_root. | |
37131 | ||
37132 | * include/grub/env.h (grub_env_read_hook_t): New type. | |
37133 | (grub_env_write_hook_t): Likewise. | |
37134 | (grub_env_var): Change the types of "read_hook" and "write_hook" | |
37135 | to grub_env_read_hook_t and grub_env_write_hook_t, respectively. | |
37136 | (grub_register_variable_hook): Likewise. | |
37137 | ||
37138 | * include/grub/device.h (grub_device_set_root): Removed. | |
37139 | (grub_device_set_root): Likewise. | |
37140 | ||
37141 | * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and | |
37142 | make sure that DIRNAME terminates with '/', so that | |
37143 | grub_fat_find_dir will fail if PATH is not a directory. | |
37144 | ||
37145 | * commands/ls.c (grub_ls_list_files): Remove the qualifier const | |
37146 | from DIRNAME. | |
37147 | Use the qualifier auto for print_files and print_files_long. | |
37148 | If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME | |
37149 | as a regular file. | |
37150 | Put a newline only if there is no error. | |
37151 | (grub_cmd_ls): Remove grub_ls_print_files, because this is not | |
37152 | used. | |
37153 | ||
896f0afd | 37154 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
37155 | ||
37156 | * kern/partition.c (grub_partition_probe): Initialize PART to | |
37157 | NULL. Otherwise, when no partition map is registered, this returns | |
37158 | a garbage. | |
37159 | ||
b28b81b2 | 37160 | 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> |
37161 | ||
37162 | * partmap/apple.c (apple_partition_map_iterate): Check if POS | |
37163 | equals GRUB_DISK_SECTOR_SIZE to see if the partition table is | |
37164 | valid. | |
37165 | ||
5f3607e0 | 37166 | 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org> |
37167 | ||
37168 | * commands/ls.c (grub_ls_list_disks): Print the filesystem | |
37169 | information on each device, if it does not have partitions. Print | |
37170 | "Device" instead of "Disk", because this function is not specific | |
37171 | to disk devices. | |
37172 | ||
37173 | * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG | |
37174 | static to ensure that it is put on the memory rather than a | |
37175 | register. | |
37176 | ||
502c87e8 | 37177 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
37178 | ||
37179 | * commands/cat.c (GRUB_MOD_INIT): Use better documentation. | |
37180 | (grub_cat_init): Likewise. | |
37181 | * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise. | |
37182 | (options): Likewise. | |
37183 | * commands/configfile.c (GRUB_MOD_INIT): Likewise. | |
37184 | (grub_configfile_init): Likewise. | |
37185 | * font/manager.c (GRUB_MOD_INIT): Likewise. | |
37186 | * commands/help.c (GRUB_MOD_INIT): Likewise. | |
37187 | (grub_help_init): Likewise. | |
37188 | * normal/command.c (grub_command_init): Likewise. | |
37189 | * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise. | |
37190 | * disk/loopback.c (grub_loop_init): Likewise. | |
37191 | (GRUB_MOD_INIT): Likewise. | |
37192 | * commands/ls.c (grub_ls_init): Likewise. | |
37193 | (GRUB_MOD_INIT): Likewise. | |
37194 | (options): Likewise. | |
37195 | * commands/boot.c (grub_boot_init): Likewise. | |
37196 | (GRUB_MOD_INIT): Likewise. | |
37197 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise. | |
37198 | * commands/i386/pc/reboot.c (grub_reboot_init): Likewise. | |
37199 | (GRUB_MOD_INIT): Likewise. | |
37200 | * commands/cmp.c (grub_cmp_init): Likewise. | |
37201 | (GRUB_MOD_INIT): Likewise. | |
37202 | ||
37203 | * normal/arg.c: Use <> instead of "" to include header files. | |
37204 | (SHORT_ARG_HELP): New macro. | |
37205 | (SHORT_ARG_USAGE): Likewise. | |
37206 | (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead | |
37207 | of 'h' and 'u' for help and usage, respectively. Use more GNU-like | |
37208 | descriptions. | |
37209 | (find_short): Check if C is 'h' or 'u' explicitly. | |
37210 | (grub_arg_show_help): Use space characters instead of tabs. Treat | |
37211 | SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u | |
37212 | are shown with --help and --usage only if they are not used for | |
37213 | the command itself. | |
37214 | (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of | |
37215 | 'h' and 'u'. | |
37216 | ||
37217 | * include/grub/arg.h (struct grub_arg_option): Add the qualifier | |
37218 | const into "longarg". Change the type of "shortarg" to int. | |
37219 | ||
f806d18e | 37220 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
37221 | ||
37222 | * boot/i386/pc/boot.S (boot_drive_check): New label. | |
37223 | ||
37224 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New | |
37225 | macro. | |
37226 | ||
37227 | * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes | |
37228 | which do not pass a boot drive correctly. Copied from GRUB Legacy. | |
37229 | ||
e293232b | 37230 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
37231 | ||
37232 | * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a): | |
37233 | When turning off Gate A20, skip the check and return immediately, | |
37234 | because this is not fatal usually. | |
37235 | ||
ebedfd00 | 37236 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
37237 | ||
37238 | * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should | |
37239 | be 0x7C00 instead of 0x8000. | |
37240 | ||
37241 | * boot/i386/pc/pxeboot.S: Rewritten. | |
37242 | ||
37243 | * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify | |
37244 | EXT_C. | |
37245 | (gate_a20_check_state): Read a byte from 0x108000. Invert the | |
37246 | result. | |
37247 | ||
654fc59f | 37248 | 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org> |
37249 | ||
37250 | * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for | |
37251 | robustness. This routine now supports a BIOS call and System | |
37252 | Control Port A to modify the gate A20. | |
37253 | ||
37254 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
37255 | Increased to 0x440. | |
37256 | ||
09f9923f | 37257 | 2005-07-12 Hollis Blanchard <hollis@penguinppc.org> |
37258 | ||
37259 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the | |
37260 | device path and resulting ihandle. | |
37261 | (grub_ofdisk_close): dprintf the ihandle being closed. | |
37262 | (grub_ofdisk_read): dprintf function parameters. | |
37263 | * kern/mm.c (grub_mm_init_region): Likewise. | |
37264 | * loader/powerpc/ieee1275/linux.c: Remove extra whitespace. | |
37265 | (grub_linux_boot): dprintf the Linux entry point, initrd address and | |
37266 | size, and boot arguments. | |
37267 | (grub_rescue_cmd_linux): dprintf each ELF segment's address and size | |
37268 | before loading into memory. | |
37269 | (grub_rescue_cmd_initrd): dprintf the initrd's address and size | |
37270 | before loading into memory. | |
37271 | ||
7ef504d8 | 37272 | 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org> |
37273 | ||
37274 | * kern/mm.c: Added much documentation. | |
37275 | (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is | |
37276 | 8, set to 5 instead of 8. | |
37277 | ||
e0f050c2 | 37278 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
37279 | ||
37280 | * DISTLIST: Added util/i386/pc/grub-mkimage.c. | |
37281 | ||
37282 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap. | |
37283 | (grub_mkdevicemap_SOURCES): New variable. | |
37284 | ||
37285 | * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from | |
37286 | lib/device.c of GRUB Legacy. | |
37287 | ||
7224189a | 37288 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
37289 | ||
37290 | * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL | |
37291 | instead of PATH is NULL. | |
37292 | ||
68c864eb | 37293 | 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr> |
37294 | ||
37295 | * commands/cmp.c (BUFFER_SIZE): New macro. | |
37296 | (grub_cmd_cmp): Close the right file at the right time. Compare | |
37297 | only data just read. Don't report files of different size as | |
37298 | identical. Dynamically allocate buffers. Move variable | |
37299 | declarations at the beginning of function. | |
37300 | ||
e6f3e614 | 37301 | 2005-07-09 Yoshinori Okuji <okuji@enbug.org> |
37302 | ||
37303 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was | |
37304 | reverse. | |
37305 | ||
f8f1559a | 37306 | 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr> |
37307 | ||
37308 | * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d | |
37309 | when backspace is pressed at beginning of line. | |
37310 | ||
39c9d41d | 37311 | 2005-07-03 Yoshinori Okuji <okuji@enbug.org> |
37312 | ||
37313 | * DISTLIST: Added genfslist.sh. | |
37314 | ||
37315 | * normal/main.c (fs_module_list): New variable. | |
37316 | (autoload_fs_module): New function. | |
37317 | (read_fs_list): Likewise. | |
37318 | (grub_normal_execute): Call read_fs_list. | |
37319 | ||
37320 | * kern/fs.c (grub_fs_autoload_hook): New variable. | |
37321 | (grub_fs_probe): Added support for auto-loading. | |
37322 | ||
37323 | * include/grub/normal.h (struct grub_fs_module_list): New struct. | |
37324 | (grub_fs_module_list_t): New type. | |
37325 | ||
37326 | * include/grub/fs.h (grub_fs_autoload_hook_t): New type. | |
37327 | (grub_fs_autoload_hook): New prototype. | |
37328 | ||
37329 | * genfslist.sh: New file. | |
f19dbdb7 | 37330 | |
39c9d41d | 37331 | * genmk.rb: Added a rule to generate a filesystem list. |
37332 | ||
121c1d83 | 37333 | 2005-06-30 Marco Gerards <metgerards@student.han.nl> |
37334 | ||
37335 | * configure.ac: Fix the test for cross-compiling. | |
37336 | ||
37337 | * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't | |
37338 | define GRUB_UTIL anymore. | |
37339 | ||
37340 | * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes | |
37341 | so this function works on other systems than just big endian. | |
37342 | (load_modules): Likewise. | |
37343 | (add_segments): Likewise. | |
37344 | ||
e75d76e1 | 37345 | 2005-06-23 Hollis Blanchard <hollis@penguinppc.org> |
37346 | ||
37347 | * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string | |
37348 | contains `l' modifier, get a long from va_arg(). | |
37349 | ||
50b5a0a7 | 37350 | 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org> |
37351 | ||
37352 | * kern/mm.c (grub_free): If the next free block which is being | |
37353 | merged is the first free block, set the first block to the block | |
37354 | being freed. | |
37355 | Reported by Vincent Guffens <guffens@inma.ucl.ac.be>. | |
37356 | ||
89371b20 | 37357 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
37358 | ||
37359 | * boot/powerpc/ieee1275/cmain.c (cmain): Initialize | |
37360 | `grub_ieee1275_chosen'. | |
37361 | ||
168d6e58 | 37362 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
37363 | ||
37364 | * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition. | |
37365 | (grub_ieee1275_chosen): New variable. | |
37366 | (cmain): Initialize and use `grub_ieee1275_chosen' instead of | |
37367 | `chosen'. | |
37368 | * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space. | |
37369 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
37370 | Rename first argument to `phandle' for consistency. | |
37371 | (grub_ieee1275_get_property_length): Likewise. | |
37372 | (grub_ieee1275_next_property): Likewise. Change type of first argument | |
37373 | to grub_ieee1275_phandle_t. | |
37374 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn): | |
37375 | Move export next to declaration. | |
37376 | (grub_ieee1275_chosen): New variable. | |
37377 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE): | |
37378 | Correct cosmetic typo. | |
37379 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use | |
37380 | `grub_ieee1275_chosen'. | |
37381 | * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise. | |
37382 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise. | |
37383 | (grub_rescue_cmd_linux): Set `initrd_addr' to 0. | |
37384 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use | |
37385 | `grub_ieee1275_chosen'. | |
37386 | ||
ca5baa3f | 37387 | 2005-05-10 Hollis Blanchard <hollis@penguinppc.org> |
37388 | ||
37389 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse | |
37390 | /chosen/bootargs. | |
37391 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse | |
37392 | /chosen/bootargs as "variable=value" pairs. | |
37393 | ||
708b345f | 37394 | 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr> |
37395 | ||
37396 | * include/grub/misc.h (grub_dprintf): New macro. | |
37397 | (grub_real_dprintf): New prototype. | |
37398 | (grub_strword): Likewise. | |
37399 | (grub_iswordseparator): Likewise. | |
37400 | * kern/misc.c (grub_real_dprintf): New function. | |
37401 | (grub_strword): Likewise. | |
37402 | (grub_iswordseparator): Likewise. | |
37403 | ||
f4c5e67c | 37404 | 2005-04-30 Hollis Blanchard <hollis@penguinppc.org> |
37405 | ||
37406 | * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h. | |
37407 | (roundup): Remove macro. | |
37408 | (grub_ieee1275_flags): Make static. | |
37409 | (grub_ieee1275_realmode): Remove. | |
37410 | (grub_ieee1275_test_flag): New function. | |
37411 | (grub_ieee1275_set_flag): Likewise. | |
37412 | (find_options): Rename to `grub_ieee1275_find_options'; update | |
37413 | callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and | |
37414 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS. | |
37415 | (cmain): New prototype. | |
37416 | (cmain): Use `grub_ieee1275_set_flag' instead of accessing | |
37417 | `grub_ieee1275_flags' directly. | |
37418 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove | |
37419 | machine/biosdisk.h. | |
37420 | * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h. | |
37421 | Don't include grub/machine/init.h. | |
37422 | (grub_ofdisk_open): Call `grub_ieee1275_test_flag'. | |
37423 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
37424 | Remove prototype. | |
37425 | (grub_ieee1275_realmode): Likewise. | |
37426 | (grub_ieee1275_flag): New enum. | |
37427 | (grub_ieee1275_test_flag): New prototype. | |
37428 | (grub_ieee1275_set_flag): New prototype. | |
37429 | * include/grub/powerpc/ieee1275/init.h: Remove file. | |
37430 | * include/grub/powerpc/ieee1275/ofdisk.h: New file. | |
37431 | * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h. | |
37432 | Include grub/machine/console.h. Include grub/machine/ofdisk.h. | |
37433 | (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove | |
37434 | comment. | |
37435 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call | |
37436 | `grub_ieee1275_test_flag'. | |
37437 | (grub_ieee1275_encode_devname): Likewise. | |
37438 | ||
ed16607e | 37439 | 2005-04-21 Hollis Blanchard <hollis@penguinppc.org> |
37440 | ||
37441 | * include/grub/powerpc/ieee1275/ieee1275.h | |
37442 | (grub_ieee1275_encode_devname): New prototype. | |
37443 | (grub_ieee1275_get_filename): Likewise. | |
37444 | * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New | |
37445 | function. | |
37446 | (grub_set_prefix): Likewise. | |
37447 | (grub_machine_init): Call grub_set_prefix. | |
37448 | * kern/powerpc/ieee1275/openfw.c: Fix typos. | |
37449 | (grub_parse_type): New enum. | |
37450 | (grub_ieee1275_get_devargs): New function. | |
37451 | (grub_ieee1275_get_devname): Likewise. | |
37452 | (grub_ieee1275_parse_args): Likewise. | |
37453 | (grub_ieee1275_get_filename): Likewise. | |
37454 | (grub_ieee1275_encode_devname): Likewise. | |
37455 | ||
be369920 | 37456 | 2005-03-30 Marco Gerards <metgerards@student.han.nl> |
37457 | ||
37458 | * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call | |
37459 | `grub_loader_unset'. | |
37460 | ||
a5ce3a4a | 37461 | 2005-03-26 Hollis Blanchard <hollis@penguinppc.org> |
37462 | ||
37463 | * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt | |
37464 | instead of grub_ieee1275_interpret. | |
37465 | (grub_halt_init): New function. | |
37466 | (grub_halt_fini): Likewise. | |
37467 | (GRUB_MOD_INIT): Correct message grammar. | |
37468 | * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot | |
37469 | instead of grub_ieee1275_interpret. | |
37470 | (grub_reboot_init): New function. | |
37471 | (grub_reboot_fini): Likewise. | |
37472 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace | |
37473 | commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and | |
37474 | util/i386/pc/misc.c with commands/ieee1275/halt.c, | |
37475 | commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c. | |
37476 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New | |
37477 | function. | |
37478 | * include/grub/powerpc/ieee1275/console.h (grub_console_fini): | |
37479 | Add prototype. | |
37480 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add | |
37481 | prototype. | |
37482 | (grub_halt): Likewise. | |
37483 | * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment. | |
37484 | (cmain): Remove __attribute__((unused)). | |
37485 | * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable. | |
37486 | (grub_heap_len): Likewise. | |
37487 | (grub_machine_fini): New function. | |
37488 | * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function. | |
37489 | (grub_halt): Likewise. | |
37490 | * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New | |
37491 | function. | |
37492 | * util/powerpc/ieee1275/misc.c: New file. | |
37493 | ||
0058f771 | 37494 | 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
37495 | ||
37496 | * DISTLIST: New file. | |
37497 | * gendistlist.sh: Likewise. | |
f19dbdb7 | 37498 | |
0058f771 | 37499 | * Makefile.in (COMMON_DISTFILES): Removed. |
37500 | (BOOT_DISTFILES): Likewise. | |
37501 | (CONF_DISTFILES): Likewise. | |
37502 | (DISK_DISTFILES): Likewise. | |
37503 | (FS_DISTFILES): Likewise. | |
37504 | (INCLUDE_DISTFILES): Likewise. | |
37505 | (KERN_DISTFILES): Likewise. | |
37506 | (LOADER_DISTFILES): Likewise. | |
37507 | (TERM_DISTFILES): Likewise. | |
37508 | (UTIL_DISTFILES): Likewise. | |
37509 | (DISTFILES): Likewise. | |
37510 | (uninstall): Uninstall files in $(pkgdata_DATA). | |
37511 | (DISTLIST): New target. | |
37512 | (distdir): Use the contents of the file DISTLIST to get a list of | |
37513 | distributed files. | |
37514 | ||
46b3b8a5 | 37515 | 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
37516 | ||
37517 | * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media | |
37518 | descriptor. This is ported from GRUB Legacy. | |
37519 | ||
37520 | * gencmdlist.sh: Added an extra semicolon to make it work with | |
37521 | old sed versions. Reported by Robert Bihlmeyer | |
37522 | <robbe@orcus.priv.at>. | |
37523 | ||
5822ff87 | 37524 | 2005-03-08 Yoshinori Okuji <okuji@enbug.org> |
37525 | ||
37526 | Automatic loading of commands is supported. | |
f19dbdb7 | 37527 | |
5822ff87 | 37528 | * normal/main.c (read_command_list): New function. |
37529 | (grub_normal_execute): Call read_command_list. | |
37530 | ||
37531 | * normal/command.c (grub_register_command): Return zero or CMD. | |
37532 | Allocate CMD->NAME from the heap. | |
37533 | Initialize CMD->MODULE_NAME to zero. | |
37534 | Find the same name as well. If the same command is found and it is | |
37535 | a dummy command, overwrite members. If it is not a dummy command, | |
37536 | return zero. | |
37537 | (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME. | |
37538 | (grub_command_find): If a dummy command is found, load a module | |
37539 | and retry to find a command only once. | |
37540 | ||
37541 | * normal/cmdline.c (grub_tab_complete): Call grub_command_find to | |
37542 | make sure that each command is loaded. | |
37543 | ||
37544 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New | |
37545 | macro. | |
37546 | (struct grub_command): Remove const from the member `name'. | |
37547 | Add a new member `module_name'. | |
37548 | (grub_register_command): Return grub_command_t. | |
37549 | ||
37550 | * commands/help.c (grub_cmd_help): Call grub_command_find to make | |
37551 | sure that each command is loaded. | |
37552 | ||
37553 | * genmk.rb (PModule::rule): Specify a module name without the | |
37554 | suffix ".mod" to gencmdlist.sh. | |
37555 | ||
7b1f4b57 | 37556 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
37557 | ||
37558 | * gencmdlist.sh: New file. | |
f19dbdb7 | 37559 | |
7b1f4b57 | 37560 | * genmk.rb (PModule::rule): Generate a rule for a command list. |
37561 | Clean command.lst. | |
37562 | Generate command.lst from $(COMMANDFILES). | |
37563 | ||
37564 | * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh. | |
37565 | (DATA): Added $(pkgdata_DATA). | |
37566 | (install-local): Install files in $(pkgdata_DATA). | |
37567 | ||
062aaf39 | 37568 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
37569 | ||
37570 | * term/i386/pc/vga.c (debug_command): Removed. | |
37571 | (GRUB_MOD_INIT): Do not register the command "debug". | |
37572 | ||
37573 | From Hollis Blanchard: | |
37574 | * commands/configfile.c: New file. | |
37575 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
37576 | commands/configfile.c. | |
37577 | (pkgdata_MODULES): Added configfile.mod. | |
37578 | (configfile_mod_SOURCES): New variable. | |
37579 | (configfile_mod_CFLAGS): Likewise. | |
37580 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
37581 | commands/configfile.c. | |
37582 | (pkgdata_MODULES): Added configfile.mod. | |
37583 | (configfile_mod_SOURCES): New variable. | |
37584 | (configfile_mod_CFLAGS): Likewise. | |
37585 | * util/grub-emu.c (main): Call grub_configfile_init and | |
37586 | grub_configfile_fini. | |
37587 | * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New | |
37588 | prototype. | |
37589 | [GRUB_UTIL] (grub_configfile_fini): Likewise. | |
f19dbdb7 | 37590 | |
cee01aa6 | 37591 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
37592 | ||
37593 | * normal/arg.c (grub_arg_show_help): Do not show the bug report | |
37594 | address. | |
37595 | ||
37596 | * commands/help.c (grub_cmd_help): Do not print newlines after | |
37597 | the last command in print_command_help. | |
37598 | ||
93f3a1d8 | 37599 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
37600 | ||
37601 | * commands/default.h: New file. | |
37602 | * commands/timeout.h: Likewise. | |
37603 | * normal/context.c: Likewise. | |
f19dbdb7 | 37604 | |
93f3a1d8 | 37605 | * util/misc.c: Do not include sys/times.h. |
37606 | Include sys/time.h and grub/machine/time.h. | |
37607 | (grub_get_rtc): Rewritten with gettimeofday. | |
37608 | ||
37609 | * util/grub-emu.c (main): Call grub_default_init and | |
37610 | grub_timeout_init before grub_normal_init, and call | |
37611 | grub_timeout_fini and grub_default_fini after grub_main. | |
37612 | ||
37613 | * util/console.c (grub_ncurses_checkkey): Return the read | |
37614 | character or -1. | |
37615 | ||
37616 | * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it | |
37617 | timeouts. | |
37618 | ||
37619 | * normal/main.c (read_config_file): Push MENU. If this fails, | |
37620 | print an error and wait for a user input. | |
37621 | Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE. | |
37622 | If a menu is empty or an error occurs, pop MENU. | |
37623 | (grub_normal_execute): Pop and free MENU after grub_menu_run | |
37624 | returns. | |
37625 | ||
37626 | * kern/loader.c (grub_loader_boot): Call grub_machine_fini. | |
37627 | ||
37628 | * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not | |
37629 | include time.h. | |
37630 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
37631 | without GRUB_UTIL. | |
37632 | * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include | |
37633 | time.h. | |
37634 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
37635 | without GRUB_UTIL. | |
37636 | ||
37637 | * include/grub/normal.h (struct grub_menu_list): New struct. | |
37638 | (grub_menu_list_t): New type. | |
37639 | (struct grub_context): New struct. | |
37640 | (grub_context_t): New type. | |
37641 | (grub_register_command): Got rid of EXPORT_FUNC. | |
37642 | (grub_unregister_command): Likewise. | |
37643 | (grub_context_get): New prototype. | |
37644 | (grub_context_get_current_menu): Likewise. | |
37645 | (grub_context_push_menu): Likewise. | |
37646 | (grub_context_pop_menu): Likewise. | |
37647 | [GRUB_UTIL] (grub_default_init): Likewise. | |
37648 | [GRUB_UTIL] (grub_default_fini): Likewise. | |
37649 | [GRUB_UTIL] (grub_timeout_init): Likewise. | |
37650 | [GRUB_UTIL] (grub_timeout_fini): Likewise. | |
37651 | ||
37652 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c, | |
37653 | commands/timeout.c and normal/context.c. | |
37654 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
37655 | (normal_mod_SOURCES): Added normal/context.c. | |
37656 | (default_mod_SOURCES): New variable. | |
37657 | (default_mod_CFLAGS): Likewise. | |
37658 | (timeout_mod_SOURCES): Likewise. | |
37659 | (timeout_mod_CFLAGS): Likewise. | |
37660 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from | |
37661 | conf/i386-pc.rmk. | |
37662 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
37663 | (normal_mod_SOURCES): Added normal/context.c. | |
37664 | (default_mod_SOURCES): New variable. | |
37665 | (default_mod_CFLAGS): Likewise. | |
37666 | (timeout_mod_SOURCES): Likewise. | |
37667 | (timeout_mod_CFLAGS): Likewise. | |
37668 | ||
37669 | * Makefile.in (all-local): Added $(MKFILES). | |
37670 | ||
4ed2e1dd | 37671 | 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr> |
37672 | ||
37673 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'. | |
37674 | (grub_emu_SOURCES): Likewise. | |
37675 | (pkgdata_MODULES): Add `sun.mod'. | |
37676 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
37677 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
37678 | `partmap/sun.c'. | |
37679 | (pkgdata_MODULES): Add `sun.mod'. | |
37680 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
37681 | * include/grub/partition.h (grub_sun_partition_map_init): New | |
37682 | prototype. | |
37683 | (grub_sun_partition_map_fini): Likewise. | |
37684 | * partmap/sun.c: New file. | |
37685 | * util/grub-emu.c (main): Initialize and de-initialize the sun | |
37686 | partitionmap support. | |
37687 | ||
4d4e372e | 37688 | 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org> |
37689 | ||
37690 | This implements an Emacs-like menu entry editor. | |
f19dbdb7 | 37691 | |
4d4e372e | 37692 | * normal/menu_entry.c: New file. |
f19dbdb7 | 37693 | |
4d4e372e | 37694 | * util/console.c (grub_ncurses_putchar): Translate some Unicode |
37695 | characters to ASCII. | |
37696 | (saved_char): New variable. | |
37697 | (grub_ncurses_checkkey): Rewritten completely. | |
37698 | (grub_ncurses_getkey): Likewise. | |
37699 | (grub_ncurses_init): Call raw instead of cbreak. | |
37700 | ||
37701 | * normal/menu.c (print_entry): Do not put a space. | |
37702 | (init_page): Renamed to ... | |
37703 | (grub_menu_init_page): ... this. All callers changed. | |
37704 | (edit_menu_entry): Removed. | |
37705 | (run_menu): Call grub_menu_entry_run instead of edit_menu_entry. | |
37706 | ||
37707 | * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor. | |
37708 | ||
37709 | * kern/misc.c (grub_vprintf): Call grub_refresh. | |
37710 | ||
37711 | * normal/menu.c (DISP_LEFT): Renamed to ... | |
37712 | * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this. | |
37713 | * normal/menu.c (DISP_UP): Renamed to ... | |
37714 | * include/grub/term.h (GRUB_TERM_DISP_UP): ... this. | |
37715 | * normal/menu.c (DISP_RIGHT): Renamed to ... | |
37716 | * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this. | |
37717 | * normal/menu.c (DISP_DOWN): Renamed to ... | |
37718 | * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this. | |
37719 | * normal/menu.c (DISP_HLINE): Renamed to ... | |
37720 | * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this. | |
37721 | * normal/menu.c (DISP_VLINE): Renamed to ... | |
37722 | * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this. | |
37723 | * normal/menu.c (DISP_UL): Renamed to ... | |
37724 | * include/grub/term.h (GRUB_TERM_DISP_UL): ... this. | |
37725 | * normal/menu.c (DISP_UR): Renamed to ... | |
37726 | * include/grub/term.h (GRUB_TERM_DISP_UR): ... this. | |
37727 | * normal/menu.c (DISP_LL): Renamed to ... | |
37728 | * include/grub/term.h (GRUB_TERM_DISP_LL): ... this. | |
37729 | * normal/menu.c (DISP_LR): Renamed to ... | |
37730 | * include/grub/term.h (GRUB_TERM_DISP_LR): ... this. | |
37731 | * normal/menu.c (TERM_WIDTH): Renamed to ... | |
37732 | * include/grub/term.h (GRUB_TERM_WIDTH): ... this. | |
37733 | * normal/menu.c (TERM_HEIGHT): Renamed to ... | |
37734 | * include/grub/term.h (GRUB_TERM_HEIGHT): ... this. | |
37735 | * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ... | |
37736 | * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this. | |
37737 | * normal/menu.c (TERM_MARGIN): Renamed to ... | |
37738 | * include/grub/term.h (GRUB_TERM_MARGIN): ... this. | |
37739 | * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ... | |
37740 | * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this. | |
37741 | * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ... | |
37742 | * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this. | |
37743 | * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ... | |
37744 | * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this. | |
37745 | * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ... | |
37746 | * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this. | |
37747 | * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ... | |
37748 | * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this. | |
37749 | * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ... | |
37750 | * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this. | |
37751 | * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ... | |
37752 | * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this. | |
37753 | * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ... | |
37754 | * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this. | |
37755 | * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ... | |
37756 | * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this. | |
37757 | * normal/menu.c (TERM_CURSOR_X): Renamed to ... | |
37758 | * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this. | |
37759 | All callers changed. | |
37760 | ||
37761 | * include/grub/normal.h: New prototype. | |
37762 | ||
37763 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
37764 | normal/menu_entry.c. | |
37765 | (normal_mod_SOURCES): Likewise. | |
37766 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
37767 | (normal_mod_SOURCES): Likewise. | |
37768 | ||
e6b92c8a | 37769 | 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> |
37770 | ||
37771 | * include/grub/normal.h (grub_halt_init): New prototype. | |
37772 | (grub_halt_fini): Likewise. | |
37773 | (grub_reboot_init): Likewise. | |
37774 | (grub_reboot_fini): Likewise. | |
37775 | ||
37776 | * util/grub-emu.c: Include signal.h. | |
37777 | (main_env): New global variable. | |
37778 | (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot | |
37779 | catch C-c. | |
37780 | (grub_machine_fini): New function. | |
37781 | (main): Call grub_halt_init and grub_reboot_init before | |
37782 | grub_main, and grub_reboot_fini and grub_halt_fini after it. | |
37783 | Call setjmp with MAIN_ENV to go back afterwards. | |
37784 | Call grub_machine_fini right before return. | |
37785 | ||
37786 | * include/grub/util/misc.h: Include setjmp.h. | |
37787 | (main_env): New prototype. | |
37788 | ||
37789 | * include/grub/kernel.h (grub_machine_fini): New prototype. | |
37790 | * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise. | |
37791 | * include/grub/i386/pc/console.h (grub_console_fini): Likewise. | |
37792 | ||
37793 | * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function. | |
37794 | * kern/i386/pc/init.c (grub_machine_fini): Likewise. | |
37795 | * term/i386/pc/console.c (grub_console_fini): Likewise. | |
f19dbdb7 | 37796 | |
e6b92c8a | 37797 | * util/i386/pc/misc.c: New file. |
f19dbdb7 | 37798 | |
e6b92c8a | 37799 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added |
37800 | util/i386/pc/misc.c, commands/i386/pc/halt.c and | |
37801 | commands/i386/pc/reboot.c. | |
37802 | ||
c642636f | 37803 | 2005-02-14 Guillem Jover <guillem@hadrons.org> |
37804 | ||
37805 | * include/grub/dl.h (grub_dl_check_header): New prototype. | |
37806 | (grub_arch_dl_check_header): Change return type to grub_err_t, | |
37807 | remove size parameter and export function. Update all callers. | |
37808 | * kern/dl.c (grub_dl_check_header): New function. | |
37809 | (grub_dl_load_core): Use `grub_dl_check_header' instead of | |
37810 | `grub_arch_dl_check_header'. Check ELF type. Check if sections | |
37811 | are inside the core. | |
37812 | * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch | |
37813 | independent ELF header checks. | |
37814 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
37815 | * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use | |
37816 | `grub_dl_check_header' instead of explicit checks. Check for the | |
37817 | ELF type. | |
37818 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use | |
37819 | `grub_dl_check_header' instead of explicit checks. Remove arch | |
37820 | specific ELF header checks. | |
37821 | ||
e6b92c8a | 37822 | * util/grub-emu.c (grub_arch_dl_check_header): Remove the |
37823 | argument SIZE. | |
37824 | ||
5eabe94b | 37825 | 2005-02-13 Hollis Blanchard <hollis@penguinppc.org> |
37826 | ||
37827 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod. | |
37828 | * include/grub/powerpc/libgcc.h (__mulsf3): New prototype. | |
37829 | ||
1b14a681 | 37830 | 2005-02-12 Hollis Blanchard <hollis@penguinppc.org> |
37831 | ||
37832 | * kern/partition.c (grub_partition_probe): Clear `grub_errno' and | |
f19dbdb7 | 37833 | return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 37834 | (part_map_iterate): Clear `grub_errno' and return 0 if |
f19dbdb7 | 37835 | `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 37836 | * partmap/amiga.c (amiga_partition_map_iterate): Return |
37837 | GRUB_ERR_BAD_PART_TABLE if no partition map magic is found. | |
37838 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
37839 | ||
aca108aa | 37840 | 2005-02-01 Guillem Jover <guillem@hadrons.org> |
37841 | ||
37842 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module | |
37843 | help info. | |
37844 | ||
c9f9c556 | 37845 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
37846 | ||
37847 | * include/grub/powerpc/ieee1275/loader.h (grub_load_linux): | |
37848 | Removed prototype. | |
37849 | (grub_rescue_cmd_linux): New prototype. | |
37850 | (grub_rescue_cmd_initrd): Likewise. | |
37851 | * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct | |
37852 | `bi_rec'. | |
37853 | (grub_linux_release_mem): Release the memory for the initrd. | |
37854 | (grub_load_linux): Renamed from this... | |
37855 | (grub_rescue_cmd_linux): ...To this. Changed all callers. | |
37856 | Changed `entry' not to be static. Loop over memory regions to | |
37857 | find another one when the default fails. | |
37858 | (grub_rescue_cmd_initrd): New function. | |
37859 | (grub_linux_init): Remove function. | |
37860 | (grub_linux_fini): Likewise. | |
37861 | (GRUB_MOD_INIT): Register `initrd'. | |
37862 | (GRUB_MOD_FINI): Unregister `initrd'. | |
37863 | * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init): | |
37864 | Function removed. | |
37865 | (grub_linux_normal_fini): Likewise. | |
37866 | (GRUB_MOD_INIT): Register `initrd'. | |
37867 | (GRUB_MOD_FINI): Unregister `initrd'. | |
37868 | ||
990cf3aa | 37869 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
37870 | ||
37871 | * commands/help.c: New file. | |
37872 | * normal/arg.c (show_help): Renamed to... | |
37873 | (grub_arg_show_help): ... this. | |
37874 | * commands/i386/pc/halt.c: New file. | |
37875 | * commands/i386/pc/reboot.c: Likewise. | |
37876 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'. | |
37877 | (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'. | |
37878 | (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES) | |
37879 | (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New | |
37880 | variables. | |
37881 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
37882 | `commands/help.c'. | |
37883 | (pkgdata_MODULES): Add `help.mod'. | |
37884 | (help_mod_SOURCES, help_mod_CFLAGS): New variables. | |
37885 | * grub/i386/pc/init.h (grub_reboot): New prototype. | |
37886 | (grub_halt): Likewise. | |
37887 | * include/grub/normal.h (grub_arg_show_help): New prototype. | |
37888 | (grub_help_init): Likewise. | |
37889 | (grub_help_fini): Likewise. | |
37890 | * util/grub-emu.c (main): Initialize and deinitialize the help | |
37891 | command. | |
37892 | ||
37893 | * normal/cmdline.c (grub_cmdline_get): Doc fix. | |
37894 | ||
37895 | * normal/command.c (grub_command_init): Fixed the description of | |
37896 | the `set' and `unset' commands. | |
37897 | ||
37898 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> | |
0f79cdc1 | 37899 | |
37900 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New | |
37901 | function. | |
37902 | * commands/ieee1275/halt.c: New file. | |
37903 | * commands/ieee1275/reboot.c: Likewise. | |
37904 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Use | |
37905 | `__attribute__ ((unused))'. Some GCS related fixed. | |
37906 | (grub_suspend_init) [GRUB_UTIL]: Function removed. | |
37907 | (grub_suspend_fini): Likewise. | |
37908 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod' | |
37909 | and `halt.mod'. | |
37910 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES) | |
37911 | (halt_mod_CFLAGS): New variables. | |
37912 | * include/grub/powerpc/ieee1275/ieee1275.h | |
37913 | (grub_ieee1275_interpret): New prototype. | |
37914 | ||
1ab09cc7 | 37915 | 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org> |
37916 | ||
37917 | * include/grub/misc.h (memmove): New prototype. | |
37918 | (memcpy): Likewise. | |
37919 | ||
8b8cbdb2 | 37920 | 2005-01-22 Hollis Blanchard <hollis@penguinppc.org> |
37921 | ||
37922 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize | |
37923 | `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'. | |
37924 | ||
e3741a27 | 37925 | 2005-01-22 Marco Gerards <metgerards@student.han.nl> |
37926 | ||
37927 | * kern/misc.c (grub_strndup): Function rewritten. | |
37928 | ||
776bd780 | 37929 | 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr> |
37930 | ||
37931 | * normal/menu.c (TERM_WIDTH): Macro redefined. | |
37932 | (TERM_TOP_BORDER_Y): Likewise. | |
37933 | (draw_border): Replaced while-loop by a for-loop. Make the number | |
37934 | of lines consistent with the number of lines displayed in | |
37935 | print_entries. Added a margin below the rectangle. | |
37936 | (print_entry): Make the entry fit in the rectangle. | |
37937 | (print_entries): Display the scroll arrows next to the right | |
37938 | border. | |
37939 | ||
78026bce | 37940 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
37941 | ||
37942 | * fs/minix.c (grub_minix_find_file): Reserve more space for | |
37943 | `fpath' so the \0 can be stored. Use `grub_strcpy' instead of | |
37944 | `grub_strncpy' to copy `path' into it. | |
37945 | ||
67bbaf0f | 37946 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
37947 | ||
37948 | Add the loopback device, a device via which files can be accessed | |
37949 | as devices. | |
f19dbdb7 | 37950 | |
67bbaf0f | 37951 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'. |
37952 | (pkgdata_MODULES): Add loopback.mod. | |
37953 | (loopback_mod_SOURCES): New variable. | |
37954 | (loopback_mod_CFLAGS): Likewise. | |
37955 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
37956 | `disk/loopback.c'. | |
37957 | (pkgdata_MODULES): Add loopback.mod. | |
37958 | (loopback_mod_SOURCES): New variable. | |
37959 | (loopback_mod_CFLAGS): Likewise. | |
37960 | * disk/loopback.c: new file. | |
37961 | * include/grub/normal.h (grub_loop_init): New prototype. | |
37962 | (grub_loop_fini): New prototype. | |
37963 | * util/grub-emu.c (main): Initialize and de-initialize loopback | |
37964 | support. | |
37965 | * include/grub/disk.h (grub_disk_dev_id): Add | |
37966 | `GRUB_DISK_DEVICE_LOOPBACK_ID'. | |
37967 | ||
6f1c18bd | 37968 | 2005-01-20 Hollis Blanchard <hollis@penguinppc.org> |
37969 | ||
37970 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New | |
37971 | function. | |
37972 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod. | |
37973 | (suspend_mod_SOURCES): New variable. | |
37974 | (suspend_mod_CFLAGS): Likewise. | |
37975 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter): | |
37976 | New prototype. | |
37977 | * commands/ieee1275/suspend.c: New file. | |
37978 | ||
b38551da | 37979 | 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
37980 | ||
37981 | * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__ | |
f19dbdb7 | 37982 | ((unused))' to `__attribute__ ((used))'. |
b38551da | 37983 | (GRUB_MOD_FINI): Likewise. |
37984 | * kern/dl.c (grub_dl_load_file): Fix null pointer dereference. | |
37985 | * genmk.rb (PModule): Assign space to common symbols when linking | |
37986 | modules. | |
37987 | ||
777aff39 | 37988 | 2005-01-20 Marco Gerards <metgerards@student.han.nl> |
37989 | ||
37990 | * include/grub/mm.h (grub_mm_init_region): Change the type of the | |
37991 | `unsigned' arguments to `grub_size_t'. | |
37992 | (grub_malloc): Likewise. | |
37993 | (grub_realloc): Likewise. | |
37994 | (grub_memalign): Likewise. | |
37995 | * kern/i386/dl.c (grub_arch_dl_check_header): Likewise. | |
37996 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
37997 | * util/misc.c (grub_malloc): Likewise. | |
37998 | (grub_realloc): Likewise. | |
37999 | * kern/mm.c (get_header_from_pointer): Change the casts to | |
38000 | `unsigned' into a cast to `grub_size_t'. | |
38001 | ||
38002 | * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always | |
38003 | point to `currnode' when `currnode' is changed. | |
38004 | ||
38005 | * util/grub-emu.c (main): Initialize `progname'. Reported by Nico | |
38006 | Schottelius <nico-linux@schottelius.org>. | |
38007 | ||
d0ff18e1 | 38008 | 2005-01-09 Hollis Blanchard <hollis@penguinppc.org> |
38009 | ||
38010 | * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>. | |
38011 | (note_path): Remove variable. | |
38012 | (GRUB_IEEE1275_NOTE_NAME): New macro. | |
38013 | (GRUB_IEEE1275_NOTE_TYPE): Likewise. | |
38014 | (grub_ieee1275_note_hdr): New structure. | |
38015 | (grub_ieee1275_note_desc): Likewise. | |
38016 | (grub_ieee1275_note): Likewise. | |
38017 | (load_note): Remove `dir' argument. All callers updated. Remove | |
38018 | `note_img' and `path'. Do not load a file from `note_path'. | |
38019 | Initialize a struct grub_ieee1275_note and write that to `out'. | |
38020 | Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE. | |
38021 | ||
4ca7004c | 38022 | 2005-01-05 Marco Gerards <metgerards@student.han.nl> |
38023 | ||
38024 | * util/misc.c (grub_util_read_image): Revert last change. It | |
38025 | called `grub_util_read_at', which seeks from the beginning of the | |
38026 | file. | |
38027 | ||
0b412211 | 38028 | 2005-01-04 Hollis Blanchard <hollis@penguinppc.org> |
38029 | ||
38030 | * TODO: Add note about endianness in grub-mkimage. | |
38031 | * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note | |
38032 | section. | |
38033 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage. | |
38034 | (grub_mkimage_SOURCES): New target. | |
38035 | * include/grub/kernel.h (grub_start_addr): Remove variable. | |
38036 | (grub_end_addr): Likewise. | |
38037 | (grub_total_module_size): Likewise. | |
38038 | (grub_kernel_image_size): Likewise. | |
38039 | (GRUB_MODULE_MAGIC): New constant. | |
38040 | (grub_module_info): New structure. | |
38041 | (grub_arch_modules_addr): New prototype. | |
38042 | (grub_get_end_addr): Remove prototype. | |
38043 | * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype. | |
38044 | * include/grub/powerpc/ieee1275/kernel.h: New file. | |
38045 | * include/grub/util/misc.h (grub_util_get_fp_size): New | |
38046 | prototype. | |
38047 | (grub_util_read_at): Likewise. | |
38048 | (grub_util_write_image_at): Likewise. | |
38049 | * kern/main.c (grub_get_end_addr): Remove function. | |
38050 | (grub_load_modules): Call grub_arch_modules_addr instead of using | |
38051 | grub_end_addr. Look for a grub_module_info struct in memory. Use | |
38052 | the grub_module_info fields instead of calling grub_get_end_addr | |
38053 | as loop conditions. Move grub_add_unused_region code here. | |
38054 | (grub_add_unused_region): Remove function. | |
38055 | * kern/i386/pc/init.c: Include grub/cache.h. | |
38056 | (grub_machine_init): Remove call to grub_get_end_addr. Remove | |
38057 | one call to add_mem_region. | |
38058 | (grub_arch_modules_addr): New function. | |
38059 | * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable. | |
38060 | (grub_total_module_size): Likewise. | |
38061 | Include grub/machine/kernel.h. | |
38062 | (grub_arch_modules_addr): New function. | |
38063 | * util/grub-emu.c (grub_end_addr): Remove variable. | |
38064 | (grub_total_module_size): Likewise. | |
38065 | (grub_arch_modules_addr): New function. | |
38066 | * util/misc.c: Include unistd.h. | |
38067 | (grub_util_get_fp_size): New function. | |
38068 | (grub_util_read_at): Likewise. | |
38069 | (grub_util_write_image_at): Likewise. | |
38070 | (grub_util_read_image): Call grub_util_read_at. | |
38071 | (grub_util_write_image): Call grub_util_write_image_at. | |
38072 | * util/i386/pc/grub-mkimage.c (generate_image): Allocate | |
38073 | additional memory in kernel_img for a struct grub_module_info. | |
38074 | Fill in that grub_module_info. | |
38075 | * util/powerpc/ieee1275/grub-mkimage.c: New file. | |
38076 | ||
458786f8 | 38077 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
38078 | ||
38079 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds): | |
38080 | New function. | |
38081 | * include/grub/powerpc/ieee1275/ieee1275.h | |
38082 | (grub_ieee1275_milliseconds): New prototype. | |
38083 | * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND): | |
38084 | Change to 1000. | |
38085 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call | |
38086 | grub_ieee1275_milliseconds. | |
38087 | ||
ac507d1b | 38088 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
38089 | ||
38090 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New | |
38091 | variable. | |
38092 | (find_options): New function. | |
38093 | (cmain): Call find_options. | |
38094 | * include/grub/powerpc/ieee1275/ieee1275.h | |
38095 | (grub_ieee1275_realmode): New extern variable. | |
38096 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call | |
38097 | grub_map if grub_ieee1275_realmode is false. | |
38098 | ||
6b8fd1c4 | 38099 | 2004-12-29 Marco Gerards <metgerards@student.han.nl> |
38100 | ||
38101 | * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty | |
38102 | lines are inserted and make it work like readline. Reported by | |
38103 | Vincent Pelletier <subdino2004@yahoo.fr>. | |
38104 | ||
8514a1e0 | 38105 | 2004-12-28 Marco Gerards <metgerards@student.han.nl> |
38106 | ||
38107 | * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack. | |
38108 | ||
38109 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove | |
38110 | `kern/powerpc/cache.S'. | |
38111 | ||
924b6140 | 38112 | 2004-12-27 Marco Gerards <metgerards@student.han.nl> |
38113 | ||
38114 | * genmk.rb: Handle the `Program' class in the main loop. Written | |
38115 | by Johan Rydberg <jrydberg@gnu.org>. | |
38116 | (Program): New class. | |
38117 | (programs): New variable. | |
38118 | * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h> | |
38119 | instead of "grub/machine/ieee1275.h". Include <grub/kernel.h> | |
38120 | instead of "grub/kernel.h". Include <grub/machine/init.h>. | |
38121 | (help_arch): Function removed. | |
38122 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add | |
38123 | `powerpc/libgcc.h' and `loader.h'. | |
38124 | (pkgdata_PROGRAMS): New variable. | |
38125 | (sbin_UTILITIES): Variable removed. | |
38126 | (grub_emu_SOURCES): Added kern/powerpc/cache.S. | |
38127 | (grubof_SOURCES): Variable re-defined so it only includes the | |
38128 | core functionality. | |
38129 | (grubof_CFLAGS): Remove `-DGRUBOF'. | |
38130 | (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS, | |
38131 | (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES) | |
38132 | (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS) | |
38133 | (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES) | |
38134 | (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS) | |
38135 | (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES) | |
38136 | (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS) | |
38137 | (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS) | |
38138 | (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES) | |
38139 | (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS) | |
38140 | (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
38141 | (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES) | |
38142 | (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS) | |
38143 | (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES) | |
38144 | (pc_mod_CFLAGS): New variables. | |
38145 | * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>. | |
38146 | (grub_ofdisk_iterate): Add a prototype for `dev_iterate'. | |
38147 | * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype. | |
38148 | * include/grub/loader.h (grub_os_area_addr, grub_os_area_size): | |
38149 | Moved from here... | |
38150 | * include/grub/i386/pc/init.h (grub_os_area_addr) | |
38151 | (rub_os_area_size): ... to here. | |
38152 | * include/grub/powerpc/ieee1275/ieee1275.h | |
38153 | (grub_ieee1275_entry_fn): Export symbol. | |
38154 | * include/grub/powerpc/ieee1275/init.h: New file. | |
38155 | * include/grub/powerpc/libgcc.h: Likewise. | |
38156 | * include/grub/cache.h: Likewise. | |
38157 | * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard | |
38158 | <hollis@penguinppc.org>. | |
38159 | * kern/dl.c: Include <grub/cache.h>. | |
38160 | (grub_dl_flush_cache): New function. | |
38161 | (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache | |
38162 | for this module. | |
38163 | * kern/powerpc/ieee1275/init.c (grub_ofdisk_init) | |
38164 | (grub_console_init): Removed prototypes. | |
38165 | (grub_machine_init): Don't initialize the modules anymore. | |
38166 | * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function | |
38167 | static. | |
38168 | * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN): | |
38169 | Macro undef removed. | |
38170 | (GRUB_HOST_WORDS_BIGENDIAN): New macro. | |
38171 | * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add | |
38172 | relocation `R_PPC_REL32'. Return an error when the relocation is | |
38173 | unknown. | |
38174 | * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'. | |
38175 | * kern/i386/pc/init.c (grub_arch_sync_caches): New function. | |
38176 | * util/misc.c (grub_arch_sync_caches): Likewise. | |
38177 | ||
e4b47e0c | 38178 | 2004-12-19 Marco Gerards <metgerards@student.han.nl> |
38179 | ||
38180 | * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove | |
38181 | `symlist.c', add `grubof_symlist.c'. | |
38182 | (symlist.c): Variable removed. | |
38183 | (grubof_HEADERS): Variable added. | |
38184 | (grubof_symlist.c): New target. | |
38185 | (kernel_syms.lst): Use `grubof_HEADERS' instead of | |
38186 | `kernel_img_HEADERS'. | |
38187 | (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'. | |
38188 | * kern/powerpc/dl.c: New file. | |
38189 | * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header): | |
38190 | Function removed. | |
38191 | (grub_arch_dl_relocate_symbols): Likewise. | |
38192 | (grub_register_exported_symbols): Likewise. | |
38193 | ||
4ceb3636 | 38194 | 2004-12-13 Marco Gerards <metgerards@student.han.nl> |
38195 | ||
38196 | * fs/ext2.c (grub_ext2_open): Don't use data after freeing it. | |
38197 | (grub_ext2_dir): Likewise. Don't return in case of an error, jump | |
38198 | to fail instead. Reported by Vincent Pelletier | |
38199 | <subdino2004@yahoo.fr>. | |
38200 | ||
38201 | * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when | |
38202 | it is not allocated. Reported by Vincent Pelletier | |
38203 | <subdino2004@yahoo.fr>. | |
38204 | ||
38205 | * normal/cmdline.c (grub_tab_complete): Add a blank line to the | |
38206 | output so the output looks better. | |
f19dbdb7 | 38207 | |
3f1578fe | 38208 | 2004-12-04 Marco Gerards <metgerards@student.han.nl> |
38209 | ||
38210 | Modulize the partition map support and add support for the amiga | |
38211 | partition map. | |
f19dbdb7 | 38212 | |
3f1578fe | 38213 | * commands/ls.c: Include <grub/partition.h> instead of |
38214 | <grub/machine/partition.h>. | |
38215 | * kern/disk.c: Likewise. | |
38216 | * kern/rescue.c: Likewise. | |
38217 | * loader/i386/pc/chainloader.c: Likewise. | |
38218 | * normal/cmdline.c: Likewise. | |
38219 | * kern/powerpc/ieee1275/init.c: Likewise. | |
38220 | (grub_machine_init): Call `grub_pc_partition_map_init', | |
38221 | `grub_amiga_partition_map_init' and | |
38222 | `grub_apple_partition_map_init'. | |
38223 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove | |
38224 | `disk/i386/pc/partition.c'. Add `kern/partition.c'. | |
38225 | (kernel_img_HEADERS): Remove `machine/partition.h'. Add | |
38226 | `partition.h' and `pc_partition.h'. | |
38227 | (grub_setup_SOURCES): Remove | |
38228 | `disk/i386/pc/partition.c'. Add `kern/partition.c', | |
38229 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
38230 | (grub_emu_SOURCES): Likewise. | |
38231 | (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'. | |
38232 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES) | |
38233 | (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables. | |
38234 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
38235 | `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c', | |
38236 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
38237 | (grubof_SOURCES): Likewise. | |
38238 | * disk/i386/pc/partition.c: File removed. | |
38239 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
38240 | * include/grub/powerpc/ieee1275/partition.h: Likewise. | |
38241 | * include/grub/i386/pc/partition.h: Likewise. | |
38242 | * kern/partition.c: New file. | |
38243 | * partmap/amiga.c: Likewise. | |
38244 | * partmap/apple.c: Likewise. | |
38245 | * partmap/pc.c: Likewise. | |
38246 | * include/grub/partition.h: Likewise.. | |
38247 | * include/grub/pc_partition.h: Likewise. | |
38248 | * util/grub-emu.c: Include <grub/partition.h> instead of | |
38249 | <grub/machine/partition.h>. | |
38250 | (main): Call `grub_pc_partition_map_init', | |
38251 | `grub_amiga_partition_map_init' and | |
38252 | `grub_apple_partition_map_init' and deinitialize afterwards. | |
38253 | * util/i386/pc/biosdisk.c: Include `#include | |
38254 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
38255 | `<grub/machine/partition.h>'. | |
38256 | * util/i386/pc/grub-setup.c: Likewise. | |
38257 | * util/i386/pc/biosdisk.c: Likewise. | |
38258 | (grub_util_biosdisk_get_grub_dev): Only access the PC specific | |
38259 | partition information in case of a PC partition. | |
38260 | * util/i386/pc/grub-setup.c: Include `#include | |
38261 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
38262 | `<grub/machine/partition.h>'. | |
38263 | (setup): Only access the PC specific partition information in case | |
38264 | of a PC partition. | |
38265 | ||
0ef4ced9 | 38266 | 2004-11-17 Hollis Blanchard <hollis@penguinppc.org> |
f19dbdb7 | 38267 | |
0ef4ced9 | 38268 | * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function. |
38269 | (grub_longjmp): Likewise. | |
38270 | * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to | |
38271 | 20. | |
38272 | * normal/powerpc/setjmp.S: New file. | |
38273 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
38274 | `normal/powerpc/setjmp.S'. | |
38275 | (grubof_CFLAGS): Add `-DGRUBOF'. | |
38276 | * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to | |
38277 | [GRUB_UTIL && !GRUBOF]. | |
f19dbdb7 | 38278 | |
19950e29 | 38279 | 2004-11-16 Marco Gerards <metgerards@student.han.nl> |
38280 | ||
38281 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any | |
38282 | property named `name'. Correctly handle the error returned by | |
38283 | `grub_ieee1275_finddevice' if a device can not be opened. | |
38284 | ||
a2fea427 | 38285 | 2004-11-02 Hollis Blanchard <hollis@penguinppc.org> |
38286 | ||
38287 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test | |
38288 | `actual' for negativity. | |
38289 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
38290 | kern/fshelp.c. | |
38291 | ||
41ea0ea3 | 38292 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
38293 | ||
38294 | * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350. | |
38295 | (PAGE_OFFSET): New macro. | |
38296 | (CRTC_ADDR_PORT): Likewise. | |
38297 | (CRTC_DATA_PORT): Likewise. | |
38298 | (START_ADDR_HIGH_REGISTER): Likewise. | |
38299 | (START_ADDR_LOW_REGISTER): Likewise. | |
38300 | (GRAPHICS_ADDR_PORT): Likewise. | |
38301 | (GRAPHICS_DATA_PORT): Likewise. | |
38302 | (READ_MAP_REGISTER): Likewise. | |
38303 | (INPUT_STATUS1_REGISTER): Likewise. | |
38304 | (INPUT_STATUS1_VERTR_BIT): Likewise. | |
38305 | (page): New variable. | |
38306 | (wait_vretrace): New function. | |
38307 | (set_read_map): Likewise. | |
38308 | (set_start_address): Likewise. | |
38309 | (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to | |
38310 | the right page. | |
38311 | (check_vga_mem): Take the page into account. | |
38312 | (write_char): Likewise. | |
38313 | (write_cursor): Likewise. | |
38314 | (scroll_up): Likewise. Copy the page to the page that is not | |
38315 | shown and switch between both pages. | |
38316 | (grub_vga_putchar): Fix off by one error. | |
38317 | (grub_vga_cls): Wait for the vertical retrace. Take the page into | |
38318 | account. | |
38319 | ||
ad0bd20b | 38320 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
38321 | ||
38322 | Add support for iso9660 (including rockridge). | |
f19dbdb7 | 38323 | |
ad0bd20b | 38324 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c. |
38325 | (iso9660_mod_SOURCES): New variable. | |
38326 | (iso9660_mod_CFLAGS): Likewise. | |
38327 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c. | |
38328 | * include/grub/fs.h (grub_iso9660_init): New prototype. | |
38329 | * util/grub-emu.c (main): Call `grub_iso9660_init'. | |
38330 | * fs/iso9660.c: New file. | |
38331 | ||
38332 | * include/grub/misc.h (grub_strncat): New prototype. | |
38333 | * kern/misc.c (grub_strncat): New function. | |
f19dbdb7 | 38334 | |
ad0bd20b | 38335 | * fs/hfs.c (grub_hfs_mount): Translate the error |
38336 | `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'. | |
38337 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
38338 | * fs/ufs.c (grub_ufs_mount): Likewise. | |
38339 | ||
a5477a59 | 38340 | 2004-10-28 Hollis Blanchard <hollis@penguinppc.org> |
38341 | ||
38342 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements | |
38343 | which initialized BAT registers. | |
38344 | * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN, | |
38345 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
38346 | Move from here... | |
38347 | * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN, | |
38348 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
38349 | ... to here. | |
38350 | * kern/powerpc/ieee1275/openfw.c (grub_map): New function. | |
38351 | (grub_mapclaim): Likewise. | |
38352 | * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use | |
38353 | grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by | |
38354 | hand. | |
38355 | ||
9304c1f8 | 38356 | 2004-10-19 Hollis Blanchard <hollis@penguinppc.org> |
38357 | ||
38358 | * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin. | |
38359 | (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add | |
38360 | -ffreestanding and -msoft-float. | |
38361 | ||
86f4ae25 | 38362 | 2004-10-15 Hollis Blanchard <hollis@penguinppc.org> |
38363 | ||
38364 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not | |
38365 | append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is | |
38366 | set in grub_ieee1275_flags. | |
38367 | ||
38912228 | 38368 | 2004-10-14 Hollis Blanchard <hollis@penguinppc.org> |
38369 | ||
38370 | * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function | |
38371 | prototype. | |
38372 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Call | |
38373 | grub_console_init first. | |
38374 | Change the memory range used for grub_ieee1275_claim and | |
38375 | grub_mm_init_region. | |
38376 | Print an error message if the claim fails. | |
38377 | Include <grub/misc.h>. | |
38378 | ||
d1923dc8 | 38379 | 2004-10-13 Hollis Blanchard <hollis@penguinppc.org> |
38380 | ||
38381 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate): | |
38382 | Call grub_children_iterate for device nodes of type `scsi', | |
38383 | `ide', or `ata'. | |
38384 | (grub_ofdisk_open): Remove manual device alias resolution. | |
38385 | Fix memory leak when device cannot be opened. | |
f19dbdb7 | 38386 | * include/grub/powerpc/ieee1275/ieee1275.h |
d1923dc8 | 38387 | (grub_children_iterate): New prototype. |
38388 | * kern/powerpc/ieee1275/openfw.c (grub_children_iterate): | |
38389 | New function. | |
38390 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
38391 | Return -1 if args.size was -1. | |
38392 | ||
4512e4f3 | 38393 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
38394 | ||
38395 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global. | |
38396 | (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old | |
38397 | World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim | |
38398 | Open Firmware's memory for it; claim memory from _start to _end. | |
38399 | * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern. | |
38400 | (_end): New extern. | |
38401 | (_start): Zero BSS from __bss_start to _end. | |
38402 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
38403 | New extern. | |
38404 | (GRUB_IEEE1275_NO_PARTITION_0): New #define. | |
38405 | ||
4d61feb0 | 38406 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
38407 | ||
ad0bd20b | 38408 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return |
38409 | -1 if args.base was -1. | |
4d61feb0 | 38410 | |
026fa2f9 | 38411 | 2004-10-08 Hollis Blanchard <hollis@penguinppc.org> |
38412 | ||
38413 | * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI | |
38414 | escape sequence instead of a literal ^L. Also call | |
38415 | grub_ofconsole_gotoxy. | |
38416 | ||
9f2220ef | 38417 | 2004-10-03 Hollis Blanchard <hollis@penguinppc.org> |
38418 | ||
38419 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change | |
38420 | void * arguments to grub_addr_t. All callers updated. Also make | |
38421 | the `result' argument optional. | |
38422 | (grub_ieee1275_release): change void * arguments to grub_addr_t. | |
38423 | All callers updated. | |
38424 | ||
8a572cd7 | 38425 | 2004-09-22 Hollis Blanchard <hollis@penguinppc.org> |
38426 | ||
38427 | * commands/ls.c (grub_ls_list_files): Use the string following the | |
38428 | initial ')', if present, as the filesystem path. | |
38429 | * kern/rescue.c (grub_rescue_cmd_ls): Likewise. | |
38430 | ||
38431 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first. | |
38432 | ||
18aa81f2 | 38433 | 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org> |
38434 | ||
38435 | Make the source code of the menu interface more readable. | |
f19dbdb7 | 38436 | |
18aa81f2 | 38437 | * normal/menu.c: Include grub/mm.h. |
38438 | (TERM_WIDTH): New macro. | |
38439 | (TERM_HEIGHT): Likewise. | |
38440 | (TERM_INFO_HEIGHT): Likewise. | |
38441 | (TERM_MARGIN): Likewise. | |
38442 | (TERM_SCROLL_WIDTH): Likewise. | |
38443 | (TERM_TOP_BORDER_Y): Likewise. | |
38444 | (TERM_LEFT_BORDER_X): Likewise. | |
38445 | (TERM_BORDER_WIDTH): Likewise. | |
38446 | (TERM_MESSAGE_HEIGHT): Likewise. | |
38447 | (TERM_BORDER_HEIGHT): Likewise. | |
38448 | (TERM_NUM_ENTRIES): Likewise. | |
38449 | (TERM_FIRST_ENTRY_Y): Likewise. | |
38450 | (TERM_ENTRY_WIDTH): Likewise. | |
38451 | (TERM_CURSOR_X): Likewise. | |
38452 | (draw_border): Use macros instead of magic numbers. | |
38453 | (print_entry): Likewise. | |
38454 | (print_entries): Likewise. | |
38455 | (run_menu): Likewise. Also, handle the key 'e'. | |
38456 | (run_menu_entry): Ignore empty command lines. | |
38457 | (print_message): Added a new argument EDIT. If EDIT is true, | |
38458 | print a different message. | |
38459 | (init_page): Likewise. | |
38460 | (edit_menu_entry): New function. Not implemented yet. | |
38461 | ||
b47efe30 | 38462 | 2004-09-17 Marco Gerards <metgerards@student.han.nl> |
38463 | ||
38464 | Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels | |
38465 | can be loaded from normal mode. | |
f19dbdb7 | 38466 | |
b47efe30 | 38467 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and |
38468 | `multiboot.mod'. | |
38469 | (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES) | |
38470 | (multiboot_mod_CFLAGS): New variables. | |
38471 | * loader/i386/pc/linux_normal.c: New file. | |
f19dbdb7 | 38472 | * loader/i386/pc/multiboot_normal.c: Likewise. |
38473 | ||
b47efe30 | 38474 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the |
38475 | attribute `unused'. | |
f19dbdb7 | 38476 | |
b47efe30 | 38477 | * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use |
38478 | `fdiro' to read the mode information from instead of `diro'. | |
38479 | ||
38480 | * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after | |
38481 | looking up a symlink. | |
38482 | ||
38483 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New | |
38484 | macro. | |
38485 | * normal/command.c (grub_command_execute): Don't parse the | |
38486 | arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the | |
38487 | flags of the command. | |
38488 | ||
38489 | * normal/menu.c (grub_menu_run): Fix typo. | |
38490 | ||
da75ac71 | 38491 | 2004-09-14 Hollis Blanchard <hollis@penguinppc.org> |
38492 | ||
38493 | * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware. | |
38494 | ||
38495 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use | |
38496 | `y + 1' instead of `y - 1'. | |
38497 | ||
38498 | * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'. | |
f19dbdb7 | 38499 | |
062b24c2 | 38500 | 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org> |
38501 | ||
38502 | From Hollis Blanchard <hollis@penguinppc.org>: | |
38503 | * kern/misc.c (memmove): New alias for grub_memmove. | |
38504 | (memcmp): New alias for grub_memcmp. | |
38505 | (memset): New alias for grub_memset. | |
f19dbdb7 | 38506 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): |
062b24c2 | 38507 | Change "int handle" to "grub_ieee1275_phandle_t handle". |
f19dbdb7 | 38508 | * include/grub/powerpc/ieee1275/ieee1275.h |
062b24c2 | 38509 | (grub_ieee1275_get_property): Likewise. |
f19dbdb7 | 38510 | |
8ddad845 | 38511 | 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz> |
38512 | ||
38513 | Added normal mode command `chainloader' as module chain.mod, which | |
38514 | depends on normal.mod and _chain.mod. | |
f19dbdb7 | 38515 | |
8ddad845 | 38516 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'. |
38517 | (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added. | |
38518 | * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader): | |
38519 | Deleted prototype. | |
38520 | * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All | |
38521 | but arguments parsing moved to ... | |
38522 | (grub_chainloader_cmd): ... here. New function. | |
38523 | * include/grub/i386/pc/chainloader.h: New file. | |
38524 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
38525 | ||
2c1f4ce3 | 38526 | 2004-09-11 Marco Gerards <metgerards@student.han.nl> |
38527 | ||
38528 | * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c. | |
38529 | (grub_mkimage_LDFLAGS): Likewise. | |
38530 | (grub_emu_SOURCES): Likewise. | |
38531 | (kernel_img_HEADERS): Added fshelp.h. | |
38532 | * fs/ext2.c: Include <grub/fshelp.h>. | |
38533 | (FILETYPE_REG): New macro. | |
38534 | (FILETYPE_INO_REG): Likewise. | |
38535 | (grub_ext_sblock): Renamed to `grub_ext2_sblock'. | |
38536 | Changed all users. | |
38537 | (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed | |
38538 | all users. | |
38539 | (grub_fshelp_node): New struct. | |
38540 | (grub_ext2_data): Added member `diropen'. Changed member `inode' | |
38541 | to a pointer. | |
38542 | (grub_ext2_get_file_block): Removed function. | |
38543 | (grub_ext2_read_block): New function. | |
38544 | (grub_ext2_read_file): Replaced parameter `data' by `node'. | |
38545 | This function was written. | |
38546 | (grub_ext2_mount): Read the root inode. Create a diropen struct. | |
38547 | (grub_ext2_find_file): Removed function. | |
38548 | (grub_ext2_read_symlink): New function. | |
38549 | (grub_ext2_iterate_dir): Likewise. | |
38550 | (grub_ext2_open): Rewritten. | |
38551 | (grub_ext2_dir): Rewritten. | |
38552 | * include/grub/fshelp.h: New file. | |
38553 | * fs/fshelp.c: Likewise. | |
38554 | ||
3c52136a | 38555 | 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org> |
38556 | ||
38557 | * normal/menu.c: Include grub/loader.h and grub/machine/time.h. | |
38558 | (print_message): Add a missing newline. | |
38559 | (run_menu): Added timeout support. | |
38560 | (run_menu_entry): New local function. | |
38561 | (grub_menu_run): Added support for booting. | |
38562 | ||
38563 | * kern/loader.c (grub_loader_is_loaded): New function. | |
38564 | ||
38565 | * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h. | |
38566 | (grub_get_rtc): Exported. | |
38567 | ||
38568 | * include/grub/i386/pc/time.h: Include grub/symbol.h. | |
38569 | (grub_get_rtc): Exported. | |
38570 | ||
38571 | * include/grub/normal.h (struct grub_command_list): Remove | |
38572 | constant from the member `command'. | |
38573 | ||
38574 | * include/grub/loader.h (grub_loader_is_loaded): Declared. | |
38575 | ||
38576 | * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant. | |
38577 | ||
38578 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h. | |
38579 | ||
aa033560 | 38580 | 2004-08-28 Marco Gerards <metgerards@student.han.nl> |
38581 | ||
38582 | Add support for the JFS filesystem. | |
38583 | ||
38584 | * fs/jfs.c: New file. | |
38585 | * include/grub/fs.h (grub_jfs_init): New prototype. | |
38586 | (grub_jfs_fini): New prototype. | |
38587 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c. | |
38588 | (grub_emu_SOURCES): Likewise. | |
38589 | (pkgdata_MODULES): Add jfs.mod. | |
38590 | (jfs_mod_SOURCES): New variable. | |
38591 | (jfs_mod_CFLAGS): Likewise. | |
38592 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c. | |
38593 | (grubof_SOURCES): Likewise. | |
38594 | * util/grub-emu.c (main): Initialize and deinitialize JFS support. | |
38595 | ||
38596 | * fs/fat.c (grub_fat_find_dir): Convert the filename little | |
38597 | endian to the host endian. | |
38598 | (grub_fat_utf16_to_utf8): Move function from there... | |
38599 | * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert | |
fe987087 | 38600 | the endianness of the source string anymore. |
aa033560 | 38601 | * include/grub/misc.h (grub_utf16_to_utf8): New prototype. |
38602 | ||
94bc45af | 38603 | 2004-08-24 Marco Gerards <metgerards@student.han.nl> |
38604 | ||
38605 | * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional. | |
38606 | (grub_boot_fini) [GRUB_UTIL]: Likewise. | |
38607 | (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise. | |
38608 | (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise. | |
f19dbdb7 | 38609 | |
94bc45af | 38610 | * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'. |
38611 | (grub_hfs_iterate_dir): Make the function static. Add prototypes | |
38612 | for `node_found' and `it_dir'. | |
38613 | (grub_hfs_dir): Add prototype for `dir_hook'. | |
38614 | ||
38615 | * fs/minix.c (grub_minix_get_file_block): Add prototype for | |
38616 | `grub_get_indir'. Rename `indir' in two blocks to `indir16' | |
38617 | and `indir32' to silence a gcc warning. | |
38618 | ||
38619 | * include/grub/fs.h (grub_hfs_init): New prototype. | |
38620 | (grub_hfs_fini): Likewise. | |
f19dbdb7 | 38621 | |
38622 | ||
97543f08 | 38623 | 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
38624 | ||
38625 | Each disk device has its own id now. This is useful to make use | |
38626 | of multiple disk devices. | |
f19dbdb7 | 38627 | |
97543f08 | 38628 | * include/grub/disk.h (grub_disk_dev_id): New enum. |
38629 | (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant. | |
38630 | (GRUB_DISK_DEVICE_OFDISK_ID): Likewise. | |
38631 | ||
38632 | * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify | |
38633 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
38634 | ||
38635 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify | |
38636 | GRUB_DISK_DEVICE_OFDISK_ID as an id. | |
38637 | ||
38638 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify | |
38639 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
38640 | ||
38641 | * include/grub/disk.h (struct grub_disk_dev): Added a new member | |
38642 | "id" which is used by the cache manager. | |
38643 | ||
38644 | * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead | |
38645 | of just "GRUB". | |
38646 | ||
64372eb4 | 38647 | 2004-08-18 Marco Gerards <metgerards@student.han.nl> |
38648 | ||
38649 | * fs/hfs.c: New file. | |
38650 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c. | |
38651 | (grub_emu_SOURCES): Likewise. | |
38652 | (pkgdata_MODULES): Add hfs.mod. | |
38653 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c. | |
38654 | (grubof_SOURCES): Likewise. | |
38655 | * util/grub-emu.c (main): Initialize and deinitialize HFS support. | |
38656 | ||
38657 | * include/grub/misc.h (grub_strncasecmp): Add prototype. | |
38658 | * kern/misc.c (grub_strncasecmp): Add function. | |
38659 | ||
cc61b58f | 38660 | 2004-08-14 Marco Gerards <metgerards@student.han.nl> |
38661 | ||
38662 | * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro | |
38663 | with parentheses. | |
38664 | ||
38665 | * fs/ext2.c (FILETYPE_UNKNOWN): New macro. | |
38666 | (grub_ext2_dir): In case the directory entry type is unknown, read | |
38667 | it from the inode. | |
38668 | ||
0ef123f6 | 38669 | 2004-08-02 Peter Bruin <pjbruin@dds.nl> |
38670 | ||
38671 | * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass | |
38672 | grub_load_linux instead of grub_rescue_cmd_linux as second | |
38673 | argument of grub_rescue_register_command. | |
38674 | ||
38675 | * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk. | |
38676 | ||
a447c5df | 38677 | 2004-07-27 Marco Gerards <metgerards@student.han.nl> |
38678 | ||
38679 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New | |
38680 | function. | |
38681 | * commands/boot.c: Remove the check for `GRUB_UTIL'. | |
38682 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
38683 | `loader/powerpc/ieee1275/linux.c', | |
38684 | `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'. | |
38685 | * include/grub/powerpc/ieee1275/ieee1275.h | |
38686 | (grub_ieee1275_release): New prototype. | |
38687 | * include/grub/powerpc/ieee1275/loader.h: Rewritten. | |
38688 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize | |
38689 | normal, boot, linux and linux_normal. | |
38690 | * loader/powerpc/ieee1275/linux.c: New file. | |
38691 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
38692 | ||
5a9e3546 | 38693 | 2004-07-12 Marco Gerards <metgerards@student.han.nl> |
38694 | ||
38695 | * normal/arg.c (grub_arg_parse): Correct error handling after | |
38696 | reallocating the argumentlist (check if `argl' is not null instead | |
38697 | of checking if `args' is not null). | |
38698 | * kern/mm.c (grub_realloc): Return the same pointer when using the | |
38699 | same region, instead of returning the header address. | |
38700 | ||
e15199cb | 38701 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
38702 | ||
38703 | * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip | |
38704 | one block instead of two when looking for the initial partition. | |
38705 | (grub_partition_probe): Initialize the local variable `p' with 0. | |
38706 | Use base 10 for the grub_strtoul call. | |
38707 | * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the | |
38708 | need for one local variable. | |
38709 | (grub_strtoul): Don't add the new value to `num', instead of that | |
38710 | just assign it. | |
38711 | ||
020616c2 | 38712 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
38713 | ||
38714 | * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img. | |
38715 | (pxeboot_img_SOURCES): New variable. | |
38716 | (pxeboot_img_ASFLAGS): Likewise. | |
38717 | (pxeboot_img_LDFLAGS): Likewise. | |
38718 | * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from | |
38719 | GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy | |
38720 | <lode_leroy@hotmail.com>. | |
38721 | ||
6c51eb64 | 38722 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
38723 | ||
38724 | * kern/rescue.c (grub_enter_rescue_mode): Don't continue when | |
38725 | there was no input. | |
38726 | ||
cfb12aff | 38727 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
38728 | ||
38729 | * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed | |
38730 | the history buffer logic. | |
38731 | ||
6eabba74 | 38732 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
38733 | ||
38734 | * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY) | |
38735 | (FILETYPE_INO_SYMLINK): New macros. | |
38736 | (grub_ext2_find_file): Check if the node is a directory using the | |
38737 | inode stat information instead of using the filetype in the | |
38738 | dirent. Exclude the first character of an absolute symlink. | |
38739 | (grub_ext2_dir): Mask out the filetype part of the mode member of | |
38740 | the inode. | |
38741 | ||
66e19ef8 | 38742 | 2004-05-24 Marco Gerards <metgerards@student.han.nl> |
38743 | ||
38744 | Add support for UFS version 1 and 2. Add support for the minix | |
38745 | filesystem version 1 and 2, both the variants with 14 and 30 long | |
38746 | filenames. | |
f19dbdb7 | 38747 | |
66e19ef8 | 38748 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and |
38749 | fs/minix.c. | |
38750 | (grub_emu_SOURCES): Likewise. | |
38751 | (pkgdata_MODULES): Add ufs.mod and minix.mod. | |
38752 | (ufs_mod_SOURCES): New variable. | |
38753 | (ufs_mod_CFLAGS): Likewise. | |
38754 | (minix_mod_SOURCES): Likewise. | |
38755 | (minix_mod_CFLAGS): Likewise. | |
38756 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and | |
38757 | fs/minix.c. | |
38758 | (grubof_SOURCES): Likewise. | |
38759 | * fs/ufs.c: New file. | |
38760 | * fs/minix.c: New file. | |
38761 | * include/grub/fs.h (grub_ufs_init): New prototype. | |
38762 | (grub_ufs_fini): Likewise. | |
38763 | (grub_minix_init): Likewise. | |
38764 | (grub_minix_fini): Likewise. | |
38765 | * util/grub-emu.c (main): Initialize and deinitialize UFS and | |
38766 | minix fs. | |
38767 | ||
cc2e748a | 38768 | 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx> |
38769 | ||
38770 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c, | |
38771 | commands/ls.c, commands/terminal.c, commands/boot.c, | |
38772 | commands/cmp.c and commands/cat.c. | |
38773 | (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc. | |
38774 | ||
38775 | * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of | |
38776 | "env.h" | |
38777 | ||
4b13b216 | 38778 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
38779 | ||
38780 | All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_ | |
38781 | and grub_, respectively. Because the conversion is trivial and | |
38782 | mechanical, I omit the details here. Please refer to the CVS | |
38783 | if you need more information. | |
38784 | ||
6a142551 | 38785 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
38786 | ||
38787 | * include/pupa: Renamed to ... | |
38788 | * include/grub: ... this. | |
38789 | * util/i386/pc/pupa-mkimage.c: Renamed to ... | |
38790 | * util/i386/pc/grub-mkimage.c: ... this. | |
38791 | * util/i386/pc/pupa-setup.c: Renamed to ... | |
38792 | * util/i386/pc/grub-setup.c: ... this. | |
38793 | * util/pupa-emu.c: Renamed to ... | |
38794 | * util/grub-emu.c: ... this. | |
38795 | ||
e56cdf21 | 38796 | 2004-03-29 Marco Gerards <metgerards@student.han.nl> |
38797 | ||
38798 | Add support for the newworld apple macintosh (PPC). This has been | |
38799 | tested on the powerbook 2000 only. It only adds support for | |
38800 | generic ieee1275 functions, console and disk support. This should | |
38801 | be easy to port to other architectures with support for Open | |
38802 | Firmware. | |
f19dbdb7 | 38803 | |
e56cdf21 | 38804 | * configure.ac: Accept the powerpc as host_cpu. In the case of |
38805 | the powerpc cpu set the host_vendor to ieee1275. Make sure the i386 | |
38806 | specific tests are only executed while building for the i386. | |
38807 | Inverse test for crosscompile. | |
38808 | * genmk.rb (Utility): Allow assembler files. | |
38809 | * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno. | |
38810 | * conf/powerpc-ieee1275.rmk: New file. | |
38811 | * disk/powerpc/ieee1275/ofdisk.c: Likewise. | |
38812 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
38813 | * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise. | |
38814 | * include/pupa/powerpc/ieee1275/console.h: Likewise. | |
38815 | * include/pupa/powerpc/ieee1275/partition.h: Likewise. | |
38816 | * include/pupa/powerpc/ieee1275/time.h: Likewise. | |
38817 | * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
38818 | * include/pupa/powerpc/ieee1275/multiboot.h: Likewise. | |
38819 | * include/pupa/powerpc/ieee1275/loader.h | |
38820 | * include/pupa/powerpc/setjmp.h: Likewise. | |
38821 | * include/pupa/powerpc/types.h: Likewise. | |
38822 | * kern/powerpc/ieee1275/init.c: Likewise. | |
38823 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
38824 | * term/powerpc/ieee1275/ofconsole.c: Likewise. | |
38825 | ||
38826 | These files were written by Johan Rydberg | |
38827 | (jrydberg@night.trouble.net) and I only modified them slightly. | |
f19dbdb7 | 38828 | |
e56cdf21 | 38829 | * boot/powerpc/ieee1275/cmain.c: New file. |
38830 | * boot/powerpc/ieee1275/crt0.S: Likewise. | |
38831 | * boot/powerpc/ieee1275/ieee1275.c: Likewise. | |
38832 | * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise. | |
38833 | ||
8c8cc205 | 38834 | 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx> |
38835 | ||
38836 | * Makefile.in: Update copyright. | |
38837 | * genmodsrc.sh: Likewise. | |
38838 | * gensymlist.sh: Likewise. | |
38839 | * term/i386/pc/vga.c: Indent correctly. | |
38840 | ||
38841 | * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as | |
38842 | bugreporting address. | |
38843 | * util/i386/pc/pupa-setup.c (usage): Likewise, | |
38844 | (main): Call pupa_ext2_init and pupa_ext2_fini. | |
38845 | ||
f19dbdb7 | 38846 | * fs/fat.c (log2): Renamed to ... |
8c8cc205 | 38847 | (fat_log2): ... this. |
38848 | All callers changed. | |
38849 | * kern/misc.c (memcpy): Alias to pupa_memmove. | |
38850 | * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix | |
38851 | lvalue cast. | |
38852 | * util/console.c (pupa_ncurses_fini): Return 0. | |
38853 | ||
38854 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]: | |
38855 | Move fail label here. | |
38856 | [__GNU__]: Don't warn when using stat. | |
38857 | (open_device)[!__linux__]: Check if FD < 0 instead of !FD. | |
38858 | (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to | |
38859 | long int. Use strtol instead of strtoul. | |
f19dbdb7 | 38860 | |
db1771cf | 38861 | 2004-03-14 Marco Gerards <metgerards@student.han.nl> |
38862 | ||
38863 | * commands/boot.c: New file. | |
38864 | * commands/cat.c: Likewise. | |
38865 | * commands/cmp.c: Likewise. | |
38866 | * commands/ls.c: Likewise. | |
38867 | * commands/terminal.c: Likewise. | |
38868 | * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>. | |
38869 | (pupa_register_command): Changed interface to match the new | |
38870 | argument parser. | |
38871 | (pupa_command_execute): Changed (almost rewritten) so it uses | |
38872 | pupa_split_command. Added support for setting variables using the | |
38873 | syntax `foo=bar'. | |
38874 | (rescue_command): Changed to work with the new argument parser. | |
38875 | (terminal_command): Moved from here to commands/terminal.c. | |
38876 | (set_command): New function. | |
38877 | (unset_command): New function. | |
38878 | (insmod_command): New function. | |
38879 | (rmmod_command): New function. | |
38880 | (lsmod_command): New function. | |
38881 | (pupa_command_init): Don't initialize the command terminal | |
38882 | anymore. Initialize the commands set, unset, insmod, rmmod and | |
38883 | lsmod. | |
38884 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c. | |
38885 | (kernel_img_HEADERS): Add arg.h and env.h. | |
38886 | (pupa_mkimage_LDFLAGS): Add kern/env.c. | |
38887 | (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c, | |
38888 | commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c, | |
38889 | normal/arg.c. | |
38890 | (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and | |
38891 | terminal.mod. | |
38892 | (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c. | |
38893 | (boot_mod_SOURCES): New variable. | |
38894 | (terminal_mod_SOURCES): Likewise. | |
38895 | (ls_mod_SOURCES): Likewise. | |
38896 | (cmp_mod_SOURCES): Likewise. | |
38897 | (cat_mod_SOURCES): Likewise. | |
38898 | ||
38899 | * normal/arg.c: New file. | |
38900 | * kern/env.c: Likewise. | |
38901 | * include/pupa/arg.h: Likewise. | |
38902 | * include/pupa/env.h: Likewise. | |
38903 | * font/manager.c (font_command): Changed to match argument parsing | |
38904 | interface changes. | |
38905 | (PUPA_MOD_INIT): Likewise. | |
38906 | * hello/hello.c (pupa_cmd_hello): Likewise. | |
38907 | (PUPA_MOD_INIT): Likewise. | |
38908 | * include/pupa/disk.h: Include <pupa/device.h>. | |
38909 | (pupa_print_partinfo): New prototype. | |
38910 | * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed. | |
38911 | (pupa_dl_get_prefix): Likewise. | |
38912 | * include/pupa/misc.h: Include <pupa/err.h>. | |
38913 | (pupa_isgraph): New prototype. | |
38914 | (pupa_isdigit): Likewise. | |
38915 | (pupa_split_cmdline): Likewise. | |
38916 | * include/pupa/normal.h: Include <pupa/arg.h>. | |
38917 | (pupa_command): Changed the prototype of the member `func' to | |
38918 | match the argument parsing interface. Added member `options'. | |
38919 | (pupa_register_command): Updated to match function. | |
38920 | (pupa_arg_parse): New prototype. | |
38921 | (pupa_hello_init) [PUPA_UTIL]: New prototype. | |
38922 | (pupa_hello_fini) [PUPA_UTIL]: Likewise. | |
38923 | (pupa_ls_init) [PUPA_UTIL]: Likewise. | |
38924 | (pupa_ls_fini) [PUPA_UTIL]: Likewise. | |
38925 | (pupa_cat_init) [PUPA_UTIL]: Likewise. | |
38926 | (pupa_cat_fini) [PUPA_UTIL]: Likewise. | |
38927 | (pupa_boot_init) [PUPA_UTIL]: Likewise. | |
38928 | (pupa_boot_fini) [PUPA_UTIL]: Likewise. | |
38929 | (pupa_cmp_init) [PUPA_UTIL]: Likewise. | |
38930 | (pupa_cmp_fini) [PUPA_UTIL]: Likewise. | |
38931 | (pupa_terminal_init) [PUPA_UTIL]: Likewise. | |
38932 | (pupa_terminal_fini) [PUPA_UTIL]: Likewise. | |
38933 | * kern/disk.c: Include <pupa/file.h>. | |
38934 | (pupa_print_partinfo): New function. | |
38935 | * kern/dl.c: Include <pupa/env.h>. | |
38936 | (pupa_dl_dir): Variable removed. | |
38937 | (pupa_dl_load): Use the environment variable `prefix' instead of | |
38938 | the variable pupa_dl_dir. | |
38939 | (pupa_dl_set_prefix): Function removed. | |
38940 | (pupa_dl_get_prefix): Likewise. | |
38941 | * kern/i386/pc/init.c: Include <pupa/env.h>. | |
38942 | (pupa_machine_init): Use the environment variable `prefix' instead of | |
38943 | using pupa_dl_set_prefix to set the prefix. | |
38944 | * kern/main.c: Include <pupa/env.h>. | |
38945 | (pupa_set_root_dev): Use the environment variable `prefix' instead of | |
38946 | using pupa_dl_get_prefix to get the prefix. | |
38947 | * kern/misc.c: Include <pupa/env.h>. | |
38948 | (pupa_isdigit): New function. | |
38949 | (pupa_isgraph): Likewise. | |
38950 | (pupa_ftoa): Likewise. | |
38951 | (pupa_vsprintf): Added support for printing values of the type | |
38952 | `double'. Make it possible to format variable output when using | |
38953 | formatting like `%1.2%f'. | |
38954 | (pupa_split_cmdline): New function. | |
38955 | * kern/rescue.c: Include <pupa/env.h>. | |
38956 | (next_word): Removed function. | |
38957 | (pupa_rescue_cmd_prefix): Likewise. | |
38958 | (pupa_rescue_cmd_set): New function. | |
38959 | (pupa_rescue_cmd_unset): New function. | |
38960 | (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to | |
38961 | split the command line instead of splitting it here. Added | |
38962 | support for setting variables using the syntax `foo=bar'. Don't | |
38963 | initialize the prefix command anymore. Initialized the set and | |
38964 | unset commands. | |
38965 | * normal/cmdline.c: Include <pupa/env.h>. | |
38966 | (pupa_tab_complete): Added prototypes for print_simple_completion, | |
38967 | print_partition_completion, add_completion, iterate_commands, | |
38968 | iterate_dev, iterate_part and iterate_dir. Moved code to print | |
38969 | partition information from here to kern/disk.c. | |
fe6b695a | 38970 | (pupa_cmdline_run): Don't check if the function exists anymore. |
db1771cf | 38971 | * normal/main.c: Include <pupa/env.h>. |
38972 | (pupa_rescue_cmd_normal): Use the environment variable `prefix' | |
38973 | instead of using pupa_dl_get_prefix to get the prefix. | |
38974 | * term/i386/pc/vga.c: Include <pupa/arg.h>. | |
38975 | (check_vga_mem): Cast pointers to `void *' to silence a gcc | |
38976 | warning. | |
38977 | (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case. | |
38978 | (pupa_vga_setcolor): Declare unused variables with `__attribute__ | |
38979 | ((unused))' to silence a gcc warning. | |
38980 | (pupa_vga_setcolor): Likewise. | |
38981 | (debug_command): Changed to match argument parsing | |
38982 | interface changes. | |
38983 | * util/pupa-emu.c: Include <pupa/env.h>. | |
38984 | (options): Added 0's for unused fields to silence a gcc warning. | |
38985 | (argp): Likewise. | |
38986 | (main): Use the environment variable `prefix' instead of using | |
38987 | pupa_dl_set_prefix to set the prefix. Initialize the commands ls, | |
38988 | boot, cmp, cat and terminal. Finish the commands boot, cmp, cat | |
38989 | and terminal. | |
38990 | ||
38991 | * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>. | |
38992 | * util/misc.c: Include <malloc.h>. | |
38993 | (pupa_malloc): Rewritten so errors are correctly reported. | |
38994 | (pupa_realloc): Likewise. | |
38995 | (pupa_memalign): Likewise. | |
38996 | (pupa_mm_init_region): Declare unused variables with | |
38997 | `__attribute__ ((unused))' to silence a gcc warning. | |
38998 | * normal/i386/setjmp.S: Remove tab at the end of the file to | |
38999 | silence a gcc warning. | |
39000 | * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused | |
39001 | variables with `__attribute__ ((unused))' to silence a gcc | |
39002 | warning. | |
39003 | * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the | |
39004 | local variable i unsigned to silence a gcc warning. | |
39005 | ||
39006 | * kern/term.c: Include <pupa/misc.h>. | |
39007 | (pupa_more_lines): New variable. | |
39008 | (pupa_more): Likewise. | |
39009 | (pupa_putcode): When the pager is active pause at the end of every | |
39010 | screen. | |
39011 | (pupa_set_more): New function. | |
39012 | * include/pupa/term.h (pupa_set_more): New prototype. | |
39013 | ||
39014 | ||
3b1139cb | 39015 | 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org> |
39016 | ||
39017 | Now this project is GRUB 2 rather than PUPA. The location of | |
39018 | the CVS repository was moved to GRUB's. | |
f19dbdb7 | 39019 | |
3b1139cb | 39020 | * configure.ac: Use bug-grub as the reporting address. |
39021 | Use GRUB instead of PUPA. | |
39022 | Change the version number to 1.90. | |
39023 | ||
8367695c | 39024 | 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org> |
39025 | ||
39026 | * genkernsyms.sh: Updated copyright information. | |
39027 | * genmk.rb: Likewise. | |
39028 | * genmodsrc.sh: Likewise. | |
39029 | * gensymlist.sh: Likewise. | |
39030 | * boot/i386/pc/boot.S: Likewise. | |
39031 | * boot/i386/pc/diskboot.S: Likewise. | |
39032 | * disk/i386/pc/biosdisk.c: Likewise. | |
39033 | * disk/i386/pc/partition.c: Likewise. | |
39034 | * font/manager.c: Likewise. | |
39035 | * fs/ext2.c: Likewise. | |
39036 | * fs/fat.c: Likewise. | |
39037 | * include/pupa/boot.h: Likewise. | |
39038 | * include/pupa/device.h: Likewise. | |
39039 | * include/pupa/disk.h: Likewise. | |
39040 | * include/pupa/dl.h: Likewise. | |
39041 | * include/pupa/elf.h: Likewise. | |
39042 | * include/pupa/err.h: Likewise. | |
39043 | * include/pupa/file.h: Likewise. | |
39044 | * include/pupa/font.h: Likewise. | |
39045 | * include/pupa/fs.h: Likewise. | |
39046 | * include/pupa/kernel.h: Likewise. | |
39047 | * include/pupa/loader.h: Likewise. | |
39048 | * include/pupa/misc.h: Likewise. | |
39049 | * include/pupa/mm.h: Likewise. | |
39050 | * include/pupa/net.h: Likewise. | |
39051 | * include/pupa/normal.h: Likewise. | |
39052 | * include/pupa/rescue.h: Likewise. | |
39053 | * include/pupa/setjmp.h: Likewise. | |
39054 | * include/pupa/symbol.h: Likewise. | |
39055 | * include/pupa/term.h: Likewise. | |
39056 | * include/pupa/types.h: Likewise. | |
39057 | * include/pupa/i386/setjmp.h: Likewise. | |
39058 | * include/pupa/i386/types.h: Likewise. | |
39059 | * include/pupa/i386/pc/biosdisk.h: Likewise. | |
39060 | * include/pupa/i386/pc/boot.h: Likewise. | |
39061 | * include/pupa/i386/pc/console.h: Likewise. | |
39062 | * include/pupa/i386/pc/init.h: Likewise. | |
39063 | * include/pupa/i386/pc/kernel.h: Likewise. | |
39064 | * include/pupa/i386/pc/linux.h: Likewise. | |
39065 | * include/pupa/i386/pc/loader.h: Likewise. | |
39066 | * include/pupa/i386/pc/memory.h: Likewise. | |
39067 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
39068 | * include/pupa/i386/pc/partition.h: Likewise. | |
39069 | * include/pupa/i386/pc/time.h: Likewise. | |
39070 | * include/pupa/i386/pc/vga.h: Likewise. | |
39071 | * include/pupa/i386/pc/util/biosdisk.h: Likewise. | |
39072 | * include/pupa/util/getroot.h: Likewise. | |
39073 | * include/pupa/util/misc.h: Likewise. | |
39074 | * include/pupa/util/resolve.h: Likewise. | |
39075 | * kern/device.c: Likewise. | |
39076 | * kern/disk.c: Likewise. | |
39077 | * kern/dl.c: Likewise. | |
39078 | * kern/err.c: Likewise. | |
39079 | * kern/file.c: Likewise. | |
39080 | * kern/fs.c: Likewise. | |
39081 | * kern/loader.c: Likewise. | |
39082 | * kern/main.c: Likewise. | |
39083 | * kern/misc.c: Likewise. | |
39084 | * kern/mm.c: Likewise. | |
39085 | * kern/rescue.c: Likewise. | |
39086 | * kern/term.c: Likewise. | |
39087 | * kern/i386/dl.c: Likewise. | |
39088 | * kern/i386/pc/init.c: Likewise. | |
39089 | * kern/i386/pc/lzo1x.S: Likewise. | |
39090 | * kern/i386/pc/startup.S: Likewise. | |
39091 | * loader/i386/pc/chainloader.c: Likewise. | |
39092 | * loader/i386/pc/linux.c: Likewise. | |
39093 | * loader/i386/pc/multiboot.c: Likewise. | |
39094 | * normal/cmdline.c: Likewise. | |
39095 | * normal/command.c: Likewise. | |
39096 | * normal/main.c: Likewise. | |
39097 | * normal/menu.c: Likewise. | |
39098 | * normal/i386/setjmp.S: Likewise. | |
39099 | * term/i386/pc/console.c: Likewise. | |
39100 | * term/i386/pc/vga.c: Likewise. | |
39101 | * util/console.c: Likewise. | |
39102 | * util/genmoddep.c: Likewise. | |
39103 | * util/misc.c: Likewise. | |
39104 | * util/pupa-emu.c: Likewise. | |
39105 | * util/resolve.c: Likewise. | |
39106 | * util/unifont2pff.rb: Likewise. | |
39107 | * util/i386/pc/biosdisk.c: Likewise. | |
39108 | * util/i386/pc/getroot.c: Likewise. | |
39109 | * util/i386/pc/pupa-mkimage.c: Likewise. | |
39110 | * util/i386/pc/pupa-setup.c: Likewise. | |
39111 | ||
e6eced71 | 39112 | 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx> |
39113 | ||
39114 | * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND | |
39115 | when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all | |
39116 | callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before | |
39117 | reading and reset it after reading. | |
39118 | (pupa_ext2_close): Return PUPA_ERR_NONE. | |
39119 | ||
39120 | * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS): | |
39121 | Correct value. | |
39122 | (struct linux_kernel_header): Add kernel_version and | |
39123 | initrd_addr_max. | |
39124 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether | |
39125 | pupa_file_read succeeds. | |
39126 | (pupa_rescue_cmd_initrd): Implement. | |
39127 | ||
5aded270 | 39128 | 2003-12-03 Marco Gerards <metgerards@student.han.nl> |
39129 | ||
39130 | * fs/ext2.c (pupa_ext2_label): New function. | |
39131 | (pupa_ext2_fs): Added label. | |
39132 | * fs/fat.c (pupa_fat_label): New function. | |
39133 | (pupa_fat_fs): Added label. | |
39134 | * include/pupa/fs.h (struct pupa_fs): Added prototype label. | |
39135 | ||
39136 | * kern/misc.c (pupa_strndup): New function. | |
39137 | * include/pupa/misc.h (pupa_strndup): New prototype. | |
39138 | ||
39139 | * include/pupa/normal.h: Include <pupa/err.h>. | |
39140 | (pupa_set_history): New prototype. | |
39141 | (pupa_iterate_commands): New prototype. | |
39142 | * normal/cmdline.c: Include <pupa/machine/partition.h>, | |
39143 | <pupa/disk.h>, <pupa/file.h>. | |
39144 | (hist_size): New variable. | |
39145 | (hist_lines): Likewise. | |
39146 | (hist_end): Likewise. | |
39147 | (hist_used): Likewise. | |
39148 | (pupa_set_history): New function. | |
39149 | (pupa_history_get): Likewise. | |
39150 | (pupa_history_add): Likewise. | |
39151 | (pupa_history_replace): Likewise. | |
39152 | (pupa_tab_complete): Likewise. | |
39153 | (pupa_cmdline_run): Added tab completion and history buffer. Tab | |
39154 | completion shows partitionnames while completing partitions, this | |
39155 | feature was suggested by Jeff Bailey. | |
39156 | * normal/command.c (pupa_iterate_commands): New function. | |
39157 | * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro. | |
39158 | (pupa_normal_init): Initialize history buffer. | |
39159 | (PUPA_MOD_INIT): Likewise. | |
39160 | (pupa_normal_fini): Free the history buffer. | |
39161 | (PUPA_MOD_FINI): Likewise. | |
39162 | ||
39163 | * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace | |
39164 | key. | |
39165 | ||
39166 | * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN. | |
39167 | * configure.ac [i386]: Check for regparam bug. | |
39168 | (NESTED_FUNC_ATTR) [! i386]: Defined. | |
39169 | ||
1f7315a3 | 39170 | 2003-11-17 Marco Gerards <metgerards@student.han.nl> |
39171 | ||
39172 | * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu. | |
39173 | (pupa_setup_SOURCES): Added util/i386/pc/getroot.c. | |
39174 | (pupa_emu_SOURCES): New variable. | |
39175 | (pupa_emu_LDFLAGS): Likewise. | |
39176 | * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype. | |
39177 | (pupa_ext2_fini) [PUPA_UTIL]: Likewise. | |
39178 | * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise. | |
39179 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
39180 | * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>. | |
39181 | (pupa_jmp_buf): New typedef. | |
39182 | (pupa_setjmp) [PUPA_UTIL]: New macro. | |
39183 | (pupa_longjmp) [PUPA_UTIL]: Likewise. | |
39184 | * include/pupa/term.h (struct pupa_term): New member `refresh'. | |
39185 | (pupa_refresh): New prototype. | |
39186 | * include/pupa/util/getroot.h: New file. | |
39187 | * kern/misc.c (pupa_vsprintf): Refresh the screen after updating | |
39188 | it. | |
39189 | * kern/rescue.c (pupa_rescue_get_command_line): Likewise. | |
39190 | (pupa_rescue_cmd_cat): Likewise. | |
39191 | (pupa_rescue_cmd_ls): Likewise. | |
39192 | (pupa_rescue_cmd_testload): Likewise. | |
39193 | (pupa_rescue_cmd_lsmod): Likewise. | |
39194 | * normal/cmdline.c (pupa_cmdline_get): Likewise. | |
39195 | * normal/menu.c (run_menu): Likewise. | |
39196 | * kern/term.c (pupa_cls): Likewise. | |
39197 | (pupa_refresh): New function. | |
39198 | * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function. | |
39199 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
39200 | * util/console.c: New file. | |
f19dbdb7 | 39201 | |
1f7315a3 | 39202 | * util/i386/pc/getroot.c: New file. |
39203 | * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>. | |
39204 | (pupa_putchar): New function. | |
39205 | (pupa_refresh): Likewise. | |
39206 | (xgetcwd): Function moved to ... | |
39207 | (strip_extra_slashes): Likewise. | |
39208 | (get_prefix): Likewise. | |
f19dbdb7 | 39209 | * util/i386/pc/getroot.c: ... here. |
1f7315a3 | 39210 | (find_root_device): Function moved and renamed to... |
39211 | * util/i386/pc/getroot.c (pupa_find_root_device): ... here. | |
39212 | Changed all callers. | |
39213 | * util/i386/pc/pupa-setup.c (guess_root_device): Function moved | |
39214 | and renamed to... | |
39215 | * util/i386/pc/getroot.c (pupa_guess_root_device): ... here. | |
39216 | Changed all callers. | |
39217 | * util/misc.c (pupa_memalign): New function. | |
39218 | (pupa_mm_init_region): Likewise. | |
39219 | (pupa_register_exported_symbols): Likewise. | |
39220 | (pupa_putchar): Function removed. | |
39221 | * util/pupa-emu.c: New file. | |
39222 | ||
9a5c1ade | 39223 | 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx> |
39224 | ||
39225 | * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod. | |
39226 | (_multiboot_mod_SOURCES): New variable. | |
39227 | (_multiboot_mod_CFLAGS): Likewise. | |
39228 | * loader/i386/pc/multiboot.c: New file. | |
39229 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
39230 | * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h. | |
39231 | (pupa_multiboot_real_boot): New function. | |
39232 | * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h. | |
39233 | (pupa_multiboot_real_boot): New prototype. | |
39234 | (pupa_rescue_cmd_multiboot): Likewise | |
39235 | (pupa_rescue_cmd_module): Likewise. | |
39236 | ||
39237 | * kern/loader.c (pupa_loader_set): Continue when | |
39238 | pupa_loader_unload_func() fails. | |
39239 | (pupa_loader_unset): New function. | |
39240 | * include/pupa/loader.h (pupa_loader_unset): New prototype. | |
39241 | ||
39242 | * kern/misc.c (pupa_stpcpy): New function. | |
39243 | * include/pupa/misc.h (pupa_stpcpy): New prototype. | |
39244 | ||
8e72a9c0 | 39245 | 2003-11-12 Marco Gerards <metgerards@student.han.nl> |
39246 | ||
39247 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check | |
39248 | for available extensions. | |
39249 | ||
39250 | * include/pupa/i386/pc/time.h: New file. | |
39251 | * kern/disk.c: Include <pupa/machine/time.h>. | |
39252 | (PUPA_CACHE_TIMEOUT): New macro. | |
39253 | (pupa_last_time): New variable. | |
39254 | (pupa_disk_open): Flush the cache when there was a timeout. | |
39255 | (pupa_disk_close): Reset the timer. | |
39256 | * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from | |
39257 | pupa_currticks. | |
39258 | * util/misc.c: Include <sys/times.h> | |
39259 | (pupa_get_rtc): New function. | |
39260 | ||
c4adbd32 | 39261 | 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
39262 | ||
39263 | * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks | |
39264 | as blocks. | |
39265 | (pupa_ext2_get_file_block): Use blocks member. | |
39266 | ||
39267 | * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the | |
39268 | first block. Return -1 instead of pupa_errno on error. | |
39269 | ||
bfd30f06 | 39270 | 2003-10-27 Marco Gerards <metgerards@student.han.nl> |
39271 | ||
39272 | * README: In the pupa-mkimage example use _chain instead of chain | |
39273 | and ext2 instead of fat. | |
39274 | * TODO: Replace ext2fs with jfs as an example. Add an item for | |
39275 | adding journal playback for ext2fs. | |
39276 | * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c. | |
39277 | (pkgdata_MODULES): Added ext2.mod. | |
39278 | (ext2_mod_SOURCES): New variable. | |
39279 | (ext2_mod_CFLAGS): Likewise. | |
39280 | * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP. | |
39281 | * include/pupa/misc.h (pupa_strncpy): New prototype. | |
39282 | (pupa_strcat): Likewise. | |
39283 | (pupa_strncmp): Likewise. | |
39284 | * kern/misc.c (pupa_strcat): Enable function. | |
39285 | (pupa_strncpy): New function. | |
39286 | (pupa_strncmp): Likewise. | |
39287 | * fs/ext2.c: New file. | |
f19dbdb7 | 39288 | |
bfd30f06 | 39289 | * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE |
39290 | when the read failed before retrying. | |
39291 | * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed. | |
39292 | (_FILE_OFFSET_BITS): Likewise. | |
39293 | * configure.ac: Added AC_SYS_LARGEFILE. | |
39294 | ||
98d15063 | 39295 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
39296 | ||
39297 | * genmk.rb (PModule#rule): Make sure to get only symbol names | |
39298 | from the output of nm. | |
59cad637 | 39299 | Reported by Robert Millan <rmh.grub@aybabtu.com>. |
98d15063 | 39300 | |
18d9c7cd | 39301 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
39302 | ||
39303 | I forgot to check in these changes for a long time. This adds | |
39304 | incomplete support for VGA console, and this is still very | |
39305 | buggy. Also, a lot of consideration is required for I18N, | |
39306 | UNICODE, and VGA font issues. Therefore, assume that this is | |
39307 | such that "better than nothing". | |
f19dbdb7 | 39308 | |
18d9c7cd | 39309 | * font/manager.c: New file. |
39310 | * include/pupa/font.h: Likewise. | |
39311 | * include/pupa/i386/pc/vga.h: Likewise. | |
39312 | * term/i386/pc/vga.c: Likewise. | |
39313 | * util/unifont2pff.rb: Likewise. | |
39314 | ||
39315 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h. | |
39316 | (pkgdata_MODULES): Added vga.mod and font.mod. | |
39317 | (vga_mod_SOURCES): New variables. | |
39318 | (vga_mod_CFLAGS): Likewise. | |
39319 | (font_mod_SOURCES): Likewise. | |
39320 | (font_mod_CFLAGS): Likewise. | |
39321 | ||
39322 | * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant. | |
39323 | ||
39324 | * include/pupa/term.h: Include pupa/err.h. | |
f19dbdb7 | 39325 | (struct pupa_term): Added init and fini. |
18d9c7cd | 39326 | Changed the argument of putchar to pupa_uint32_t. |
39327 | ||
39328 | * include/pupa/i386/pc/console.h: Include pupa/symbol.h. | |
39329 | (pupa_console_real_putchar): New prototype. | |
39330 | (pupa_console_putchar): Removed. | |
39331 | (pupa_console_checkkey): Exported. | |
39332 | (pupa_console_getkey): Likewise. | |
39333 | ||
39334 | * kern/misc.c (pupa_vsprintf): Add support for UNICODE | |
39335 | characters. | |
39336 | ||
39337 | * kern/term.c (pupa_term_set_current): Rewritten. | |
39338 | (pupa_putchar): Likewise. | |
39339 | (pupa_putcode): New function. | |
39340 | ||
39341 | * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ... | |
39342 | (pupa_console_real_putchar): ... this. | |
39343 | (pupa_vga_set_mode): New function. | |
39344 | (pupa_vga_get_font): Likewise. | |
39345 | ||
39346 | * normal/command.c: Include pupa/term.h. | |
39347 | (terminal_command): New function. | |
39348 | (pupa_command_init): Register the command "terminal". | |
39349 | ||
39350 | * normal/menu.c (DISP_LEFT): Changed to a UNICODE value. | |
39351 | (DISP_UP): Likewise. | |
39352 | (DISP_RIGHT): Likewise. | |
39353 | (DISP_DOWN): Likewise. | |
39354 | (DISP_HLINE): Likewise. | |
39355 | (DISP_VLINE): Likewise. | |
39356 | (DISP_UL): Likewise. | |
39357 | (DISP_UR): Likewise. | |
39358 | (DISP_LL): Likewise. | |
39359 | (DISP_LR): Likewise. | |
39360 | ||
39361 | * term/i386/pc/console.c (pupa_console_putchar): New function. | |
f19dbdb7 | 39362 | |
977329f5 | 39363 | 2003-02-08 NIIBE Yutaka <gniibe@m17n.org> |
39364 | ||
39365 | * util/resolve.c (pupa_util_resolve_dependencies): BUG | |
39366 | FIX. Reverse the path_list. | |
39367 | ||
39368 | * include/pupa/normal.h: Export pupa_register_command and | |
39369 | pupa_unregister_command. | |
39370 | ||
39371 | * hello/hello.c (pupa_cmd_hello): New module. | |
39372 | * conf/i386-pc.rmk: Added hello.mod. | |
39373 | ||
1f5ab428 | 39374 | 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org> |
39375 | ||
39376 | * kern/i386/pc/lzo1x.S: New file. | |
f19dbdb7 | 39377 | |
1f5ab428 | 39378 | * util/i386/pc/pupa-mkimage.c: Include lzo1x.h. |
39379 | (compress_kernel): New variable. | |
39380 | (generate_image): Heavily modified to support compressing a | |
39381 | large part of the core image. | |
39382 | ||
39383 | * util/misc.c (pupa_util_read_image): Fix a file descriptor | |
39384 | leak. | |
39385 | (pupa_util_load_image): New function. | |
39386 | ||
39387 | * kern/i386/pc/startup.S: Include pupa/machine/kernel.h. | |
39388 | (pupa_compressed_size): New variable. | |
39389 | (codestart): Enable Gate A20 here. | |
39390 | Decompress the compressed part of the core image. | |
39391 | Rearrange the code to put functions and variables which are | |
39392 | required for initialization in the non-compressed part. | |
39393 | Include lzo1x.S. | |
39394 | ||
39395 | * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20 | |
39396 | here. | |
39397 | ||
39398 | * include/pupa/util/misc.h (pupa_util_write_image): Declared. | |
39399 | ||
f19dbdb7 | 39400 | * include/pupa/i386/pc/kernel.h |
1f5ab428 | 39401 | (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro. |
39402 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4. | |
39403 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
39404 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
39405 | (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro. | |
39406 | ||
39407 | * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable. | |
39408 | ||
39409 | * genmk.rb (Image#rule): Put LDFLAGS at the end of a line. | |
39410 | (Utility#rule): Likewise. | |
39411 | ||
39412 | * configure.ac: Check if LZO is available. | |
39413 | ||
ce5bf700 | 39414 | 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org> |
39415 | ||
39416 | * include/pupa/normal.h: New file. | |
39417 | * include/pupa/setjmp.h: Likewise. | |
39418 | * include/pupa/i386/setjmp.h: Likewise. | |
39419 | * normal/cmdline.c: Likewise. | |
39420 | * normal/command.c: Likewise. | |
39421 | * normal/main.c: Likewise. | |
39422 | * normal/menu.c: Likewise. | |
39423 | * normal/i386/setjmp.S: Likewise. | |
f19dbdb7 | 39424 | |
ce5bf700 | 39425 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global. |
39426 | (pupa_rescue_cmd_initrd): Likewise. | |
39427 | ||
39428 | * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader): | |
39429 | Likewise. | |
39430 | ||
39431 | * kern/i386/pc/startup.S (translation_table): New variable. | |
39432 | (translate_keycode): New function. | |
39433 | (pupa_console_getkey): Call translate_keycode. | |
39434 | ||
39435 | * kern/rescue.c (attempt_normal_mode): New function. | |
39436 | (pupa_enter_rescue_mode): Attempt to execute the normal mode. If | |
39437 | it failed, print a message. | |
39438 | ||
39439 | * kern/mm.c (pupa_real_malloc): Print more information when a | |
39440 | free magic is broken. | |
39441 | (pupa_free): If the first free header is not free actually, set | |
39442 | it to P. | |
39443 | ||
39444 | * kern/main.c (pupa_load_normal_mode): Just load the module | |
39445 | "normal". | |
39446 | (pupa_main): Don't print the message | |
39447 | "Entering into rescue mode..." here. | |
39448 | ||
39449 | * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd): | |
39450 | Declared. | |
39451 | (pupa_rescue_cmd_initrd): Likewise. | |
39452 | (pupa_rescue_cmd_initrd): Likewise. | |
39453 | ||
39454 | * include/pupa/symbol.h (FUNCTION): Specify the type. | |
39455 | (VARIABLE): Likewise. | |
39456 | ||
39457 | * include/pupa/err.h (pupa_err_t): Added | |
39458 | PUPA_ERR_UNKNOWN_COMMAND. | |
39459 | ||
39460 | * include/pupa/dl.h (pupa_dl_set_prefix): Exported. | |
39461 | (pupa_dl_get_prefix): Likewise. | |
39462 | ||
39463 | * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod. | |
39464 | Added _chain.mod and _linux.mod instead of chain.mod and | |
39465 | linux.mod. | |
39466 | (chain_mod_SOURCES): Renamed to ... | |
39467 | (_chain_mod_SOURCES): ... this. | |
39468 | (chain_mod_CFLAGS): Renamed to ... | |
39469 | (_chain_mod_CFLAGS): ... this. | |
39470 | (linux_mod_SOURCES): Renamed to ... | |
39471 | (_linux_mod_SOURCES): ... this. | |
39472 | (linux_mod_CFLAGS): Renamed to ... | |
39473 | (_linux_mod_CFLAGS): ... this. | |
39474 | (normal_mod_SOURCES): New variable. | |
39475 | (normal_mod_CFLAGS): Likewise. | |
39476 | (normal_mod_ASFLAGS): Likewise. | |
39477 | ||
39478 | 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org> | |
39479 | ||
39480 | * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if | |
39481 | possible. | |
39482 | ||
fe6b695a | 39483 | * kern/dl.c (pupa_dl_ref): Refer depending modules |
ce5bf700 | 39484 | recursively. |
39485 | (pupa_dl_unref): Unrefer depending modules recursively. | |
39486 | Don't call pupa_dl_unload implicitly, because PUPA can crash if | |
39487 | a module is unloaded before one depending on that module is | |
39488 | unloaded. | |
39489 | (pupa_dl_unload): Unload depending modules explicitly, | |
39490 | if possible. | |
39491 | ||
c04da074 | 39492 | 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org> |
39493 | ||
39494 | * include/pupa/i386/pc/linux.h: New file. | |
39495 | * loader/i386/pc/linux.c: Likewise. | |
f19dbdb7 | 39496 | |
c04da074 | 39497 | * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector): |
39498 | Removed. | |
39499 | (pupa_chainloader_unload): Return PUPA_ERR_NONE. | |
39500 | (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead | |
39501 | of PUPA_CHAINLOADER_BOOT_SECTOR. | |
39502 | ||
39503 | * kern/i386/pc/startup.S: Include pupa/machine/linux.h. | |
39504 | (pupa_linux_prot_size): New variable. | |
39505 | (pupa_linux_tmp_addr): Likewise. | |
39506 | (pupa_linux_real_addr): Likewise. | |
39507 | (pupa_linux_boot_zimage): New function. | |
39508 | (pupa_linux_boot_bzimage): Likewise. | |
39509 | ||
39510 | * kern/i386/pc/init.c (struct mem_region): New structure. | |
39511 | (MAX_REGIONS): New macro. | |
39512 | (mem_regions): New variable. | |
39513 | (num_regions): Likewise. | |
39514 | (pupa_os_area_addr): Likewise. | |
39515 | (pupa_os_area_size): Likewise. | |
39516 | (pupa_lower_mem): Likewise. | |
39517 | (pupa_upper_mem): Likewise. | |
39518 | (add_mem_region): New function. | |
39519 | (compact_mem_regions): Likewise. | |
39520 | (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to | |
39521 | the size of the conventional memory and that of so-called upper | |
39522 | memory (before the first memory hole). | |
39523 | Instead of adding each found region to free memory, use | |
39524 | add_mem_region and add them after removing overlaps. | |
39525 | Also, add only 1/4 of the upper memory to free memory. The rest | |
39526 | is used for loading OS images. Maybe this is ad hoc, but this | |
39527 | makes it much easier to relocate OS images when booting. | |
39528 | ||
39529 | * kern/rescue.c (pupa_rescue_cmd_module): Removed. | |
39530 | (pupa_enter_rescue_mode): Don't register initrd and module. | |
39531 | ||
39532 | * kern/mm.c: Include pupa/dl.h. | |
39533 | ||
39534 | * kern/main.c: Include pupa/file.h and pupa/device.h. | |
39535 | ||
39536 | * kern/loader.c (pupa_loader_load_module_func): Removed. | |
39537 | (pupa_loader_load_module): Likewise. | |
39538 | ||
39539 | * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of | |
39540 | ``.o''. | |
39541 | ||
39542 | * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared. | |
39543 | (pupa_linux_tmp_addr): Likewise. | |
39544 | (pupa_linux_real_addr): Likewise. | |
39545 | (pupa_linux_boot_zimage): Likewise. | |
39546 | (pupa_linux_boot_bzimage): Likewise. | |
39547 | ||
39548 | * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared. | |
39549 | (pupa_upper_mem): Likewise. | |
39550 | (pupa_gate_a20): Don't export, because turning off Gate A20 in a | |
39551 | module is too dangerous. | |
39552 | ||
39553 | * include/pupa/loader.h (pupa_os_area_addr): Declared. | |
39554 | (pupa_os_area_size): Likewise. | |
39555 | (pupa_loader_set): Remove the first argument. Loader doesn't | |
39556 | manage modules or initrd any longer. | |
39557 | (pupa_loader_load_module): Removed. | |
39558 | ||
39559 | * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod. | |
39560 | (linux_mod_SOURCES): New variable. | |
39561 | (linux_mod_CFLAGS): Likewise. | |
39562 | ||
a13f9237 | 39563 | 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org> |
39564 | ||
39565 | * util/i386/pc/pupa-setup.c (setup): Convert the endianness of | |
39566 | the length of a blocklist correctly. | |
39567 | ||
39568 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]: | |
39569 | Use ioctl only if the OS file is a block device. | |
39570 | (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is | |
39571 | not very useful for normal files. | |
39572 | ||
39573 | * kern/main.c (pupa_set_root_dev): New function. | |
39574 | (pupa_load_normal_mode): Likewise. | |
39575 | (pupa_main): Call those above. | |
39576 | ||
39577 | * include/pupa/types.h (pupa_swap_bytes16): Cast the result to | |
39578 | pupa_uint16_t. | |
39579 | ||
39580 | * include/pupa/kernel.h (pupa_enter_normal_mode): Removed. | |
39581 | ||
a5ffe966 | 39582 | 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
39583 | ||
39584 | * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h. | |
39585 | (setup): Configure the installed partition information and the | |
39586 | dl prefix. | |
39587 | ||
39588 | * loader/i386/pc/chainloader.c (my_mod): New variable. | |
39589 | (pupa_chainloader_unload): New function. | |
39590 | (pupa_rescue_cmd_chainloader): Refer itself. | |
39591 | (PUPA_MOD_INIT): Save its own module in MY_MOD. | |
39592 | ||
39593 | * kern/i386/pc/startup.S (install_partition): Removed. | |
39594 | (version_string): Likewise. | |
39595 | (config_file): Likewise. | |
39596 | (pupa_install_dos_part): New variable. | |
39597 | (pupa_install_bsd_part): Likewise. | |
39598 | (pupa_prefix): Likewise. | |
39599 | (pupa_chainloader_real_boot): Call pupa_dl_unload_all. | |
39600 | ||
39601 | * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h | |
39602 | and pupa/misc.h. | |
39603 | (make_install_device): New function. | |
39604 | (pupa_machine_init): Set the dl prefix. | |
39605 | ||
39606 | * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h. | |
39607 | (buf): Renamed to ... | |
39608 | (linebuf): ... this. | |
39609 | (pupa_rescue_cmd_prefix): New function. | |
39610 | (pupa_rescue_cmd_insmod): Likewise. | |
39611 | (pupa_rescue_cmd_rmmod): Likewise. | |
39612 | (pupa_rescue_cmd_lsmod): Likewise. | |
39613 | (pupa_enter_rescue_mode): Register new commands: prefix, insmod, | |
39614 | rmmod and lsmod. | |
39615 | ||
39616 | * kern/mm.c (pupa_memalign): If failed even after invalidating | |
39617 | disk caches, unload unneeded modules and retry. | |
39618 | ||
39619 | * kern/misc.c (pupa_memmove): New function. | |
39620 | (pupa_memcpy): Removed. | |
39621 | (pupa_strcpy): New function. | |
39622 | (pupa_itoa): Made static. | |
39623 | ||
39624 | * kern/dl.c (pupa_dl_iterate): New function. | |
39625 | (pupa_dl_ref): Likewise. | |
39626 | (pupa_dl_unref): Likewise. | |
39627 | (pupa_dl_unload): Return if succeeded or not. | |
39628 | (pupa_dl_unload_unneeded): New function. | |
39629 | (pupa_dl_unload_all): Likewise. | |
39630 | (pupa_dl_init): Renamed to ... | |
39631 | (pupa_dl_set_prefix): ... this. | |
39632 | (pupa_dl_get_prefix): New function. | |
39633 | ||
39634 | * include/pupa/i386/pc/kernel.h: Include pupa/types.h. | |
39635 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro. | |
39636 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
39637 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
39638 | (pupa_install_dos_part): Declared. | |
39639 | (pupa_install_bsd_part): Likewise. | |
39640 | (pupa_prefix): Likewise. | |
39641 | (pupa_boot_drive): Likewise. | |
39642 | ||
39643 | * include/pupa/types.h: Fix a typo. | |
39644 | ||
39645 | * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to | |
39646 | pupa_memmove. | |
39647 | (pupa_memmove): Declared. | |
39648 | (pupa_strcpy): Likewise. | |
39649 | ||
39650 | * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now | |
39651 | pupa_mod_init takes one argument, its own module. | |
39652 | (pupa_dl_unload_unneeded): Declared. | |
39653 | (pupa_dl_unload_all): Likewise. | |
39654 | (pupa_dl_ref): Likewise. | |
39655 | (pupa_dl_unref): Likewise. | |
39656 | (pupa_dl_iterate): Likewise. | |
39657 | (pupa_dl_init): Renamed to ... | |
39658 | (pupa_dl_set_prefix): ... this. | |
39659 | (pupa_dl_get_prefix): Declared. | |
39660 | ||
39661 | * fs/fat.c [!PUPA_UTIL] (my_mod): New variable. | |
f19dbdb7 | 39662 | (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being |
a5ffe966 | 39663 | unloaded. |
39664 | (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded. | |
39665 | (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself. | |
39666 | ||
39667 | * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith, | |
39668 | -Wmissing-prototypes, -Wundef and -Wstrict-prototypes. | |
39669 | ||
012d7999 | 39670 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
39671 | ||
39672 | * util/i386/pc/pupa-setup.c (setup): Define the internal | |
39673 | function find_first_partition_start at the top level, because GCC | |
39674 | 3.0.x cannot compile internal functions in deeper scopes | |
39675 | correctly. | |
39676 | (find_root_device): Use lstat instead of stat. | |
39677 | Don't follow symbolic links. | |
39678 | Fix the path-constructing code. | |
39679 | ||
39680 | * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro. | |
39681 | (pupa_util_biosdisk_open) [__linux__]: Get the size of a device | |
39682 | by a BLKGETSIZE ioctl first, because block devices don't fill | |
39683 | the member st_mode of the structure stat on Linux. | |
39684 | [__linux__] (linux_find_partition): Use a temporary buffer | |
39685 | REAL_DEV for the working space. Copy it to DEV before returning. | |
39686 | (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the | |
39687 | buffer cache consistent. | |
39688 | (get_os_disk) [__linux__]: Use the length 5 instead of 4 for | |
39689 | strncmp. The previous value was merely wrong. | |
39690 | (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat. | |
39691 | ||
39692 | * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the | |
39693 | FAT size is 12. The previous value was merely wrong. | |
39694 | ||
39695 | * kern/main.c (pupa_main): Don't split the starting message from | |
39696 | newlines. | |
39697 | ||
39698 | * kern/term.c (pupa_putchar): Put CR after LF instead of before | |
39699 | LF, because BIOS goes crazy about character attributes in this | |
39700 | case. | |
39701 | ||
1cc73a62 | 39702 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
39703 | ||
39704 | * include/i386/pc/util/biosdisk.h: New file. | |
39705 | * util/i386/pc/biosdisk.c: Likewise. | |
39706 | * util/i386/pc/pupa-setup.c: Likewise. | |
f19dbdb7 | 39707 | |
1cc73a62 | 39708 | * Makefile.in (INCLUDE_DISTFILES): Added |
39709 | include/pupa/i386/pc/util/biosdisk.h. | |
39710 | (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the | |
39711 | directory util/i386/pc. | |
39712 | (install-local): Added a rule for sbin_UTILITIES. | |
39713 | (uninstall): Likewise. | |
39714 | ||
39715 | * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc. | |
39716 | ||
39717 | * util/misc.c (xrealloc): New function. | |
39718 | (pupa_malloc): Likewise. | |
39719 | (pupa_free): Likewise. | |
39720 | (pupa_realloc): Likewise. | |
39721 | (pupa_stop): Likewise. | |
39722 | (pupa_putchar): Likewise. | |
39723 | ||
39724 | * kern/disk.c (pupa_disk_read): Prevent L from underflowing. | |
39725 | ||
39726 | * include/pupa/util/misc.h (xrealloc): Declared. | |
39727 | ||
39728 | * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New | |
39729 | macro. | |
39730 | (PUPA_BOOT_MACHINE_BPBEND): Renamed to ... | |
39731 | (PUPA_BOOT_MACHINE_BPB_END): ... this. | |
39732 | ||
39733 | * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared. | |
39734 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
39735 | ||
39736 | * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better | |
39737 | way should be implemented. | |
39738 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
39739 | ||
39740 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase | |
39741 | the size of NAME for safety. | |
39742 | (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of | |
39743 | 0x88. | |
39744 | ||
39745 | * conf/i386-pc.rmk (sbin_UTILITIES): New variable. | |
39746 | (pupa_setup_SOURCES): Likewise. | |
39747 | ||
39748 | * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules. | |
39749 | ||
08b70fe8 | 39750 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
39751 | ||
39752 | * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a | |
39753 | bunch of pushl's from pusha, because this destroys the return | |
39754 | value. | |
39755 | ||
62ddcc8f | 39756 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
39757 | ||
39758 | Use -mrtd and -mregparm=3 to reduce the generated code sizes. | |
39759 | This means that any missing prototypes could be fatal. Also, you | |
39760 | must take care when writing assembly code. See the comments at | |
39761 | the beginning of startup.S, for more details. | |
f19dbdb7 | 39762 | |
62ddcc8f | 39763 | * kern/i386/pc/startup.S (pupa_halt): Modified for the new |
39764 | compilation mechanism. | |
39765 | (pupa_chainloader_real_boot): Likewise. | |
39766 | (pupa_biosdisk_rw_int13_extensions): Likewise. | |
39767 | (pupa_biosdisk_rw_standard): Likewise. | |
39768 | (pupa_biosdisk_check_int13_extensions): Likewise. | |
39769 | (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
39770 | (pupa_biosdisk_get_diskinfo_standard): Likewise. | |
39771 | (pupa_get_memsize): Likewise. | |
39772 | (pupa_get_mmap_entry): Likewise. | |
39773 | (pupa_console_putchar): Likewise. | |
39774 | (pupa_console_setcursor): Likewise. | |
39775 | (pupa_getrtsecs): Use pushl instead of push. | |
39776 | ||
39777 | * kern/i386/pc/init.c (pupa_machine_init): Use the scratch | |
39778 | memory instead of the stack for a mmap entry, because some | |
39779 | BIOSes may ignore the maximum size and overflow. | |
39780 | ||
39781 | * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3. | |
39782 | ||
39783 | * genmk.rb (PModule#rule): Compile automatically generated | |
39784 | sources with module-specific CFLAGS as well as other sources. | |
39785 | ||
9962ed99 | 39786 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
39787 | ||
39788 | * configure.ac: Check ld. | |
39789 | Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS | |
39790 | respectively, before checking endianness and sizes. | |
39791 | ||
39792 | * Makefile.in (LD): New variable. | |
f19dbdb7 | 39793 | |
abdfc3c5 | 39794 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
39795 | ||
39796 | * Makefile.in (BUILD_CC): CC -> BUILD_CC. | |
39797 | ||
6a161fa9 | 39798 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
39799 | ||
39800 | * Changelog: New file. | |
39801 |