]>
Commit | Line | Data |
---|---|---|
7fd75377 | 1 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> |
2 | ||
040030b3 | 3 | * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'. |
4 | Sort the list. | |
5 | ||
6 | 2008-09-09 Felix Zielcke <fzielcke@z-51.de> | |
7 | ||
8 | * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with | |
7fd75377 | 9 | #include <grub/util/hostdisk.h>. |
10 | ||
89d5ffcf | 11 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
12 | ||
13 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip | |
14 | segments when their filesz is zero (grub_file_read() interprets | |
15 | zero-size as "read untill EOF", which results in memory corruption). | |
16 | Use `lowest_segment' rather than 0 for calculating the current | |
17 | segment load address. | |
18 | ||
40da438f | 19 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
20 | ||
21 | * util/hostdisk.c (open_device): Replace a grub_util_info() call | |
22 | with grub_dprintf("hostdisk", ...), as it was so verbose that it | |
23 | clobbered useful information. | |
24 | ||
ddbf5556 | 25 | 2008-09-08 Robert Millan <rmh@aybabtu.com> |
26 | ||
27 | * include/grub/util/biosdisk.h: Move to ... | |
28 | * include/grub/util/hostdisk.h: ... here. Update all users. | |
29 | * util/biosdisk.c: Move to ... | |
30 | * util/hostdisk.c: ... here. Update all users. | |
31 | ||
783d0f48 | 32 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
33 | ||
34 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove | |
35 | variables. | |
36 | (grub_multiboot): Move `mbi' allocation upwards, so that mmap address | |
37 | and length can be stored directly in the `mbi->mmap_addr' and | |
38 | `mbi->mmap_length' struct fields. | |
39 | ||
548e2ea5 | 40 | 2008-09-07 Robert Millan <rmh@aybabtu.com> |
41 | ||
42 | * conf/i386.rmk: New file. Provides declaration for building | |
43 | `cpuid.mod'. | |
44 | * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'. | |
45 | (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove | |
46 | variables. | |
47 | Include `conf/i386.mk'. | |
48 | * conf/i386-efi.rmk: Likewise. | |
49 | * conf/x86_64-efi.rmk: Likewise. | |
50 | * conf/i386-coreboot.rmk: Likewise. | |
51 | * conf/i386-ieee1275.rmk: Likewise. | |
52 | ||
0ea85a37 | 53 | 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi> |
54 | ||
55 | Based on patch created by Colin D Bennett <colin@gibibit.com>. | |
56 | Adds optimization support for BGR based modes. | |
57 | ||
58 | * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed. | |
59 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
60 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
61 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
62 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
63 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
64 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
65 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
66 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
67 | (grub_video_i386_vbeblit_index_index): Likewise. | |
68 | (grub_video_i386_vbeblit_replace_directN): Added. | |
69 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
70 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
71 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
72 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
73 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
74 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
75 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. | |
76 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. | |
77 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
78 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
79 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
80 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
81 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
82 | ||
83 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed. | |
84 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
85 | (grub_video_i386_vbefill_index): Likewise. | |
86 | (grub_video_i386_vbefill_direct32): Added. | |
87 | (grub_video_i386_vbefill_direct24): Likewise. | |
88 | (grub_video_i386_vbefill_direct16): Likewise. | |
89 | (grub_video_i386_vbefill_direct8): Likewise. | |
90 | ||
91 | * include/grub/video.h (grub_video_blit_format): Removed | |
92 | GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8. | |
93 | (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888, | |
94 | GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888, | |
95 | GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565, | |
96 | GRUB_VIDEO_BLIT_FORMAT_BGR_565. | |
97 | ||
98 | * video/video.c (grub_video_get_blit_format): Updated to use new | |
99 | blit formats. Added handling for 16 bit color modes. | |
100 | ||
101 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new | |
102 | fillers. | |
103 | (common_blitter): Updated to use new blitters. | |
104 | ||
105 | * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): | |
106 | Removed. | |
107 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise. | |
108 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
109 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
110 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
111 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
112 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
113 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
114 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
115 | (grub_video_i386_vbeblit_index_index): Likewise. | |
116 | (grub_video_i386_vbeblit_replace_directN): Added. | |
117 | (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise. | |
118 | (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise. | |
119 | (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise. | |
120 | (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise. | |
121 | (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise. | |
122 | (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise. | |
123 | (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise. | |
124 | (grub_video_i386_vbeblit_replace_index_RGB888): Likewise. | |
125 | (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise. | |
126 | (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise. | |
127 | (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise. | |
128 | (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise. | |
129 | (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise. | |
130 | ||
131 | * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed. | |
132 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
133 | (grub_video_i386_vbefill_index): Likewise. | |
134 | (grub_video_i386_vbefill_direct32): Added. | |
135 | (grub_video_i386_vbefill_direct24): Likewise. | |
136 | (grub_video_i386_vbefill_direct16): Likewise. | |
137 | (grub_video_i386_vbefill_direct8): Likewise. | |
138 | ||
139 | * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter | |
140 | types. | |
141 | ||
142 | * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter | |
143 | types. | |
144 | ||
145 | * video/readers/png.c (grub_png_decode_image_header): Adapt to new | |
146 | blitter types. | |
147 | ||
148 | * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter | |
149 | types. | |
150 | ||
e8a83df6 | 151 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
152 | ||
153 | * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for | |
154 | RAID level 1. | |
155 | ||
6bcd8ee5 | 156 | 2008-09-06 Felix Zielcke <fzielcke@z-51.de> |
c375ae58 | 157 | |
6bcd8ee5 | 158 | * fs/iso9660.c (grub_iso9660_date): New structure. |
159 | (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member. | |
160 | (grub_iso9660_uuid): New function. | |
c375ae58 | 161 | |
59261157 | 162 | 2008-09-05 Bean <bean123ch@gmail.com> |
163 | ||
164 | * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names. | |
165 | ||
166 | * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case | |
167 | insensitive bit for names in Win32 and Win32 & DOS namespace. | |
168 | ||
169 | * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro. | |
170 | ||
171 | * include/grub/types.h (LONG_MAX): Likewise. | |
172 | ||
58b6645a | 173 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> |
174 | ||
4ee55921 | 175 | * util/getroot.c: Include <config.h>. |
176 | (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices, | |
177 | add support for /dev/md/N devices and handle LVM double dash escaping. | |
178 | ||
179 | 2008-09-04 Felix Zielcke <fzielcke@z-51.de> | |
180 | ||
181 | * config.guess: Update to latest version from config git. | |
182 | * config.sub: Likewise. | |
58b6645a | 183 | |
9124f65d | 184 | 2008-09-03 Robert Millan <rmh@aybabtu.com> |
185 | ||
186 | * disk/scsi.c (grub_scsi_open): Remove size limit when printing | |
187 | `disk->total_sectors'. | |
188 | ||
a0224a4e | 189 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
190 | ||
191 | * include/grub/normal.h: Fixed incorrect comment for | |
192 | GRUB_COMMAND_FLAG_NO_ARG_PARSE. | |
193 | ||
f0619958 | 194 | 2008-09-01 Colin D Bennett <colin@gibibit.com> |
195 | ||
196 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant | |
197 | values with defines. | |
198 | ||
199 | * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added. | |
200 | (GRUB_VBE_MODEATTR_RESERVED_1): Likewise. | |
201 | (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise. | |
202 | (GRUB_VBE_MODEATTR_COLOR): Likewise. | |
203 | (GRUB_VBE_MODEATTR_GRAPHICS): Likewise. | |
204 | (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise. | |
205 | (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise. | |
206 | (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise. | |
207 | (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise. | |
208 | (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise. | |
209 | (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise. | |
210 | (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise. | |
211 | (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise. | |
212 | (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise. | |
213 | (GRUB_VBE_MEMORY_MODEL_CGA): Likewise. | |
214 | (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise. | |
215 | (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise. | |
216 | (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise. | |
217 | (GRUB_VBE_MEMORY_MODEL_YUV): Likewise. | |
218 | ||
93d5cbf8 | 219 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
220 | ||
221 | * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix | |
222 | declaration. | |
223 | (grub_multiboot): Fix a few warnings. | |
224 | ||
21751d50 | 225 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
226 | ||
227 | * loader/i386/pc/multiboot.c: Update comment not to say that | |
228 | boot_device support is unimplemented. | |
229 | ||
e27a75c5 | 230 | 2008-08-31 Robert Millan <rmh@aybabtu.com> |
231 | ||
232 | * loader/i386/pc/multiboot.c: Update comment not to say that a.out | |
233 | or memory map support are unimplemented. | |
234 | ||
64d2d53c | 235 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
236 | ||
237 | * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories. | |
238 | ||
c08a6c18 | 239 | 2008-08-31 Colin D Bennett <colin@gibibit.com> |
240 | ||
241 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and | |
242 | total video memory in 'vbeinfo' output; show color format details for | |
243 | each video mode. | |
244 | ||
7c5d8d95 | 245 | 2008-08-30 Pavel Roskin <proski@gnu.org> |
246 | ||
247 | * util/genmoddep.c: Remove for real this time. | |
248 | * DISTLIST: Remove util/genmoddep.c. | |
249 | ||
4cebd25a | 250 | 2008-08-30 Robert Millan <rmh@aybabtu.com> |
251 | ||
252 | * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment | |
253 | as required by Multiboot spec (it was already 4-byte aligned, but | |
254 | only by chance). | |
255 | ||
b497a269 | 256 | 2008-08-29 Pavel Roskin <proski@gnu.org> |
257 | ||
e3925185 | 258 | * kern/powerpc/ieee1275/crt0.S: Rename to ... |
259 | * kern/powerpc/ieee1275/startup.S: ... this. | |
260 | * conf/powerpc-ieee1275.rmk: Adjust for the above. | |
261 | * DISTLIST: Likewise. | |
262 | ||
b497a269 | 263 | * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and |
264 | grub/cpu/kernel.h. Add start label for consistency with other | |
265 | platforms. Add grub_prefix immediately after start. Add jump | |
266 | to the code after grub_prefix. | |
267 | * include/grub/powerpc/kernel.h: Provide valid values for | |
268 | GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END. | |
269 | ||
6e5a42fe | 270 | 2008-08-29 Bean <bean123ch@gmail.com> |
271 | ||
272 | * configure.ac: Change host_os to cygwin for mingw. | |
273 | (asprintf): New check for function. | |
274 | ||
275 | * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with | |
276 | #if ! defined (__CYGWIN__) && ! defined (__MINGW32__). | |
277 | ||
278 | * include/grub/util/misc.h: #include <config.h> and <grub/types.h>, | |
279 | declear asprintf if HAVE_ASPRINTF is not set, declear fseeko, ftello, | |
280 | sync, sleep and grub_util_get_disk_size for mingw. | |
281 | ||
282 | * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size | |
283 | to get size in mingw. | |
284 | (open_device): Use flag O_BINARY if it's defined. | |
285 | (find_root_device): Add dummy code for mingw. | |
286 | ||
287 | * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw. | |
288 | (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw. | |
289 | (get_scsi_disk_name): Return 0 for mingw. | |
290 | ||
291 | * util/hostfs.c: #include <grub/util/misc.h>. | |
292 | (grub_hostfs_open): Use "rb" flag to open file, use | |
293 | grub_util_get_disk_size to get disk size for mingw. | |
294 | ||
295 | * util/misc.c: #include <windows.h> and <winioctl.h> in mingw. | |
296 | (asprintf): New function if HAVE_ASPRINTF is not set. | |
297 | (sync): New function for mingw. | |
298 | (sleep): Likewise. | |
299 | (grub_util_get_disk_size): Likewise. | |
300 | ||
ab3f2673 | 301 | 2008-08-28 Pavel Roskin <proski@gnu.org> |
302 | ||
303 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
304 | kern/time.c. | |
305 | ||
1c282483 | 306 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
307 | ||
308 | * util/biosdisk.c (find_grub_drive): Declare missing `i' variable. | |
309 | ||
678e849c | 310 | 2008-08-28 Robert Millan <rmh@aybabtu.com> |
311 | ||
312 | Change find_grub_drive() syntax so it doesn't prevent it from | |
313 | detecting NULL names as errors. | |
314 | ||
315 | * util/biosdisk.c (find_grub_drive): Move free slot search code | |
316 | from here ... | |
317 | (find_free_slot): ... to here. | |
318 | (read_device_map): Use find_free_slot() to search for free slots. | |
319 | ||
965c75ca | 320 | 2008-08-27 Marco Gerards <marco@gnu.org> |
321 | ||
322 | * conf/common.rmk (pkglib_MODULES): Add scsi.mod. | |
323 | (scsi_mod_SOURCES): New variable. | |
324 | (scsi_mod_CFLAGS): Likewise | |
325 | (scsi_mod_LDFLAGS): Likewise. | |
326 | ||
327 | * disk/scsi.c: New file. | |
328 | ||
329 | * include/grub/scsi.h: Likewise. | |
330 | ||
331 | * include/grub/scsicmd.h: Likewise. | |
332 | ||
333 | * disk/ata.c: Include <grub/scsi.h>. | |
334 | (grub_atapi_packet): Do not use grub_ata_cmd, use registers | |
335 | instead. | |
336 | (grub_ata_iterate): Skip ATAPI devices. | |
337 | (grub_ata_open): Only handle ATAPI devices. | |
338 | (struct grub_atapi_read): Removed. | |
339 | (grub_atapi_readsector): Likewise. | |
340 | (grub_ata_read): No longer handle ATAPI devices. | |
341 | (grub_ata_write): Likewise. | |
342 | (grub_atapi_iterate): New function. | |
343 | (grub_atapi_read): Likewise. | |
344 | (grub_atapi_write): Likewise. | |
345 | (grub_atapi_open): Likewise. | |
346 | (grub_atapi_close): Likewise. | |
347 | (grub_atapi_dev): New variable. | |
348 | (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device. | |
349 | (GRUB_MOD_FINI(ata)): Unregister ATAPI. | |
350 | ||
351 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
352 | `GRUB_DISK_DEVICE_SCSI_ID'. | |
353 | ||
c07ae501 | 354 | 2008-08-26 Robert Millan <rmh@aybabtu.com> |
355 | ||
356 | * util/biosdisk.c (grub_util_biosdisk_open, open_device) | |
357 | (grub_util_biosdisk_get_grub_dev): Make error messages a bit more | |
358 | descriptive. | |
359 | ||
5ed20adc | 360 | 2008-08-23 Bean <bean123ch@gmail.com> |
361 | ||
362 | * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c. | |
363 | (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
364 | disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c. | |
365 | (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and | |
366 | dm_nv.mod. | |
367 | (raid5rec_mod_SOURCES): New macro. | |
368 | (raid5rec_mod_CFLAGS): Likewise. | |
369 | (raid5rec_mod_LDFLAGS): Likewise. | |
370 | (raid6rec_mod_SOURCES): Likewise. | |
371 | (raid6rec_mod_CFLAGS): Likewise. | |
372 | (raid6rec_mod_LDFLAGS): Likewise. | |
373 | (mdraid_mod_SOURCES): Likewise. | |
374 | (mdraid_mod_CFLAGS): Likewise. | |
375 | (mdraid_mod_LDFLAGS): Likewise. | |
376 | (dm_nv_mod_SOURCES): Likewise. | |
377 | (dm_nv_mod_CFLAGS): Likewise. | |
378 | (dm_nv_mod_LDFLAGS): Likewise. | |
379 | ||
380 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c. | |
381 | (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c, | |
382 | disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
383 | ||
384 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c, | |
385 | disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c. | |
386 | ||
387 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
388 | ||
389 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
390 | ||
391 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
392 | ||
393 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
394 | ||
395 | * disk/raid5_recover.c: New file. | |
396 | ||
397 | * disk/raid6_recover.c: Likewise. | |
398 | ||
399 | * disk/mdraid_linux.c: Likewise. | |
400 | ||
401 | * disk/dmraid_nvidia.c: Likewise. | |
402 | ||
403 | * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to | |
404 | ULONG_MAX. | |
405 | ||
406 | * disk/raid.c (grub_raid_open): Use the size of the smallest disk to | |
407 | calculate the size of raid device. | |
408 | (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four | |
409 | different layout of raid5. | |
410 | (grub_raid_scan_device): Remove code specific to mdraid. | |
411 | (grub_raid_list): New variable. | |
412 | (free_array): New function. | |
413 | (grub_raid_register): Likewise. | |
414 | (grub_raid_unregister): Likewise. | |
415 | (grub_raid_rescan): Likewise. | |
416 | (GRUB_MOD_INIT): Don't iterate device here. | |
417 | (GRUB_MOD_FINI): Use free_array to release resource. | |
418 | ||
419 | * include/grub/raid.h: Remove macro and structure specific to mdraid. | |
420 | (grub_raid5_recover_func_t): New function variable type. | |
421 | (grub_raid6_recover_func_t): Likewise. | |
422 | (grub_raid5_recover_func): New variable. | |
423 | (grub_raid6_recover_func): Likewise. | |
424 | (grub_raid_register): New function. | |
425 | (grub_raid_unregister): Likewise. | |
426 | (grub_raid_rescan): Likewise. | |
427 | (grub_raid_block_xor): Likewise. | |
428 | ||
429 | * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>. | |
430 | (CMD_CRC): New macro. | |
431 | (part): Removed. | |
432 | (read_file): Handle device as well as file. | |
433 | (cmd_crc): New function. | |
434 | (fstest): Handle multiple disks. | |
435 | (options): Remove part, raw and long, add root and diskcount. | |
436 | (usage): Add crc, remove -p, -r, -l, add -r and -c. | |
437 | (main): Find the first non option entry and ignore subsequence options, | |
438 | add handling for the new options, support multiple disks. | |
439 | ||
440 | * util/grub-probe.c (probe): Add mdraid to abstraction_name. | |
441 | ||
29c18915 | 442 | 2008-08-23 Bean <bean123ch@gmail.com> |
443 | ||
444 | * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0. | |
445 | ||
446 | * genfslist.sh: Ignore kernel.mod. | |
447 | ||
448 | * genpartmaplist.sh: Likewise. | |
449 | ||
8415f261 | 450 | 2008-08-23 Robert Millan <rmh@aybabtu.com> |
451 | ||
452 | * util/getroot.c (find_root_device): Skip anything that starts with | |
453 | a dot, not just directories. This avoids things like /dev/.tmp.md0. | |
454 | ||
d5a7dc5b | 455 | 2008-08-22 Felix Zielcke <fzielcke@z-51.de> |
456 | ||
457 | * util/update-grub.in (GRUB_GFXMODE): Export variable. | |
458 | * util/grub.d/00_header.in: Allow the administrator to change default | |
459 | gfxmode via ${GRUB_GFXMODE}. | |
460 | ||
380cfbb4 | 461 | 2008-08-21 Felix Zielcke <fzielcke@z-51.de> |
462 | ||
463 | * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak. | |
464 | ||
c9baafe7 | 465 | 2008-08-21 Robert Millan <rmh@aybabtu.com> |
466 | ||
467 | * loader/i386/linux.c: New file. Implements generic 32-bit Linux | |
468 | loader. | |
469 | * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace | |
470 | `loader/i386/pc/linux.c' with `loader/i386/linux.c'. | |
471 | ||
e290bef2 | 472 | 2008-08-20 Carles Pina i Estany <carles@pina.cat> |
473 | ||
474 | * menu/normal.c (run_menu): Replace hardcoded numbers with macros | |
475 | (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN) | |
476 | ||
f9dbfc96 | 477 | 2008-08-19 Robert Millan <rmh@aybabtu.com> |
478 | ||
479 | * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove. | |
480 | (struct grub_virtual_screen): Remove `cursor_color'. | |
481 | (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color' | |
482 | initialization. | |
483 | (write_cursor): Use `virtual_screen.fg_color' to draw cursor. | |
484 | ||
dd6bd6ab | 485 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
486 | ||
487 | Unify (identical) linux_normal.c files. | |
488 | * loader/i386/efi/linux_normal.c: Move from here ... | |
489 | * loader/linux_normal.c: ... to here. Update all users. | |
490 | * loader/i386/pc/linux_normal.c: Delete. Update all users. | |
491 | * loader/i386/ieee1275/linux_normal.c: Likewise. | |
492 | ||
7f42f83e | 493 | 2008-08-18 Robert Millan <rmh@aybabtu.com> |
494 | ||
495 | * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO) | |
496 | (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT) | |
497 | (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT) | |
498 | (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT) | |
499 | (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU): | |
500 | New macros. | |
501 | (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ... | |
502 | * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET) | |
503 | (GRUB_LINUX_CL_END_OFFSET): ... to here. | |
504 | * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ... | |
505 | (GRUB_LINUX_CL_OFFSET): ... this. Update all users. | |
506 | (GRUB_EFI_CL_END_OFFSET): Rename to ... | |
507 | (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users. | |
508 | (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization. | |
509 | Initialize `params->video_cursor_x' and `params->video_cursor_y' | |
510 | portably using grub_getxy(). | |
511 | Replace `-EFI' with `-bzImage' in boot message. | |
512 | ||
38487ddb | 513 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
514 | ||
515 | * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub). | |
516 | ||
deceb3ec | 517 | 2008-08-17 Robert Millan <rmh@aybabtu.com> |
518 | ||
519 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'. | |
520 | ||
521 | * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE) | |
522 | (GRUB_MACHINE_MEMORY_RESERVED): New macros. | |
523 | (grub_machine_mmap_iterate): New function declaration. | |
524 | * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New | |
525 | structure. | |
526 | (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New | |
527 | macros. | |
528 | ||
529 | * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region | |
530 | type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'. | |
531 | Move e820 parsing from here ... | |
532 | * kern/i386/pc/mmap.c: New file. | |
533 | (grub_machine_mmap_iterate): ... to here. | |
534 | ||
535 | * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'. | |
536 | (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ... | |
537 | (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users. | |
538 | (grub_available_iterate): Redeclare to return `void', and redeclare | |
539 | its hook to use grub_uint64_t as addr and size parameters, and rename | |
540 | to ... | |
541 | (grub_machine_mmap_iterate): ... this. Update all users. | |
542 | ||
543 | * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop | |
544 | to make it more readable. Rename to ... | |
545 | (grub_machine_mmap_iterate): ... this. | |
546 | ||
547 | * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables. | |
548 | (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions. | |
549 | (grub_multiboot): Allocate an extra region after the payload, and fill | |
550 | it with a Multiboot memory map. Adjust a.out loader to calculate size | |
551 | with the extra space. | |
552 | (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size | |
553 | with the extra space. | |
554 | ||
f8aa0f43 | 555 | 2008-08-17 Carles Pina i Estany <carles@pina.cat> |
556 | ||
9807deb9 | 557 | * menu/normal.c (run_menu): Add Home and End keys in grub-menu. |
f8aa0f43 | 558 | |
605f5bb6 | 559 | 2008-08-17 Felix Zielcke <fzielcke@z-51.de> |
560 | ||
561 | * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc, | |
562 | mdate-sh to the list `find' searches for. | |
563 | * DISTLIST: Regenerated. | |
564 | ||
210db6c6 | 565 | 2008-08-16 Felix Zielcke <fzielcke@z-51.de> |
566 | ||
567 | * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh, | |
568 | genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in, | |
48cdbfd4 | 569 | genmoddep.awk, gensymlist.sh.in. |
570 | (DISTDIRS): Add bus, docs, hook, lib. | |
210db6c6 | 571 | * DISTLIST: Regenerated. |
48cdbfd4 | 572 | * NEWS: Add cygwin support and change the `os-prober' entry a bit. |
210db6c6 | 573 | |
1082b929 | 574 | 2008-08-16 Robert Millan <rmh@aybabtu.com> |
575 | ||
576 | * disk/raid.c (grub_raid_init): Handle/report errors set by | |
577 | grub_device_iterate(). | |
578 | * disk/lvm.c (grub_lvm_init): Likewise. | |
579 | ||
42ce5170 | 580 | 2008-08-15 Bean <bean123ch@gmail.com> |
581 | ||
582 | * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
583 | and datehook.mod. | |
584 | (datetime_mod_SOURCES): New macro. | |
585 | (datetime_mod_CFLAGS): Likewise. | |
586 | (datetime_mod_LDFLAGS): Likewise. | |
587 | (date_mod_SOURCES): Likewise. | |
588 | (date_mod_CFLAGS): Likewise. | |
589 | (date_mod_LDFLAGS): Likewise. | |
590 | (datehook_mod_SOURCES): Likewise. | |
591 | (datehook_mod_CFLAGS): Likewise. | |
592 | (datehook_mod_LDFLAGS): Likewise. | |
593 | ||
594 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
595 | and datehook.mod. | |
596 | (datetime_mod_SOURCES): New macro. | |
597 | (datetime_mod_CFLAGS): Likewise. | |
598 | (datetime_mod_LDFLAGS): Likewise. | |
599 | (date_mod_SOURCES): Likewise. | |
600 | (date_mod_CFLAGS): Likewise. | |
601 | (date_mod_LDFLAGS): Likewise. | |
602 | (datehook_mod_SOURCES): Likewise. | |
603 | (datehook_mod_CFLAGS): Likewise. | |
604 | (datehook_mod_LDFLAGS): Likewise. | |
605 | ||
606 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
607 | and datehook.mod. | |
608 | (datetime_mod_SOURCES): New macro. | |
609 | (datetime_mod_CFLAGS): Likewise. | |
610 | (datetime_mod_LDFLAGS): Likewise. | |
611 | (date_mod_SOURCES): Likewise. | |
612 | (date_mod_CFLAGS): Likewise. | |
613 | (date_mod_LDFLAGS): Likewise. | |
614 | (datehook_mod_SOURCES): Likewise. | |
615 | (datehook_mod_CFLAGS): Likewise. | |
616 | (datehook_mod_LDFLAGS): Likewise. | |
617 | ||
618 | * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
619 | and datehook.mod. | |
620 | (datetime_mod_SOURCES): New macro. | |
621 | (datetime_mod_CFLAGS): Likewise. | |
622 | (datetime_mod_LDFLAGS): Likewise. | |
623 | (date_mod_SOURCES): Likewise. | |
624 | (date_mod_CFLAGS): Likewise. | |
625 | (date_mod_LDFLAGS): Likewise. | |
626 | (datehook_mod_SOURCES): Likewise. | |
627 | (datehook_mod_CFLAGS): Likewise. | |
628 | (datehook_mod_LDFLAGS): Likewise. | |
629 | ||
630 | * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod | |
631 | and datehook.mod. | |
632 | (datetime_mod_SOURCES): New macro. | |
633 | (datetime_mod_CFLAGS): Likewise. | |
634 | (datetime_mod_LDFLAGS): Likewise. | |
635 | (date_mod_SOURCES): Likewise. | |
636 | (date_mod_CFLAGS): Likewise. | |
637 | (date_mod_LDFLAGS): Likewise. | |
638 | (datehook_mod_SOURCES): Likewise. | |
639 | (datehook_mod_CFLAGS): Likewise. | |
640 | (datehook_mod_LDFLAGS): Likewise. | |
641 | ||
642 | * kern/env.c (grub_env_insert): Fix a bug in prevp pointer. | |
643 | ||
644 | * commands/date.c: New file. | |
645 | ||
646 | * hook/datehook.c: Likewise. | |
647 | ||
648 | * include/grub/lib/datetime.h: Likewise. | |
649 | ||
650 | * include/grub/i386/cmos.h: Likewise. | |
651 | ||
652 | * lib/datetime.c: Likewise. | |
653 | ||
654 | * lib/i386/datetime.c: Likewise. | |
655 | ||
656 | * lib/efi/datetime.c: Likewise. | |
657 | ||
0e9242da | 658 | 2008-08-14 Robert Millan <rmh@aybabtu.com> |
659 | ||
660 | * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'. | |
661 | (grub_mkelfimage_SOURCES): New variable. | |
662 | (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise. | |
663 | ||
664 | * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES) | |
665 | (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove. | |
666 | * conf/powerpc-ieee1275.rmk: Likewise. | |
667 | * conf/i386-ieee1275.rmk: Likewise. | |
668 | ||
669 | * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'. | |
670 | * kern/i386/coreboot/init.c: Likewise. | |
671 | ||
672 | * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>' | |
673 | with `<grub/cpu/kernel.h>'. | |
674 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed | |
675 | to ... | |
676 | (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this. | |
677 | * kern/i386/coreboot/startup.S: Likewise. | |
678 | ||
679 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN) | |
680 | (GRUB_MOD_GAP): Remove. | |
681 | * include/grub/powerpc/kernel.h: New file. | |
682 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX) | |
683 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
684 | * include/grub/i386/kernel.h: New file. | |
685 | * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN) | |
686 | (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX) | |
687 | (GRUB_KERNEL_MACHINE_DATA_END): Remove. | |
688 | ||
689 | * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use | |
690 | `grub-mkelfimage'. | |
691 | Use --directory when invoking grub_mkimage. | |
692 | ||
693 | * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'. | |
694 | (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and | |
695 | GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END | |
696 | and GRUB_KERNEL_CPU_PREFIX. | |
697 | ||
b86408f8 | 698 | 2008-08-14 Felix Zielcke <fzielcke@z-51.de> |
699 | ||
d5e619ca | 700 | * include/grub/err.h (grub_err_printf): New function prototype. |
701 | * util/misc.c (grub_err_printf): New function. | |
702 | * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for | |
703 | grub_printf. | |
704 | * kern/err.c (grub_print_error): Use grub_err_printf. | |
b86408f8 | 705 | |
7161f0e0 | 706 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
707 | ||
708 | * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry. | |
709 | ||
a1967522 | 710 | 2008-08-13 Robert Millan <rmh@aybabtu.com> |
711 | ||
712 | * docs/grub.cfg: Use the native device name for the example GNU/Hurd | |
713 | boot entry. | |
714 | ||
371458b5 | 715 | 2008-08-12 Robert Millan <rmh@aybabtu.com> |
716 | ||
717 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part | |
718 | of the relocation code from here ... | |
719 | (grub_multiboot): ... to here. | |
720 | (forward_relocator, backward_relocator): Move from here ... | |
721 | * kern/i386/loader.S (grub_multiboot_forward_relocator) | |
722 | (grub_multiboot_backward_relocator): ... to here. | |
723 | (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot | |
724 | magic in %eax. Use %ebp for jumping (so %edx is not trashed). | |
725 | * include/grub/i386/loader.h (grub_multiboot_forward_relocator) | |
726 | (grub_multiboot_forward_relocator_end) | |
727 | (grub_multiboot_backward_relocator) | |
728 | (grub_multiboot_backward_relocator_end): New variables. | |
729 | ||
05f9452b | 730 | 2008-08-12 Bean <bean123ch@gmail.com> |
731 | ||
732 | * disk/raid.c (grub_raid_read): Fix a bug in raid0 code. | |
733 | ||
20024ab0 | 734 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
735 | ||
736 | * kern/i386/linuxbios/startup.S: Move from here ... | |
737 | * kern/i386/coreboot/startup.S: ... to here. | |
738 | ||
739 | * kern/i386/linuxbios/init.c: Move from here ... | |
740 | * kern/i386/coreboot/init.c: ... to here. | |
741 | ||
742 | * kern/i386/linuxbios/table.c: Move from here ... | |
743 | * kern/i386/coreboot/mmap.c: ... to here. | |
744 | ||
745 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files. | |
746 | ||
e352e9cd | 747 | 2008-08-11 Robert Millan <rmh@aybabtu.com> |
748 | ||
749 | * kern/device.c (grub_device_open): Do not handle grub_disk_open() | |
750 | errors. Leave it to the upper layer to handle them. | |
751 | ||
2d05bc6a | 752 | 2008-08-09 Christian Franke <franke@computer.org> |
753 | ||
754 | * Makefile.in: Add `target_os' and `enable_grub_pe2elf'. | |
755 | * conf/common.rmk: Install `grub-pe2elf' only if requested. | |
756 | Install `grub.d/10_windows' only on Cygwin. | |
757 | * configure.ac: Add subst of `target_os'. | |
758 | Check `target_os' also before setting TARGET_OBJ2ELF. | |
759 | Add `--enable-grub-pe2elf'. | |
760 | ||
042bd419 | 761 | 2008-08-08 Robert Millan <rmh@aybabtu.com> |
762 | ||
763 | * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
764 | (grub_last_time): Change type to grub_uint64_t. | |
765 | (grub_disk_open): Migrate code from to using grub_get_time_ms(). | |
766 | (grub_disk_close): Likewise. | |
767 | ||
768 | * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'. | |
769 | (run_menu): Migrate code from to using grub_get_time_ms(). | |
770 | ||
771 | * util/misc.c (grub_get_time_ms): New function. | |
772 | ||
7f280db5 | 773 | 2008-08-08 Marco Gerards <marco@gnu.org> |
774 | ||
775 | * disk/ata.c (grub_ata_regget): Change return type to | |
776 | `grub_uint8_t'. | |
777 | (grub_ata_regget2): Likewise. | |
778 | (grub_ata_wait_status): New function. | |
779 | (grub_ata_wait_busy): Removed function, updated all users to use | |
780 | `grub_ata_wait_status'. | |
781 | (grub_ata_wait_drq): Likewise. | |
782 | (grub_ata_cmd): New function. | |
783 | (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add | |
784 | error handling. | |
785 | (grub_ata_pio_write): Add error handling. | |
786 | (grub_atapi_identify): Likewise. | |
787 | (grub_atapi_packet): Use `grub_ata_cmd' and improve error | |
788 | handling. | |
789 | (grub_ata_identify): Use `grub_ata_cmd' and improve error | |
790 | handling. Actually use the detected registers. Reorder the | |
791 | detection logic such that it is easier to read. | |
792 | (grub_ata_pciinit): Do not assign the same ID to each controller. | |
793 | (grub_ata_setaddress): Use `grub_ata_cmd' and improve error | |
794 | handling. | |
795 | (grub_atapi_readsector): Check the result of `grub_ata_pio_read'. | |
796 | ||
797 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'. | |
798 | ||
1fbc5e66 | 799 | 2008-08-08 Marco Gerards <marco@gnu.org> |
800 | ||
801 | * NEWS: Update. | |
802 | ||
819ce6c0 | 803 | 2008-08-07 Bean <bean123ch@gmail.com> |
804 | ||
805 | * include/grub/x86_64/pci.h: New file. | |
806 | ||
5c41d44d | 807 | 2008-08-07 Christian Franke <franke@computer.org> |
808 | ||
809 | * kern/i386/pit.c (TIMER2_SPEAKER): New define. | |
810 | (TIMER2_GATE): Likewise. | |
811 | (grub_pit_wait): Add enable/disable of the timer2 gate | |
812 | bit of port 0x61. This fixes a possible infinite loop. | |
813 | ||
5ebc275d | 814 | 2008-08-07 Bean <bean123ch@gmail.com> |
815 | ||
816 | * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c, | |
817 | kern/i386/tsc.c and kern/i386/pit.c. | |
818 | ||
819 | * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle | |
820 | x86_64 platform. | |
821 | ||
822 | * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with | |
823 | <grub/i386/tsc.h>. | |
824 | ||
825 | * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>. | |
826 | ||
e383b3d0 | 827 | 2008-08-07 Bean <bean123ch@gmail.com> |
828 | ||
829 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c. | |
830 | ||
831 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c, | |
832 | ||
833 | * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid | |
834 | multiple inclusion. Add #include <grub/types.h>. | |
835 | ||
1cbb58ac | 836 | 2008-08-06 Christian Franke <franke@computer.org> |
837 | ||
838 | * conf/common.rmk: Build and install `10_windows'. | |
839 | * util/grub.d/10_windows.in: New script. | |
840 | ||
337f5a1e | 841 | 2008-08-06 Pavel Roskin <proski@gnu.org> |
842 | ||
843 | * kern/i386/pit.c: Include `<grub/i386/pit.h>'. | |
844 | ||
057bc4ac | 845 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
846 | ||
847 | * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable. | |
848 | * kern/i386/tsc.c: Include `<grub/i386/pit.h>'. | |
849 | ||
2b99f123 | 850 | 2008-08-06 Bean <bean123ch@gmail.com> |
851 | ||
852 | * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size. | |
853 | (grub_pxefs_fs_int): Remove dummy definition. | |
854 | (grub_pxefs_open): Use data->block_size to store the current block | |
855 | size setting. | |
856 | (grub_pxefs_read): Use block size stored in data->block_size. As the | |
857 | value of grub_pxe_blksize can be changed after the file is opened. | |
858 | ||
9f0234cb | 859 | 2008-08-06 Bean <bean123ch@gmail.com> |
860 | ||
861 | * fs/i386/pc/pxe.c (curr_file): new variable. | |
862 | (grub_pxefs_open): Simply the handling of pxe file system. Don't | |
863 | require the dummy internal file system anymore. | |
864 | (grub_pxefs_read): Removed. | |
865 | (grub_pxefs_close): Likewise. | |
866 | (grub_pxefs_fs_int): Likewise. | |
867 | (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp | |
868 | connection when we switch file. | |
869 | (grub_pxefs_close_int): Renamed to grub_pxefs_close. | |
870 | ||
a55d42e0 | 871 | 2008-08-06 Robert Millan <rmh@aybabtu.com> |
872 | ||
873 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and | |
874 | `halt.mod'. | |
875 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS) | |
876 | (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables. | |
877 | ||
878 | * kern/i386/halt.c: New file. | |
879 | * kern/i386/reboot.c: Likewise. | |
880 | * include/grub/i386/reboot.h: Likewise. | |
881 | * include/grub/i386/halt.h: Likewise. | |
882 | ||
883 | * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]: | |
884 | Include `<grub/cpu/halt.h>'. | |
885 | * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI] | |
886 | [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'. | |
887 | ||
888 | * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'. | |
889 | (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA) | |
890 | (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ) | |
891 | (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT) | |
892 | (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY) | |
893 | (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move | |
894 | from here ... | |
895 | * include/grub/i386/at_keyboard.h: ... to here. | |
896 | ||
24371d26 | 897 | 2008-08-05 Robert Millan <rmh@aybabtu.com> |
898 | ||
899 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'. | |
900 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise. | |
901 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add | |
902 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
903 | `kern/generic/millisleep.c'. | |
904 | ||
905 | * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait() | |
906 | instead of grub_get_rtc(). | |
907 | (grub_tsc_init): Initialize `tsc_boot_time'. | |
908 | ||
909 | * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub. | |
910 | (grub_machine_init): Use grub_tsc_init() rather than | |
911 | installing an RTC-based handler via grub_install_get_time_ms(). | |
912 | ||
913 | * kern/i386/pit.c: New file. | |
914 | * include/grub/i386/pit.h: Likewise. | |
915 | ||
9e7007b3 | 916 | 2008-08-05 Bean <bean123ch@gmail.com> |
917 | ||
918 | * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe. | |
919 | ||
920 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h. | |
921 | (pkglib_MODULES): Add pxe.mod and pxecmd.mod. | |
922 | (pxe_mod_SOURCES): New macro. | |
923 | (pxe_mod_CFLAGS): Likewise. | |
924 | (pxe_mod_LDFLAGS): Likewise. | |
925 | (pxecmd_mod_SOURCES): Likewise. | |
926 | (pxecmd_mod_CFLAGS): Likewise. | |
927 | (pxecmd_mod_LDFLAGS): Likewise. | |
928 | ||
929 | * kern/i386/pc/startup.S (grub_pxe_scan): New function. | |
930 | (grub_pxe_call): Likewise. | |
931 | ||
932 | * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID. | |
933 | ||
934 | * commands/i386/pc/pxecmd.c: New file. | |
935 | ||
9f0234cb | 936 | * fs/i386/pc/pxe.c: Likewise. |
9e7007b3 | 937 | |
938 | * include/grub/i386/pc/pxe.h: Likewise. | |
939 | ||
6977d49f | 940 | 2008-08-05 Bean <bean123ch@gmail.com> |
941 | ||
942 | * util/console.c (grub_console_cur_color): New variable. | |
943 | (grub_console_standard_color): Likewise. | |
944 | (grub_console_normal_color): Likewise. | |
945 | (grub_console_highlight_color): Likewise. | |
946 | (color_map): Likewise. | |
947 | (use_color): Likewise. | |
948 | (NUM_COLORS): New macro. | |
949 | (grub_ncurses_setcolorstate): Handle color properly. | |
950 | (grub_ncurses_setcolor): Don't change color here, just remember the | |
951 | settings, color will be set in grub_ncurses_setcolorstate. | |
952 | (grub_ncurses_getcolor): New function. | |
953 | (grub_ncurses_init): Initialize color pairs. | |
954 | (grub_ncurses_term): New member grub_ncurses_getcolor. | |
955 | ||
9c2ff3ee | 956 | 2008-08-05 Colin D Bennett <colin@gibibit.com> |
337f5a1e | 957 | |
9c2ff3ee | 958 | High resolution timer support. Implemented for x86 CPUs using TSC. |
959 | Extracted generic grub_millisleep() so it's linked in only as needed. | |
960 | This requires a Pentium compatible CPU; if the RDTSC instruction is | |
961 | not supported, then it falls back on the generic grub_get_time_ms() | |
962 | implementation that uses the machine's RTC. | |
963 | ||
964 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c', | |
965 | `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and | |
966 | `kern/generic/millisleep.c'. | |
967 | ||
968 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c', | |
969 | `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'. | |
970 | ||
971 | * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add | |
972 | `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'. | |
973 | ||
974 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
975 | ||
976 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add | |
977 | `kern/generic/millisleep.c'. | |
978 | ||
979 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
980 | ||
981 | * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'. | |
982 | ||
983 | * kern/generic/rtc_get_time_ms.c: New file. | |
984 | ||
985 | * kern/generic/millisleep.c: New file. | |
337f5a1e | 986 | |
9c2ff3ee | 987 | * kern/misc.c: Don't include |
988 | <kern/time.h> anymore. | |
989 | (grub_millisleep_generic): Removed. | |
990 | ||
991 | * commands/sleep.c (grub_interruptible_millisleep): Uses | |
992 | grub_get_time_ms() instead of grub_get_rtc(). | |
993 | ||
994 | * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline | |
995 | function. | |
996 | (grub_cpu_is_cpuid_supported): New inline function. | |
997 | (grub_cpu_is_tsc_supported): New inline function. | |
998 | (grub_tsc_init): New function prototype. | |
999 | (grub_tsc_get_time_ms): New function prototype. | |
1000 | ||
1001 | * kern/i386/tsc.c (grub_get_time_ms): New file. | |
1002 | ||
1003 | * include/grub/time.h: Include <grub/types.h. | |
1004 | (grub_millisleep_generic): Removed. | |
1005 | (grub_get_time_ms): New prototype. | |
1006 | (grub_install_get_time_ms): New prototype. | |
1007 | (grub_rtc_get_time_ms): New prototype. | |
1008 | ||
1009 | * kern/time.c (grub_get_time_ms): New function. | |
1010 | (grub_install_get_time_ms): New function. | |
1011 | ||
1012 | * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include | |
1013 | <grub/time.h> anymore. | |
1014 | (grub_millisleep): Removed. | |
1015 | (grub_machine_init): Call grub_tsc_init. | |
1016 | ||
1017 | * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC | |
1018 | get_time_ms() implementation. | |
1019 | ||
1020 | * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed. | |
1021 | (ieee1275_get_time_ms): New function. | |
1022 | (grub_machine_init): Install get_time_ms() implementation. | |
1023 | ||
1024 | * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>. | |
1025 | (grub_machine_init): Call grub_tsc_init(). | |
1026 | (grub_millisleep): Removed. | |
bf06a93f | 1027 | |
9c2ff3ee | 1028 | * kern/ieee1275/init.c (grub_millisleep): Removed. |
1029 | (grub_machine_init): Install ieee1275_get_time_ms() | |
1030 | implementation. | |
1031 | (ieee1275_get_time_ms): New function. | |
1032 | (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the | |
1033 | real work. | |
1034 | ||
9ec92aaf | 1035 | 2008-08-05 Marco Gerards <marco@gnu.org> |
1036 | ||
1037 | * disk/ata.c: Include <grub/pci.h>. | |
1038 | (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'. | |
1039 | (grub_ata_initialize): Rewritten. | |
1040 | (grub_ata_device_initialize): New function. | |
1041 | ||
8d23f507 | 1042 | 2008-08-04 Pavel Roskin <proski@gnu.org> |
1043 | ||
1044 | * kern/main.c: Include grub/mm.h. | |
1045 | ||
5e15ee3d | 1046 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
1047 | ||
1048 | * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS) | |
1049 | (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code | |
1050 | corruption problem). | |
1051 | ||
a9053f8f | 1052 | 2008-08-04 Robert Millan <rmh@aybabtu.com> |
1053 | ||
1054 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc | |
1055 | warnings introduced in my last commit. | |
1056 | ||
dd19c7d7 | 1057 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
1058 | ||
1059 | Make PCI available on all i386 architectures. | |
1060 | ||
1061 | * include/grub/i386/pc/pci.h: Move from here ... | |
1062 | * include/grub/i386/pci.h: ... to here. | |
1063 | ||
1064 | * include/grub/i386/pc/pci.h: Remove. | |
1065 | * include/grub/i386/efi/pci.h: Remove. | |
1066 | * include/grub/x86_64/efi/pci.h: Remove. | |
1067 | ||
1068 | * include/grub/pci.h: Replace `<grub/machine/pci.h>' with | |
1069 | `<grub/cpu/pci.h>'. | |
1070 | ||
1071 | * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'. | |
1072 | (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES) | |
1073 | (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables. | |
1074 | ||
1075 | * conf/i386-ieee1275.rmk: Likewise. | |
1076 | ||
e14a6184 | 1077 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
1078 | ||
1079 | * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro. | |
1080 | (grub_console_setcursor): Make it possible to set cursor off. | |
1081 | ||
52768e37 | 1082 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
1083 | ||
1084 | * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence | |
1085 | of modules instead of assuming which platform provides what. | |
1086 | * util/update-grub.in: Likewise. | |
1087 | ||
2d52f57f | 1088 | 2008-08-03 Robert Millan <rmh@aybabtu.com> |
1089 | ||
1090 | * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix' | |
1091 | instead of `grub_install_dos_part' to determine whether a drive needs | |
1092 | to be prepended to prefix (`grub_install_dos_part' is not reliable, | |
825aa57a | 1093 | because it can be overridden when loading GRUB via Multiboot). |
2d52f57f | 1094 | |
2a5cd121 | 1095 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
1096 | ||
1097 | * util/i386/pc/grub-install.in: Remove trailing slash from prefix. | |
1098 | ||
93808428 | 1099 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
1100 | ||
1101 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair | |
1102 | of informational grub_dprintf() calls. | |
1103 | ||
3bd0a12a | 1104 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
1105 | ||
1106 | * disk/memdisk.c (memdisk_size): Don't initialize. | |
1107 | (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate(). | |
1108 | ||
1109 | * include/grub/i386/pc/kernel.h | |
1110 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro. | |
1111 | (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift. | |
1112 | (grub_memdisk_image_size, grub_arch_memdisk_addr) | |
1113 | (grub_arch_memdisk_size): Remove. | |
1114 | ||
1115 | * include/grub/kernel.h (struct grub_module_header): Remove `offset' | |
1116 | field (was only used to transfer a constant). Add `type' field to | |
1117 | support multiple module types. | |
1118 | (grub_module_iterate): New function. | |
1119 | ||
1120 | * kern/device.c (grub_device_open): Do not hide error messages | |
1121 | when grub_disk_open() fails. Use grub_print_error() instead. | |
1122 | ||
1123 | * kern/i386/pc/init.c (grub_arch_modules_addr) | |
1124 | (grub_arch_memdisk_size): Remove functions. | |
1125 | (grub_arch_modules_addr): Return the module address in high memory | |
1126 | (now that it isn't copied anymore). | |
1127 | ||
1128 | * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable. | |
1129 | (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA | |
1130 | decompression routine (grub_total_module_size already includes that | |
1131 | now). Don't copy modules back to low memory. | |
1132 | ||
1133 | * kern/main.c: Include `<grub/mm.h>'. | |
1134 | (grub_load_modules): Split out (and use) ... | |
1135 | (grub_module_iterate): ... this function, which iterates through | |
1136 | module objects and runs a hook. | |
1137 | Comment out grub_mm_init_region() call, as it would cause non-ELF | |
1138 | modules to be overwritten. | |
1139 | ||
1140 | * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending | |
1141 | the memdisk image in its own region, make it part of the module list. | |
1142 | * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option. | |
1143 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
1144 | parameter to generate_image(). | |
1145 | (add_segments): Pass `memdisk_path' down to load_modules(). | |
1146 | (load_modules): Embed memdisk image in module section when requested. | |
1147 | * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize | |
1148 | `header.type' instead of `header.offset'. | |
1149 | ||
1150 | * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'. | |
1151 | (memdisk_mod_SOURCES, memdisk_mod_CFLAGS) | |
1152 | (memdisk_mod_LDFLAGS): New variables. | |
1153 | * conf/i386-coreboot.rmk: Likewise. | |
1154 | * conf/i386-ieee1275.rmk: Likewise. | |
1155 | ||
a927cc73 | 1156 | 2008-08-02 Robert Millan <rmh@aybabtu.com> |
1157 | ||
1158 | * loader/i386/pc/multiboot.c (playground, forward_relocator) | |
1159 | (backward_relocator): New variables. Used to allocate and relocate | |
1160 | the payload, respectively. | |
1161 | (grub_multiboot_load_elf32): Load into heap instead of requested | |
825aa57a | 1162 | address, install the appropriate relocator code in each bound of |
a927cc73 | 1163 | the payload, and set the entry point such that |
1164 | grub_multiboot_real_boot() will jump to one of them. | |
1165 | ||
1166 | * kern/i386/loader.S (grub_multiboot_payload_size) | |
1167 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
1168 | (grub_multiboot_payload_entry_offset): New variables. | |
1169 | (grub_multiboot_real_boot): Set cpu context to what the relocator | |
1170 | expects, and jump to the relocator instead of the payload. | |
1171 | ||
1172 | * include/grub/i386/loader.h (grub_multiboot_payload_size) | |
1173 | (grub_multiboot_payload_orig, grub_multiboot_payload_dest) | |
1174 | (grub_multiboot_payload_entry_offset): Export. | |
1175 | ||
b15d8a0c | 1176 | 2008-08-01 Bean <bean123ch@gmail.com> |
1177 | ||
1178 | * normal/menu_entry.c (editor_getline): Don't return the original | |
1179 | string as result, as it will be released by lexer once it has done | |
1180 | using it. | |
1181 | ||
cdfb3d22 | 1182 | 2008-08-01 Robert Millan <rmh@aybabtu.com> |
1183 | ||
1184 | * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from | |
1185 | within menuentries, not before them. | |
1186 | util/grub.d/10_hurd.in: Likewise. | |
1187 | ||
9175e93d | 1188 | 2008-08-01 Bean <bean123ch@gmail.com> |
1189 | ||
1190 | * conf/common.rmk (pkglib_MODULES): Add bufio.mod. | |
1191 | (bufio_mod_SOURCES): New macro. | |
1192 | (bufio_mod_CFLAGS): Likewise. | |
1193 | (bufio_mod_LDFLAGS): Likewise. | |
1194 | ||
1195 | * include/grub/bufio.h: New file. | |
1196 | ||
1197 | * io/bufio.c: Likewise. | |
1198 | ||
1199 | * video/png.c: Replace <grub/file.h> with <grub/bufio.h>. | |
1200 | (grub_video_reader_png): Use grub_buffile_open to open file. | |
1201 | ||
1202 | * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>. | |
1203 | (grub_video_reader_jpeg): Use grub_buffile_open to open file. | |
1204 | ||
1205 | * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>. | |
1206 | (grub_video_reader_tga): Use grub_buffile_open to open file. | |
1207 | ||
1208 | * font/manager.c: Include <grub/bufio.h>. | |
1209 | (add_font): Use grub_buffile_open to open file. | |
1210 | ||
3d8383e7 | 1211 | 2008-07-31 Robert Millan <rmh@aybabtu.com> |
1212 | ||
1213 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading | |
1214 | ELF segments, use a macro for arbitrarily accessing any of them instead | |
1215 | of preparing a pointer that allows access to one at a time. | |
1216 | (grub_multiboot_load_elf64): Likewise. | |
1217 | ||
16e641b6 | 1218 | 2008-07-31 Bean <bean123ch@gmail.com> |
1219 | ||
1220 | * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with | |
1221 | GRUB_KERNEL_MACHINE_DATA_END. | |
1222 | ||
59198b72 | 1223 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
1224 | ||
1225 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END): | |
1226 | Increase from 0x50 to 0x60. | |
1227 | * util/i386/pc/grub-install.in: Detect cross-disk installs, and | |
1228 | use UUIDs to identify the root drive for them. If that's not | |
1229 | possible, abort. | |
1230 | * util/i386/pc/grub-setup.c (setup): Do not special-case, or even | |
1231 | check, for cross-disk installs. | |
1232 | ||
ae88bca3 | 1233 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
1234 | ||
1235 | * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix' | |
1236 | is non-empty, use it to set the `prefix' environment variable instead | |
1237 | of the usual approach. | |
1238 | * kern/i386/linuxbios/init.c (make_install_device): Remove function. | |
1239 | (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix' | |
1240 | environment variable instead of dummy make_install_device(). | |
1241 | ||
1242 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'. | |
1243 | (start): Insert a data section, with `grub_prefix' variable. | |
825aa57a | 1244 | * kern/i386/linuxbios/startup.S: Likewise. |
ae88bca3 | 1245 | |
1246 | * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix): | |
1247 | New variable reference. | |
1248 | * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX): | |
1249 | New macro. Defines offset of `grub_prefix' within startup.S (relative | |
1250 | to `start'). | |
1251 | (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data | |
1252 | section within startup.S (relative to `start'). | |
1253 | * include/grub/i386/coreboot/kernel.h: Likewise. | |
1254 | ||
1255 | * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter. | |
1256 | Overwrite grub_prefix with its contents, at the beginning of the | |
1257 | first segment. | |
1258 | (main): Understand -p|--prefix. | |
1259 | ||
14f41dd1 | 1260 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
1261 | ||
1262 | * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib. | |
1263 | ||
4ca049a3 | 1264 | 2008-07-30 Robert Millan <rmh@aybabtu.com> |
1265 | ||
1266 | * term/i386/pc/vga_text.c (grub_console_cls): Use | |
1267 | grub_console_gotoxy() to go back to beginning of the screen. | |
1268 | Found by Patrick Georgi <patrick.georgi@coresystems.de> | |
1269 | ||
2921d337 | 1270 | 2008-07-29 Christian Franke <franke@computer.org> |
1271 | ||
1272 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
1273 | Add conversion of emulated mount points on Cygwin. | |
1274 | ||
b609876d | 1275 | 2008-07-29 Christian Franke <franke@computer.org> |
1276 | ||
1277 | * util/update-grub.in: Add a check for admin | |
1278 | group on Cygwin. | |
1279 | Remove old `grub.cfg.new' before creation. | |
1280 | Add `-f' to `mv' to handle the different filesystem | |
1281 | semantics of Windows. | |
1282 | ||
e93e4679 | 1283 | 2008-07-29 Bean <bean123ch@gmail.com> |
1284 | ||
1285 | * normal/main.c (get_line): Fix buffer overflow bug. | |
1286 | ||
41694fd0 | 1287 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
1288 | ||
1289 | * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro. | |
1290 | (struct grub_apple_header): New struct. Describes the layout of | |
1291 | the partmap header. | |
1292 | (apple_partition_map_iterate): Check the header magic as well as the | |
1293 | partition magic (which was already being checked). | |
1294 | ||
cfd0b4e6 | 1295 | 2008-07-28 Pavel Roskin <proski@gnu.org> |
1296 | ||
1297 | * genmk.rb: Add a warning to the beginning of the output that | |
1298 | it's a generated file and should not be edited. | |
1299 | ||
93cce016 | 1300 | 2008-07-28 Robert Millan <rmh@aybabtu.com> |
1301 | ||
1302 | * disk/raid.c (grub_raid_scan_device): Do not abort when two disks | |
1303 | with the same number are found, just use issue a warning with | |
1304 | grub_dprintf(), as this error has been reported to be non-fatal. | |
c298def0 | 1305 | |
cd1df915 | 1306 | 2008-07-27 Robert Millan <rmh@aybabtu.com> |
1307 | ||
1308 | * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging | |
1309 | information. | |
1310 | ||
b70a8427 | 1311 | 2008-07-27 Bean <bean123ch@gmail.com> |
1312 | ||
1313 | * fs/fat.c (GRUB_FAT_MAXFILE): New constant. | |
1314 | (grub_fat_find_dir): Ignore case when comparing filename. | |
1315 | ||
8f5e379f | 1316 | 2008-07-27 Bean <bean123ch@gmail.com> |
1317 | ||
1318 | * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to | |
1319 | smallino, as it's more descriptive, and i8count can be confused with | |
1320 | the other field count. | |
1321 | (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small | |
1322 | inode type. | |
1323 | ||
a85cd5a0 | 1324 | 2008-07-27 Bean <bean123ch@gmail.com> |
1325 | ||
1326 | * commands/crc.c: New file. | |
1327 | ||
1328 | * lib/crc.c: Likewise. | |
1329 | ||
1330 | * include/grub/lib/crc.h: Likewise. | |
1331 | ||
1332 | * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h. | |
1333 | ||
1334 | * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h. | |
1335 | (hexdump): Move this function to ... | |
1336 | ||
1337 | * lib/hexdump.c: ... here. | |
1338 | ||
1339 | * include/grub/hexdump.h: Renamed to ... | |
1340 | ||
1341 | * include/grub/lib/hexdump.h: ... this. | |
1342 | ||
1343 | * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h | |
1344 | ||
1345 | * util/grub-editenv.c: Likewise. | |
1346 | ||
1347 | * include/envblk.h: Renamed to ... | |
1348 | ||
1349 | * include/lib/envblk.h: ... this. | |
1350 | ||
1351 | * util/envblk.c: Renamed to ... | |
1352 | ||
1353 | * lib/envblk.c: ... this. | |
1354 | ||
1355 | * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c => | |
1356 | lib/hexdump.c. | |
1357 | (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c | |
1358 | (pkglib_MODULES): Add crc.mod. | |
1359 | (hexdump_mod_SOURCES): Add lib/hexdump.c. | |
1360 | (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c. | |
1361 | (crc_mod_SOURCES): New macro. | |
1362 | (crc_mod_CFLAGS): Likewise. | |
1363 | (crc_mod_LDFLAGS): Likewise. | |
1364 | ||
1365 | * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c. | |
1366 | ||
1367 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
1368 | ||
1369 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
1370 | ||
1371 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
1372 | ||
1373 | * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise. | |
1374 | ||
c298def0 | 1375 | 2008-07-27 Felix Zielcke <fzielcke@z-51.de> |
8749e9e5 | 1376 | |
1377 | * commands/help.c: Include <grub/term.h>. | |
1378 | (TERM_WIDTH): Removed. Updated all users. | |
1379 | ||
cc349fb3 | 1380 | 2008-07-27 Pavel Roskin <proski@gnu.org> |
1381 | ||
1382 | * util/getroot.c (find_root_device): Rephrase a comment to avoid | |
1383 | spurious warnings about a comment within a comment. | |
1384 | ||
9051607e | 1385 | 2008-07-25 Robert Millan <rmh@aybabtu.com> |
1386 | ||
1387 | * util/getroot.c (find_root_device): Skip devices that match | |
1388 | /dev/dm-[0-9]. This lets the real device be found for any type of | |
1389 | abstraction (LVM, EVMS, RAID..). | |
1390 | (grub_guess_root_device): Do not traverse /dev/mapper (for LVM) | |
1391 | and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9] | |
1392 | device is found first, find_root_device() will now skip it. | |
1393 | ||
01453bfc | 1394 | 2008-07-24 Pavel Roskin <proski@gnu.org> |
1395 | ||
1396 | * include/grub/types.h: Use __builtin_bswap32() and | |
1397 | __builtin_bswap64() with gcc 4.3 and newer. | |
1398 | ||
6af9849f | 1399 | 2008-07-24 Christian Franke <franke@computer.org> |
1400 | ||
3a0fa256 | 1401 | * util/i386/pc/grub-install.in: If `--debug' is specified, |
1402 | pass `--verbose' to grub-setup. | |
1403 | Abort script if make_system_path_relative_to_its_root() fails. | |
1404 | ||
7810e747 | 1405 | 2008-07-24 Bean <bean123ch@gmail.com> |
1406 | ||
1407 | * configure.ac: Fixed a bug caused by the previous cygwin patch, | |
1408 | variable `target_platform' should be `platform'. | |
1409 | ||
42290e17 | 1410 | 2008-07-24 Bean <bean123ch@gmail.com> |
1411 | ||
51cc5193 | 1412 | * video/reader/png.c (DEFLATE_HLIT_MAX): Change value. |
42290e17 | 1413 | (grub_png_init_fixed_block): New function. |
1414 | (grub_png_decode_image_data): Handle fixed huffman code compression. | |
1415 | ||
2a8a80e4 | 1416 | 2008-07-24 Bean <bean123ch@gmail.com> |
1417 | ||
1418 | * common.rmk (bin_UTILITIES): Add grub-pe2elf. | |
1419 | (grub_pe2elf_SOURCES): New macro. | |
1420 | (CLEANFILES): Add grub-pe2elf. | |
1421 | ||
1422 | * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant. | |
1423 | (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise. | |
1424 | (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise. | |
1425 | (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise. | |
1426 | (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise. | |
1427 | (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise. | |
1428 | (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise. | |
1429 | (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise. | |
1430 | (GRUB_PE32_SCN_ALIGN_MASK): Likewise. | |
1431 | (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise. | |
1432 | (GRUB_PE32_SYM_CLASS_STATIC): Likewise. | |
1433 | (GRUB_PE32_SYM_CLASS_FILE): Likewise. | |
1434 | (GRUB_PE32_DT_FUNCTION): Likewise. | |
1435 | (GRUB_PE32_REL_I386_DIR32): Likewise. | |
1436 | (GRUB_PE32_REL_I386_REL32): Likewise. | |
1437 | (grub_pe32_symbol): New structure. | |
1438 | (grub_pe32_reloc): Likewise. | |
1439 | ||
1440 | * util/grub-pe2elf.c: New file. | |
1441 | ||
1442 | * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for | |
1443 | start symbol in non pc platform. | |
1444 | ||
1445 | * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf. | |
1446 | ||
1447 | The following patches are from Christian Franke. | |
1448 | ||
1449 | * include/grub/dl.h: Remove .previous, gas supports this only | |
1450 | for ELF format. | |
1451 | ||
1452 | * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE): | |
1453 | Remove .type, gas supports this only for ELF format. | |
1454 | ||
1455 | * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing | |
1456 | nullbytes in symbol table. This fixes an infinite loop if table is | |
1457 | zero filled. | |
1458 | ||
1459 | * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT, | |
1460 | TARGET_IMG_LDFLAGS and EXEEXT. | |
1461 | ||
1462 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by | |
1463 | TARGET_IMG_LDFLAGS_AC. | |
1464 | (grub_CHECK_STACK_ARG_PROBE): New function. | |
1465 | ||
1466 | * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS. | |
1467 | ||
1468 | * conf/i386-pc-cygwin-ld-img.sc: New linker script. | |
1469 | ||
1470 | * configure.ac: Add check for linker script "conf/${target}-img-ld.c" | |
1471 | to set TARGET_IMG_LD* accordingly. | |
1472 | Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly. | |
1473 | Add call to grub_CHECK_STACK_ARG_PROBE. | |
1474 | Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols. | |
1475 | ||
1476 | * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case. | |
1477 | ||
1478 | * genmk.rb: Add EXEEXT to CLEANFILES. | |
1479 | ||
12ccdb75 | 1480 | 2008-07-23 Robert Millan <rmh@aybabtu.com> |
1481 | ||
1482 | * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they | |
1483 | define the codes for arrows and lines used for the menu). | |
1484 | (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES) | |
1485 | as well. | |
1486 | ||
1487 | * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete | |
1488 | fonts, because the latter are too slow. | |
1489 | ||
18eeaf04 | 1490 | 2008-07-21 Bean <bean123ch@gmail.com> |
1491 | ||
1492 | * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for | |
1493 | a20. Run keyboard test last, as it will cause macbook to halt. | |
1494 | ||
b095e2ad | 1495 | 2008-07-18 Pavel Roskin <proski@gnu.org> |
1496 | ||
1497 | * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot | |
1498 | load foreign architecture modules correctly anyway. Keep | |
1499 | support for loading host architecture modules, whether we | |
1500 | compile them or not. | |
1501 | ||
737feb35 | 1502 | 2008-07-17 Pavel Roskin <proski@gnu.org> |
1503 | ||
3f4ce737 | 1504 | * configure.ac: Use -m32 or -m64 regardless of whether we had to |
1505 | change target_cpu. The compiler default can mismatch target_cpu | |
1506 | in any case. | |
1507 | ||
4ad2d049 | 1508 | * disk/efi/efidisk.c: Fix format warnings on x86_64. |
1509 | * kern/efi/efi.c: Likewise. | |
1510 | ||
f6130a12 | 1511 | * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the |
1512 | target compiler is functional. | |
1513 | * configure.ac: Call grub_PROG_TARGET_CC once all target flags | |
1514 | are set up. | |
1515 | ||
58393a2d | 1516 | * configure.ac: Default to efi platform for x86_64-apple. Allow |
1517 | powerpc64 CPU, default to ieee1275 platform for it. Split CPU | |
1518 | adjustments from the rest, only do them if target is not | |
1519 | explicitly given. Merge other adjustments with the final sanity | |
1520 | check. Remove an extraneous check for supported CPU. Be | |
1521 | specific which CPU and which platform is not supported. | |
1522 | ||
737feb35 | 1523 | * configure.ac: Default to pc platform for x86_64. |
1524 | ||
546f966a | 1525 | 2008-07-17 Robert Millan <rmh@aybabtu.com> |
1526 | ||
1527 | Partial LinuxBIOS -> Coreboot rename. | |
1528 | ||
1529 | * conf/i386-linuxbios.rmk: Renamed to ... | |
1530 | * conf/i386-coreboot.rmk: ... this. | |
1531 | * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g. | |
1532 | * configure.ac: Accept "coreboot" as input platform (but maintain | |
1533 | compatibility with "linuxbios"). | |
1534 | * include/grub/i386/linuxbios: Renamed to ... | |
1535 | * include/grub/i386/coreboot: ... this. | |
1536 | ||
20011694 | 1537 | 2008-07-17 Bean <bean123ch@gmail.com> |
1538 | ||
1539 | * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod. | |
c11f6d16 | 1540 | (appleldr_mod_SOURCE): New variable. |
20011694 | 1541 | (appleldr_mod_CFLAGS): Likewise. |
1542 | (appleldr_mod_LDFLAGS): Likewise. | |
1543 | (pci_mod_SOURCES): Likewise. | |
1544 | (pci_mod_CFLAGS): Likewise. | |
1545 | (pci_mod_LDFLAGS): Likewise. | |
1546 | (lspci_mod_SOURCES): Likewise. | |
1547 | (lspci_mod_CFLAGS): Likewise. | |
1548 | (lspci_mod_LDFLAGS): Likewise. | |
1549 | ||
1550 | * conf/x86_64-efi.rmk: New file. | |
1551 | ||
1552 | * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N | |
1553 | macro. | |
1554 | (grub_efidisk_write): Likewise. | |
1555 | ||
1556 | * include/efi/api.h (efi_call_0): New macro. | |
1557 | (efi_call_1): Likewise. | |
1558 | (efi_call_2): Likewise. | |
1559 | (efi_call_3): Likewise. | |
1560 | (efi_call_4): Likewise. | |
1561 | (efi_call_5): Likewise. | |
1562 | (efi_call_6): Likewise. | |
1563 | ||
1564 | * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to | |
1565 | grub_rescue_cmd_chainloader. | |
1566 | ||
1567 | * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro. | |
1568 | (grub_pe32_optional_header): Change some fields based on i386 or | |
1569 | x86_64 platform. | |
1570 | (GRUB_PE32_PE32_MAGIC): Likewise. | |
1571 | ||
1572 | * include/grub/efi/uga_draw.h: New file. | |
1573 | ||
1574 | * include/grub/elf.h (STN_ABS): New constant. | |
1575 | (R_X86_64_NONE): Relocation constant for x86_64. | |
1576 | (R_X86_64_64): Likewise. | |
1577 | (R_X86_64_PC32): Likewise. | |
1578 | (R_X86_64_GOT32): Likewise. | |
1579 | (R_X86_64_PLT32): Likewise. | |
1580 | (R_X86_64_COPY): Likewise. | |
1581 | (R_X86_64_GLOB_DAT): Likewise. | |
1582 | (R_X86_64_JUMP_SLOT): Likewise. | |
1583 | (R_X86_64_RELATIVE): Likewise. | |
1584 | (R_X86_64_GOTPCREL): Likewise. | |
1585 | (R_X86_64_32): Likewise. | |
1586 | (R_X86_64_32S): Likewise. | |
1587 | (R_X86_64_16): Likewise. | |
1588 | (R_X86_64_PC16): Likewise. | |
1589 | (R_X86_64_8): Likewise. | |
1590 | (R_X86_64_PC8): Likewise. | |
1591 | ||
1592 | * include/grub/i386/efi/pci.h: New file. | |
1593 | ||
1594 | * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE): | |
1595 | Change it value based on platform. | |
1596 | (GRUB_LINUX_EFI_SIGNATURE_0204): New constant. | |
1597 | (GRUB_E820_RAM): Likewise. | |
1598 | (GRUB_E820_RESERVED): Likewise. | |
1599 | (GRUB_E820_ACPI): Likewise. | |
1600 | (GRUB_E820_NVS): Likewise. | |
1601 | (GRUB_E820_EXEC_CODE): Likewise. | |
1602 | (GRUB_E820_MAX_ENTRY): Likewise. | |
1603 | (grub_e820_mmap): New structure. | |
1604 | (linux_kernel_header): Change the efi field according to different | |
1605 | kernel version, also field from linux_kernel_header. | |
1606 | ||
1607 | * include/grub/kernel.h (grub_module_info): Add padding for x86_64. | |
1608 | ||
1609 | * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant. | |
1610 | (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise. | |
1611 | (GRUB_PCI_ADDR_SPACE_IO): Likewise. | |
1612 | (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise. | |
1613 | (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise. | |
1614 | (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise. | |
1615 | (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise. | |
1616 | (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise. | |
1617 | (GRUB_PCI_ADDR_MEM_MASK): Likewise. | |
1618 | (GRUB_PCI_ADDR_IO_MASK): Likewise. | |
1619 | ||
1620 | * include/grub/x86_64/efi/kernel.h: New file. | |
1621 | ||
1622 | * include/grub/x86_64/efi/loader.h: Likewise. | |
1623 | ||
1624 | * include/grub/x86_64/efi/machine.h: Likewise. | |
1625 | ||
1626 | * include/grub/x86_64/efi/pci.h: Likewise. | |
1627 | ||
1628 | * include/grub/x86_64/efi/time.h: Likewise. | |
1629 | ||
1630 | * include/grub/x86_64/linux.h: Likewise. | |
1631 | ||
1632 | * include/grub/x86_64/setjmp.h: Likewise. | |
1633 | ||
1634 | * include/grub/x86_64/time.h: Likewise. | |
1635 | ||
1636 | * include/grub/x86_64/types.h: Likewise. | |
1637 | ||
1638 | * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to | |
1639 | GRUB_TARGET_SIZEOF_VOID_P. | |
1640 | ||
1641 | * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls. | |
1642 | (grub_efi_locate_handle): Likewise. | |
1643 | (grub_efi_open_protocol): Likewise. | |
1644 | (grub_efi_set_text_mode): Likewise. | |
1645 | (grub_efi_stall): Likewise. | |
1646 | (grub_exit): Likewise. | |
1647 | (grub_reboot): Likewise. | |
1648 | (grub_halt): Likewise. | |
1649 | (grub_efi_exit_boot_services): Likewise. | |
1650 | (grub_get_rtc): Likewise. | |
1651 | ||
1652 | * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models. | |
1653 | (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P. | |
1654 | (grub_efi_allocate_pages): Wrap efi calls. | |
1655 | (grub_efi_free_pages): Wrap efi calls. | |
1656 | (grub_efi_get_memory_map): Wrap efi calls. | |
1657 | ||
1658 | * kern/x86_64/dl.c: New file. | |
1659 | ||
1660 | * kern/x86_64/efi/callwrap.S: Likewise. | |
1661 | ||
1662 | * kern/x86_64/efi/startup.S: Likewise. | |
1663 | ||
1664 | * loader/efi/appleloader.c: Likewise. | |
1665 | ||
1666 | * loader/efi/chainloader.c (cmdline): New variable. | |
1667 | (grub_chainloader_unload): Wrap efi calls. | |
1668 | (grub_chainloader_boot): Likewise. | |
1669 | (grub_rescue_cmd_chainloader): Wrap efi calls, handle | |
1670 | command line. | |
1671 | ||
1672 | * loader/efi/chainloader_normal.c (chainloader_command): | |
1673 | Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass | |
1674 | command line. | |
1675 | ||
1676 | * loader/i386/efi/linux.c (allocate_pages): Change allocation | |
1677 | method. | |
1678 | (grub_e820_add_region): New function. | |
1679 | (grub_linux_boot): Construct e820 map from efi map, handle x86_64 | |
1680 | booting. | |
1681 | (grub_find_video_card): New function. | |
1682 | (grub_linux_setup_video): New function. | |
1683 | (grub_rescue_cmd_linux): Probe for video information. | |
1684 | ||
1685 | * normal/x86_64/setjmp.S: New file. | |
1686 | ||
1687 | * term/efi/console.c (map_char): New function. | |
1688 | (grub_console_putchar): Map unicode char. | |
1689 | (grub_console_checkkey): Wrap efi calls. | |
1690 | (grub_console_getkey): Likewise. | |
1691 | (grub_console_getwh): Likewise. | |
1692 | (grub_console_gotoxy): Likewise. | |
1693 | (grub_console_cls): Likewise. | |
1694 | (grub_console_setcolorstate): Likewise. | |
1695 | (grub_console_setcursor): Likewise. | |
1696 | ||
1697 | * util/i386/efi/grub-mkimage.c: Add support for x86_64. | |
1698 | ||
59652a20 | 1699 | 2008-07-16 Pavel Roskin <proski@gnu.org> |
1700 | ||
ef294055 | 1701 | * loader/i386/efi/linux.c (allocate_pages): Fix warnings in |
1702 | format strings. | |
1703 | ||
59652a20 | 1704 | * util/i386/efi/grub-mkimage.c (get_target_address): Return a |
1705 | pointer, not an integer. This fixes a warning and prevents | |
1706 | precision loss on 64-bit systems. | |
1707 | (relocate_addresses): Remove unneeded cast. | |
1708 | ||
afc3b5d7 | 1709 | 2008-07-15 Pavel Roskin <proski@gnu.org> |
1710 | ||
506b2b3e | 1711 | * kern/i386/ieee1275/init.c: Include grub/cache.h. |
1712 | ||
62ead89c | 1713 | * term/ieee1275/ofconsole.c: Disable code unused on i386. |
1714 | ||
c4cd51d7 | 1715 | * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property): |
1716 | Fix comparison between signed and unsigned. | |
1717 | ||
0d3d8f28 | 1718 | * include/grub/i386/ieee1275/console.h: Declare |
1719 | grub_console_init() and grub_console_fini(). | |
1720 | ||
8804b286 | 1721 | * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove. |
1722 | It's empty and unused. | |
1723 | ||
ee01cf35 | 1724 | * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the |
1725 | beginning to avoid warnings with some compilers. | |
1726 | ||
afc3b5d7 | 1727 | * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h. |
1728 | [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast. | |
1729 | ||
e4e8eaa5 | 1730 | 2008-07-14 Pavel Roskin <proski@gnu.org> |
1731 | ||
407aceb4 | 1732 | * kern/env.c (grub_register_variable_hook): Don't copy empty |
1733 | string, it leaks memory. Pass "" to grub_env_set(), it should | |
1734 | handle constant strings. | |
1735 | ||
e4e8eaa5 | 1736 | * commands/blocklist.c (grub_cmd_blocklist): Fix format warning. |
1737 | * commands/cmp.c (grub_cmd_cmp): Likewise. | |
1738 | * kern/dl.c (grub_dl_flush_cache): Likewise. | |
1739 | (grub_dl_load_core): Likewise. | |
1740 | * kern/elf.c (grub_elf32_load_phdrs): Likewise. | |
1741 | (grub_elf64_load_phdrs): Likewise. | |
1742 | ||
d4e2dad3 | 1743 | 2008-07-13 Pavel Roskin <proski@gnu.org> |
1744 | ||
1745 | * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison | |
1746 | between signed and unsigned. | |
1747 | (LzmaEnc_Finish): Fix warning about an unused parameter. | |
1748 | ||
aa24b516 | 1749 | 2008-07-13 Bean <bean123ch@gmail.com> |
1750 | ||
1751 | * Makefile.in (enable_lzo): New rule. | |
1752 | ||
1753 | * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo. | |
1754 | ||
1755 | * configure.ac (ENABLE_LZO): New option --enable-lzo. | |
1756 | ||
1757 | * boot/i386/pc/lnxboot.S: #include <config.h>. | |
1758 | ||
1759 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change | |
fe987087 | 1760 | its value according to the compression algorithm used, lzo or lzma. |
aa24b516 | 1761 | |
1762 | * util/i386/pc/grub-mkimage.c (compress_kernel): Use different | |
1763 | compression algorithm according to configure macro. | |
1764 | ||
1765 | * kern/i386/pc/startup.S (codestart): Likewise. | |
1766 | ||
1767 | * kern/i386/pc/lzma_decode.S: New file. | |
1768 | ||
1769 | * include/grub/lib/LzFind.h: Likewise. | |
1770 | ||
1771 | * include/grub/lib/LzHash.h: Likewise. | |
1772 | ||
1773 | * include/grub/lib/LzmaDec.h: Likewise. | |
1774 | ||
1775 | * include/grub/lib/LzmaEnc.h: Likewise. | |
1776 | ||
1777 | * include/grub/lib/LzmaTypes.h: Likewise. | |
1778 | ||
1779 | * lib/LzFind.c: Likewise. | |
1780 | ||
1781 | * lib/LzmaDec.c: Likewise. | |
1782 | ||
1783 | * lib/LzmaEnc.c: Likewise. | |
1784 | ||
4ae821ac | 1785 | 2008-07-13 Bean <bean123ch@gmail.com> |
1786 | ||
1787 | * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro. | |
1788 | (grub_ext4_extent_header): New structure. | |
1789 | (grub_ext4_extent): Likewise. | |
1790 | (grub_ext4_extent_idx): Likewise. | |
1791 | (grub_ext4_find_leaf): New function. | |
1792 | (grub_ext2_read_block): Handle extents. | |
1793 | ||
9a745147 | 1794 | 2008-07-12 Robert Millan <rmh@aybabtu.com> |
1795 | ||
1796 | * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g. | |
1797 | ||
d49a4cf6 | 1798 | 2008-07-11 Robert Millan <rmh@aybabtu.com> |
1799 | ||
1800 | * util/grub.d/40_custom.in: New file. Example on how to add custom | |
1801 | entries to /etc/grub.d. | |
1802 | * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install | |
1803 | 40_custom (implicitly, by merging all the grub.d rules). | |
1804 | ||
947414b4 | 1805 | 2008-07-11 Pavel Roskin <proski@gnu.org> |
1806 | ||
0059cf6f | 1807 | * commands/read.c (grub_getline): Fix invalid memory access. |
1808 | Don't add newline to the variable value. | |
1809 | ||
947414b4 | 1810 | * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant. |
1811 | [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3. | |
1812 | (serial_hw_get_port): Check validity of the port number. | |
1813 | (grub_cmd_serial): Check return value of serial_hw_get_port(). | |
1814 | ||
62a02d00 | 1815 | 2008-07-07 Pavel Roskin <proski@gnu.org> |
1816 | ||
1817 | * boot/i386/pc/diskboot.S (notification_string): Replace | |
1818 | "Loading kernel" with just "loading". This is shorter, less | |
1819 | confusing and saves a few bytes for possible future changes. | |
1820 | ||
3e5581b0 | 1821 | 2008-07-05 Pavel Roskin <proski@gnu.org> |
1822 | ||
ea387a48 | 1823 | * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and |
1824 | size for ATAPI devices, they are undefined. Output sector | |
1825 | number in decimal form. | |
1826 | ||
3e5581b0 | 1827 | * disk/ata.c: Use named constants for status bits. |
1828 | ||
fdecb8fd | 1829 | 2008-07-04 Pavel Roskin <proski@gnu.org> |
1830 | ||
bcd35b90 | 1831 | * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to |
1832 | grub_addr_t before casting it to the void pointer to fix a | |
1833 | warning. Non-addressable regions are discarded earlier. | |
1834 | (grub_arch_modules_addr): Cast _end to grub_addr_t. | |
1835 | * kern/i386/linuxbios/table.c: Include grub/misc.h. | |
1836 | (check_signature): Don't shadow table_header. | |
1837 | (grub_linuxbios_table_iterate): Cast numeric constants to | |
1838 | grub_linuxbios_table_header_t. | |
1839 | * include/grub/i386/linuxbios/init.h: Add noreturn attribute to | |
1840 | grub_stop(). | |
1841 | ||
af58ab3d | 1842 | * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to |
1843 | prevent warnings. | |
1844 | ||
1759aa57 | 1845 | * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a |
1846 | pointer, which can cause warnings. Support 64-bit addresses. | |
1847 | ||
fdecb8fd | 1848 | * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead |
1849 | of sizeof(long). This fixes PowerPC image generation on x86_64. | |
1850 | ||
8516d2a8 | 1851 | 2008-07-04 Robert Millan <rmh@aybabtu.com> |
1852 | ||
1853 | This fixes a performance issue when pc & gpt partmap iterators | |
1854 | didn't abort iteration even after our hook found what it was | |
fe987087 | 1855 | looking for (often causing expensive probes of non-existent drives). |
8516d2a8 | 1856 | |
1857 | Some callers relied on previous buggy behaviour, since they would | |
1858 | rise an error when their own hooks caused early abortion of its | |
1859 | iteration. | |
1860 | ||
1861 | * kern/device.c (grub_device_open): Improve error message. | |
1862 | * disk/lvm.c (grub_lvm_open): Likewise. | |
1863 | * disk/raid.c (grub_raid_open): Likewise. | |
1864 | ||
1865 | * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration | |
1866 | when hook requests it, independently of grub_errno. | |
1867 | (pc_partition_map_probe): Do not fail when find_func() caused | |
1868 | early abortion of pc_partition_map_iterate(). | |
1869 | ||
1870 | * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration | |
1871 | when hook requests it, independently of grub_errno. | |
1872 | (gpt_partition_map_probe): Do not fail when find_func() caused | |
1873 | early abortion of gpt_partition_map_iterate(). | |
1874 | ||
1875 | * kern/partition.c (grub_partition_iterate): Abort parent iteration | |
1876 | when hook requests it, independently of grub_errno. Do not fail when | |
1877 | part_map_iterate_hook() caused early abortion of p->iterate(). | |
1878 | ||
1879 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail | |
1880 | when grub_partition_iterate() returned with non-zero. | |
1881 | ||
277d0de9 | 1882 | 2008-07-03 Pavel Roskin <proski@gnu.org> |
1883 | ||
1884 | * disk/ata.c (grub_ata_pio_write): Check status before writing, | |
1885 | like we do in grub_ata_pio_read(). | |
1886 | (grub_ata_readwrite): Always write individual sectors. Fix the | |
1887 | sector count for the remainder. | |
1888 | (grub_ata_write): Enable writing to ATA devices. Correctly | |
1889 | report error for ATAPI devices. | |
1890 | ||
d4c9b428 | 1891 | 2008-07-02 Pavel Roskin <proski@gnu.org> |
1892 | ||
e43fc690 | 1893 | * boot/i386/pc/cdboot.S: Add _start entry to fix a linker |
1894 | warning. | |
1895 | ||
f707af42 | 1896 | * disk/ata.c (grub_ata_readwrite): Don't increment sector number |
1897 | for every read sector, we already increment it for the whole | |
1898 | batch. This fixes reading more than 256 sectors at once. | |
1899 | ||
11e16b15 | 1900 | * util/grub-editenv.c (cmd_info): Cast argument to long |
1901 | explicitly. ptrdiff_t reduces to int on i386. | |
1902 | ||
cbabfdd4 | 1903 | * util/grub-editenv.c (main): Be specific which parameter is |
1904 | missing. | |
1905 | ||
b8fbce0a | 1906 | * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings. |
1907 | (memdisk): Make memdisk_orig_addr a pointer. | |
1908 | ||
c9c8e606 | 1909 | * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t |
1910 | for file offsets, use grub_off_t instead. Fix printf format | |
1911 | warnings. | |
1912 | ||
ca62e598 | 1913 | * fs/reiserfs.c: Remove #warning, TODO list items don't belong |
1914 | there. Real unexpected warnings should not drown in the noise | |
1915 | about known problems. | |
1916 | ||
ce8d1766 | 1917 | * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of |
1918 | grub_disk_addr_t for memory addresses. | |
1919 | ||
00c7a56a | 1920 | * loader/aout.c (grub_aout_load): Cast load_addr to pointer |
1921 | explicitly to fix a warning. | |
1922 | ||
08d3ef09 | 1923 | * util/grub-editenv.c (cmd_info): Fix warning in printf format. |
1924 | ||
cb71ba20 | 1925 | * Makefile.in (MODULE_LDFLAGS): New variable. |
1926 | * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if | |
1927 | the linker accepts --build-id=none. | |
1928 | * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute | |
1929 | MODULE_LDFLAGS. | |
1930 | * genmk.rb: Use MODULE_LDFLAGS when linking modules. | |
1931 | ||
d4c9b428 | 1932 | * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to |
1933 | those in Linux XFS code. Provide a way to access 64-bit parent | |
1934 | inode. | |
1935 | (grub_xfs_iterate_dir): Use the new names. Avoid reading past | |
1936 | the end of struct grub_xfs_dir_header. | |
1937 | ||
d4156eee | 1938 | 2008-07-02 Bean <bean123ch@gmail.com> |
1939 | ||
1940 | * include/grub/ieee1275.h (grub_ieee1275_flag): New constant | |
1941 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
1942 | and GRUB_IEEE1275_FLAG_NO_ANSI. | |
1943 | ||
1944 | * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag | |
1945 | GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM | |
1946 | and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware. | |
1947 | ||
1948 | * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return | |
1949 | immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set. | |
1950 | ||
1951 | * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if | |
1952 | GRUB_IEEE1275_FLAG_FORCE_CLAIM is set. | |
1953 | ||
1954 | * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output | |
1955 | esc sequence on non ANSI terminal. | |
1956 | (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal. | |
1957 | ||
1958 | * util/elf/grub-mkimage.c (add_segments): Move ELF header to the | |
1959 | beginning of file. | |
1960 | ||
2270f77b | 1961 | 2008-07-02 Bean <bean123ch@gmail.com> |
1962 | ||
1963 | * conf/common.rmk (bin_UTILITIES): Add grub-editenv. | |
1964 | (grub_editenv_SOURCES): New variable. | |
1965 | (pkglib_MODULES): Add loadenv.mod. | |
1966 | (loadenv_mod_SOURCES): New variable. | |
1967 | (loadenv_mod_CFLAGS): Likewise. | |
1968 | (loadenv_mod_LDFLAGS): Likewise. | |
1969 | ||
1970 | * include/grub/envblk.h: New file. | |
1971 | ||
1972 | * util/envblk.c: New file. | |
1973 | ||
1974 | * util/grub-editenv.c: New file. | |
1975 | ||
1976 | * commands/loadenv.c: New file. | |
1977 | ||
0e9e51ec | 1978 | 2008-07-01 Pavel Roskin <proski@gnu.org> |
1979 | ||
d89b7634 | 1980 | * include/multiboot2.h (struct multiboot_tag_module): Use char, |
1981 | not unsigned char. This fixes warnings and is consistent with | |
1982 | other tags. | |
1983 | ||
bf1835b1 | 1984 | * disk/fs_uuid.c (search_fs_uuid): Correctly increment count. |
1985 | ||
8222a04b | 1986 | * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings. |
1987 | ||
6a42d99d | 1988 | * term/tparm.c (analyze): Always set *popcount. |
1989 | ||
10b159d1 | 1990 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless |
1991 | cast to fix a warning. | |
1992 | ||
b8789f6c | 1993 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use |
1994 | cast to suppress a warning. | |
1995 | ||
29d7e38a | 1996 | * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as |
1997 | grub_fshelp_read_file() expects. | |
1998 | ||
f341f669 | 1999 | * fs/fat.c: Fix UUID calculation on big-endian systems. We |
2000 | write uuid as a 32-bit value in CPU byte order, so declare and | |
2001 | use it as such. | |
2002 | ||
0e9e51ec | 2003 | * disk/raid.c: Cast grub_dprintf() arguments to unsigned long |
2004 | long if the format specifier expects it. | |
2005 | * partmap/gpt.c (gpt_partition_map_iterate): Likewise. | |
2006 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
2007 | * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long | |
2008 | long to fix a warning. | |
2009 | * fs/reiserfs.c (grub_reiserfs_read): Change casts in | |
2010 | grub_dprintf() arguments to fix warnings. | |
2011 | ||
3aefa857 | 2012 | 2008-06-30 Pavel Roskin <proski@gnu.org> |
2013 | ||
56c7668b | 2014 | * util/i386/pc/grub-setup.c (setup): Write install_dos_part and |
2015 | install_bsd_part immediately before core.img is embedded or | |
2016 | modified on disk. This fixes core.img verification if core.img | |
2017 | cannot be embedded. | |
2018 | ||
3aefa857 | 2019 | * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not |
2020 | core_path to calculate the blocklist. | |
2021 | Patch from Javier Martín <lordhabbit@gmail.com> | |
2022 | ||
5444088d | 2023 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
2024 | ||
2025 | * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem | |
2026 | block to disk block. | |
2027 | (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result. | |
2028 | Patch from Niels Böhm <bitbucket@arcor.de> | |
2029 | ||
674835c8 | 2030 | 2008-06-29 Robert Millan <rmh@aybabtu.com> |
2031 | ||
2032 | * util/update-grub_lib.in (font_path): Search for fonts in | |
2033 | /boot/grub first, which is more likely to be readable (we aren't | |
2034 | deciding where fonts live, just looking for them). | |
2035 | ||
f527dbc8 | 2036 | 2008-06-26 Pavel Roskin <proski@gnu.org> |
2037 | ||
6c2d8df6 | 2038 | * util/biosdisk.c (read_device_map): Don't leave dead map |
2039 | entries for devices failing stat() check. | |
2040 | ||
f527dbc8 | 2041 | * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use |
2042 | core_path_dev for the core.img path on the target device. | |
2043 | ||
aebe3d13 | 2044 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
2045 | ||
2046 | * disk/fs_uuid.c: New file. | |
2047 | * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'. | |
2048 | (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS) | |
2049 | (fs_uuid_mod_LDFLAGS): New variables. | |
2050 | * include/grub/disk.h (grub_disk_dev_id): Add | |
2051 | `GRUB_DISK_DEVICE_UUID_ID'. | |
2052 | * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to | |
2053 | implement iterate(). | |
2054 | ||
37aaf354 | 2055 | 2008-06-26 Robert Millan <rmh@aybabtu.com> |
2056 | ||
2057 | * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either | |
2058 | "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a | |
2059 | Linux image includes no initrd. | |
2060 | ||
25ff262a | 2061 | 2008-06-21 Javier Martín <lordhabbit@gmail.com> |
2062 | ||
2063 | * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a | |
2064 | call to resolve the core image location that effectively appended the | |
2065 | name twice. | |
2066 | ||
76a2bd44 | 2067 | 2008-06-21 Robert Millan <rmh@aybabtu.com> |
2068 | ||
2069 | * util/grub.d/00_header.in: Move last prepare_grub_to_access_device() | |
2070 | call from here ... | |
2071 | ||
2072 | * util/grub.d/10_hurd.in: ... to here ... | |
2073 | * util/grub.d/10_linux.in: ... and here. | |
2074 | ||
650e1c79 | 2075 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
2076 | ||
fe987087 | 2077 | * kern/main.c (grub_main): Export `prefix' variable immediately |
650e1c79 | 2078 | after it has been set by grub_machine_set_prefix(). |
2079 | ||
6ce63911 | 2080 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
2081 | ||
2082 | * commands/search.c (search_label, search_fs_uuid, search_file): Print | |
2083 | search result when not saving to variable, not the other way around. | |
2084 | When saving to variable, abort iteration as soon as a match is found. | |
2085 | ||
73940cec | 2086 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
2087 | ||
2088 | * util/update-grub_lib.in (prepare_grub_to_access_device): Remove | |
2089 | check for partition that provides /boot/grub. Its logic is flawed, | |
2090 | as it prevents prepare_grub_to_access_device() from being called | |
2091 | multiple times. | |
2092 | ||
3c62a39d | 2093 | 2008-06-19 Robert Millan <rmh@aybabtu.com> |
2094 | ||
2095 | * util/update-grub_lib.in (prepare_grub_to_access_device): Issue | |
2096 | "insmod" command directly when abstraction modules are needed, | |
fe987087 | 2097 | instead of relying on GRUB_PRELOAD_MODULES (which had no effect |
3c62a39d | 2098 | since it had already been processed). |
2099 | ||
47395a42 | 2100 | 2008-06-19 Pavel Roskin <proski@gnu.org> |
2101 | ||
2102 | * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has | |
2103 | changed. This is needed in case GRUB_LIBDIR changes. | |
2104 | * conf/i386-ieee1275.rmk: Likewise. | |
2105 | * conf/i386-linuxbios.rmk: Likewise. | |
2106 | * conf/i386-pc.rmk: Likewise. | |
2107 | * conf/powerpc-ieee1275.rmk: Likewise. | |
2108 | ||
a145ac2d | 2109 | 2008-06-18 Pavel Roskin <proski@gnu.org> |
2110 | ||
2111 | * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename | |
2112 | kernel_elf_symlist.c to symlist.c for consistency with other | |
2113 | architectures. Update all users. | |
2114 | * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise. | |
2115 | ||
7847c51e | 2116 | 2008-06-18 Robert Millan <rmh@aybabtu.com> |
2117 | ||
2118 | * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend | |
2119 | it in prefix. | |
2120 | ||
2121 | * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set | |
2122 | `must_embed' to 1 when root_dev is a RAID device. When dest_dev is | |
2123 | a RAID device, run setup() for all members independently on whether | |
2124 | LVM abstraction is being used. | |
2125 | (setup): Don't handle prefix at all; let grub-mkimage take care of it. | |
2126 | If grub-mkimage has set `*install_dos_part == -2', don't override this | |
2127 | value. | |
2128 | Perform *install_dos_part adjustments independently on whether | |
2129 | we're embedding or not. | |
2130 | Clarify error message when image is too big for embedding. | |
2131 | Remove duplicate *install_dos_part stanza. | |
2132 | ||
b23e5644 | 2133 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
2134 | ||
2135 | * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables. | |
2136 | (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New | |
2137 | variables. | |
2138 | (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store | |
2139 | values in grub_ofconsole_normal_color and | |
2140 | grub_ofconsole_highlight_color (they're not directly related to | |
2141 | background and foreground). | |
2142 | (grub_ofconsole_setcolorstate): Extract background and foreground | |
2143 | from grub_ofconsole_normal_color and grub_ofconsole_highlight_color. | |
2144 | ||
0aac2f79 | 2145 | 2008-06-17 Robert Millan <rmh@aybabtu.com> |
2146 | ||
2147 | * util/update-grub_lib.in (prepare_grub_to_access_device): Use | |
2148 | /boot/grub for the check in last commit, not /boot (they could be | |
2149 | different partitions). | |
2150 | ||
3cca7ef3 | 2151 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
2152 | ||
2153 | * util/update-grub_lib.in (prepare_grub_to_access_device): If we were | |
2154 | asked to setup access for the same partition that provides /boot, | |
2155 | don't bother using UUIDs since our root already has the value we | |
2156 | want. | |
2157 | ||
347396d8 | 2158 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
2159 | ||
2160 | * util/biosdisk.c (convert_system_partition_to_system_disk): Detect | |
2161 | I2O devices. | |
2162 | Patch from Sven Mueller <sven@debian.org>. | |
2163 | ||
991477f8 | 2164 | 2008-06-16 Robert Millan <rmh@aybabtu.com> |
2165 | ||
2166 | * util/update-grub.in: Check for $EUID instead of $UID. | |
2167 | Reported by Vincent Zweije. | |
2168 | ||
d31a32a1 | 2169 | 2008-06-16 Bean <bean123ch@gmail.com> |
2170 | ||
fe987087 | 2171 | * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state. |
d31a32a1 | 2172 | (grub_ext2_read_block): Likewise. |
2173 | (grub_ext2_read_inode): Likewise. | |
2174 | (grub_ext2_mount): Likewise. | |
2175 | (grub_ext2_close): Likewise. | |
2176 | (grub_ext3_get_journal): Removed. | |
2177 | ||
fe987087 | 2178 | * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state. |
d31a32a1 | 2179 | (grub_reiserfs_read_symlink): Likewise. |
2180 | (grub_reiserfs_mount): Likewise. | |
2181 | (grub_reiserfs_open): Likewise. | |
2182 | (grub_reiserfs_read): Likewise. | |
2183 | (grub_reiserfs_close): Likewise. | |
2184 | (grub_reiserfs_get_journal): Removed. | |
2185 | ||
2186 | * fs/fshelp.c (grub_fshelp_read): Removed. | |
2187 | (grub_fshelp_map_block): Likewise. | |
2188 | ||
2189 | * include/grub/fshelp.h (grub_fshelp_journal_type): Removed. | |
2190 | (grub_fshelp_journal): Likewise. | |
2191 | (grub_fshelp_read): Likewise. | |
2192 | (grub_fshelp_map_block): Likewise. | |
2193 | ||
3540a760 | 2194 | 2008-06-16 Pavel Roskin <proski@gnu.org> |
2195 | ||
2196 | * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use | |
2197 | floating point anymore. | |
2198 | * include/grub/powerpc/libgcc.h: Leave only necessary exports. | |
2199 | ||
95614c84 | 2200 | 2008-06-15 Pavel Roskin <proski@gnu.org> |
2201 | ||
2202 | * commands/ls.c (grub_ls_list_files): Use integer calculations | |
2203 | for human readable format, avoid floating point use. | |
2204 | * kern/misc.c (grub_ftoa): Remove. | |
2205 | (grub_vsprintf): Remove floating point support. | |
2206 | ||
50465dd6 | 2207 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
2208 | ||
fe6b695a | 2209 | * util/grub.d/10_linux.in: Use the underlying device for loop-AES |
50465dd6 | 2210 | devices. |
2211 | Reported by Max Vozeler. | |
2212 | ||
a9207284 | 2213 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
2214 | ||
2215 | * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive | |
2216 | in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be | |
2217 | skipped later. | |
2218 | (main): If a memdisk was requested, add "(memdisk)" drive explicitly to | |
2219 | the beginning of the prefix. | |
2220 | ||
2221 | * kern/i386/pc/init.c (make_install_device): Remove memdisk check. | |
2222 | It is assumed that if we have a memdisk, grub-mkimage has set | |
2223 | grub_prefix to include the "(memdisk)" drive in it. | |
2224 | ||
a7cbd45a | 2225 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
2226 | ||
2227 | * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init): | |
2228 | Initialize keyboard controller after registering the terminal, so that | |
2229 | grub_printf() can be called from grub_keyboard_controller_init(). | |
2230 | ||
21cf716a | 2231 | 2008-06-15 Robert Millan <rmh@aybabtu.com> |
2232 | ||
2233 | * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in | |
2234 | extent-btree which is written as big endian on disk. | |
2235 | Reported by Alain Greppin <al@chilibi.org>. | |
2236 | ||
23a64d8e | 2237 | 2008-06-14 Robert Millan <rmh@aybabtu.com> |
2238 | ||
2239 | * util/i386/efi/grub-install.in (modules): Remove `_chain'. | |
2240 | * util/i386/pc/grub-install.in (modules): Likewise. | |
2241 | ||
d687651c | 2242 | 2008-06-13 Pavel Roskin <proski@gnu.org> |
2243 | ||
2244 | * commands/ls.c (grub_ls_list_files): Fix format warnings. | |
2245 | ||
dfe9ddd4 | 2246 | 2008-06-13 Bean <bean123ch@gmail.com> |
2247 | ||
2248 | * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition. | |
2249 | ||
2250 | * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling. | |
2251 | ||
2252 | * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used | |
2253 | to indicate sparse block. | |
2254 | ||
16ae7781 | 2255 | 2008-06-12 Pavel Roskin <proski@gnu.org> |
2256 | ||
e6d1a308 | 2257 | * fs/ext2.c (grub_ext2_read_inode): Don't normalize block |
2258 | number, grub_fshelp_read() does it for us. | |
2259 | ||
16ae7781 | 2260 | * fs/fshelp.c (grub_fshelp_read): New function. Implement |
2261 | linear disk read with journal translation. | |
2262 | * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read(). | |
2263 | * include/grub/fshelp.h: Declare grub_fshelp_read(). | |
2264 | ||
40fd3a2b | 2265 | 2008-06-09 Pavel Roskin <proski@gnu.org> |
2266 | ||
2267 | * fs/minix.c (grub_minix_mount): Handle error reading | |
2268 | superblock. | |
2269 | ||
f5679726 | 2270 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
2271 | ||
2272 | * util/i386/pc/grub-setup.c (main): If install drive is an LVM, | |
2273 | don't append the RAID prefix afterwards. | |
2274 | Reported by Clint Adams. | |
2275 | ||
ce525529 | 2276 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
2277 | ||
2278 | Based on description from Pavel: | |
2279 | * kern/disk.c (grub_disk_check_range): Rename to ... | |
2280 | (grub_disk_adjust_range): ... this. Add a comment explaining the | |
2281 | tasks performed by this function. | |
2282 | ||
ad4936a0 | 2283 | 2008-06-08 Robert Millan <rmh@aybabtu.com> |
2284 | ||
2285 | * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to | |
2286 | `num_serial' (for consistency with other variables). | |
2287 | (struct grub_ntfs_data): Add `uuid' member. | |
2288 | * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'. | |
2289 | (grub_ntfs_uuid): New function. | |
2290 | (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member. | |
2291 | ||
dc20b0f9 | 2292 | 2008-06-07 Pavel Roskin <proski@gnu.org> |
2293 | ||
2294 | * util/biosdisk.c (open_device): Revert last change to the | |
2295 | function, it broke installation. The sector needs to be | |
2296 | different dependent on which device is opened. | |
2297 | ||
c5e3cfba | 2298 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
2299 | ||
2300 | Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the | |
2301 | rest of GRUB, and breakage doesn't happen if its value were modified. | |
2302 | ||
2303 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
2304 | Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of | |
2305 | a constant (same value). | |
2306 | * kern/i386/pc/startup.S: Replace hardcoded `0x50' with | |
2307 | `GRUB_KERNEL_MACHINE_DATA_END' (same value). | |
2308 | ||
26a1f8c4 | 2309 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
2310 | ||
2311 | * util/biosdisk.c (open_device): Do not modify sector offset when | |
2312 | accessing a partition. kern/disk.c already handles this for us. | |
2313 | ||
25d6b327 | 2314 | 2008-06-06 Robert Millan <rmh@aybabtu.com> |
2315 | ||
2316 | * util/grub-emu.c (grub_machine_init): Move code in this function from | |
2317 | here ... | |
2318 | (main): ... to here (before grub_util_biosdisk_init() call, to prevent | |
2319 | segfault in case grub_printf() is called). | |
2320 | ||
2321 | * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to | |
2322 | grub_probe. Update all users not to explicitly add it again. | |
2323 | (grub_device): New variable; contains corresponding device for grubdir. | |
2324 | (fs_module, partmap_module, devabstraction_module): Pass | |
2325 | `--device ${grub_device}' to grub_probe to avoid traversing /dev | |
2326 | every time. | |
2327 | ||
9ece62fb | 2328 | 2008-06-05 Robert Millan <rmh@aybabtu.com> |
2329 | ||
2330 | * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID | |
2331 | is found, print it (same layout as with labels). | |
2332 | ||
1ad36d37 | 2333 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
2334 | ||
2335 | * util/biosdisk.c (get_drive): Rename to ... | |
2336 | (find_grub_drive): ... this. Update all users. | |
2337 | ||
2338 | (get_os_disk): Rename to ... | |
2339 | (convert_system_partition_to_system_disk): ... this. Update all users. | |
2340 | ||
2341 | (find_drive): Rename to ... | |
2342 | (find_system_device): ... this. Update all users. | |
2343 | ||
e6a30859 | 2344 | 2008-06-04 Robert Millan <rmh@aybabtu.com> |
2345 | ||
2346 | * util/biosdisk.c (get_os_disk): Handle IDA devices. | |
2347 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
2348 | (make_device_map): Likewise. | |
2349 | ||
00c108a4 | 2350 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
2351 | ||
2352 | * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL | |
2353 | before dereferencing it. | |
2354 | ||
2355 | * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a | |
2356 | union with fat12/fat16-specific ones. Add some new fields, including | |
2357 | `num_serial' for both versions. | |
2358 | (struct grub_fat_data): Add `uuid' member. | |
2359 | (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new | |
2360 | names. Initialize `data->uuid' using `num_serial'. | |
2361 | (grub_fat_uuid): New function. | |
2362 | (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member. | |
2363 | ||
2364 | * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field. | |
2365 | (grub_reiserfs_uuid): New function. | |
2366 | (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct | |
2367 | member. | |
2368 | ||
2369 | * fs/xfs.c (grub_xfs_sblock): Add `uuid' field. | |
2370 | (grub_xfs_uuid): New function. | |
2371 | (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member. | |
2372 | ||
1385c5bb | 2373 | 2008-06-01 Robert Millan <rmh@aybabtu.com> |
2374 | ||
2375 | * util/update-grub_lib.in (prepare_grub_to_access_device): Generate | |
2376 | code that is backward compatible with pre-uuid search command. | |
2377 | ||
c682dfd7 | 2378 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
2379 | ||
2380 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through | |
2381 | floppies after everything else, to ensure floppy drive isn't accessed | |
2382 | unnecessarily (patch from Bean). | |
2383 | ||
b7db5d47 | 2384 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
2385 | ||
2386 | * commands/search.c (search_label, search_fs_uuid, search_file): Do | |
2387 | not print device names when we were asked to set a variable. | |
2388 | ||
6e037aa9 | 2389 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
2390 | ||
2391 | * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement | |
2392 | using "cursor-on" and "cursor-off" commands (understood at least by | |
2393 | the Open Firmware flavour on OLPC). | |
2394 | ||
41305bc8 | 2395 | 2008-05-31 Michael Gorven <michael@gorven.za.net> |
2396 | ||
2397 | * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor | |
2398 | on and off sequences. | |
2399 | ||
69ba137e | 2400 | 2008-05-31 Robert Millan <rmh@aybabtu.com> |
2401 | ||
2402 | * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'. | |
2403 | * util/update-grub.in: Likewise. | |
2404 | ||
520ae21b | 2405 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
2406 | ||
2407 | * util/biosdisk.c (linux_find_partition): Simplify logic and | |
2408 | make the code more universal. Keep special processing for | |
2409 | devfs, but use a simple rule for all other devices. If the | |
2410 | device ends with a number, append 'p' and the partition number. | |
2411 | Otherwise, append only the partition number. | |
2412 | ||
5786569b | 2413 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2414 | ||
2415 | * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable. | |
2416 | * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and | |
2417 | GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as | |
2418 | the `root' parameter to Linux. | |
2419 | ||
51500452 | 2420 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2421 | ||
2422 | * commands/search.c (options): Rename --fs_uuid to --fs-uuid. | |
2423 | * util/update-grub_lib.in (prepare_grub_to_access_device): Replace | |
2424 | --fs_uuid with --fs-uuid. | |
2425 | * util/update-grub.in: Allow filesystem UUID probes to fail (since not | |
2426 | all filesystems support them). | |
2427 | ||
811d3878 | 2428 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2429 | ||
2430 | * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as | |
f19dbdb7 | 2431 | grub_printf() flags, since we're printing in units of 2 bytes. |
811d3878 | 2432 | |
cab63c95 | 2433 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2434 | ||
2435 | * util/grub.d/00_header.in: Remove obsolete comment referencing | |
2436 | convert_system_path_to_grub_path(). | |
2437 | * util/update-grub.in: Likewise. | |
2438 | * util/update-grub_lib.in (is_path_readable_by_grub): New function. | |
2439 | (convert_system_path_to_grub_path): Add a warning message explaining | |
2440 | that this function is deprecated. Rely on is_path_readable_by_grub() | |
2441 | for the readability checks. | |
2442 | (font_path): Use is_path_readable_by_grub() for the readability | |
2443 | check rather than convert_system_path_to_grub_path(). | |
2444 | ||
972e2f7a | 2445 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2446 | ||
2447 | * util/update-grub_lib.in (prepare_grub_to_access_device): New function. | |
2448 | * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without | |
2449 | converting it first. | |
2450 | * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup | |
2451 | grub.cfg for access to font file, and afterwards call it again to set | |
2452 | the root device. | |
2453 | ||
62191274 | 2454 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2455 | ||
2456 | * commands/search.c (options): Add --fs_uuid option. | |
2457 | (search_fs_uuid): New function. | |
2458 | (grub_cmd_search): Fix --set argument passing. | |
2459 | Use search_fs_uuid() when requested via --fs_uuid. | |
2460 | (grub_search_init): Update help message. | |
2461 | * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid' | |
2462 | and redeclare it as an array of 16-bit words. | |
2463 | (grub_ext2_uuid): New function. | |
2464 | (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member. | |
2465 | * include/grub/fs.h (struct grub_fs): Add `uuid' struct member. | |
2466 | * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT) | |
2467 | (GRUB_DEVICE_BOOT_UUID): New variables. | |
2468 | (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove. | |
2469 | * util/grub.d/00_header.in: Set root using `search --fs_uuid' command | |
2470 | whenever possible. | |
2471 | * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead, | |
2472 | just assume `root' variable has the right value. | |
2473 | * util/grub.d/10_linux.in: Likewise. | |
2474 | * util/grub-probe.c (probe): Probe for filesystem UUID when requested | |
2475 | via PRINT_FS_UUID. | |
2476 | (main): Recognise `-t fs_uuid' argument. | |
2477 | ||
01b73ec8 | 2478 | 2008-05-30 Robert Millan <rmh@aybabtu.com> |
2479 | ||
2480 | * util/biosdisk.c (map): Redefine structure to hold information | |
2481 | about GRUB drive name. | |
fe6b695a | 2482 | (get_drive): Reimplement without assuming (and verifying) BIOS-like |
01b73ec8 | 2483 | drive names. |
2484 | (call_hook): Remove. | |
2485 | (grub_util_biosdisk_iterate): Access drive names via `.drive' struct | |
2486 | member. Assume drive has partitions. | |
2487 | (grub_util_biosdisk_open): Access device names via `.device' struct | |
2488 | member. | |
2489 | (open_device): Likewise. | |
2490 | (find_drive): Likewise. | |
2491 | (read_device_map): Adjust map[] usage to match the new struct | |
2492 | definition. Don't check for duplicates (still possible, but not cheap | |
2493 | anymore). | |
2494 | (grub_util_biosdisk_fini): Free malloced buffers referenced by map[]. | |
2495 | (make_device_name): Remove assumption of BIOS-like drive names. | |
2496 | ||
22f16596 | 2497 | 2008-05-30 Pavel Roskin <proski@gnu.org> |
2498 | ||
2499 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as | |
2500 | compiling execute.c doesn't need grub_script.tab.h anymore. | |
2501 | (normal/command.c_DEPENDENCIES): Likewise. | |
2502 | (normal/function.c_DEPENDENCIES): Likewise. | |
2503 | * conf/i386-ieee1275.rmk: Likewise. | |
2504 | * conf/i386-linuxbios.rmk: Likewise. | |
2505 | * conf/i386-pc.rmk: Likewise. | |
2506 | * conf/powerpc-ieee1275.rmk: Likewise. | |
2507 | * conf/sparc64-ieee1275.rmk: Likewise. | |
2508 | ||
528ad8f2 | 2509 | 2008-05-29 Pavel Roskin <proski@gnu.org> |
2510 | ||
d1dff95d | 2511 | * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end |
2512 | when scanning metadata for volume group name. | |
2513 | ||
528ad8f2 | 2514 | * include/grub/script.h: Don't include grub_script.tab.h. It's |
2515 | a generated file, which may only be included from the files with | |
2516 | DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE, | |
2517 | use union YYSTYPE, as the later allows forward declaration. | |
2518 | * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE. | |
2519 | ||
47248e08 | 2520 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
2521 | ||
2522 | * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'. | |
2523 | (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros. | |
2524 | [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes | |
2525 | (grub_console_checkkey): Add grub_dprintf() call to report unknown | |
2526 | scan codes. | |
2527 | ||
ee632529 | 2528 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
2529 | ||
2530 | * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for | |
2531 | control key combinations. | |
2532 | ||
eee96e08 | 2533 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
2534 | ||
2535 | * util/powerpc/ieee1275/grub-install.in: Move from here ... | |
2536 | * util/ieee1275/grub-install.in: ... to here. | |
2537 | * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location. | |
2538 | * i386-ieee1275.rmk (sbin_SCRIPTS): New variable. | |
2539 | (grub_install_SOURCES): Likewise. | |
2540 | ||
da9a6a94 | 2541 | 2008-05-29 Robert Millan <rmh@aybabtu.com> |
2542 | ||
2543 | * fs/affs.c: Update copyright year. | |
2544 | * fs/ext2.c: Likewise. | |
2545 | * fs/fshelp.c: Likewise. | |
2546 | * fs/hfsplus.c: Likewise. | |
2547 | * fs/ntfs.c: Likewise. | |
2548 | * fs/xfs.c: Likewise. | |
2549 | * include/grub/fshelp.h: Likewise. | |
2550 | * util/grub-mkdevicemap.c: Likewise. | |
2551 | ||
12e65f3a | 2552 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
2553 | ||
2554 | * util/update-grub.in: Allow chmod call to fail, since /boot/grub/ | |
2555 | might need to be fatfs to support some firmware implementations | |
2556 | (e.g. OFW or EFI). | |
2557 | ||
23023641 | 2558 | 2008-05-28 Robert Millan <rmh@aybabtu.com> |
2559 | ||
2560 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC | |
2561 | devices. | |
2562 | * util/grub-mkdevicemap.c (get_mmc_disk_name) | |
2563 | (make_device_map): Likewise. | |
2564 | ||
887d2619 | 2565 | 2008-05-20 Bean <bean123ch@gmail.com> |
2566 | ||
2567 | * fs/fshelp.c (grub_fshelp_map_block): New function. | |
2568 | (grub_fshelp_find_file): Use 64-bit type for pos and block address. | |
2569 | Use `>>' and `&' operator to avoid 64-bit divide and modulo. | |
2570 | ||
2571 | * include/grub/fshelp.h (grub_fshelp_journal_type): New enum. | |
2572 | (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro. | |
2573 | (grub_fshelp_journal): New structure. | |
2574 | (grub_fshelp_map_block): New function prototype. | |
2575 | (grub_fshelp_read_file): Use grub_disk_addr_t as block type. | |
2576 | (grub_fshelp_map_block): Likewise. | |
2577 | ||
2578 | * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro. | |
2579 | (EXT3_JOURNAL_MAGIC_NUMBER): Likewise. | |
2580 | (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise. | |
2581 | (EXT3_JOURNAL_COMMIT_BLOCK): Likewise. | |
2582 | (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise. | |
2583 | (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise. | |
2584 | (EXT3_JOURNAL_REVOKE_BLOCK): Likewise. | |
2585 | (EXT3_JOURNAL_FLAG_ESCAPE): Likewise. | |
2586 | (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise. | |
2587 | (EXT3_JOURNAL_FLAG_DELETED): Likewise. | |
2588 | (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise. | |
2589 | (grub_ext2_sblock): New members for journal support. | |
2590 | (grub_ext3_journal_header): New structure. | |
2591 | (grub_ext3_journal_revoke_header): Likewise. | |
2592 | (grub_ext3_journal_block_tag): Likewise. | |
2593 | (grub_ext3_journal_sblock): Likewise. | |
2594 | (grub_fshelp_node): New members logfile and journal. | |
2595 | (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use | |
2596 | grub_fshelp_map_block to get real block number. | |
2597 | (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block | |
2598 | number. | |
2599 | (grub_ext2_read_inode): Likewise. | |
2600 | (grub_ext3_get_journal): New function. | |
2601 | (grub_read_inode): Initialize journal using grub_ext3_get_journal. | |
2602 | (grub_ext2_close): Release memory used by journal. | |
2603 | ||
2604 | * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr". | |
2605 | (REISERFS_MAGIC_DESC_BLOCK): New macro. | |
2606 | (grub_reiserfs_transaction_header): Renamed to | |
2607 | grub_reiserfs_description_block, replace field data with real_blocks. | |
2608 | (grub_reiserfs_commit_block): New structure. | |
2609 | (grub_reiserfs_data): New member journal. | |
2610 | (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block | |
2611 | number. | |
2612 | (grub_reiserfs_read_symlink): Likewise. | |
2613 | (grub_reiserfs_iterate_dir): Likewise. | |
2614 | (grub_reiserfs_open): Likewise. | |
2615 | (grub_reiserfs_read): Likewise. | |
2616 | (grub_reiserfs_get_journal): New function. | |
2617 | (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are | |
2618 | three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal | |
2619 | using grub_reiserfs_get_journal. | |
2620 | (grub_reiserfs_close): Release memory used by journal. | |
2621 | ||
2622 | * fs/affs.c (grub_affs_read_block): Change block type to | |
2623 | grub_disk_addr_t. Use grub_divmod64 to do 64-bit division. | |
2624 | ||
2625 | * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t. | |
2626 | ||
2627 | * fs/hfsplus.c (grub_hfsplus_read_block): Likewise. | |
2628 | ||
2629 | * fs/ntfs.c (grub_ntfs_read_block): Likewise. | |
2630 | ||
2631 | * fs/udf.c (grub_udf_read_block): Change block type to | |
2632 | grub_disk_addr_t. Use type cast to avoid warning. | |
2633 | ||
2634 | * fs/xfs.c (grub_xfs_read_block): Likewise. | |
2635 | ||
b7c6bed5 | 2636 | 2008-05-16 Christian Franke <franke@computer.org> |
2637 | ||
2638 | * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue | |
2639 | to ensure that break with ESC will always work. | |
2640 | * commands/sleep.c (grub_interruptible_millisleep): Likewise. | |
2641 | Remove ESC from keyboard queue. | |
2642 | ||
eedf167f | 2643 | 2008-05-16 Christian Franke <franke@computer.org> |
2644 | ||
2645 | * util/biosdisk.c: [__CYGWIN__] Add includes. | |
2646 | (grub_util_biosdisk_open): Use Linux code also for Cygwin. | |
2647 | (get_os_disk): Move variable declarations to OS specific | |
2648 | parts to avoid warning. | |
2649 | [__GNU__] (get_os_disk): Fix /dev/sdXsN case. | |
2650 | [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names. | |
2651 | (grub_util_biosdisk_get_grub_dev): Use Linux code also for | |
2652 | Cygwin. | |
2653 | * util/getroot.c: [__CYGWIN__] Add includes. | |
2654 | (strip_extra_slashes): Fix "/" case. | |
2655 | [__CYGWIN__] (get_win32_path): New function. | |
2656 | [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path. | |
2657 | [__CYGWIN__] (find_root_device): Disable. | |
2658 | [__CYGWIN__] (get_bootsec_serial): New function. | |
2659 | [__CYGWIN__] (find_cygwin_root_device): Likewise. | |
2660 | [__linux__] (grub_guess_root_device): Add early returns to simplify | |
2661 | structure. | |
2662 | [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device. | |
2663 | [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID | |
2664 | check for Linux only. | |
2665 | ||
a079699e | 2666 | 2008-05-15 Bean <bean123ch@gmail.com> |
2667 | ||
2668 | * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the | |
2669 | keyboard hang problem in apple's intel mac. | |
2670 | ||
1cf4059a | 2671 | 2008-05-09 Robert Millan <rmh@aybabtu.com> |
2672 | ||
2673 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio | |
2674 | devices. | |
2675 | * util/grub-mkdevicemap.c (get_virtio_disk_name) | |
2676 | (make_device_map): Likewise. | |
2677 | Reported by Aurelien Jarno <aurel32@debian.org> | |
2678 | ||
ed759390 | 2679 | 2008-05-07 Ian Campbell <ijc@hellion.org.uk> |
2680 | ||
2681 | * util/biosdisk.c (get_os_disk): Recognise xvd type disks. | |
2682 | * util/grub-mkdevicemap.c (get_xvd_disk_name): New function. | |
2683 | (make_device_map): Output entries for xvd type disks. | |
2684 | ||
b56c4eaa | 2685 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
2686 | ||
2687 | * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS | |
2688 | devices. | |
2689 | * util/grub-mkdevicemap.c (get_cciss_disk_name) | |
2690 | (make_device_map): Likewise. | |
2691 | Reported by Roland Dreier <rdreier@cisco.com> | |
2692 | ||
7f8866ed | 2693 | 2008-05-07 Robert Millan <rmh@aybabtu.com> |
2694 | ||
2695 | * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional | |
2696 | grub_strstr() call. Correct a few mistakes in failure path handling. | |
2697 | ||
b0346e0f | 2698 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
2699 | ||
2700 | * util/update-grub_lib.in (make_system_path_relative_to_its_root): | |
2701 | Do not print a trailing slash (therefore, the root directory is an | |
2702 | empty string). | |
2703 | (convert_system_path_to_grub_path): Do not remove trailing slash | |
2704 | from make_system_path_relative_to_its_root() output. | |
2705 | ||
2706 | * util/i386/pc/grub-install.in: Add trailing slash to output from | |
2707 | make_system_path_relative_to_its_root(). | |
2708 | ||
6cf12cbd | 2709 | 2008-05-06 Robert Millan <rmh@aybabtu.com> |
2710 | ||
2711 | * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This | |
2712 | ensures that output lines aren't intermangled with those sent to | |
2713 | stderr (via grub_util_info()). | |
2714 | * util/grub-probe.c (grub_refresh): Likewise. | |
2715 | * util/i386/pc/grub-setup.c (grub_refresh): Likewise. | |
2716 | ||
0fbb3117 | 2717 | 2008-05-05 Christian Franke <franke@computer.org> |
2718 | ||
2719 | * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]: | |
2720 | Add Cygwin device names. | |
2721 | (get_ide_disk_name) [__CYGWIN__]: Likewise. | |
2722 | (get_scsi_disk_name) [__CYGWIN__]: Likewise. | |
2723 | (check_device): Return error instead of success on empty name. | |
2724 | (make_device_map): Move label inside linux specific code to | |
2725 | prevent compiler warning. | |
2726 | ||
8124cdb7 | 2727 | 2008-04-30 Robert Millan <rmh@aybabtu.com> |
2728 | ||
2729 | Based on patch from Fabian Greffrath <greffrath@leat.rub.de> | |
2730 | * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the | |
2731 | first boot option. | |
2732 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT. | |
2733 | ||
094c01d0 | 2734 | 2008-04-29 Robert Millan <rmh@aybabtu.com> |
2735 | ||
2736 | * docs/grub.cfg: New file (example GRUB configuration). | |
2737 | ||
f4b1fc02 | 2738 | 2008-04-26 Robert Millan <rmh@aybabtu.com> |
2739 | ||
329ce2a5 | 2740 | * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add |
2741 | `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c' | |
2742 | and `disk/ieee1275/nand.c'. | |
f4b1fc02 | 2743 | |
25f16ec1 | 2744 | 2008-04-25 Bean <bean123ch@gmail.com> |
f19dbdb7 | 2745 | |
25f16ec1 | 2746 | * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and |
2747 | i386-linuxbios. | |
2748 | ||
2749 | * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device, | |
2750 | change the buffer size to 4096 for cdrom device. | |
2751 | ||
2752 | * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod | |
2753 | and nand.mod. | |
2754 | (_linux_mod_SOURCES): New variable. | |
2755 | (_linux_mod_CFLAGS): Likewise. | |
2756 | (_linux_mod_LDFLAGS): Likewise. | |
2757 | (linux_mod_SOURCES): Likewise. | |
2758 | (linux_mod_CFLAGS): Likewise. | |
2759 | (linux_mod_LDFLAGS): Likewise. | |
2760 | (nand_mod_SOURCES): Likewise. | |
2761 | (nand_mod_CFLAGS): Likewise. | |
2762 | (nand_mod_LDFLAGS): Likewise. | |
2763 | ||
2764 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return | |
2765 | GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device | |
2766 | type property. (nand device in olpc don't have this property) | |
2767 | ||
2768 | * include/grub/disk.h (grub_disk_dev_id): New macro | |
2769 | GRUB_DISK_DEVICE_NAND_ID. | |
2770 | ||
2771 | * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New | |
2772 | function prototype. | |
2773 | (grub_rescue_cmd_initrd): Likewise. | |
2774 | ||
2775 | * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro. | |
2776 | (linux_kernel_params): Add new member ofw_signature, ofw_num_items, | |
2777 | ofw_cif_handler and ofw_idt, adjust padding number. | |
f19dbdb7 | 2778 | |
25f16ec1 | 2779 | * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if |
2780 | GRUB_MACHINE_IEEE1275 is defined. | |
2781 | ||
2782 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): | |
2783 | Use NESTED_FUNC_ATTR attribute on the hook parameter. | |
2784 | ||
2785 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR | |
2786 | on nested function heap_init. | |
2787 | (grub_upper_mem): New variable for i386-ieee1275. | |
2788 | (grub_get_extended_memory): New function for i386-ieee1275. | |
2789 | (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275. | |
2790 | ||
2791 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use | |
2792 | NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type | |
2793 | property. | |
f19dbdb7 | 2794 | |
25f16ec1 | 2795 | * loader/i386/ieee1275/linux.c: New file. |
2796 | ||
2797 | * loader/i386/ieee1275/linux_normal.c: New file. | |
2798 | ||
2799 | * disk/ieee1275/nand.c: New file. | |
2800 | ||
e89d61e9 | 2801 | 2008-04-18 Thomas Schwinge <tschwinge@gnu.org> |
2802 | ||
2803 | * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct | |
2804 | value. | |
2805 | * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise. | |
2806 | ||
602566f6 | 2807 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
2808 | ||
2809 | Restructures early code path on ieee1275 to unify grub_main() as | |
2810 | the first C function that is executed in every platform. | |
2811 | ||
2812 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype. | |
2813 | * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of | |
2814 | cmain(). | |
2815 | * kern/powerpc/ieee1275/crt0.S (_start): Likewise. | |
2816 | * kern/ieee1275/cmain.c (cmain): Rename to ... | |
2817 | * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this. | |
2818 | * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init() | |
2819 | at the beginning. | |
2820 | ||
57490c2b | 2821 | 2008-04-18 Robert Millan <rmh@aybabtu.com> |
2822 | ||
2823 | * util/update-grub.in: Fix syntax error when setting | |
2824 | `GRUB_PRELOAD_MODULES'. | |
2825 | Reported by Stephane Chazelas <stephane@artesyncp.com> | |
2826 | ||
1977517d | 2827 | 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com> |
2828 | ||
2829 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text | |
2830 | section into account, newer toolchains generate unique build ids | |
2831 | * configure.ac: remove the test for --build-id=none acceptance, | |
e0c5dacb | 2832 | we want build ids to be preserved |
1977517d | 2833 | * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id |
2834 | far from other sections don't cause the raw binary images grow | |
2835 | size | |
2836 | ||
bfb1f1a2 | 2837 | 2008-04-15 Robert Millan <rmh@aybabtu.com> |
2838 | ||
2839 | * disk/lvm.c: Update copyright year. | |
2840 | * kern/misc.c: Likewise. | |
2841 | ||
01979850 | 2842 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
2843 | ||
2844 | * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when | |
f19dbdb7 | 2845 | there is no memory left for physical volume name. |
01979850 | 2846 | |
0a1150e2 | 2847 | 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi> |
2848 | ||
2849 | * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical | |
2850 | volume name mapping to support bigger than 9 character names properly. | |
2851 | ||
82ead3fe | 2852 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
2853 | ||
2854 | * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check, | |
2855 | as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm | |
2856 | ||
e54a72f5 | 2857 | 2008-04-13 Christian Franke <franke@computer.org> |
2858 | ||
2859 | * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy | |
2860 | to create a floppy emulation boot CD when non emulation mode | |
2861 | does not work. | |
2862 | Enable Joliet CD filesystem extension. | |
2863 | ||
9fe86034 | 2864 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
2865 | ||
2866 | * kern/misc.c (grub_strncat): Fix off-by-one error. | |
2867 | Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
2868 | ||
2869 | * kern/env.c (grub_env_context_close): Clear current context, not | |
2870 | previous one. | |
2871 | Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn> | |
2872 | ||
2873 | * kern/misc.c (grub_strcat): Minor speed optimization (same code size). | |
2874 | ||
7ceeee39 | 2875 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
2876 | ||
2877 | Improve robustness when handling LVM. | |
2878 | ||
2879 | * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL | |
f19dbdb7 | 2880 | (and leave `*p' unmodified). |
7ceeee39 | 2881 | (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating |
2882 | through it. | |
2883 | (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when | |
2884 | iterating through it. | |
2885 | (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating | |
2886 | through it. | |
fe6b695a | 2887 | (grub_lvm_scan_device): Check the return value (and fail gracefully |
7ceeee39 | 2888 | when due) on each grub_lvm_getvalue() or grub_strstr() call. |
2889 | Don't assume `vg->pvs != NULL' when iterating through it. | |
2890 | ||
58cd3d85 | 2891 | 2008-04-13 Robert Millan <rmh@aybabtu.com> |
2892 | ||
2893 | * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'. | |
2894 | * genmk.rb (partmap): New variable. | |
2895 | (CLEANFILES, PARTMAPFILES): Add #{partmap}. | |
2896 | (#{partmap}): New target rule. | |
2897 | * genpartmaplist.sh: New file. | |
2898 | * Makefile.in (pkglib_DATA): Add partmap.lst. | |
2899 | (partmap.lst): New target rule. | |
2900 | * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed | |
2901 | modules (including all partition maps), instead of preloading them. | |
2902 | ||
78b51059 | 2903 | 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de> |
2904 | ||
2905 | * util/grub.d/30_os-prober.in: New script. Use `os-prober' and | |
2906 | `linux-boot-prober' (if installed) to detect other operating | |
2907 | systems which are installed on the computer and add them to | |
2908 | the boot menu. | |
2909 | * conf/common.rmk: Build and install 30_os-prober. | |
2910 | ||
a91627b4 | 2911 | 2008-04-12 Robert Millan <rmh@aybabtu.com> |
2912 | ||
2913 | * kern/powerpc/ieee1275/init.c: Move from here ... | |
2914 | * kern/ieee1275/init.c: ... to here. Update all users. | |
2915 | ||
2916 | * kern/powerpc/ieee1275/cmain.c: Move from here ... | |
2917 | * kern/ieee1275/cmain.c: ... to here. Update all users. | |
2918 | ||
2919 | * kern/powerpc/ieee1275/openfw.c: Move from here ... | |
2920 | * kern/ieee1275/openfw.c: ... to here. Update all users. | |
2921 | ||
2922 | * loader/powerpc/ieee1275/multiboot2.c: Move from here ... | |
2923 | * loader/ieee1275/multiboot2.c: ... to here. Update all users. | |
2924 | ||
322562ea | 2925 | 2008-04-10 Pavel Roskin <proski@gnu.org> |
2926 | ||
2927 | * configure.ac: Always use "_cv_" in cache variables for | |
2928 | compatibility with Autoconf 2.62. | |
2929 | ||
a02a73c5 | 2930 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
2931 | ||
2932 | Revert grub/machine/init.h addition by Pavel (since it breaks on | |
2933 | i386-ieee1275 and others): | |
2934 | * util/i386/pc/misc.c: Remove grub/machine/init.h. | |
2935 | * util/powerpc/ieee1275/misc.c: Likewise. | |
2936 | ||
25c024b1 | 2937 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
2938 | ||
2939 | * util/grub-probe.c (probe): Improve error message. | |
2940 | ||
3cbd2f98 | 2941 | 2008-04-07 Robert Millan <rmh@aybabtu.com> |
2942 | ||
2943 | * util/biosdisk.c (read_device_map): Skip devices that don't exist | |
2944 | (this prevents the presence of a bogus entry from ruining the whole | |
2945 | thing). | |
2946 | ||
87a297bf | 2947 | 2008-04-06 Pavel Roskin <proski@gnu.org> |
2948 | ||
36747a62 | 2949 | * util/biosdisk.c: Include grub/util/biosdisk.h. |
2950 | * util/grub-fstest.c (execute_command): Make static. | |
2951 | * util/grub-mkdevicemap.c (check_device): Likewise. | |
2952 | * util/i386/pc/misc.c: Include grub/machine/init.h. | |
2953 | * util/powerpc/ieee1275/misc.c: Likewise. | |
2954 | * util/lvm.c: Include grub/util/lvm.h. | |
2955 | * util/misc.c: Include grub/kernel.h, grub/misc.h and | |
2956 | grub/cache.h. | |
2957 | * util/raid.c: Include grub/util/raid.h. | |
2958 | (grub_util_getdiskname): Make static. | |
2959 | ||
87a297bf | 2960 | * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and |
2961 | grub_hostfs_fini(), as they are called from grub_init_all() and | |
2962 | grub_fini_all() respectively. This fixes an infinite loop in | |
2963 | grub-fstest due to double registration of hostfs. | |
2964 | Reported by Christian Franke <Christian.Franke@t-online.de> | |
2965 | ||
f6ce7629 | 2966 | 2008-04-05 Pavel Roskin <proski@gnu.org> |
2967 | ||
2968 | * bus/pci.c (grub_pci_iterate): For multifunction devices, probe | |
2969 | all 8 functions. Otherwise, probe function 0 only. | |
2970 | ||
070e49e4 | 2971 | 2008-04-04 Pavel Roskin <proski@gnu.org> |
2972 | ||
8b088a4c | 2973 | * commands/lspci.c (grub_lspci_iter): Print the bus number |
2974 | correctly. | |
2975 | ||
4f657021 | 2976 | * commands/lspci.c (grub_pci_classes): Fix typos. |
2977 | (grub_lspci_iter): Don't print func twice. Print vendor ID | |
2978 | before device ID, as it's normally done. | |
2979 | ||
070e49e4 | 2980 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): |
2981 | Fix signedness warnings. | |
2982 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): | |
2983 | Likewise. | |
2984 | * util/ieee1275/get_disk_name.c: Include config.h so that | |
2985 | _GNU_SOURCE is defined and getline() is declared. Mark an | |
2986 | unused argument as such. Fix a signedness warning. | |
2987 | ||
ba7328dc | 2988 | 2008-04-02 Pavel Roskin <proski@gnu.org> |
2989 | ||
26887f22 | 2990 | * genkernsyms.sh.in: Use more robust assignments for CC and |
2991 | srcdir. Quote srcdir. | |
2992 | * gensymlist.sh.in: Likewise. Assert at the compile time that | |
2993 | the symbol table is not empty. | |
2994 | ||
ba7328dc | 2995 | * disk/raid.c (grub_raid_memberlist): Fix a signedness warning. |
2996 | * fs/cpio.c (grub_cpio_read): Likewise. | |
2997 | ||
0f582c6b | 2998 | 2008-04-01 Pavel Roskin <proski@gnu.org> |
2999 | ||
4b6e1995 | 3000 | * disk/ata.c (grub_ata_open): Don't lose precision in disk->id. |
3001 | * disk/host.c (grub_host_open): Likewise. | |
3002 | * disk/loopback.c (grub_loopback_open): Likewise. | |
3003 | * disk/memdisk.c (grub_memdisk_open): Use a string pointer for | |
3004 | disk->id as in disk/host.c, not a multi-character constant. | |
3005 | ||
828a2768 | 3006 | * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The |
3007 | later is obsolete, potentially dangerous and sets a bad example. | |
3008 | * util/i386/efi/grub-mkimage.c (make_header): Likewise. | |
3009 | * util/misc.c (grub_util_get_image_size): Likewise. | |
3010 | ||
2bb4fb47 | 3011 | * disk/loopback.c (options): Improve help for "--partitions". |
3012 | ||
0f582c6b | 3013 | * normal/arg.c (grub_arg_show_help): Fix spacing of the long |
3014 | options to align them with the short options, e.g. "echo -e". | |
3015 | ||
a33224e0 | 3016 | 2008-03-31 Bean <bean123ch@gmail.com> |
3017 | ||
3018 | * video/reader/png.c (grub_png_data): New member is_16bit and | |
3019 | image_data. | |
3020 | (grub_png_decode_image_header): Detect 16 bit png image. | |
3021 | (grub_png_convert_image): New function to convert 16 bit image to 8 bit. | |
3022 | (grub_png_decode_png): Call grub_png_convert_image for 16 bit image. | |
3023 | (grub_video_reader_png): Release memory occupied by image_data. | |
3024 | ||
3025 | * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than | |
3026 | 4096 bytes. | |
3027 | (grub_nfs_mount): Skip the test for sector per cluster. | |
3028 | ||
3029 | * include/grub/ntfs.h (MAX_SPC): Removed. | |
3030 | ||
86cb4f54 | 3031 | 2008-03-31 Bean <bean123ch@gmail.com> |
3032 | ||
3033 | * conf/common.rmk (pkgdata_MODULES): Add afs.mod. | |
3034 | (grub_probe_SOURCES): Add fs/afs.c. | |
3035 | (grub_fstest_SOURCES): Likewise. | |
3036 | (afs_mod_SOURCES): New variable. | |
3037 | (afs_mod_CFLAGS): Likewise. | |
3038 | (afs_mod_LDFLAGS): Likewise. | |
3039 | ||
3040 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c. | |
3041 | (grub_emu_SOURCES): Likewise. | |
3042 | ||
3043 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
3044 | ||
3045 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3046 | ||
3047 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
3048 | ||
3049 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3050 | ||
3051 | * fs/afs.c: New file. | |
3052 | ||
17c74c21 | 3053 | 2008-03-30 Pavel Roskin <proski@gnu.org> |
3054 | ||
4cb68e89 | 3055 | * disk/host.c: Include grub/misc.h to fix a warning. |
3056 | * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix | |
3057 | warnings about implicit declarations. | |
3058 | ||
8790bb04 | 3059 | * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a |
3060 | variable. | |
3061 | * include/grub/i386/loader.h: Change declaration of | |
3062 | grub_linux_boot() to match what grub_loader_set() expects. | |
3063 | * util/getroot.c (grub_guess_root_device): Return const char* to | |
3064 | fix a warning. | |
3065 | * util/grub-probe.c (probe): Fix a warning about uninitialized | |
3066 | abstraction_name variable. | |
3067 | * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark | |
3068 | second argument as unused to fix a warning. | |
3069 | ||
9a3f3296 | 3070 | * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add |
3071 | missing grub_error() call. | |
3072 | ||
0ecef90d | 3073 | * util/update-grub_lib.in: Define datarootdir, since Autoconf |
3074 | 2.60 and newer uses it to define datadir. | |
3075 | ||
0bf6d401 | 3076 | * commands/sleep.c: Fix warning about implicit declaration. |
3077 | * disk/memdisk.c: Likewise. | |
3078 | * loader/aout.c: Likewise. | |
3079 | * loader/i386/bsd_normal.c: Likewise. | |
3080 | * util/grub-probe.c: Likewise. | |
3081 | ||
7cdacf97 | 3082 | * commands/i386/cpuid.c (has_longmode): Make static. |
3083 | * disk/i386/pc/biosdisk.c (cd_drive): Likewise. | |
3084 | * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused. | |
3085 | ||
17c74c21 | 3086 | * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load |
3087 | GDT. This is more robust, as %ds can change. | |
3088 | (grub_biosdisk_rw_int13_extensions): Don't clear %ds before | |
3089 | calling real_to_prot(). | |
3090 | (grub_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
3091 | ||
80a3e68b | 3092 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
3093 | ||
3094 | * kern/i386/pc/startup.S: Assert that uncompressed functions | |
3095 | don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE. | |
3096 | * kern/i386/pc/lzo1x.S: Remove all .align directives in the | |
3097 | code, as they push parts of the code (error handlers) beyond | |
3098 | GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this | |
3099 | code as correctness and size. | |
3100 | ||
77bcd272 | 3101 | 2008-03-28 Pavel Roskin <proski@gnu.org> |
3102 | ||
3103 | * kern/i386/pc/startup.S | |
3104 | (grub_biosdisk_get_diskinfo_int13_extensions): When converting | |
3105 | data block address to the real mode, keep offset minimal. This | |
3106 | works around a bug in AWARD BIOS on old Athlon systems, which | |
3107 | makes CD detection hang. | |
3108 | ||
c5dfd43b | 3109 | 2008-03-26 Pavel Roskin <proski@gnu.org> |
3110 | ||
3111 | * normal/color.c (grub_parse_color_name_pair): Make `name' a | |
3112 | const. | |
3113 | * include/grub/normal.h: Add grub_parse_color_name_pair() | |
3114 | declaration. | |
3115 | ||
bf962df2 | 3116 | 2008-03-24 Bean <bean123ch@gmail.com> |
3117 | ||
3118 | * disk/i386/pc/biosdisk.c (cd_start): Removed. | |
3119 | (cd_count): Removed. | |
3120 | (cd_drive): New variable. | |
3121 | (grub_biosdisk_get_drive): Don't check for (cdN) device. | |
3122 | (grub_biosdisk_call_hook): Likewise. | |
3123 | (grub_biosdisk_iterate): Change cdrom detection method. | |
3124 | (grub_biosdisk_open): Replace cd_start with cd_drive. | |
3125 | (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to | |
3126 | detect cdrom device. | |
3127 | ||
3128 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START): | |
3129 | Removed. | |
3130 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed. | |
3131 | (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro. | |
3132 | (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise. | |
3133 | (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise. | |
3134 | (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise. | |
3135 | (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise. | |
3136 | (GRUB_BIOSDISK_CDTYPE_MASK): Likewise. | |
3137 | (grub_biosdisk_cdrp): New structure. | |
3138 | (grub_biosdisk_get_cdinfo_int13_extensions): New function. | |
3139 | ||
3140 | * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable. | |
3141 | ||
3142 | * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root | |
3143 | device. | |
3144 | ||
3145 | * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions): | |
3146 | New function. | |
3147 | ||
68e7fc7a | 3148 | 2008-03-20 Robert Millan <rmh@aybabtu.com> |
3149 | ||
3150 | Remove 2 TiB limit in ata.mod. | |
3151 | * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t. | |
3152 | (grub_ata_dumpinfo): Print sector count with 0x%llx. | |
3153 | (grub_ata_identify): Interpret `&info16[100]' as a pointer to | |
3154 | grub_uint64_t instead of grub_uint32_t. | |
3155 | ||
38ad2cf5 | 3156 | 2008-03-05 Bean <bean123ch@gmail.com> |
3157 | ||
3158 | * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function. | |
3159 | (grub_multiboot): Set boot device. | |
3160 | ||
3161 | * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF. | |
3162 | ||
2b89344e | 3163 | 2008-03-02 Bean <bean123ch@gmail.com> |
3164 | ||
3165 | * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of | |
3166 | symlink_buffer. | |
3167 | ||
87a95d1f | 3168 | 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> |
3169 | ||
3170 | * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and | |
3171 | texinfo.tex. | |
3172 | ||
3173 | * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly | |
3174 | modified. | |
3175 | ||
3176 | * docs/fdl.texi: New file. | |
f19dbdb7 | 3177 | |
87a95d1f | 3178 | * docs/mdate-sh: New file. Copied from gnulib. |
3179 | * docs/texinfo.tex: Likewise. | |
3180 | ||
3181 | * config.guess: Updated from gnulib. | |
3182 | * install-sh: Likewise. | |
3183 | ||
7dc15d8e | 3184 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
3185 | ||
3186 | * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod. | |
3187 | (aout_mod_SOURCES): New variable. | |
3188 | (aout_mod_CFLAGS): Likewise. | |
3189 | (aout_mod_LDFLAGS): Likewise. | |
3190 | ||
3191 | * conf/i386-ieee1275.rmk: Likewise. | |
3192 | ||
b00ab696 | 3193 | 2008-02-28 Robert Millan <rmh@aybabtu.com> |
3194 | ||
3195 | * util/update-grub.in: Reorganise terminal validity check. Accept | |
3196 | `ieee1275:console' (OLPC) and `*:gfxterm' as valid too. | |
3197 | Based on suggestion by Franklin PIAT. | |
3198 | ||
79ca2d78 | 3199 | 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de> |
3200 | ||
3201 | * include/grub/util/getroot.h (grub_util_check_block_device): Export new | |
3202 | function. | |
3203 | * util/getroot.c (grub_util_check_block_device): New function that | |
3204 | returns the given argument if it is a block device and returns NULL else. | |
3205 | * util/grub-probe.c (argument_is_device): New variable. | |
3206 | (probe): Promote device_name from a variable to an argument. Receive | |
3207 | device_name from grub_util_check_block_device() if path is NULL and from | |
3208 | grub_guess_root_device() else. Do not free() device_name anymore. | |
f19dbdb7 | 3209 | (options): Introduce new parameter '-d, --device'. |
79ca2d78 | 3210 | (main): Add description of the new parameter to the help screen. |
3211 | Rename path variable to argument. Set argument_is_device if the '-d' | |
3212 | option is given. Pass argument to probe() depending on | |
3213 | argument_is_device. | |
3214 | ||
0d16e571 | 3215 | 2008-02-24 Bean <bean123ch@gmail.com> |
3216 | ||
3217 | * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro. | |
3218 | (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise. | |
3219 | (GRUB_ISO9660_VOLDESC_SUPP): Likewise. | |
3220 | (GRUB_ISO9660_VOLDESC_PART): Likewise. | |
3221 | (GRUB_ISO9660_VOLDESC_END): Likewise. | |
3222 | (grub_iso9660_primary_voldesc): New member escape. | |
3223 | (grub_iso9660_data): New member joliet. | |
3224 | (grub_iso9660_convert_string): New function. | |
3225 | (grub_iso9660_mount): Detect joliet extension. | |
3226 | (grub_iso9660_iterate_dir): Convert filename when joliet is detected. | |
3227 | (grub_iso9660_iso9660_label): Likewise. | |
3228 | ||
3229 | * conf/common.rmk (pkgdata_MODULES): Add udf.mod. | |
3230 | (grub_setup_SOURCES): Add fs/udf.c. | |
3231 | (grub_fstest_SOURCES): Likewise. | |
3232 | (udf_mod_SOURCES): New variable. | |
3233 | (udf_mod_CFLAGS): Likewise. | |
3234 | (udf_mod_LDFLAGS): Likewise. | |
3235 | ||
3236 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c. | |
3237 | (grub_emu_SOURCES): Likewise. | |
3238 | ||
3239 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
3240 | ||
3241 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3242 | ||
3243 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
3244 | ||
3245 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3246 | ||
3247 | * fs/udf.c: New file. | |
3248 | ||
8a594a17 | 3249 | 2008-02-24 Robert Millan <rmh@aybabtu.com> |
3250 | ||
3251 | * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES) | |
3252 | (normal/lexer.c_DEPENDENCIES): New variables. | |
3253 | * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
3254 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
3255 | * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES) | |
3256 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
3257 | * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES) | |
3258 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
3259 | * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
3260 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
3261 | * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES) | |
3262 | (normal/lexer.c_DEPENDENCIES): Likewise. | |
3263 | ||
2dc33c03 | 3264 | 2008-02-23 Robert Millan <rmh@aybabtu.com> |
3265 | ||
3266 | * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member, | |
3267 | since they were intended to be in hex. This didn't break previously | |
3268 | because of a bug in gpt_partition_map_iterate() (see below). | |
3269 | ||
3270 | (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp' | |
3271 | when checking the validity of GPT header. | |
3272 | Remove `partno', since it always provides the same information as `i'. | |
3273 | ||
f6f4cfb0 | 3274 | 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org> |
3275 | ||
3276 | * include/grub/efi/time.h: Fix a wrong comment. | |
3277 | ||
79ff665f | 3278 | 2008-02-19 Pavel Roskin <proski@gnu.org> |
3279 | ||
3280 | * kern/rescue.c (grub_enter_rescue_mode): Improve initial | |
3281 | message. | |
3282 | ||
d38e24c2 | 3283 | 2008-02-19 Bean <bean123ch@gmail.com> |
3284 | ||
3285 | * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod. | |
3286 | (aout_mod_SOURCES): New variable. | |
3287 | (aout_mod_CFLAGS): Likewise. | |
3288 | (aout_mod_LDFLAGS): Likewise. | |
3289 | (_bsd_mod_SOURCES): New variable. | |
3290 | (_bsd_mod_CFLAGS): Likewise. | |
3291 | (_bsd_mod_LDFLAGS): Likewise. | |
3292 | (bsd_mod_SOURCES): New variable. | |
3293 | (bsd_mod_CFLAGS): Likewise. | |
3294 | (bsd_mod_LDFLAGS): Likewise. | |
3295 | ||
3296 | * include/grub/aout.h: New file. | |
3297 | ||
3298 | * include/grub/i386/loader.h (grub_unix_real_boot): New function. | |
3299 | ||
3300 | * include/grub/i386/bsd.h: New file. | |
3301 | ||
3302 | * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC | |
3303 | to make it public. | |
3304 | ||
3305 | * kern/elf.c (grub_elf32_load): Get the physical address after the hook | |
3306 | function is called, so that it's possible to change it inside the hook. | |
3307 | (grub_elf64_load): Likewise. | |
3308 | (grub_elf_file): Don't close the file if elf header is not found. | |
3309 | (grub_elf_close): Close the file if grub_elf_file fails (The new | |
3310 | grub_elf_file won't close it). | |
3311 | (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize. | |
3312 | (grub_elf64_size): Likewise. | |
3313 | ||
3314 | * kern/i386/loader.S (grub_unix_real_boot): New function. | |
3315 | ||
3316 | * loader/aout.c: New file. | |
3317 | ||
3318 | * loader/i386/bsd.c: New file. | |
3319 | ||
3320 | * loader/i386/bsd_normal.c: New file. | |
3321 | ||
3322 | * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format. | |
3323 | ||
3324 | * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it | |
fe987087 | 3325 | can test other formats. |
d38e24c2 | 3326 | |
b93bdb0f | 3327 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
3328 | ||
3329 | * partmap/gpt.c: Include `<grub/gpt_partition.h>'. | |
3330 | (grub_gpt_partition_type_empty): Redefine with macro from | |
3331 | `<grub/gpt_partition.h>'. | |
3332 | (gpt_partition_map_iterate): Adjust partition type comparison. | |
3333 | ||
3334 | Export `entry' as partmap-specific `part.data' struct. | |
3335 | (grub_gpt_header, grub_gpt_partentry): Move from here ... | |
3336 | ||
3337 | * include/grub/gpt_partition.h (grub_gpt_header) | |
3338 | (grub_gpt_partentry): ... to here (new file). | |
3339 | ||
3340 | * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'. | |
3341 | ||
3342 | (grub_gpt_partition_type_bios_boot): New const variable, defined | |
3343 | with macro from `<grub/gpt_partition.h>'. | |
3344 | ||
3345 | (setup): Replace `first_start' with `embed_region', which keeps | |
3346 | track of the embed region (and is partmap-agnostic). | |
3347 | ||
3348 | Replace find_first_partition_start() with find_usable_region(), | |
3349 | which finds a usable region for embedding using partmap-specific | |
3350 | knowledge (supports PC/MSDOS and GPT). | |
3351 | ||
3352 | Fix all assumptions that the embed region start at sector 1, using | |
3353 | `embed_region.start' from now on. Similarly, use `embed_region.end' | |
3354 | rather than `first_start' to calculate available size. | |
3355 | ||
3356 | In grub_util_info() message, replace "into after the MBR" with an | |
3357 | indication of the specific sector our embed region starts at. | |
3358 | ||
66cb40f6 | 3359 | 2008-02-19 Robert Millan <rmh@aybabtu.com> |
3360 | ||
3361 | * DISTLIST: Replace `commands/ieee1275/halt.c' and | |
3362 | `commands/ieee1275/reboot.c' with `commands/halt.c' and | |
3363 | `commands/reboot.c'. | |
3364 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
3365 | (halt_mod_SOURCES): Likewise. | |
3366 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES) | |
3367 | (halt_mod_SOURCES): Likewise. | |
3368 | ||
b7202015 | 3369 | 2008-02-17 Christian Franke <franke@computer.org> |
3370 | ||
3371 | * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key. | |
3372 | ||
32b0fc49 | 3373 | 2008-02-17 Robert Millan <rmh@aybabtu.com> |
3374 | ||
3375 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
3376 | set `first_start' to 0 for non-PC/MSDOS partition maps. | |
3377 | ||
aca63502 | 3378 | 2008-02-16 Robert Millan <rmh@aybabtu.com> |
3379 | ||
3380 | * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), | |
3381 | do not assume partition map is PC/MSDOS before performing checks that | |
3382 | are specific to that layout. | |
3383 | ||
0de8be86 | 3384 | 2008-02-13 Robert Millan <rmh@aybabtu.com> |
3385 | ||
3386 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove | |
3387 | `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'. | |
3388 | * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs. | |
3389 | ||
c3db8364 | 3390 | 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org> |
3391 | ||
3392 | * configure.ac: Only a cosmetic change on the handling of | |
3393 | -fno-stack-protector. | |
3394 | ||
f714229e | 3395 | 2008-02-12 Alexandre Boeglin <alex@boeglin.org> |
3396 | ||
c3db8364 | 3397 | * conf/i386-efi.rmk (grub_emu_SOURCES): Replace |
3398 | commands/i386/pc/halt.c and reboot.c by commands/halt.c and | |
3399 | reboot.c. | |
f714229e | 3400 | (grub_install_SOURCES): Add halt.mod and reboot.mod. |
3401 | (halt_mod_SOURCES): New variable. | |
3402 | (halt_mod_CFLAGS): Likewise. | |
3403 | (halt_mod_LDFLAGS): Likewise. | |
3404 | (reboot_mod_SOURCES): Likewise. | |
3405 | (reboot_mod_CFLAGS): Likewise. | |
3406 | (reboot_mod_LDFLAGS): Likewise. | |
3407 | ||
c3db8364 | 3408 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace |
3409 | commands/ieee1275/halt.c and reboot.c by commands/halt.c and | |
3410 | reboot.c. | |
f714229e | 3411 | (halt_mod_SOURCES): Likewise. |
3412 | (reboot_mod_SOURCES): Likewise. | |
3413 | ||
c3db8364 | 3414 | * conf/i386-pc.rmk (grub_emu_SOURCES): Replace |
3415 | commands/i386/pc/reboot.c by commands/reboot.c. | |
f714229e | 3416 | (reboot_mod_SOURCES): Likewise. |
3417 | ||
3418 | * commands/i386/pc/reboot.c: merge this file ... | |
3419 | ||
3420 | * commands/ieee1275/reboot.c: ... and this file ... | |
3421 | ||
3422 | * commands/reboot.c: ... to this file. | |
c3db8364 | 3423 | Add some precompiler directive to include the correct header for |
3424 | each machine. | |
f714229e | 3425 | |
3426 | * commands/ieee1275/halt.c: move this file ... | |
3427 | ||
3428 | * commands/halt.c: ... to here. | |
c3db8364 | 3429 | Add some precompiler directive to include the correct header for |
3430 | each machine. | |
f714229e | 3431 | |
3432 | * include/grub/efi/efi.h (grub_reboot): New function declaration. | |
3433 | (grub_halt): Likewise. | |
3434 | ||
3435 | * kern/efi/efi.c (grub_reboot): New function. | |
3436 | (grub_halt): Likewise. | |
3437 | ||
c74493e0 | 3438 | 2008-02-12 Robert Millan <rmh@aybabtu.com> |
3439 | ||
3440 | * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before | |
3441 | /dev (like it is done for /dev/mapper). This doesn't provide support | |
3442 | for EVMS, but at least it is now easy to identify the problem when it | |
3443 | arises. | |
3444 | ||
d0db4b04 | 3445 | 2008-02-11 Robert Millan <rmh@aybabtu.com> |
3446 | ||
3447 | * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition) | |
3448 | (grub_util_biosdisk_get_grub_dev): Check open() exit status by | |
3449 | comparing it with -1, not 0. | |
3450 | ||
bf748642 | 3451 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
3452 | ||
3453 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and | |
3454 | `disk/lvm.c'. | |
3455 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3456 | * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. | |
3457 | ||
3458 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and | |
3459 | `disk/lvm.c' to the end of the list. | |
3460 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
3461 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
3462 | ||
b5db202a | 3463 | 2008-02-10 Robert Millan <rmh@aybabtu.com> |
3464 | ||
3465 | * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call | |
3466 | grub_print_error() instead. This will let user know why we're entering | |
3467 | rescue mode. | |
3468 | Based on suggestions from Sam Morris. | |
3469 | ||
83abee31 | 3470 | 2008-02-10 Alexandre Boeglin <alex@boeglin.org> |
3471 | ||
3472 | * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg() | |
3473 | on remaining N args, instead of "--" arg N times. | |
3474 | ||
78d5a08b | 3475 | 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi> |
3476 | ||
3477 | * font/manager.c (unknown_glyph): Added variable for unknown glyph. | |
3478 | (fill_with_default_glyph): Changed to use unknown_glyph for fill | |
3479 | pattern for unknown glyphs. | |
3480 | ||
68807e5f | 3481 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3482 | ||
3483 | * configure.ac: Probe for `help2man'. | |
3484 | * Makefile.in (builddir): New variable. | |
3485 | (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it, | |
3486 | or otherwise add a few flags/options to it. | |
3487 | (install-local): For every executable utility or script that is | |
3488 | installed, invoke $(HELP2MAN) to install a manpage based on --help | |
3489 | output. | |
3490 | ||
3491 | * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so | |
3492 | that it doesn't prevent --help from working in build tree. | |
3493 | ||
3494 | * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org' | |
3495 | with `bug-grub@gnu.org'. | |
3496 | * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise. | |
3497 | * util/update-grub.in (usage): New function. | |
3498 | Implement proper argument check, with support for --help and --version | |
3499 | (as well as existing -y). | |
3500 | ||
3501 | 2008-02-09 Christian Franke <franke@computer.org> | |
0d9ff7f0 | 3502 | |
3503 | * commands/cat.c (grub_cmd_cat): Print '\r' as hex to | |
3504 | avoid overwriting previous output. | |
3505 | * kern/rescue.c (grub_rescue_cmd_cat): Likewise. | |
3506 | ||
c1962162 | 3507 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3508 | ||
3509 | * normal/menu.c (run_menu): If timeout is set to zero, don't bother | |
3510 | drawing the menu. | |
3511 | ||
3dac2e3f | 3512 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3513 | ||
3514 | * commands/sleep.c: New file. | |
3515 | * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'. | |
3516 | (sleep_mod_SOURCES): New variable. | |
3517 | (sleep_mod_CFLAGS): Likewise. | |
3518 | (sleep_mod_LDFLAGS): Likewise. | |
3519 | ||
7a634e08 | 3520 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3521 | ||
3522 | * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for | |
3523 | situations in which we can deduce the RAID size and the superblock | |
3524 | doesn't match it. | |
3525 | ||
b92f0c18 | 3526 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3527 | ||
3528 | * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct | |
3529 | and return a grub_diskmemberlist_t composed of LVM physical volumes. | |
3530 | [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member. | |
3531 | ||
3532 | * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct | |
3533 | and return a grub_diskmemberlist_t composed of physical array members. | |
3534 | [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member. | |
3535 | ||
3536 | * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct | |
3537 | prototype. | |
3538 | [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer. | |
3539 | [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration. | |
3540 | [GRUB_UTIL] (grub_disk_memberlist_t): New typedef. | |
3541 | ||
3542 | * util/grub-probe.c (probe): Move partmap probing code from here ... | |
3543 | (probe_partmap): ... to here. | |
3544 | (probe): Use probe_partmap() once for the disk we're probing, and | |
3545 | additionally, when such disk contains a memberlist() struct member, | |
3546 | once for each disk that is contained in the structure returned by | |
3547 | memberlist(). | |
3548 | ||
91a4bf68 | 3549 | 2008-02-09 Robert Millan <rmh@aybabtu.com> |
3550 | ||
3551 | * util/grub-probe.c (main): When `verbosity > 1', set `debug' | |
3552 | environment variable to 'all' in order to obtain debug output from | |
3553 | non-util/ code. | |
3554 | * util/i386/pc/grub-setup.c (main): Likewise. | |
3555 | ||
a96f9caa | 3556 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
3557 | ||
3558 | * disk/raid.c (grub_raid_scan_device): Check for | |
3559 | `array->device[sb.this_disk.number]' rather than for | |
3560 | `array->device[sb.this_disk.number]->name', since the latter is not | |
fe6b695a | 3561 | guaranteed to be accessible. |
a96f9caa | 3562 | |
b37a9222 | 3563 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
3564 | ||
3565 | * disk/raid.c: Update copyright. | |
3566 | * fs/cpio.c: Likewise. | |
3567 | * include/grub/raid.h: Likewise. | |
3568 | * loader/i386/pc/multiboot.c: Likewise. | |
3569 | * util/hostfs.c: Likewise. | |
3570 | ||
5626aee1 | 3571 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
3572 | ||
3573 | * include/grub/raid.h (struct grub_raid_array): Change type of `device' | |
3574 | to a grub_disk_t array. | |
3575 | * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with | |
3576 | `device[x]'. | |
3577 | (grub_raid_scan_device): Replace `device[x].name' accesses with | |
3578 | `device[x]->name'. Simplify initialization of `array->device[x]'. | |
3579 | ||
554f0187 | 3580 | 2008-02-08 Robert Millan <rmh@aybabtu.com> |
3581 | ||
3582 | * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few | |
3583 | grub_dprintf() calls. | |
3584 | * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range | |
3585 | error message. | |
3586 | ||
1ec8425d | 3587 | 2008-02-07 Christian Franke <franke@computer.org> |
3588 | ||
3589 | * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello | |
3590 | instead of fseek and ftell to support large files. | |
3591 | (grub_hostfs_read): Likewise. | |
3592 | ||
f2156fda | 3593 | 2008-02-07 Robert Millan <rmh@aybabtu.com> |
3594 | ||
3595 | Patch from Jeroen Dekkers. | |
3596 | * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk | |
fe6b695a | 3597 | failure, since successfully reading all array members might not be |
f2156fda | 3598 | required. |
3599 | ||
9216e0e7 | 3600 | 2008-02-06 Robert Millan <rmh@aybabtu.com> |
3601 | ||
3602 | * util/grub-probe.c (probe): Simplify partmap probing (with the | |
3603 | assumption that the first word up to the underscore equals to | |
3604 | the module name). | |
3605 | ||
b0dfd29a | 3606 | 2008-02-06 Christian Franke <franke@computer.org> |
3607 | ||
3608 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE | |
3609 | (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on | |
3610 | last block of a cpio or tar stream. | |
3611 | Check for "TRAILER!!!" instead of any empty data | |
3612 | block to detect last block of a cpio stream. | |
3613 | (grub_cpio_dir): Fix constness of variable np. | |
3614 | (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if | |
3615 | cpio or tar trailer is detected. This fixes a crash | |
3616 | on open of a non existing file. | |
3617 | ||
c32865bf | 3618 | 2008-02-05 Bean <bean123ch@gmail.com> |
3619 | ||
3620 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical | |
3621 | address of entry. | |
3622 | (grub_multiboot_load_elf64): Likewise. | |
3623 | (grub_multiboot): Initialize mbi structure. | |
3624 | ||
3625 | * util/grub-fstest.c: Don't include unused header file script.h. | |
3626 | ||
fe6b695a | 3627 | * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning |
c32865bf | 3628 | of file. |
3629 | (grub_fstest_SOURCES): Likewise. | |
3630 | ||
409480b7 | 3631 | 2008-02-05 Robert Millan <rmh@aybabtu.com> |
3632 | ||
3633 | * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT) | |
3634 | (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END) | |
3635 | (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC) | |
3636 | (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros. | |
3637 | ||
3638 | * kern/i386/pc/startup.S: Include `<grub/term.h>'. | |
3639 | (translation_table): Replace hardcoded values with macros | |
3640 | provided by `<grub/term.h>'. | |
3641 | ||
3642 | * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'. | |
3643 | (keyboard_map): Correct/add a few values, with macros provided | |
3644 | by `<grub/term.h>'. | |
3645 | (keyboard_map_shift): Zero values that don't differ from their | |
3646 | `keyboard_map' equivalents. | |
3647 | (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling. | |
3648 | Discard the second scan code that is always sent by Caps lock. | |
3649 | Only use `keyboard_map_shift' when it provides a non-zero value, | |
3650 | otherwise fallback to `keyboard_map'. | |
3651 | ||
99fadbaa | 3652 | 2008-02-04 Bean <bean123ch@gmail.com> |
3653 | ||
3654 | * Makefile.in (enable_grub_fstest): New variable. | |
3655 | ||
3656 | * conf/common.rmk (grub_fstest_init.lst): New rule. | |
3657 | (grub_fstest_init.h): Likewise. | |
3658 | (grub_fstest_init.c): Likewise. | |
3659 | (util/grub-fstest.c_DEPENDENCIES): New variable. | |
3660 | (grub_fstest_SOURCES): Likewise. | |
3661 | ||
3662 | * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest. | |
3663 | ||
3664 | * util/grub-fstest.c: New file. | |
3665 | ||
bf567c50 | 3666 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
3667 | ||
3668 | Make grub-setup handle a separate root device. | |
f19dbdb7 | 3669 | |
bf567c50 | 3670 | * util/i386/pc/grub-setup.c (setup): Always open the root device, |
3671 | so that the root device can be compared with the destination | |
3672 | device. | |
3673 | When embedding the core image, if the root and destination devices | |
3674 | are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to | |
3675 | 0xFF. | |
3676 | When not embedding, set ROOT_DRIVE to 0xFF. | |
f19dbdb7 | 3677 | |
9be6b98b | 3678 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
3679 | ||
3680 | Add support for having a grub directory in a different drive. This | |
3681 | is still only the data handling part. | |
f19dbdb7 | 3682 | |
9be6b98b | 3683 | * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF. |
3684 | (codestart): Save %dh in GRUB_ROOT_DRIVE. | |
3685 | (grub_root_drive): New variable. | |
3686 | ||
3687 | * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE | |
3688 | instead of GRUB_BOOT_DRIVE to construct a device name. Set | |
3689 | GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it | |
3690 | as it was. | |
3691 | ||
3692 | * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype. | |
3693 | ||
3694 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New | |
3695 | macro. | |
3696 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f. | |
3697 | ||
3698 | * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this | |
3699 | is bogus, because PXE booting does not specify any drive | |
3700 | correctly. | |
3701 | ||
3702 | * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I | |
3703 | am not sure if this is really correct. | |
3704 | ||
3705 | * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive | |
3706 | is always identical to the boot drive when booting from a CD. | |
3707 | ||
3708 | * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any | |
3709 | longer. | |
3710 | (root_drive): New variable. | |
3711 | (real_start): Unconditionally set %dh to ROOT_DRIVE. | |
3712 | (setup_sectors): Push %dx right after popping it, because %dh will | |
3713 | be modified later. | |
3714 | (copy_buffer): Restore %dx. | |
3715 | ||
e0ca0677 | 3716 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
3717 | ||
3718 | * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to | |
3719 | use `cdboot.img' for cdrom images. | |
3720 | ||
3b3f6629 | 3721 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
3722 | ||
3723 | * util/grub.d/00_header.in: Issue scripting commands for GRUB to | |
3724 | only setup gfxterm when `font' command has succeeded. | |
3725 | ||
d42b3672 | 3726 | 2008-02-03 Robert Millan <rmh@aybabtu.com> |
3727 | ||
3728 | * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS] | |
3729 | (grub_rescue_cmd_multiboot_loader) | |
3730 | (grub_rescue_cmd_module_loader): Enable multiboot1 calls. | |
3731 | ||
fa370ea6 | 3732 | 2008-02-03 Pavel Roskin <proski@gnu.org> |
3733 | ||
e0c5dacb | 3734 | * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop |
fa370ea6 | 3735 | %edx and %esi from stack only after grub_gate_a20() is called. |
3736 | grub_gate_a20() clobbers %edx. | |
3737 | ||
f2a76e1d | 3738 | 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org> |
3739 | ||
3740 | * configure.ac (AC_INIT): Bumped to 1.96. | |
3741 | ||
3742 | * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c, | |
3743 | commands/lspci.c,disk/memdisk.c, include/grub/pci.h, | |
3744 | include/grub/i386/pc/pci.h, video/readers/jpeg.c, and | |
3745 | video/readers/png.c. | |
3746 | ||
90fd32d1 | 3747 | 2008-02-03 Bean <bean123ch@gmail.com> |
9be665dd | 3748 | |
3749 | * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img. | |
3750 | (cdboot_img_SOURCES): New variable. | |
3751 | (cdboot_img_ASFLAGS): New variable. | |
3752 | (cdboot_img_LDFLAGS): New variable. | |
3753 | ||
3754 | * boot/i386/pc/cdboot.S: New file. | |
3755 | ||
3756 | * disk/i386/pc/biosdisk.c (cd_start): New variable. | |
3757 | (cd_count): Likewise. | |
3758 | (grub_biosdisk_get_drive): Add support for cd device. | |
3759 | (grub_biosdisk_call_hook): Likewise. | |
3760 | (grub_biosdisk_iterate): Likewise. | |
3761 | (grub_biosdisk_open): Likewise. | |
3762 | (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro. | |
3763 | (grub_biosdisk_rw): Support reading from cd device. | |
3764 | (GRUB_MOD_INIT): Iterate cd devices. | |
3765 | ||
3766 | * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro. | |
3767 | (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise. | |
3768 | (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise. | |
3769 | ||
3770 | * kern/i386/pc/init.c (make_install_device): Check for cd device. | |
3771 | ||
4020aa53 | 3772 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
3773 | ||
3774 | * commands/read.c: New file. | |
3775 | * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'. | |
3776 | (read_mod_SOURCES): New variable. | |
3777 | (read_mod_CFLAGS): Likewise. | |
3778 | (read_mod_LDFLAGS): Likewise. | |
3779 | ||
e03a1132 | 3780 | 2008-02-02 Robert Millan <rmh@aybabtu.com> |
3781 | ||
3782 | * normal/main.c (grub_normal_execute): Check for `menu->size' when | |
3783 | determining whether menu has to be displayed. | |
3784 | ||
58c69220 | 3785 | 2008-02-02 Marco Gerards <marco@gnu.org> |
3786 | ||
3787 | * bus/pci.c: New file. | |
3788 | ||
3789 | * include/grub/pci.h: Likewise. | |
3790 | ||
3791 | * include/grub/i386/pc/pci.h: Likewise. | |
3792 | ||
3793 | * commands/lspci.c: Likewise. | |
3794 | ||
3795 | * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and | |
3796 | `lspci.mod'. | |
3797 | (pci_mod_SOURCES): New variable. | |
3798 | (pci_mod_CFLAGS): Likewise. | |
3799 | (pci_mod_LDFLAGS): Likewise. | |
3800 | (lspci_mod_SOURCES): Likewise. | |
3801 | (lspci_mod_CFLAGS): Likewise. | |
f19dbdb7 | 3802 | (lspci_mod_LDFLAGS): Likewise. |
58c69220 | 3803 | |
c004e1b4 | 3804 | 2008-02-02 Bean <bean123ch@gmail.com> |
3805 | ||
3806 | * fs/ufs.c (INODE_BLKSZ): Fix incorrect value. | |
3807 | (grub_ufs_get_file_block): Fix indirect block calculation problem. | |
3808 | ||
3809 | * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk. | |
3810 | (grub_xfs_btree_node): New structure. | |
3811 | (grub_xfs_btree_root): New structure. | |
3812 | (grub_xfs_inode): New members nblocks, extsize, nextents and btree. | |
3813 | (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents. | |
3814 | (GRUB_XFS_EXTENT_BLOCK): Likewise. | |
3815 | (GRUB_XFS_EXTENT_SIZE): Likewise. | |
3816 | (grub_xfs_read_block): Support btree format type. | |
3817 | (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook. | |
3818 | Use directory block as basic unit. | |
3819 | ||
3820 | * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block. | |
3821 | ||
3822 | * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as | |
3823 | __attribute__ ((__regparm__ (1))). | |
3824 | ||
f95562bf | 3825 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
3826 | ||
3827 | Correct a mistake in previous commit. | |
3828 | ||
3829 | * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
3830 | top. | |
3831 | (normal/command.c_DEPENDENCIES): New variable. | |
3832 | ||
7d31f41f | 3833 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
3834 | ||
3835 | * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the | |
3836 | top. | |
3837 | (normal/command.c_DEPENDENCIES): New variable. | |
3838 | (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables. | |
3839 | * conf/i386-ieee1275.rmk: Likewise. | |
3840 | * conf/i386-linuxbios.rmk: Likewise. | |
3841 | * conf/i386-pc.rmk: Likewise. | |
3842 | * conf/sparc64-ieee1275.rmk: Likewise. | |
3843 | * conf/powerpc-ieee1275.rmk: Likewise. | |
3844 | (grub_emu_SOURCES): Add `fs/fshelp.c'. | |
3845 | ||
3846 | * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it. | |
3847 | ||
60b6be74 | 3848 | 2008-02-01 Robert Millan <rmh@aybabtu.com> |
3849 | ||
3850 | * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf() | |
3851 | call at beginning of function. | |
3852 | ||
078522ab | 3853 | 2008-01-31 Pavel Roskin <proski@gnu.org> |
3854 | ||
3855 | * util/powerpc/ieee1275/grub-mkrescue.in: New file. | |
d2c11005 | 3856 | * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable. |
3857 | (grub_mkrescue_SOURCES): Likewise. | |
078522ab | 3858 | * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in. |
3859 | ||
ccaa8a5f | 3860 | 2008-01-30 Robert Millan <rmh@aybabtu.com> |
3861 | ||
3862 | * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
3863 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ... | |
3864 | * conf/common.rmk (util/grub-probe.c_DEPENDENCIES) | |
3865 | (grub_probe_SOURCES): ... to here. | |
3866 | ||
3867 | * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'. | |
3868 | (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove. | |
3869 | * conf/i386-ieee1275.rmk: Likewise. | |
3870 | * conf/i386-linuxbios.rmk: Likewise. | |
3871 | * conf/powerpc-ieee1275.rmk: Likewise. | |
3872 | ||
ae5a9cd7 | 3873 | 2008-01-30 Tristan Gingold <gingold@free.fr> |
3874 | ||
3875 | * kern/rescue.c: Silently accept empty lines. | |
3876 | ||
70bc2ef2 | 3877 | 2008-01-29 Bean <bean123ch@gmail.com> |
3878 | ||
3879 | * boot/i386/pc/lnxboot.S (data_start): Code cleanup. | |
3880 | (real_code_2): Code cleanup and change comment style. | |
3881 | (move_memory): Avoid using 32-bit address mode. | |
3882 | ||
6a4d50ea | 3883 | 2008-01-29 Bean <bean123ch@gmail.com> |
3884 | ||
3885 | * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'. | |
3886 | (png_mod_SOURCES): New variable. | |
3887 | (png_mod_CFLAGS): Likewise. | |
3888 | (png_mod_LDFLAGS): Likewise. | |
3889 | ||
3890 | * video/readers/png.c: New file. | |
3891 | ||
11cc30ac | 3892 | 2008-01-28 Robert Millan <rmh@aybabtu.com> |
3893 | ||
3894 | * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro. | |
3895 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove | |
3896 | `ifndef GRUB_MOD_GAP' hack. | |
3897 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
3898 | ||
3abc589f | 3899 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
3900 | ||
3901 | * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip | |
3902 | `GRUB_MOD_GAP' for platforms in which it's not defined. | |
962ca133 | 3903 | * util/elf/grub-mkimage.c (add_segments): Likewise. |
3abc589f | 3904 | |
e1907778 | 3905 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
3906 | ||
3907 | Get grub-emu to build again (including parallel builds). | |
3908 | ||
3909 | * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable. | |
3910 | Split into ... | |
3911 | (util/grub-emu.c_DEPENDENCIES): ... this, ... | |
3912 | (normal/execute.c_DEPENDENCIES): ... this, ... | |
3913 | (grub-emu_DEPENDENCIES): ... and this. | |
3914 | ||
3915 | * conf/i386-efi.rmk: Likewise. | |
3916 | * conf/i386-linuxbios.rmk: Likewise. | |
3917 | * conf/i386-ieee1275.rmk: Likewise. | |
3918 | * conf/powerpc-ieee1275.rmk: Likewise. | |
3919 | (grub_emu_SOURCES): Remove duplicated `kern/file.c'. | |
3920 | ||
2216b101 | 3921 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
3922 | ||
3923 | * NEWS: Add a few items. | |
3924 | ||
f75172d9 | 3925 | 2008-01-27 Robert Millan <rmh@aybabtu.com> |
3926 | ||
3927 | Fix parallel builds with grub-emu. Based on earlier commit for | |
3928 | grub-probe and grub-setup. | |
3929 | ||
3930 | * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
3931 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
3932 | * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
3933 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
3934 | * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
3935 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
3936 | * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
3937 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
3938 | * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ... | |
3939 | (util/grub-emu.c_DEPENDENCIES): ... this. | |
3940 | ||
3f51de77 | 3941 | 2008-01-27 Pavel Roskin <proski@gnu.org> |
3942 | ||
3943 | * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP | |
3944 | to create a gap between _end and the modules added to the image | |
3945 | with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC. | |
3946 | * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP. | |
3947 | * util/elf/grub-mkimage.c (add_segments): Likewise. | |
3948 | ||
2033f53e | 3949 | 2008-01-26 Pavel Roskin <proski@gnu.org> |
3950 | ||
3951 | * kern/dl.c (grub_dl_load): Don't abort if prefix is not set, | |
3952 | just return an error. | |
3953 | ||
22da1f6f | 3954 | 2008-01-26 Bean <bean123ch@gmail.com> |
3955 | ||
3956 | * fs/reiserfs.c (grub_fshelp_node): New member next_offset. | |
3957 | (grub_reiserfs_get_item): Save offset of the next item. | |
3958 | (grub_reiserfs_iterate_dir): Use next_offset to find next item. | |
3959 | ||
2a9525e6 | 3960 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
3961 | ||
3962 | * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to | |
3963 | make all filesystem sources appear together (possibly fixing omissions | |
3964 | while at it). | |
3965 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
3966 | * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3967 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
3968 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
3969 | ||
3970 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally, | |
3971 | add `kern/file.c'. | |
3972 | * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise. | |
3973 | * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
3974 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise. | |
3975 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise. | |
3976 | ||
3977 | * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'. | |
3978 | (probe): Add a sanity check to make sure of our ability to read | |
3979 | requested files when probing for filesystem type. | |
3980 | ||
3981 | * genmk.rb: Update copyright year (2007). | |
3982 | ||
3983 | * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init) | |
3984 | (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init) | |
3985 | (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init) | |
3986 | (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init) | |
3987 | (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init) | |
3988 | : Remove function prototypes. | |
3989 | ||
b95f71b5 | 3990 | 2008-01-25 Robert Millan <rmh@aybabtu.com> |
3991 | ||
3992 | Revert my previous commits (based on wrong assumption of how grub_errno | |
3993 | works). | |
3994 | ||
fe6b695a | 3995 | * kern/disk.c (grub_disk_open): Stop resetting grub_errno. |
b95f71b5 | 3996 | * kern/file.c (grub_file_open): Likewise. |
3997 | ||
d08bbb49 | 3998 | 2008-01-24 Pavel Roskin <proski@gnu.org> |
3999 | ||
4000 | * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares | |
4001 | that hang if GRUB tries to setup colors. | |
4002 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set | |
4003 | colors for firmwares that don't support it. | |
4004 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): | |
4005 | Recognize Open Hack'Ware, set flags to work around its | |
4006 | limitations. | |
4007 | ||
605e36ed | 4008 | 2008-01-24 Robert Millan <rmh@aybabtu.com> |
4009 | ||
4010 | * kern/file.c (grub_file_open): Do not account previous failures of | |
4011 | unrelated functions when grub_errno is checked for. | |
4012 | Reported by Oleg Strikov. | |
4013 | ||
bac332a1 | 4014 | 2008-01-24 Bean <bean123ch@gmail.com> |
4015 | ||
4016 | * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro. | |
4017 | (grub_ufs_sblock): New member volume name. | |
4018 | (grub_ufs_find_file): Fix string copy bug. | |
4019 | (grub_ufs_label): Implement this function properly. | |
4020 | ||
4021 | * fs/hfs.c (grub_hfs_cnid_type): New enum. | |
4022 | (grub_hfs_iterate_records): Use the correct file number for extents | |
4023 | and catalog file. Fix problem in next index calculation. | |
4024 | (grub_hfs_find_node): Replace recursive function call with loop. | |
4025 | (grub_hfs_iterate_dir): Replace recursive function call with loop. | |
4026 | ||
15c80c09 | 4027 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4028 | ||
4029 | * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>', | |
4030 | `<grub/symbol.h>' and `<grub/multiboot.h>'. | |
4031 | (grub_multiboot2_real_boot): New function prototype. | |
4032 | ||
4033 | * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'. | |
4034 | [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable. | |
4035 | ||
4036 | * kern/i386/ieee1275/init.c (grub_os_area_addr) | |
4037 | (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables. | |
4038 | ||
305338fd | 4039 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4040 | ||
4041 | * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with | |
4042 | #ifdef'ed out grub_printf(). | |
4043 | ||
3ea52685 | 4044 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4045 | ||
4046 | * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out | |
4047 | grub_dprintf calls, since they make "debug=all" mode unusable. | |
4048 | (grub_console_checkkey): Likewise. | |
4049 | ||
5882ae4b | 4050 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4051 | ||
4052 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add | |
4053 | `term/i386/pc/at_keyboard.c'. | |
4054 | (pkglib_MODULES): Add `serial.mod'. | |
4055 | (serial_mod_SOURCES): New variable. | |
4056 | (serial_mod_CFLAGS): Likewise. | |
4057 | (serial_mod_LDFLAGS): Likewise. | |
4058 | ||
4059 | * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove | |
4060 | `<grub/powerpc/ieee1275/console.h>'. | |
4061 | (grub_keyboard_controller_init): New function prototype. | |
4062 | (grub_console_checkkey): Likewise. | |
4063 | (grub_console_getkey): Likewise. | |
4064 | ||
4065 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT | |
4066 | keyboard on i386. | |
4067 | ||
4068 | * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use | |
4069 | grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input. | |
4070 | ||
06ab5303 | 4071 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4072 | ||
4073 | * kern/i386/pc/init.c (make_install_device): When memdisk image is | |
4074 | present, "(memdisk)/boot/grub" becomes the default prefix. | |
4075 | ||
4076 | * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus | |
4077 | a memdisk tarball with all the modules. Add --overlay=DIR option that | |
4078 | allows users to overlay additional files into the image. | |
4079 | ||
dbb475a4 | 4080 | 2008-01-23 Robert Millan <rmh@aybabtu.com> |
4081 | ||
4082 | * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h' | |
4083 | and `machine/memory.h'. | |
4084 | (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'. | |
4085 | (_multiboot_mod_SOURCES): New variable. | |
4086 | (_multiboot_mod_CFLAGS): Likewise. | |
4087 | (_multiboot_mod_LDFLAGS): Likewise. | |
4088 | (multiboot_mod_SOURCES): Likewise. | |
4089 | (multiboot_mod_CFLAGS): Likewise. | |
4090 | (multiboot_mod_LDFLAGS): Likewise. | |
4091 | ||
4092 | * include/grub/i386/ieee1275/loader.h: New file. | |
4093 | ||
4094 | * include/grub/i386/ieee1275/machine.h: Likewise. | |
4095 | ||
4096 | * include/grub/i386/ieee1275/memory.h: Likewise. | |
4097 | ||
4098 | * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant) | |
4099 | variable declaration. | |
4100 | (grub_os_area_size): Likewise. | |
4101 | ||
4102 | * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size) | |
4103 | (grub_lower_mem, grub_upper_mem): New variables. | |
4104 | (grub_stop_floppy): New function (just to make | |
4105 | grub_multiboot2_real_boot() happy). | |
4106 | ||
4107 | * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>', | |
4108 | `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'. | |
4109 | (grub_stop): New function. | |
4110 | Include `"../realmode.S"' and `"../loader.S"'. | |
4111 | ||
4112 | * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'. | |
4113 | Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'. | |
4114 | ||
4115 | * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386, | |
4116 | rely on grub_multiboot2_real_boot() for final boot. | |
4117 | ||
25638629 | 4118 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
4119 | ||
4120 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When | |
4121 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any | |
4122 | device that doesn't look like an SD card. | |
4123 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
4124 | `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag. | |
4125 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect | |
4126 | OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when | |
4127 | found. | |
4128 | ||
9dad816d | 4129 | 2008-01-22 Robert Millan <rmh@aybabtu.com> |
4130 | ||
4131 | * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to | |
4132 | avoid claiming over our own code. | |
4133 | ||
34842f2d | 4134 | 2008-01-22 Bean <bean123ch@gmail.com> |
4135 | ||
4136 | * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'. | |
4137 | (jpeg_mod_SOURCES): New variable. | |
4138 | (jpeg_mod_CFLAGS): Likewise. | |
4139 | (jpeg_mod_LDFLAGS): Likewise. | |
4140 | ||
4141 | * video/readers/jpeg.c : New file. | |
4142 | ||
44023a28 | 4143 | 2008-01-22 Bean <bean123ch@gmail.com> |
4144 | ||
4145 | * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when | |
4146 | there are no more items. | |
4147 | ||
bc2d8ac6 | 4148 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4149 | ||
4150 | * kern/mm.c (grub_mm_init_region): Improve debug message. | |
4151 | ||
261bd4bc | 4152 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4153 | ||
4154 | * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable. | |
4155 | (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link | |
4156 | address. | |
4157 | (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as | |
4158 | a C macro. | |
4159 | * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro. | |
4160 | Indicates start of upper memory. | |
4161 | * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'. | |
4162 | (generate_image): Abort when image size is big enough to corrupt | |
4163 | upper memory. | |
4164 | ||
4165 | * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'. | |
4166 | (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'. | |
4167 | * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
4168 | instead of hardcoding 0xA0000. | |
4169 | * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'. | |
4170 | (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR' | |
4171 | instead of hardcoding 0xA0000. | |
4172 | ||
f970b55e | 4173 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4174 | ||
4175 | * disk/memdisk.c (memdisk_size): New variable. | |
4176 | (grub_memdisk_open): Replace grub_arch_memdisk_size() call with | |
4177 | `memdisk_size'. | |
4178 | (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk | |
4179 | image to dynamic memory. | |
4180 | (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with | |
4181 | `memdisk_size'. Free memdisk block. | |
4182 | ||
1a8b0526 | 4183 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4184 | ||
4185 | Fix detection of very small filesystems (like tar). | |
4186 | ||
4187 | * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to | |
4188 | contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than | |
4189 | GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's | |
4190 | a problem with this disk). | |
4191 | ||
6e9b4aab | 4192 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4193 | ||
4194 | * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message | |
4195 | on grub_biosdisk_rw_standard() error. | |
4196 | ||
0d8837b2 | 4197 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4198 | ||
4199 | * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for | |
4200 | recent changes. | |
4201 | * kern/elf.c: Likewise. | |
4202 | * kern/ieee1275/ieee1275.c: Likewise. | |
4203 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
4204 | * term/ieee1275/ofconsole.c: Likewise. | |
4205 | ||
ffd36e34 | 4206 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4207 | ||
4208 | * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'. | |
4209 | ||
3f0093d0 | 4210 | * include/grub/kernel.h (grub_arch_memdisk_addr) |
4211 | (grub_arch_memdisk_size): Moved from here ... | |
ffd36e34 | 4212 | |
3f0093d0 | 4213 | * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr) |
4214 | (grub_arch_memdisk_size): ... to here. | |
ffd36e34 | 4215 | |
6c391b21 | 4216 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4217 | ||
4218 | Mostly based on bugfix from Bean. | |
4219 | ||
4220 | * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
4221 | attribute with hook() parameter. | |
4222 | (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment() | |
4223 | declaration. | |
4224 | (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR' | |
4225 | attribute with hook() parameter. | |
4226 | (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment() | |
4227 | declaration. | |
4228 | ||
55a581dc | 4229 | 2008-01-21 Robert Millan <rmh@aybabtu.com> |
4230 | ||
4231 | * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'. | |
4232 | (pkglib_MODULES): Add `memdisk.mod'. | |
4233 | (memdisk_mod_SOURCES): New variable. | |
4234 | (memdisk_mod_CFLAGS): Likewise. | |
4235 | (memdisk_mod_LDFLAGS): Likewise. | |
4236 | ||
4237 | * disk/memdisk.c: New file. | |
4238 | ||
4239 | * include/grub/disk.h (grub_disk_dev_id): Add | |
4240 | `GRUB_DISK_DEVICE_MEMDISK_ID'. | |
4241 | ||
4242 | * include/grub/i386/pc/kernel.h | |
4243 | (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro. | |
4244 | (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4. | |
4245 | (grub_kernel_image_size): New variable declaration. | |
4246 | (grub_total_module_size): Likewise. | |
4247 | (grub_memdisk_image_size): Likewise. | |
4248 | ||
4249 | * include/grub/i386/pc/memory.h | |
4250 | (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro. | |
4251 | ||
4252 | * include/grub/kernel.h: Include `<grub/symbol.h>'. | |
4253 | (grub_arch_memdisk_addr): New variable declaration. | |
4254 | (grub_arch_memdisk_size): Likewise. | |
4255 | ||
4256 | * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function. | |
4257 | (grub_arch_memdisk_size): Likewise. | |
4258 | ||
4259 | * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable. | |
4260 | (codestart): Replace hardcoded `0x100000' with | |
4261 | `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro. | |
4262 | ||
4263 | * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'. | |
4264 | (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is | |
4265 | not NULL, append the contents of the file it refers to, at the end of | |
4266 | the compressed kernel image. Initialize `grub_memdisk_image_size' | |
4267 | variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset). | |
4268 | (options): Add "memdisk"|'m' option. | |
4269 | (main): Parse --memdisk|-m option, and pass user-provided path as | |
4270 | parameter to generate_image(). | |
4271 | ||
3d7f54c9 | 4272 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
4273 | ||
4274 | * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug | |
4275 | grub_dprintf() calls from here ... | |
4276 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here. | |
4277 | ||
0bf74728 | 4278 | 2008-01-20 Robert Millan <rmh@aybabtu.com> |
4279 | ||
4280 | Fix detection of "real mode" when /options/real-mode? doesn't exist. | |
4281 | ||
4282 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable | |
4283 | declaration. | |
4284 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable. | |
4285 | (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set | |
4286 | `GRUB_IEEE1275_FLAG_REAL_MODE'. | |
fe6b695a | 4287 | (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer |
0bf74728 | 4288 | property). |
4289 | * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized | |
4290 | `grub_ieee1275_mmu' rather than obtaining a handler on every call. | |
4291 | ||
33bf70a7 | 4292 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
4293 | ||
fe6b695a | 4294 | Get rid of confusing function (superseded by |
33bf70a7 | 4295 | `grub_ieee1275_get_integer_property') |
4296 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove | |
4297 | prototype. | |
4298 | * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove | |
4299 | function. | |
4300 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of | |
4301 | grub_ieee1275_decode_int_4(), by obtaining integer properties directly | |
fe987087 | 4302 | in native endianness from grub_ieee1275_get_integer_property(). |
33bf70a7 | 4303 | |
e2da7d26 | 4304 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
4305 | ||
4306 | * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off" | |
4307 | command after "shut-down", since implementations differ on which | |
4308 | the command for halt is. | |
4309 | ||
59f1fd8d | 4310 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
4311 | ||
4312 | * include/grub/i386/linuxbios/console.h: Add header protection. | |
4313 | (grub_keyboard_controller_init): New function prototype. | |
4314 | * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro. | |
4315 | (KEYBOARD_COMMAND_READ): Likewise. | |
4316 | (KEYBOARD_COMMAND_WRITE): Likewise. | |
4317 | (KEYBOARD_SCANCODE_SET1): Likewise. | |
4318 | (grub_keyboard_controller_write): New function. | |
4319 | (grub_keyboard_controller_read): Likewise. | |
4320 | (grub_keyboard_controller_init): Likewise. | |
4321 | ||
4322 | * term/i386/pc/console.c: Include `<grub/machine/machine.h>'. | |
4323 | (grub_console_init): On coreboot/LinuxBIOS, call | |
4324 | grub_keyboard_controller_init(). | |
4325 | ||
5f5a7c15 | 4326 | 2008-01-19 Robert Millan <rmh@aybabtu.com> |
4327 | ||
4328 | PowerPC changes provided by Pavel Roskin. | |
4329 | ||
4330 | * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments. | |
4331 | * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn, | |
4332 | don't rely on cmain() doing it. | |
4333 | * kern/i386/ieee1275/startup.S (_start): Store %eax in | |
4334 | grub_ieee1275_entry_fn, don't rely on cmain() doing it. | |
4335 | ||
1210e168 | 4336 | 2008-01-16 Robert Millan <rmh@aybabtu.com> |
4337 | ||
4338 | * include/grub/i386/linuxbios/memory.h | |
4339 | (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro. | |
4340 | * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not | |
4341 | receive `table_header' as argument. Instead, probe for it in the | |
4342 | known memory ranges where it can be present. | |
4343 | (grub_available_iterate): Do not pass a fixed `table_header' address | |
4344 | to grub_linuxbios_table_iterate(). | |
4345 | ||
3d04eab8 | 4346 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
4347 | ||
4348 | * configure.ac: Add `i386-ieee1275' to the list of supported targets. | |
4349 | * conf/i386-ieee1275.rmk: New file. | |
4350 | * include/grub/i386/ieee1275/console.h: Likewise. | |
4351 | * include/grub/i386/ieee1275/ieee1275.h: Likewise. | |
4352 | * include/grub/i386/ieee1275/kernel.h: Likewise. | |
4353 | * include/grub/i386/ieee1275/time.h: Likewise. | |
4354 | * kern/i386/ieee1275/init.c: Likewise. | |
4355 | * kern/i386/ieee1275/startup.S: Likewise. | |
4356 | ||
d1bc1b73 | 4357 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
4358 | ||
4359 | * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero | |
4360 | when pointers are 32-bit (but still do set it to one when they are | |
4361 | 64-bit). | |
4362 | ||
66a65807 | 4363 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
4364 | ||
4365 | * include/grub/ieee1275/ieee1275.h | |
4366 | (grub_ieee1275_get_integer_property): New function prototype. | |
4367 | ||
4368 | * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'. | |
4369 | (grub_ieee1275_get_integer_property): New function. Wraps around | |
fe987087 | 4370 | grub_ieee1275_get_property() to handle endianness. |
66a65807 | 4371 | |
4372 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace | |
4373 | grub_ieee1275_get_property() with grub_ieee1275_get_integer_property() | |
fe6b695a | 4374 | where appropriate. |
66a65807 | 4375 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise. |
4376 | (grub_map): Likewise. | |
4377 | * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise. | |
4378 | ||
a83ccafd | 4379 | 2008-01-15 Bean <bean123ch@gmail.com> |
4380 | ||
4381 | * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable. | |
4382 | (grub_script_execute_cmdline): Reset grub_errno. | |
4383 | ||
4384 | * normal/main.c (read_config_file): Reset grub_errno. | |
4385 | ||
4386 | * normal/parse.y (script_init): New. | |
4387 | (script): Move function and menuentry here. | |
4388 | (delimiter): New. | |
4389 | (command): Add delimiter at the end of command. | |
4390 | (commands): Adjust to match the new command. | |
4391 | (commandblock): Remove grub_script_lexer_record_start. | |
f19dbdb7 | 4392 | (menuentry): Add grub_script_lexer_record_start, use the new commands. |
a83ccafd | 4393 | (if): Use the new commands. |
4394 | ||
4395 | * conf/common.rmk (pkgdata_MODULES): Add echo.mod. | |
4396 | ||
df6ecfc6 | 4397 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
4398 | ||
4399 | * normal/menu.c (run_menu): Move timeout message from here ... | |
4400 | (print_timeout): ... to here. | |
4401 | (run_menu): Use print_timeout() once during initial draw to print | |
4402 | the whole message, and again in every clock tick to update only | |
4403 | the number of seconds. | |
4404 | ||
87ae25eb | 4405 | 2008-01-15 Robert Millan <rmh@aybabtu.com> |
4406 | ||
4407 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain | |
4408 | actual size of `available' from grub_ieee1275_get_property(), and | |
4409 | restrict parsing to that bound. | |
4410 | ||
47bf09a4 | 4411 | 2008-01-15 Christian Franke <franke@computer.org> |
4412 | ||
4413 | * util/grub-emu.c: Replace <argp.h> by <getopt.h>. | |
4414 | (argp_program_version): Remove variable. | |
4415 | (argp_program_bug_address): Likewise. | |
4416 | (options): Convert from struct argp_option to struct option. | |
4417 | (struct arguments): Remove. | |
4418 | (parse_opt): Remove. | |
4419 | (usage): New function. | |
4420 | (main): Replace struct args members by simple variables. | |
4421 | Replace argp_parse() by getopt_long(). | |
4422 | Add switch to evaluate options. | |
4423 | Add missing "(...)" around root_dev in prefix string. | |
4424 | ||
c86f1469 | 4425 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
4426 | ||
4427 | * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper | |
4428 | for grub_ieee1275_exit(), in order to improve portability. | |
4429 | ||
e622c559 | 4430 | 2008-01-14 Robert Millan <rmh@aybabtu.com> |
4431 | ||
4432 | * util/grub.d/10_linux.in (prefix): Define. | |
4433 | (exec_prefix): Likewise. Both definitions are later used by `libdir'. | |
4434 | ||
44cb1ec8 | 4435 | 2008-01-13 Pavel Roskin <proski@gnu.org> |
4436 | ||
4437 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use | |
4438 | grub_errno if no errors have been detected. | |
4439 | ||
1eb8c802 | 4440 | 2008-01-12 Robert Millan <rmh@aybabtu.com> |
4441 | ||
4442 | * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum. | |
4443 | (grub_util_get_dev_abstraction): New function prototype. | |
4444 | ||
4445 | * util/getroot.c: Include `<grub/util/getroot.h>' | |
4446 | (grub_util_get_grub_dev): Move detection of abstraction type to ... | |
4447 | (grub_util_get_dev_abstraction): ... here (new function). | |
4448 | ||
4449 | * util/grub-probe.c: Convert PRINT_* to an enum. Add | |
4450 | `PRINT_ABSTRACTION'. | |
4451 | (probe): Probe for abstraction type when requested. | |
4452 | (main): Understand `--target=abstraction'. | |
4453 | ||
4454 | * util/i386/efi/grub-install.in: Add abstraction module to core | |
4455 | image when it is found to be necessary. | |
4456 | * util/i386/pc/grub-install.in: Likewise. | |
4457 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
4458 | ||
4459 | * util/update-grub_lib.in (font_path): Return system path without | |
4460 | converting to GRUB path. | |
4461 | * util/update-grub.in: Convert system path returned by font_path() | |
4462 | to a GRUB path. Use `grub-probe -t abstraction' to determine what | |
4463 | abstraction module is needed for loading fonts (if any). Export | |
4464 | that as `GRUB_PRELOAD_MODULES'. | |
4465 | * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print | |
4466 | insmod commands). | |
4467 | ||
52bd3de9 | 4468 | 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org> |
4469 | ||
4470 | Remove some unused code from reiserfs. | |
f19dbdb7 | 4471 | |
52bd3de9 | 4472 | * fs/reiserfs.c (struct grub_reiserfs_key) |
4473 | [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type. | |
4474 | (struct grub_reiserfs_node_body): Removed. | |
4475 | (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4476 | Likewise. | |
4477 | (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4478 | Likewise. | |
4479 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4480 | Likewise. | |
4481 | (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4482 | Likewise. | |
4483 | (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4484 | Likewise. | |
4485 | (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: | |
4486 | Likewise. | |
4487 | (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
4488 | (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
4489 | (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise. | |
4490 | ||
2f80039d | 4491 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
4492 | ||
4493 | * util/update-grub_lib.in (grub_file_is_not_garbage): New function. | |
4494 | Determines if a file is garbage left by packaging systems, etc. | |
4495 | * util/update-grub.in: Use grub_file_is_not_garbage() as a condition | |
4496 | for processing /etc/grub.d scripts. | |
4497 | * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison. | |
4498 | * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage() | |
4499 | as a condition for processing Linux images. | |
4500 | ||
87888032 | 4501 | 2008-01-10 Pavel Roskin <proski@gnu.org> |
4502 | ||
4503 | * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed | |
4504 | to compile reiserfs.c on PowerPC. | |
4505 | ||
7e54fced | 4506 | 2008-01-10 Robert Millan <rmh@aybabtu.com> |
de9993e0 | 4507 | |
4508 | * kern/device.c (grub_device_iterate): Do not abort device iteration | |
4509 | when one of the devices cannot be opened. | |
4510 | * kern/disk.c (grub_disk_open): Do not account previous failures of | |
4511 | unrelated functions when grub_errno is checked for. | |
4512 | ||
5aa541e6 | 4513 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
4514 | ||
4515 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For | |
4516 | `! grub_linux_is_bzimage', change order of address comparison to make | |
4517 | it more intuitive, and improve "too big zImage" error message. | |
4518 | ||
7076340d | 4519 | 2008-01-08 Robert Millan <rmh@aybabtu.com> |
4520 | ||
4521 | * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and | |
4522 | `$(update-grub_DATA)'. | |
4523 | (distcheck): Fix race condition when invoking `$(MAKE)' on multiple | |
4524 | targets. | |
4525 | ||
9ca70333 | 4526 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
4527 | ||
4528 | * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating | |
4529 | which instruction is modified by grub-setup during installation | |
4530 | (since it wasn't obvious by only looking at this file). | |
4531 | ||
38ccf575 | 4532 | 2008-01-07 Robert Millan <rmh@aybabtu.com> |
4533 | ||
4534 | * TODO: Rewrite. Just refer to the wiki and the BTS instead of | |
4535 | listing actual TODO items. | |
4536 | ||
f5db4291 | 4537 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
4538 | ||
868967cf | 4539 | * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness |
4540 | correctly. | |
4541 | (grub_reiserfs_get_key_offset): Likewise. | |
4542 | (grub_reiserfs_set_key_offset): Likewise. | |
4543 | (grub_reiserfs_set_key_type): Likewise. | |
fe6b695a | 4544 | (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0. |
868967cf | 4545 | |
4546 | (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be | |
4547 | better to remove the bitfield version completely. | |
f19dbdb7 | 4548 | |
868967cf | 4549 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
f19dbdb7 | 4550 | |
f5db4291 | 4551 | * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be |
4552 | allocated from the heap, due to the fshelp implementation. | |
4553 | (grub_reiserfs_dir): Free NODE, due to the same reason. | |
4554 | ||
492e6d9d | 4555 | 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
4556 | ||
4557 | Mostly from Vincent Pelletier: | |
f19dbdb7 | 4558 | |
492e6d9d | 4559 | * fs/reiserfs.c: New file. |
f19dbdb7 | 4560 | |
492e6d9d | 4561 | * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod. |
4562 | (reiserfs_mod_SOURCES): New variable. | |
4563 | (reiserfs_mod_CFLAGS): Likewise. | |
4564 | (reiserfs_mod_LDFLAGS): Likewise. | |
4565 | ||
4566 | * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c, | |
4567 | disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c, | |
4568 | include/grub/ntfs.h, include/grub/i386/pc/machine.h, and | |
4569 | normal/color.c. | |
4570 | ||
9ce3e7c1 | 4571 | 2008-01-06 Robert Millan <rmh@aybabtu.com> |
4572 | ||
4573 | * normal/color.c: Remove `<grub/env.h>'. | |
4574 | ||
f3b58148 | 4575 | 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx> |
4576 | ||
4577 | * include/grub/normal.h: Include <grub/env.h>. | |
4578 | ||
7ac3bcfa | 4579 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4580 | ||
4581 | * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in | |
4582 | usage example with `(hd0,1)'. | |
fb358190 | 4583 | Reported by Samuel Thibault. |
7ac3bcfa | 4584 | |
c8ee99d7 | 4585 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4586 | ||
4587 | * kern/i386/loader.S (grub_linux_is_bzimage): New variable. | |
4588 | (grub_linux_boot_zimage): Rename to ... | |
4589 | (grub_linux_boot): ... this. | |
4590 | (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'. | |
4591 | (grub_linux_boot_zimage): Conditionalize zImage copy. | |
4592 | ||
4593 | * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype. | |
4594 | (grub_linux_boot_bzimage): Remove prototype. | |
4595 | (grub_linux_boot_zimage): Rename to ... | |
4596 | (grub_linux_boot): ... this. | |
4597 | ||
4598 | * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'. | |
4599 | (grub_linux_boot): Remove function. | |
4600 | ||
0ece25b1 | 4601 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4602 | ||
4603 | * include/grub/normal.h (grub_env_write_color_normal): New prototype. | |
4604 | (grub_env_write_color_highlight): Likewise. | |
4605 | (grub_wait_after_message): Likewise. | |
4606 | ||
4607 | * normal/color.c: New file. | |
4608 | ||
4609 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
4610 | (normal_mod_DEPENDENCIES): Likewise. | |
4611 | ||
4612 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
4613 | (normal_mod_DEPENDENCIES): Likewise. | |
4614 | ||
4615 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
4616 | (normal_mod_DEPENDENCIES): Likewise. | |
4617 | ||
4618 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'. | |
4619 | (normal_mod_DEPENDENCIES): Likewise. | |
4620 | ||
4621 | * normal/menu_entry.c (run): Rely on grub_wait_after_message() | |
4622 | for waiting after a message is printed. | |
4623 | * normal/main.c (read_config_file): Likewise. | |
4624 | (grub_normal_init): Register grub_env_write_color_normal() and | |
4625 | grub_env_write_color_highlight() hooks. Mark `color_normal' and | |
4626 | `color_highlight' variables as global. | |
4627 | ||
4628 | * normal/menu.c (grub_wait_after_message): New function. | |
4629 | (grub_color_menu_normal): New variable. Replaces ... | |
4630 | (GRUB_COLOR_MENU_NORMAL): ... this macro. | |
4631 | (grub_color_menu_highlight): New variable. Replaces ... | |
4632 | (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro. | |
4633 | (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of | |
4634 | `GRUB_TERM_COLOR_STANDARD'. | |
4635 | (print_message): Use `grub_setcolorstate' to reload colors. Rename | |
4636 | `normal_code' and `highlight_code' to `old_color_normal' and | |
4637 | `old_color_highlight', respectively. | |
4638 | (grub_menu_init_page): Update colors when drawing the menu, based on | |
4639 | `menu_color_normal' and `menu_color_highlight' variables. | |
4640 | (grub_menu_run): Rely on grub_wait_after_message() for waiting after | |
4641 | a message is printed. | |
4642 | ||
182dd4e5 | 4643 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4644 | ||
4645 | * kern/env.c (grub_env_context_open): Propagate hooks for global | |
4646 | variables to new context. | |
4647 | ||
4648 | * kern/main.c (grub_set_root_dev): Export `root' variable. | |
4649 | ||
ddf8f6ad | 4650 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4651 | ||
4652 | * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI | |
fe6b695a | 4653 | discs unconditionally, since udev and others have options to provide |
ddf8f6ad | 4654 | them. |
4655 | ||
d8b43d9b | 4656 | 2008-01-05 Robert Millan <rmh@aybabtu.com> |
4657 | ||
4658 | * normal/completion.c (iterate_dir): Skip `.' and `..' directories. | |
4659 | ||
2bff2de3 | 4660 | 2008-01-04 Christian Franke <franke@computer.org> |
4661 | ||
4662 | * kern/i386/pc/init.c (grub_machine_init): Fix evaluation | |
4663 | of eisa_mmap. | |
4664 | ||
97eab917 | 4665 | 2008-01-03 Pavel Roskin <proski@gnu.org> |
4666 | ||
4667 | * kern/i386/linuxbios/init.c: Put "void" to all function | |
4668 | declarations with no arguments. | |
4669 | * kern/powerpc/ieee1275/init.c: Likewise. | |
4670 | * term/i386/pc/at_keyboard.c: Likewise. | |
4671 | * term/i386/pc/vga_text.c: Likewise. | |
4672 | * util/grub-mkdevicemap.c: Likewise. | |
4673 | ||
b9416d00 | 4674 | 2008-01-02 Robert Millan <rmh@aybabtu.com> |
4675 | ||
4676 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error | |
4677 | message when loaded image is out of bounds. | |
4678 | (grub_multiboot_load_elf64): Likewise. | |
4679 | ||
92695df9 | 4680 | 2008-01-02 Pavel Roskin <proski@gnu.org> |
4681 | ||
4682 | * util/grub.d/10_linux.in: Try version without ".old" when | |
4683 | looking for initrd. It's better to use initrd from the newer | |
4684 | kernel of the same version than no initrd at all. | |
4685 | ||
d98d9cad | 4686 | 2008-01-01 Robert Millan <rmh@aybabtu.com> |
4687 | ||
4688 | * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs. | |
4689 | ||
dbfdce36 | 4690 | 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi> |
4691 | ||
f19dbdb7 | 4692 | * include/grub/video.h: Added grub_video_unmap_color and |
dbfdce36 | 4693 | grub_video_get_active_render_target. |
4694 | (grub_video_adapter): Added unmap_color and get_active_render_target. | |
4695 | ||
f19dbdb7 | 4696 | * video/video.c: Added grub_video_unmap_color and |
dbfdce36 | 4697 | grub_video_get_active_render_target. |
4698 | (grub_video_get_info): Changed method to accept NULL pointer as an | |
4699 | argument to allow detection of active video adapter. | |
4700 | ||
4701 | * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as | |
4702 | grub_video_vbe_unmap_color_int. | |
4703 | Added grub_video_vbe_unmap_color and | |
4704 | grub_video_vbe_get_active_render_target. | |
4705 | (grub_video_vbe_adapter): Added unmap_color and | |
4706 | get_active_render_target. | |
4707 | ||
f19dbdb7 | 4708 | * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage |
dbfdce36 | 4709 | with grub_video_vbe_unmap_color_int. |
4710 | ||
4711 | * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added. | |
4712 | (DEFAULT_NORMAL_COLOR): Likewise. | |
4713 | (DEFAULT_HIGHLIGHT_COLOR) Likewise. | |
4714 | (DEFAULT_FG_COLOR): Removed. | |
4715 | (DEFAULT_BG_COLOR): Likewise. | |
4716 | (DEFAULT_CURSOR_COLOR): Changed value. | |
4717 | (grub_virtual_screen): Added standard_color_setting, | |
4718 | normal_color_setting, highlight_color_setting and term_color. | |
4719 | (grub_virtual_screen): Removed fg_color_setting and bg_color_setting. | |
4720 | (bitmap_width): Added. | |
4721 | (bitmap_height): Likewise. | |
4722 | (bitmap): Likewise. | |
4723 | (set_term_color): Likewise. | |
4724 | (grub_virtual_screen_setup): Changed to use new terminal coloring | |
4725 | settings. | |
4726 | (grub_gfxterm_init): Added init for bitmap. | |
4727 | (grub_gfxterm_fini): Added destroy for bitmap. | |
4728 | (redraw_screen_rect): Updated to use background bitmap and new | |
4729 | terminal coloring. | |
4730 | (scroll_up): Added optimization for case when there is no bitmap. | |
4731 | (grub_gfxterm_cls): Fixed to use correct background color. | |
4732 | (grub_virtual_screen_setcolorstate): Changed to use new terminal | |
4733 | coloring. | |
4734 | (grub_virtual_screen_setcolor): Likewise. | |
4735 | (grub_virtual_screen_getcolor): Added. | |
4736 | (grub_gfxterm_background_image_cmd): Likewise. | |
4737 | (grub_video_term): Added setcolor and getcolor. | |
4738 | (MOD_INIT): Added registration of background_image command. | |
4739 | (MOD_TERM): Added unregistration for background_image command. | |
4740 | ||
c3c20931 | 4741 | 2007-12-30 Pavel Roskin <proski@gnu.org> |
4742 | ||
4743 | * loader/multiboot_loader.c: Fix multiboot command | |
4744 | unregistration. Fix all typos in the word "multiboot". | |
4745 | ||
df266716 | 4746 | 2007-12-29 Pavel Roskin <proski@gnu.org> |
94239199 | 4747 | |
4748 | * util/grub.d/10_linux.in: Refactor search for initrd. Add | |
4749 | support for initrd names used in Fedora. | |
4750 | ||
fc6e896c | 4751 | 2007-12-26 Bean <bean123ch@gmail.com> |
4752 | ||
4753 | * conf/common.rmk (pkgdata_MODULES): Add cpio.mod. | |
4754 | (cpio_mod_SOURCES): New variable. | |
4755 | (cpio_mod_CFLAGS): Likewise. | |
4756 | (cpio_mod_LDFLAGS): Likewise. | |
4757 | ||
4758 | * fs/cpio.c: New file. | |
4759 | ||
4760 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c. | |
4761 | ||
4762 | * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise. | |
4763 | ||
4764 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise. | |
4765 | ||
4766 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
4767 | ||
533110ad | 4768 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
4769 | ||
4770 | * include/grub/term.h (struct grub_term): Add `getcolor' function. | |
4771 | (grub_getcolor): New function. | |
4772 | ||
4773 | * kern/term.c (grub_getcolor): New function. | |
4774 | * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro. | |
4775 | (GRUB_COLOR_MENU_HIGHLIGHT): New macro. | |
4776 | (print_entry): Set normal and highlight colors to | |
4777 | `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT', | |
4778 | respectively, before printing and restore them to old | |
4779 | values afterwards. | |
4780 | (grub_menu_init_page): Likewise. Fill an additional colored space | |
4781 | that would otherwise be left blank. | |
4782 | ||
4783 | * term/efi/console.c (grub_console_getcolor): New function. | |
4784 | (struct grub_console_term.getcolor): New variable. | |
4785 | * term/i386/pc/console.c (grub_console_getcolor): New function. | |
4786 | (struct grub_console_term.getcolor): New variable. | |
4787 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function. | |
4788 | (struct grub_console_term.getcolor): New variable. | |
4789 | ||
4790 | * term/i386/pc/serial.c (grub_serial_setcolor): Remove function. | |
4791 | (struct grub_console_term.setcolor): Remove variable. | |
4792 | * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function. | |
4793 | (struct grub_console_term.setcolor): Remove variable. | |
4794 | * term/i386/pc/vga.c (grub_vga_setcolor): Remove function. | |
4795 | (struct grub_console_term.setcolor): Remove variable. | |
4796 | * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function. | |
4797 | (struct grub_console_term.setcolor): Remove variable. | |
4798 | ||
4931827f | 4799 | 2007-12-25 Robert Millan <rmh@aybabtu.com> |
4800 | ||
4801 | * configure.ac: Search for possible unifont.hex locations, and | |
4802 | define UNIFONT_HEX if found. | |
4803 | ||
4804 | * Makefile.in (UNIFONT_HEX): Define variable. | |
4805 | (DATA): Rename to ... | |
4806 | (PKGLIB): ... this. Update all users. | |
4807 | (PKGDATA): New variable. | |
4808 | (pkgdata_IMAGES): Rename to ... | |
4809 | (pkglib_IMAGES): ... this. Update all users. | |
4810 | (pkgdata_MODULES): Rename to ... | |
4811 | (pkglib_MODULES): ... this. Update all users. | |
4812 | (pkgdata_PROGRAMS): Rename to ... | |
4813 | (pkglib_PROGRAMS): ... this. Update all users. | |
4814 | (pkgdata_DATA): Rename to ... | |
4815 | (pkglib_DATA): ... this. Update all users. | |
4816 | (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'. | |
4817 | (unicode.pff, ascii.pff): New rules. | |
4818 | (all-local): Add `$(PKGDATA)' dependency. | |
4819 | (install-local): Process `$(PKGDATA)'. | |
4820 | ||
4821 | * util/update-grub_lib.in (font_path): Search for *.pff files in | |
4822 | a few more locations, including `${pkgdata}'. | |
4823 | ||
57e57e31 | 4824 | 2007-12-23 Robert Millan <rmh@aybabtu.com> |
4825 | ||
4826 | Patch from Bean <bean123ch@gmail.com>: | |
4827 | * disk/loopback.c (grub_loopback_read): Add missing bit shift to | |
4828 | `size'. | |
4829 | ||
4bc72aa9 | 4830 | 2007-12-21 Bean <bean123ch@gmail.com> |
4831 | ||
4832 | * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod. | |
4833 | (ntfscomp_mod_SOURCES): New variable. | |
4834 | (ntfscomp_mod_CFLAGS): Likewise. | |
4835 | (ntfscomp_mod_LDFLAGS): Likewise. | |
4836 | ||
4837 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c. | |
4838 | (grub_probe_SOURCES): Likewise. | |
4839 | (grub_emu_SOURCES): Likewise. | |
4840 | ||
4841 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
4842 | (grub_emu_SOURCES): Likewise. | |
4843 | ||
4844 | * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
4845 | (grub_emu_SOURCES): Likewise. | |
4846 | ||
4847 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c. | |
4848 | (grub_emu_SOURCES): Likewise. | |
4849 | ||
4850 | * fs/ntfs.c (grub_ntfscomp_func): New variable. | |
4851 | (read_run_list): Renamed to grub_ntfs_read_run_list. | |
4852 | (decomp_nextvcn): Moved to ntfscomp.c. | |
4853 | (decomp_getch): Likewise. | |
4854 | (decomp_get16): Likewise. | |
4855 | (decomp_block): Likewise. | |
4856 | (read_block): Likewise. | |
4857 | (read_data): Partially moved to ntfscomp.c. | |
4858 | (fixup): Change unsigned to grub_uint16_t. | |
4859 | (read_mft): Change unsigned long to grub_uint32_t. | |
4860 | (read_attr): Likewise. | |
4861 | (read_data): Likewise. | |
4862 | (read_run_data): Likewise. | |
4863 | (read_run_list): Likewise. | |
4864 | (read_mft): Likewise. | |
4865 | ||
4866 | * fs/ntfscomp.c: New file. | |
4867 | ||
4868 | * include/grub/ntfs.h: New file. | |
4869 | ||
af680a87 | 4870 | 2007-12-16 Robert Millan <rmh@aybabtu.com> |
4871 | ||
4872 | * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for | |
4873 | IDE disk check, since Linux is known to support 20 IDE disks. | |
4874 | Reported by Colin Watson. | |
4875 | ||
84be7599 | 4876 | 2007-12-15 Bean <bean123ch@gmail.com> |
4877 | ||
4878 | * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img. | |
4879 | (lnxboot_img_SOURCES): New variable. | |
4880 | (lnxboot_img_ASFLAGS): Likewise. | |
4881 | (lnxboot_img_LDFLAGS): Likewise. | |
4882 | ||
4883 | * boot/i386/pc/lnxboot.S: New file. | |
4884 | ||
6af9db01 | 4885 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
4886 | ||
4887 | * configure.ac: Test if '--build-id=none' is supported by the | |
4888 | linker. If yes, add it to TARGET_LDFLAGS. Build ID causes | |
4889 | objcopy to generate incorrect binary files (binutils | |
4890 | 2.17.50.0.18-1 as shipped by Fedora 8). | |
4891 | * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when | |
4892 | linking, so that build ID doesn't break the test. | |
4893 | ||
7361cfe6 | 4894 | 2007-11-24 Pavel Roskin <proski@gnu.org> |
4895 | ||
4896 | * include/grub/i386/time.h: use "void" in the argument list | |
4897 | of grub_cpu_idle(). | |
4898 | * include/grub/powerpc/time.h: Likewise. | |
4899 | * include/grub/sparc64/time.h: Likewise. | |
4900 | ||
1593e10c | 4901 | 2007-11-18 Christian Franke <franke@computer.org> |
4902 | ||
4903 | * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping, | |
4904 | now return control chars instead of GRUB_CONSOLE_KEY_* constants. | |
4905 | This fixes the problem that function keys did not work in grub-emu. | |
4906 | ||
3b8db1a8 | 4907 | 2007-11-18 Christian Franke <franke@computer.org> |
4908 | ||
4909 | * disk/host.c (grub_host_open): Remove attribute unused from | |
4910 | name parameter. Add check for "host". This fixes the problem | |
4911 | that grub-emu does not find partitions. | |
4912 | ||
2e29408d | 4913 | 2007-11-18 Christian Franke <franke@computer.org> |
4914 | ||
4915 | * util/hostfs.c (is_dir): New function. | |
4916 | (grub_hostfs_dir): Handle missing dirent.d_type case. | |
4917 | (grub_hostfs_read): Add missing fseek(). | |
4918 | (grub_hostfs_label): Clear label pointer. This fixes a crash | |
4919 | of grub-emu on "ls (host)". | |
4920 | ||
398cd047 | 4921 | 2007-11-18 Christian Franke <franke@computer.org> |
4922 | ||
4923 | * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry): | |
4924 | Add attribute packed, gcc 3.4.4 on Cygwin aligns this | |
4925 | to 64 bit boundary by default. | |
4926 | ||
c405c391 | 4927 | 2007-11-18 Bean <bean123ch@gmail.com> |
4928 | ||
4929 | * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod. | |
4930 | (hexdump_mod_SOURCES): New variable. | |
4931 | (hexdump_mod_CFLAGS): Likewise. | |
4932 | (hexdump_mod_LDFLAGS): Likewise. | |
f19dbdb7 | 4933 | |
c405c391 | 4934 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c. |
4935 | ||
4936 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
4937 | ||
4938 | * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
4939 | ||
4940 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c. | |
4941 | ||
4942 | * include/grub/hexdump.h: New file. | |
4943 | ||
4944 | * commands/hexdump.c: New file. | |
4945 | ||
5cced7fd | 4946 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
4947 | ||
4948 | * commands/i386/pc/play.c (beep_off): Switch order of arguments | |
4949 | in grub_outb() calls. | |
4950 | (beep_on): Likewise. | |
4951 | ||
8b714eb0 | 4952 | 2007-11-10 Christian Franke <franke@computer.org> |
4953 | ||
4954 | * normal/menu.c (run_menu): Check for empty menu to avoid crash. | |
4955 | (grub_menu_run): Likewise. | |
4956 | ||
ce0f1839 | 4957 | 2007-11-10 Robert Millan <rmh@aybabtu.com> |
4958 | ||
4959 | * include/grub/i386/efi/machine.h: New file. | |
4960 | * include/grub/i386/linuxbios/machine.h: Likewise. | |
4961 | * include/grub/i386/pc/machine.h: Likewise. | |
4962 | * include/grub/powerpc/ieee1275/machine.h: Likewise. | |
4963 | * include/grub/sparc64/ieee1275/machine.h: Likewise. | |
4964 | ||
4965 | * term/i386/pc/serial.c: Include <grub/machine/machine.h>. | |
4966 | (serial_hw_io_addr): New variable. | |
4967 | (serial_hw_get_port): Obtain port address from `serial_hw_io_addr' | |
4968 | instead of `(unsigned short *) 0x400'. | |
4969 | ||
270c237d | 4970 | 2007-11-10 Bean <bean123ch@gmail.com> |
4971 | ||
4972 | * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks. | |
4973 | ||
a87783bf | 4974 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
4975 | ||
4976 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod. | |
4977 | (vga_mod_SOURCES): Added. | |
4978 | (vga_mod_CFLAGS): Likewise. | |
4979 | (vga_mod_LDFLAGS): Likewise. | |
4980 | ||
4981 | * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in | |
4982 | grub_outb() calls. | |
4983 | (set_map_mask): Likewise. | |
4984 | (set_read_map): Likewise. | |
4985 | (set_read_address): Likewise. | |
4986 | (vga_font): Removed variable. | |
4987 | (get_vga_glyph): Removed function. | |
4988 | (invalidate_char): Likewise. | |
4989 | (write_char): Changed to use grub_font_get_glyph() for font | |
4990 | information. | |
4991 | (grub_vga_putchar): Likewise. | |
4992 | (grub_vga_getcharwidth): Likewise. | |
4993 | ||
6433b448 | 4994 | 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi> |
4995 | ||
4996 | * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target | |
4997 | flags. | |
4998 | (pxeboot_img_LDFLAGS): Likewise. | |
4999 | (diskboot_img_LDFLAGS): Likewise. | |
5000 | (kernel_img_LDFLAGS): Likewise. | |
5001 | ||
49178511 | 5002 | 2007-11-06 Robert Millan <rmh@aybabtu.com> |
5003 | ||
5004 | * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments | |
5005 | in grub_outb() calls. | |
5006 | (serial_hw_init): Likewise. | |
5007 | ||
53b052de | 5008 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
5009 | ||
5010 | * util/update-grub.in: Allow files in ${update_grub_dir} to contain | |
5011 | spaces. Skip non-regular files. | |
5012 | ||
5ab33bba | 5013 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
5014 | ||
5015 | * kern/disk.c (grub_disk_firmware_fini) | |
5016 | (grub_disk_firmware_is_tainted): New variables. | |
5017 | ||
5018 | * include/grub/disk.h (grub_disk_firmware_fini) | |
5019 | (grub_disk_firmware_is_tainted): Likewise. | |
5020 | ||
5021 | * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ... | |
5022 | (grub_disk_biosdisk_fini): ... to here. | |
5023 | (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini(). | |
5024 | (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted' | |
5025 | is set. Register grub_disk_biosdisk_fini() in | |
5026 | `grub_disk_firmware_fini'. | |
5027 | ||
5028 | * disk/ata.c: Remove `<grub/machine/biosdisk.h>'. | |
5029 | (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call. | |
5030 | Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini' | |
5031 | to finish existing firmware disk interface. | |
5032 | ||
5033 | * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'. | |
5034 | (ata_mod_SOURCES): New variable. | |
5035 | (ata_mod_CFLAGS): Likewise. | |
5036 | (ata_mod_LDFLAGS): Likewise. | |
5037 | ||
0149ab7c | 5038 | 2007-11-05 Robert Millan <rmh@aybabtu.com> |
5039 | ||
5040 | * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'. | |
5041 | (grub_ata_wait): Reimplement using grub_millisleep(). | |
5042 | ||
5043 | * include/grub/misc.h (grub_div_roundup): Fix parenthesization. | |
5044 | * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction. | |
5045 | ||
be7ac41e | 5046 | 2007-11-03 Marco Gerards <marco@gnu.org> |
5047 | ||
5048 | * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>. | |
5049 | (CRTC_ADDR_PORT): New macro. | |
5050 | (CRTC_DATA_PORT): Likewise. | |
5051 | (CRTC_CURSOR): Likewise. | |
5052 | (CRTC_CURSOR_ADDR_HIGH): Likewise. | |
5053 | (CRTC_CURSOR_ADDR_LOW): Likewise. | |
5054 | (update_cursor): New function. | |
5055 | (grub_console_real_putchar): Call `update_cursor'. | |
5056 | (grub_console_gotoxy): Likewise. | |
5057 | (grub_console_cls): Set the default color when clearing the | |
5058 | screen. | |
5059 | (grub_console_setcursor): Implemented. | |
5060 | ||
bb06ab2e | 5061 | 2007-11-03 Marco Gerards <marco@gnu.org> |
5062 | ||
5063 | * disk/ata.c (grub_ata_pio_read): Don't wait for the command to | |
5064 | become activate. | |
5065 | (grub_ata_pio_write): Likewise. | |
5066 | ||
5067 | (grub_atapi_identify): Wait after issuing an ATA command. | |
5068 | (grub_atapi_packet): Likewise. | |
5069 | (grub_ata_identify): Likewise. | |
5070 | (grub_ata_readwrite): Likewise. | |
5071 | ||
cf8f780b | 5072 | 2007-11-03 Marco Gerards <marco@gnu.org> |
5073 | ||
5074 | * disk/ata.c (grub_ata_pio_read): Detect and return the error code. | |
5075 | (grub_ata_pio_write): Likewise. | |
5076 | (grub_ata_readwrite): Use `grub_error', instead of | |
5077 | returning `grub_errno'. | |
5078 | ||
ed649e54 | 5079 | 2007-11-03 Marco Gerards <marco@gnu.org> |
5080 | ||
5081 | * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and | |
5082 | grub_ata_pio_write once for every single sector, instead of for | |
5083 | multiple sectors. | |
5084 | ||
ca25d8f0 | 5085 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
5086 | ||
5087 | * configure.ac: Add `i386-linuxbios' to the list of supported targets. | |
5088 | ||
5089 | * conf/i386-linuxbios.rmk: New file. | |
5090 | ||
5091 | * kern/i386/pc/hardware.c: Likewise. | |
5092 | * term/i386/pc/at_keyboard.c: Likewise. | |
5093 | * term/i386/pc/vga_text.c: Likewise. | |
5094 | ||
5095 | * include/grub/i386/linuxbios/boot.h: Likewise. | |
5096 | * include/grub/i386/linuxbios/console.h: Likewise. | |
5097 | * include/grub/i386/linuxbios/init.h: Likewise. | |
5098 | * include/grub/i386/linuxbios/kernel.h: Likewise. | |
5099 | * include/grub/i386/linuxbios/loader.h: Likewise. | |
5100 | * include/grub/i386/linuxbios/memory.h: Likewise. | |
5101 | * include/grub/i386/linuxbios/serial.h: Likewise. | |
5102 | * include/grub/i386/linuxbios/time.h: Likewise. | |
5103 | ||
5104 | * kern/i386/linuxbios/init.c: Likewise. | |
5105 | * kern/i386/linuxbios/startup.S: Likewise. | |
5106 | * kern/i386/linuxbios/table.c: Likewise. | |
5107 | ||
e911ecc1 | 5108 | 2007-10-31 Marco Gerards <marco@gnu.org> |
5109 | ||
5110 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'. | |
5111 | (ata_mod_SOURCES): New variable. | |
5112 | (ata_mod_CFLAGS): Likewise. | |
5113 | (ata_mod_LDFLAGS): Likewise. | |
5114 | ||
5115 | * disk/ata.c: New file. | |
5116 | ||
5117 | * include/grub/disk.h (grub_disk_dev_id): Add | |
5118 | `GRUB_DISK_DEV_ATA_ID'. | |
f19dbdb7 | 5119 | |
7f66d0e0 | 5120 | 2007-10-31 Robert Millan <rmh@aybabtu.com> |
5121 | ||
5122 | * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ... | |
5123 | * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here. | |
5124 | ||
5125 | * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ... | |
5126 | * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here. | |
5127 | ||
5128 | * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and | |
5129 | `<grub/types.h>'. | |
5130 | ||
5131 | * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'. | |
5132 | ||
5cd7dd46 | 5133 | 2007-10-27 Robert Millan <rmh@aybabtu.com> |
5134 | ||
3236ca65 | 5135 | * include/grub/types.h (ULONG_MAX): Define macro. |
5cd7dd46 | 5136 | |
2ebfc90f | 5137 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
5138 | ||
5139 | * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include | |
5140 | `"../realmode.S"'. | |
5141 | Remove `"kern/i386/loader.S"'. Include `"../loader.S"'. | |
5142 | ||
73fcb0f3 | 5143 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
5144 | ||
5145 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'. | |
5146 | (pkgdata_MODULES): Add `biosdisk.mod'. | |
5147 | (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New | |
5148 | variables. | |
5149 | ||
5150 | * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'. | |
5151 | (grub_biosdisk_init): Replace with ... | |
5152 | (GRUB_MOD_INIT(biosdisk)): ... this. | |
5153 | (grub_biosdisk_fini): Replace with ... | |
5154 | (GRUB_MOD_FINI(biosdisk)): ... this. | |
5155 | ||
5156 | * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'. | |
5157 | (grub_machine_init): Remove call to grub_biosdisk_init(). | |
5158 | (grub_machine_fini): Remove call to grub_machine_fini(). | |
5159 | ||
5160 | * util/i386/pc/grub-install.in (modules): Add `biosdisk'. | |
5161 | ||
3381d274 | 5162 | 2007-10-22 Robert Millan <rmh@aybabtu.com> |
5163 | ||
5164 | * include/grub/time.h: New file. | |
5165 | * include/grub/i386/time.h: Likewise. | |
5166 | * include/grub/powerpc/time.h: Likewise. | |
5167 | * include/grub/sparc64/time.h: Likewise. | |
5168 | ||
5169 | * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all | |
5170 | instances to ... | |
5171 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
5172 | * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
5173 | instances to ... | |
5174 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
5175 | * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all | |
5176 | instances to ... | |
5177 | (KERNEL_MACHINE_TIME_HEADER): ... this. | |
5178 | ||
5179 | * kern/i386/efi/init.c: Include `<grub/time.h>'. | |
5180 | (grub_millisleep): New function. | |
5181 | * kern/i386/pc/init.c: Include `<grub/time.h>'. | |
5182 | (grub_millisleep): New function. | |
5183 | * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'. | |
5184 | Remove `grub/machine/time.h' include. | |
5185 | (grub_millisleep): New function. | |
5186 | * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'. | |
5187 | Remove `grub/machine/time.h' include. | |
5188 | (grub_millisleep): New function. | |
5189 | ||
5190 | * include/grub/misc.h (grub_div_roundup): New function. | |
5191 | ||
5192 | * kern/misc.c: Include `<grub/time.h>'. | |
5193 | (grub_millisleep_generic): New function. | |
5194 | ||
5195 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'. | |
5196 | Add `time.h'. | |
5197 | * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'. | |
5198 | Add `time.h'. | |
5199 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove | |
5200 | `machine/time.h'. Add `time.h'. | |
5201 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
5202 | ||
a39a0312 | 5203 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
5204 | ||
5205 | * include/grub/misc.h (grub_max): New function. | |
5206 | ||
2aad70e2 | 5207 | 2007-10-21 Robert Millan <rmh@aybabtu.com> |
5208 | ||
5209 | * util/misc.c (grub_util_info): Call fflush() before returning. | |
5210 | ||
54b71c4b | 5211 | 2007-10-20 Robert Millan <rmh@aybabtu.com> |
5212 | ||
5213 | * genmk.rb (Image): Copy `extra_flags' from here ... | |
5214 | (PModule): ... to here. Use it in `#{obj}: #{src}' rule. | |
5215 | ||
5216 | * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused)) | |
5217 | to `argc' and `args' arguments. | |
5218 | ||
a979f513 | 5219 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
5220 | ||
5221 | * kern/i386/loader.S: New file. | |
5222 | ||
5223 | * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ... | |
5224 | * kern/i386/loader.S (grub_linux_prot_size)... to here. | |
5225 | * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ... | |
5226 | * kern/i386/loader.S (grub_linux_tmp_addr)... to here. | |
5227 | * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ... | |
5228 | * kern/i386/loader.S (grub_linux_real_addr)... to here. | |
5229 | * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ... | |
5230 | * kern/i386/loader.S (grub_linux_boot_zimage)... to here. | |
5231 | * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ... | |
5232 | * kern/i386/loader.S (grub_linux_boot_bzimage)... to here. | |
5233 | * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ... | |
5234 | * kern/i386/loader.S (grub_multiboot_real_boot)... to here. | |
5235 | * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ... | |
5236 | * kern/i386/loader.S (grub_multiboot2_real_boot)... to here. | |
5237 | ||
5238 | * kern/i386/realmode.S: New file. | |
5239 | ||
5240 | * kern/i386/pc/startup.S (protstack): Moved from here ... | |
5241 | * kern/i386/realmode.S (protstack)... to here. | |
5242 | * kern/i386/pc/startup.S (gdt): Moved from here ... | |
5243 | * kern/i386/realmode.S (gdt)... to here. | |
5244 | * kern/i386/pc/startup.S (prot_to_real): Moved from here ... | |
5245 | * kern/i386/realmode.S (prot_to_real)... to here. | |
5246 | ||
5247 | * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and | |
5248 | `kern/i386/realmode.S'. | |
5249 | ||
825fc8fd | 5250 | 2007-10-17 Robert Millan <rmh@aybabtu.com> |
5251 | ||
5252 | * include/grub/i386/loader.h: New file. | |
5253 | ||
5254 | * include/grub/i386/pc/loader.h (grub_linux_prot_size) | |
5255 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
5256 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
5257 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
5258 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ... | |
5259 | * include/grub/i386/loader.h (grub_linux_prot_size) | |
5260 | (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr) | |
5261 | (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage) | |
5262 | (grub_multiboot_real_boot, grub_multiboot2_real_boot) | |
5263 | (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here. | |
5264 | ||
5265 | * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'. | |
5266 | ||
e179b2f4 | 5267 | 2007-10-15 Robert Millan <rmh@aybabtu.com> |
5268 | ||
5269 | * normal/misc.c (grub_normal_print_device_info): Do not probe for | |
5270 | filesystem when dev->disk is unset. | |
5271 | Do probe for filesystem even when dev->disk->has_partitions is set. | |
5272 | In case a filesystem is found, always report it. | |
5273 | In case it isn't, if dev->disk->has_partitions is set, report that | |
5274 | a partition table was found instead of reporting that no filesystem | |
5275 | could be identified. | |
5276 | ||
5db82af6 | 5277 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
5278 | ||
5279 | * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference | |
5280 | to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c. | |
5281 | ||
68f6ac74 | 5282 | * include/grub/types.h (grub_host_to_target16): New macro. |
5283 | (grub_host_to_target32): Likewise. | |
5284 | (grub_host_to_target64): Likewise. | |
5285 | (grub_target_to_host16): Likewise. | |
5286 | (grub_target_to_host32): Likewise. | |
5287 | (grub_target_to_host64): Likewise. | |
5db82af6 | 5288 | |
5289 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
5290 | Renamed from to ... | |
5291 | (GRUB_MOD_ALIGN): ...this. Update all users. | |
5292 | ||
68f6ac74 | 5293 | * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with |
5294 | grub_host_to_target32. | |
5295 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
5296 | (load_modules): Likewise. | |
5297 | (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16. | |
5298 | Replace grub_be_to_cpu32 with grub_target_to_host32. | |
5299 | Replace grub_cpu_to_be16 with grub_host_to_target16. | |
5300 | Replace grub_cpu_to_be32 grub_host_to_target32. | |
5db82af6 | 5301 | |
3cf497cc | 5302 | 2007-10-12 Robert Millan <rmh@aybabtu.com> |
5303 | ||
5304 | * util/powerpc/ieee1275/grub-mkimage.c: Moved to ... | |
5305 | * util/elf/grub-mkimage.c: ... here. | |
5306 | ||
5307 | * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove | |
5308 | `util/powerpc/ieee1275/grub-mkimage.c'. | |
5309 | ||
c8cc3692 | 5310 | 2007-10-07 Robert Millan <rmh@aybabtu.com> |
adbc4c9d | 5311 | |
c8cc3692 | 5312 | * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR, |
5313 | and make it easier to figure out. | |
5314 | Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions. | |
5315 | (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter. | |
5316 | Do not avoid claiming a region above HEAP_MAX_ADDR if that would | |
5317 | leave us with less than HEAP_MIN_SIZE total heap. | |
5318 | Avoid our total amount of heap to surpass HEAP_MAX_SIZE. | |
adbc4c9d | 5319 | |
5c58b791 | 5320 | 2007-10-03 Robert Millan <rmh@aybabtu.com> |
5321 | ||
5322 | * include/grub/i386/io.h: New file. | |
5323 | * commands/i386/pc/play.c (inb): Removed. | |
5324 | (outb): Removed. | |
5325 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
5326 | with grub_outb(). | |
afcd2ef8 | 5327 | * term/i386/pc/serial.c (inb): Removed. |
5328 | (outb): Removed. | |
5329 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
5330 | with grub_outb(). | |
5331 | * term/i386/pc/vga.c (inb): Removed. | |
5332 | (outb): Removed. | |
5333 | Include grub/cpu/io.h. Replace inb() with grub_inb() and outb() | |
5334 | with grub_outb(). | |
5c58b791 | 5335 | |
1a477ed6 | 5336 | 2007-10-02 Robert Millan <rmh@aybabtu.com> |
5337 | ||
5338 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c. | |
5339 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
5340 | Reported by Marcin Kurek. | |
5341 | ||
6b5d80fa | 5342 | 2007-09-07 Robert Millan <rmh@aybabtu.com> |
5343 | ||
5344 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect | |
5345 | SmartFirmware version updates (as released by Sven Luther), and avoid | |
5346 | setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or | |
5347 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is | |
5348 | known broken. | |
5349 | ||
5618afbf | 5350 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
5351 | ||
5352 | From Hitoshi Ozeki: | |
5353 | * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS | |
5354 | when merging two regions. | |
5355 | ||
6139dcd9 | 5356 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
5357 | ||
508e39ee | 5358 | * kern/rescue.c (grub_enter_rescue_mode): Free ARGS. |
5359 | * normal/completion.c (grub_normal_do_completion): Likewise. | |
5360 | Reported by Hitoshi Ozeki. | |
5361 | ||
5362 | 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 5363 | |
6139dcd9 | 5364 | Do not use devices at boot in chainloading. |
f19dbdb7 | 5365 | |
6139dcd9 | 5366 | * loader/i386/pc/chainloader.c (boot_drive): New variable. |
5367 | (boot_part_addr): Likewise. | |
5368 | (grub_chainloader_boot): Simply call grub_chainloader_real_boot | |
5369 | with BOOT_DRIVE and BOOT_PART_ADDR. | |
5370 | (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR. | |
5371 | Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>. | |
5372 | ||
38da6516 | 5373 | 2007-08-29 Robert Millan <rmh@aybabtu.com> |
5374 | ||
5375 | Patch from Simon Peter <dn.tlp@gmx.net>: | |
5376 | * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets. | |
5377 | * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with | |
5378 | util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with | |
5379 | util/i386/pc/grub-setup.c_DEPENDENCIES. | |
5380 | * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with | |
5381 | util/grub-probe.c_DEPENDENCIES. | |
5382 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5383 | ||
29d0928c | 5384 | 2007-08-28 Robert Millan <rmh@aybabtu.com> |
5385 | ||
5386 | * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name() | |
5387 | to tell grub-mkdevicemap how to name devices. | |
5388 | * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a" | |
5389 | feature). | |
5390 | ||
5391 | * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add | |
5392 | util/i386/get_disk_name.c. | |
5393 | * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise. | |
5394 | * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add | |
5395 | util/ieee1275/get_disk_name.c. | |
5396 | ||
5397 | * include/grub/util/misc.h: grub_util_get_disk_name() declaration. | |
5398 | ||
5399 | * DISTLIST: Add util/i386/get_disk_name.c and | |
5400 | util/ieee1275/get_disk_name.c. | |
5401 | ||
5402 | * util/grub-mkdevicemap.c: Replace device naming logic with | |
5403 | grub_util_get_disk_name() calls. | |
5404 | ||
5a0d3cca | 5405 | 2007-08-20 Robert Millan <rmh@aybabtu.com> |
5406 | ||
5407 | * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds" | |
5408 | (so that it works for both plural and singular quantities). | |
5409 | ||
8b72db2f | 5410 | 2007-08-05 Robert Millan <rmh@aybabtu.com> |
5411 | ||
5412 | * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix | |
5413 | so that [xz] isn't taken into account when determining order. | |
5414 | ||
352466bf | 5415 | 2007-08-02 Marco Gerards <marco@gnu.org> |
5416 | ||
5417 | * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h', | |
5418 | `include/multiboot2.h', `include/grub/elfload.h', | |
5419 | `include/multiboot.h', `include/grub/multiboot.h', | |
5420 | `include/grub/multiboot_loader.h', `include/grub/multiboot2.h', | |
5421 | `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h', | |
5422 | `kern/elf.c', `loader/multiboot_loader.c', | |
5423 | `loader/multiboot_loader_normal.c', `loader/multiboot2.c', | |
5424 | `loader/i386/pc/multiboot2.c', | |
5425 | `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and | |
5426 | `util/i386/pc/grub-mkrescue.in'. Remove | |
5427 | `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h', | |
5428 | `include/grub/i386/pc/util/biosdisk.h' and | |
5429 | `include/grub/powerpc/ieee1275/multiboot.h'. | |
5430 | ||
8f096014 | 5431 | 2007-08-02 Bean <bean123ch@gmail.com> |
5432 | ||
5433 | * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod. | |
5434 | (ntfs_mod_SOURCES): New variable. | |
5435 | (ntfs_mod_CFLAGS): Likewise. | |
5436 | (ntfs_mod_LDFLAGS): Likewise. | |
5437 | ||
5438 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c. | |
5439 | (grub_probe_SOURCES): Likewise. | |
5440 | (grub_emu_SOURCES): Likewise. | |
5441 | ||
5442 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
5443 | (grub_emu_SOURCES): Likewise. | |
5444 | ||
5445 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c. | |
5446 | (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 5447 | |
8f096014 | 5448 | * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug. |
5449 | ||
5450 | * fs/ntfs.c: New file. | |
5451 | ||
9959f7db | 5452 | 2007-08-02 Bean <bean123ch@gmail.com> |
5453 | ||
5454 | * disk.h (grub_disk): Use NESTED_FUNC_ATTR. | |
5455 | ||
5456 | * file.h (grub_file): Likewise. | |
5457 | ||
5458 | * fshelp.h (grub_fshelp_read_file): Likewise. | |
5459 | ||
5460 | * util/i386/pc/grub-setup.c (setup): Likewise. | |
5461 | (save_first_sector): Likewise. | |
5462 | (save_blocklists): Likewise. | |
f19dbdb7 | 5463 | |
9959f7db | 5464 | * fs/affs.c (grub_affs_read_file): Likewise. |
5465 | ||
5466 | * fs/ext2.c (grub_ext2_read_file): Likewise. | |
5467 | ||
5468 | * fs/fat.c (grub_fat_read_data): Likewise. | |
5469 | ||
5470 | * fs/fshelp.c (grub_fshelp_read_file): Likewise. | |
5471 | ||
5472 | * fs/hfs.c (grub_hfs_read_file): Likewise. | |
5473 | ||
5474 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
5475 | ||
5476 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
5477 | ||
5478 | * fs/minix.c (grub_minix_read_file): Likewise. | |
5479 | ||
5480 | * fs/sfs.c (grub_sfs_read_file): Likewise. | |
5481 | ||
5482 | * fs/ufs.c (grub_ufs_read_file): Likewise. | |
f19dbdb7 | 5483 | |
9959f7db | 5484 | * fs/xfs.c (grub_xfs_read_file): Likewise. |
5485 | ||
5486 | * command/blocklist.c (read_blocklist): Likewise. | |
5487 | (print_blocklist): Likewise. | |
5488 | ||
0a203f83 | 5489 | 2007-08-02 Marco Gerards <marco@gnu.org> |
5490 | ||
5491 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and | |
5492 | `util/hostfs.c'. | |
5493 | ||
5494 | * disk/host.c: New file. | |
5495 | ||
5496 | * util/hostfs.c: Likewise. | |
5497 | ||
5498 | * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk, | |
5499 | return `GRUB_ERR_BAD_FS'. | |
5500 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
5501 | * fs/xfs.c (grub_xfs_mount): Likewise. | |
5502 | ||
5503 | * include/grub/disk.h (enum grub_disk_dev_id): Add | |
5504 | `GRUB_DISK_DEVICE_HOST_ID'. | |
5505 | ||
5506 | * util/grub-emu.c (main): Initialize and de-initialize hostfs. | |
5507 | ||
e5dfe777 | 5508 | 2007-07-24 Jerone Young <jerone@gmail.com> |
5509 | ||
f19dbdb7 | 5510 | * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot |
e5dfe777 | 5511 | modules for compilation. |
5512 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5513 | ||
5514 | * include/multiboot.h: Move multiboot definitions to one file. Rename | |
5515 | many definitions to not get grub specific. | |
5516 | * include/multiboot2.h: Create header with multiboot 2 definitions. | |
5517 | * include/grub/multiboot.h: Header for grub specific function | |
5518 | prototypes and definitions. | |
5519 | * include/grub/multiboot2.h: Likewise. | |
5520 | * include/grub/multiboot_loader.h: Likewise. | |
5521 | * include/grub/i386/pc/multiboot.h: Removed. | |
5522 | * include/grub/powerpc/ieee1275/multiboot.h: Removed. | |
5523 | ||
5524 | * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1 | |
5525 | and 2 to allow for one multiboot and module commands. | |
5526 | * loader/multiboot2.c: Add multiboot2 functionality. | |
5527 | * loader/i386/pc/multiboot.c: Modify for new multiboot header location | |
5528 | and definition names. | |
5529 | * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot | |
5530 | 2 functions. | |
5531 | * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc | |
5532 | ieee1275 specific multiboot2 code. | |
5533 | ||
5534 | * kern/i386/pc/startup.S: Change headers and definition names for | |
5535 | multiboot. Add function grub_multiboot2_real_boot for multiboot 2. | |
5536 | ||
daf0f0ba | 5537 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
5538 | ||
5539 | * geninitheader.sh: Process file specified in first parameter rather | |
5540 | than hardcoding grub_modules_init.lst. | |
fe6b695a | 5541 | * geninit.sh: Likewise. Also, construct header name dynamically rather |
daf0f0ba | 5542 | than hardcoding grub_modules_init.h. |
5543 | ||
5544 | * conf/common.rmk: Rename grub_modules_init.[ch] files associated with | |
5545 | grub-emu to grub_emu_init.[ch]. Add rules to build analogous | |
5546 | grub_probe_init.[ch] and grub_setup_init.[ch]. | |
5547 | ||
5548 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace | |
5549 | grub_modules_init.h with grub_emu_init.h. | |
5550 | (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new | |
5551 | grub_probe_init.[ch] files. | |
5552 | * conf/i386-efi.rmk: Likewise. | |
5553 | * conf/i386-pc.rmk: Likewise. | |
5554 | (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new | |
5555 | grub_setup_init.[ch] files. | |
5556 | ||
5557 | * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h. | |
5558 | * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all() | |
5559 | to initialize modules rather than a list of hardcoded functions. | |
5560 | * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use | |
5561 | grub_init_all() to initialize modules rather than a list of hardcoded | |
5562 | functions. | |
5563 | ||
54cdc1cc | 5564 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
5565 | ||
5566 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set | |
5567 | GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware. | |
5568 | ||
ad0686cc | 5569 | 2007-07-22 Robert Millan <rmh@aybabtu.com> |
5570 | ||
5571 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add | |
5572 | GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag. | |
5573 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this | |
5574 | flag when running on SmartFirmware. | |
5575 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running | |
5576 | "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT | |
5577 | was set. | |
5578 | ||
5579 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
5580 | Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set, | |
5581 | rather than decreasing it. | |
5582 | ||
5583 | * util/i386/pc/grub-setup.c (setup): When embedding is required, but | |
5584 | there's not enough space to do it, fail in the same way as when it | |
5585 | can't be done because there are no partitions. | |
5586 | ||
5587 | * util/powerpc/ieee1275/grub-install.in: Improve error message shown | |
5588 | when nvsetenv failed. | |
5589 | ||
969c02ec | 5590 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
5591 | ||
5592 | * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue, | |
5593 | because this rule is automatically generated. | |
5594 | (grub-mkrescue): Removed for the same reason as above. | |
5595 | ||
5a79f472 | 5596 | 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> |
5597 | ||
5598 | Migrate to GNU General Public License Version 3. | |
f19dbdb7 | 5599 | |
5a79f472 | 5600 | * COPYING: Replaced with the plain text version of GPLv3. |
5601 | ||
5602 | * config.guess: Updated from gnulib. | |
5603 | * config.sub: Likewise. | |
5604 | ||
5605 | * geninit.sh: Output a GPLv3 copyright notice. | |
5606 | * geninitheader.sh: Likewise. | |
5607 | * genmodsrc.sh: Likewise. | |
5608 | * gensymlist.sh.in: Likewise. | |
5609 | ||
5610 | * boot/i386/pc/boot.S: Upgraded to GPLv3. | |
5611 | * boot/i386/pc/diskboot.S: Likewise. | |
5612 | * boot/i386/pc/pxeboot.S: Likewise. | |
5613 | * commands/blocklist.c: Likewise. | |
5614 | * commands/boot.c: Likewise. | |
5615 | * commands/cat.c: Likewise. | |
5616 | * commands/cmp.c: Likewise. | |
5617 | * commands/configfile.c: Likewise. | |
5618 | * commands/echo.c: Likewise. | |
5619 | * commands/help.c: Likewise. | |
5620 | * commands/ls.c: Likewise. | |
5621 | * commands/search.c: Likewise. | |
5622 | * commands/terminal.c: Likewise. | |
5623 | * commands/test.c: Likewise. | |
5624 | * commands/videotest.c: Likewise. | |
5625 | * commands/i386/cpuid.c: Likewise. | |
5626 | * commands/i386/pc/halt.c: Likewise. | |
5627 | * commands/i386/pc/play.c: Likewise. | |
5628 | * commands/i386/pc/reboot.c: Likewise. | |
5629 | * commands/i386/pc/vbeinfo.c: Likewise. | |
5630 | * commands/i386/pc/vbetest.c: Likewise. | |
5631 | * commands/ieee1275/halt.c: Likewise. | |
5632 | * commands/ieee1275/reboot.c: Likewise. | |
5633 | * commands/ieee1275/suspend.c: Likewise. | |
5634 | * disk/loopback.c: Likewise. | |
5635 | * disk/lvm.c: Likewise. | |
5636 | * disk/raid.c: Likewise. | |
5637 | * disk/efi/efidisk.c: Likewise. | |
5638 | * disk/i386/pc/biosdisk.c: Likewise. | |
5639 | * disk/ieee1275/ofdisk.c: Likewise. | |
5640 | * font/manager.c: Likewise. | |
5641 | * fs/affs.c: Likewise. | |
5642 | * fs/ext2.c: Likewise. | |
5643 | * fs/fat.c: Likewise. | |
5644 | * fs/fshelp.c: Likewise. | |
5645 | * fs/hfs.c: Likewise. | |
5646 | * fs/hfsplus.c: Likewise. | |
5647 | * fs/iso9660.c: Likewise. | |
5648 | * fs/jfs.c: Likewise. | |
5649 | * fs/minix.c: Likewise. | |
5650 | * fs/sfs.c: Likewise. | |
5651 | * fs/ufs.c: Likewise. | |
5652 | * fs/xfs.c: Likewise. | |
5653 | * hello/hello.c: Likewise. | |
5654 | * include/grub/acorn_filecore.h: Likewise. | |
5655 | * include/grub/arg.h: Likewise. | |
5656 | * include/grub/bitmap.h: Likewise. | |
5657 | * include/grub/boot.h: Likewise. | |
5658 | * include/grub/cache.h: Likewise. | |
5659 | * include/grub/device.h: Likewise. | |
5660 | * include/grub/disk.h: Likewise. | |
5661 | * include/grub/dl.h: Likewise. | |
5662 | * include/grub/elfload.h: Likewise. | |
5663 | * include/grub/env.h: Likewise. | |
5664 | * include/grub/err.h: Likewise. | |
5665 | * include/grub/file.h: Likewise. | |
5666 | * include/grub/font.h: Likewise. | |
5667 | * include/grub/fs.h: Likewise. | |
5668 | * include/grub/fshelp.h: Likewise. | |
5669 | * include/grub/gzio.h: Likewise. | |
5670 | * include/grub/hfs.h: Likewise. | |
5671 | * include/grub/kernel.h: Likewise. | |
5672 | * include/grub/loader.h: Likewise. | |
5673 | * include/grub/lvm.h: Likewise. | |
5674 | * include/grub/misc.h: Likewise. | |
5675 | * include/grub/mm.h: Likewise. | |
5676 | * include/grub/net.h: Likewise. | |
5677 | * include/grub/normal.h: Likewise. | |
5678 | * include/grub/parser.h: Likewise. | |
5679 | * include/grub/partition.h: Likewise. | |
5680 | * include/grub/pc_partition.h: Likewise. | |
5681 | * include/grub/raid.h: Likewise. | |
5682 | * include/grub/rescue.h: Likewise. | |
5683 | * include/grub/script.h: Likewise. | |
5684 | * include/grub/setjmp.h: Likewise. | |
5685 | * include/grub/symbol.h: Likewise. | |
5686 | * include/grub/term.h: Likewise. | |
5687 | * include/grub/terminfo.h: Likewise. | |
5688 | * include/grub/tparm.h: Likewise. | |
5689 | * include/grub/types.h: Likewise. | |
5690 | * include/grub/video.h: Likewise. | |
5691 | * include/grub/efi/api.h: Likewise. | |
5692 | * include/grub/efi/chainloader.h: Likewise. | |
5693 | * include/grub/efi/console.h: Likewise. | |
5694 | * include/grub/efi/console_control.h: Likewise. | |
5695 | * include/grub/efi/disk.h: Likewise. | |
5696 | * include/grub/efi/efi.h: Likewise. | |
5697 | * include/grub/efi/pe32.h: Likewise. | |
5698 | * include/grub/efi/time.h: Likewise. | |
5699 | * include/grub/i386/linux.h: Likewise. | |
5700 | * include/grub/i386/setjmp.h: Likewise. | |
5701 | * include/grub/i386/types.h: Likewise. | |
5702 | * include/grub/i386/efi/kernel.h: Likewise. | |
5703 | * include/grub/i386/efi/loader.h: Likewise. | |
5704 | * include/grub/i386/efi/time.h: Likewise. | |
5705 | * include/grub/i386/pc/biosdisk.h: Likewise. | |
5706 | * include/grub/i386/pc/boot.h: Likewise. | |
5707 | * include/grub/i386/pc/chainloader.h: Likewise. | |
5708 | * include/grub/i386/pc/console.h: Likewise. | |
5709 | * include/grub/i386/pc/init.h: Likewise. | |
5710 | * include/grub/i386/pc/kernel.h: Likewise. | |
5711 | * include/grub/i386/pc/loader.h: Likewise. | |
5712 | * include/grub/i386/pc/memory.h: Likewise. | |
5713 | * include/grub/i386/pc/multiboot.h: Likewise. | |
5714 | * include/grub/i386/pc/serial.h: Likewise. | |
5715 | * include/grub/i386/pc/time.h: Likewise. | |
5716 | * include/grub/i386/pc/vbe.h: Likewise. | |
5717 | * include/grub/i386/pc/vbeblit.h: Likewise. | |
5718 | * include/grub/i386/pc/vbefill.h: Likewise. | |
5719 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
5720 | * include/grub/i386/pc/vga.h: Likewise. | |
5721 | * include/grub/ieee1275/ieee1275.h: Likewise. | |
5722 | * include/grub/ieee1275/ofdisk.h: Likewise. | |
5723 | * include/grub/powerpc/libgcc.h: Likewise. | |
5724 | * include/grub/powerpc/setjmp.h: Likewise. | |
5725 | * include/grub/powerpc/types.h: Likewise. | |
5726 | * include/grub/powerpc/ieee1275/biosdisk.h: Likewise. | |
5727 | * include/grub/powerpc/ieee1275/console.h: Likewise. | |
5728 | * include/grub/powerpc/ieee1275/ieee1275.h: Likewise. | |
5729 | * include/grub/powerpc/ieee1275/kernel.h: Likewise. | |
5730 | * include/grub/powerpc/ieee1275/loader.h: Likewise. | |
5731 | * include/grub/powerpc/ieee1275/multiboot.h: Likewise. | |
5732 | * include/grub/powerpc/ieee1275/time.h: Likewise. | |
5733 | * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
5734 | * include/grub/sparc64/libgcc.h: Likewise. | |
5735 | * include/grub/sparc64/setjmp.h: Likewise. | |
5736 | * include/grub/sparc64/types.h: Likewise. | |
5737 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
5738 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
5739 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
5740 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
5741 | * include/grub/util/biosdisk.h: Likewise. | |
5742 | * include/grub/util/getroot.h: Likewise. | |
5743 | * include/grub/util/lvm.h: Likewise. | |
5744 | * include/grub/util/misc.h: Likewise. | |
5745 | * include/grub/util/raid.h: Likewise. | |
5746 | * include/grub/util/resolve.h: Likewise. | |
5747 | * io/gzio.c: Likewise. | |
5748 | * kern/device.c: Likewise. | |
5749 | * kern/disk.c: Likewise. | |
5750 | * kern/dl.c: Likewise. | |
5751 | * kern/elf.c: Likewise. | |
5752 | * kern/env.c: Likewise. | |
5753 | * kern/err.c: Likewise. | |
5754 | * kern/file.c: Likewise. | |
5755 | * kern/fs.c: Likewise. | |
5756 | * kern/loader.c: Likewise. | |
5757 | * kern/main.c: Likewise. | |
5758 | * kern/misc.c: Likewise. | |
5759 | * kern/mm.c: Likewise. | |
5760 | * kern/parser.c: Likewise. | |
5761 | * kern/partition.c: Likewise. | |
5762 | * kern/rescue.c: Likewise. | |
5763 | * kern/term.c: Likewise. | |
5764 | * kern/efi/efi.c: Likewise. | |
5765 | * kern/efi/init.c: Likewise. | |
5766 | * kern/efi/mm.c: Likewise. | |
5767 | * kern/i386/dl.c: Likewise. | |
5768 | * kern/i386/efi/init.c: Likewise. | |
5769 | * kern/i386/efi/startup.S: Likewise. | |
5770 | * kern/i386/pc/init.c: Likewise. | |
5771 | * kern/i386/pc/lzo1x.S: Likewise. | |
5772 | * kern/i386/pc/startup.S: Likewise. | |
5773 | * kern/ieee1275/ieee1275.c: Likewise. | |
5774 | * kern/powerpc/cache.S: Likewise. | |
5775 | * kern/powerpc/dl.c: Likewise. | |
5776 | * kern/powerpc/ieee1275/cmain.c: Likewise. | |
5777 | * kern/powerpc/ieee1275/crt0.S: Likewise. | |
5778 | * kern/powerpc/ieee1275/init.c: Likewise. | |
5779 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
5780 | * kern/sparc64/cache.S: Likewise. | |
5781 | * kern/sparc64/dl.c: Likewise. | |
5782 | * kern/sparc64/ieee1275/init.c: Likewise. | |
5783 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
5784 | * loader/efi/chainloader.c: Likewise. | |
5785 | * loader/efi/chainloader_normal.c: Likewise. | |
5786 | * loader/i386/efi/linux.c: Likewise. | |
5787 | * loader/i386/efi/linux_normal.c: Likewise. | |
5788 | * loader/i386/pc/chainloader.c: Likewise. | |
5789 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
5790 | * loader/i386/pc/linux.c: Likewise. | |
5791 | * loader/i386/pc/linux_normal.c: Likewise. | |
5792 | * loader/i386/pc/multiboot.c: Likewise. | |
5793 | * loader/i386/pc/multiboot_normal.c: Likewise. | |
5794 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
5795 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
5796 | * normal/arg.c: Likewise. | |
5797 | * normal/cmdline.c: Likewise. | |
5798 | * normal/command.c: Likewise. | |
5799 | * normal/completion.c: Likewise. | |
5800 | * normal/execute.c: Likewise. | |
5801 | * normal/function.c: Likewise. | |
5802 | * normal/lexer.c: Likewise. | |
5803 | * normal/main.c: Likewise. | |
5804 | * normal/menu.c: Likewise. | |
5805 | * normal/menu_entry.c: Likewise. | |
5806 | * normal/misc.c: Likewise. | |
5807 | * normal/parser.y: Likewise. | |
5808 | * normal/script.c: Likewise. | |
5809 | * normal/i386/setjmp.S: Likewise. | |
5810 | * normal/powerpc/setjmp.S: Likewise. | |
5811 | * normal/sparc64/setjmp.S: Likewise. | |
5812 | * partmap/acorn.c: Likewise. | |
5813 | * partmap/amiga.c: Likewise. | |
5814 | * partmap/apple.c: Likewise. | |
5815 | * partmap/gpt.c: Likewise. | |
5816 | * partmap/pc.c: Likewise. | |
5817 | * partmap/sun.c: Likewise. | |
5818 | * term/gfxterm.c: Likewise. | |
5819 | * term/terminfo.c: Likewise. | |
5820 | * term/efi/console.c: Likewise. | |
5821 | * term/i386/pc/console.c: Likewise. | |
5822 | * term/i386/pc/serial.c: Likewise. | |
5823 | * term/i386/pc/vesafb.c: Likewise. | |
5824 | * term/i386/pc/vga.c: Likewise. | |
5825 | * term/ieee1275/ofconsole.c: Likewise. | |
5826 | * util/biosdisk.c: Likewise. | |
5827 | * util/console.c: Likewise. | |
5828 | * util/genmoddep.c: Likewise. | |
5829 | * util/getroot.c: Likewise. | |
5830 | * util/grub-emu.c: Likewise. | |
5831 | * util/grub-mkdevicemap.c: Likewise. | |
5832 | * util/grub-probe.c: Likewise. | |
5833 | * util/lvm.c: Likewise. | |
5834 | * util/misc.c: Likewise. | |
5835 | * util/raid.c: Likewise. | |
5836 | * util/resolve.c: Likewise. | |
5837 | * util/update-grub.in: Likewise. | |
5838 | * util/update-grub_lib.in: Likewise. | |
5839 | * util/grub.d/00_header.in: Likewise. | |
5840 | * util/grub.d/10_hurd.in: Likewise. | |
5841 | * util/grub.d/10_linux.in: Likewise. | |
5842 | * util/i386/efi/grub-install.in: Likewise. | |
5843 | * util/i386/efi/grub-mkimage.c: Likewise. | |
5844 | * util/i386/pc/grub-install.in: Likewise. | |
5845 | * util/i386/pc/grub-mkimage.c: Likewise. | |
5846 | * util/i386/pc/grub-mkrescue.in: Likewise. | |
5847 | * util/i386/pc/grub-setup.c: Likewise. | |
5848 | * util/i386/pc/misc.c: Likewise. | |
5849 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
5850 | * util/powerpc/ieee1275/grub-mkimage.c: Likewise. | |
5851 | * util/powerpc/ieee1275/misc.c: Likewise. | |
5852 | * video/bitmap.c: Likewise. | |
5853 | * video/video.c: Likewise. | |
5854 | * video/i386/pc/vbe.c: Likewise. | |
5855 | * video/i386/pc/vbeblit.c: Likewise. | |
5856 | * video/i386/pc/vbefill.c: Likewise. | |
5857 | * video/i386/pc/vbeutil.c: Likewise. | |
5858 | * video/readers/tga.c: Likewise. | |
5859 | ||
3572d015 | 5860 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
5861 | ||
5862 | * conf/i386-efi.rmk: Replace obsolete reference to | |
5863 | util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c | |
5864 | with util/getroot.c. | |
5865 | * conf/powerpc-ieee1275.rmk: Likewise. | |
5866 | * conf/sparc64-ieee1275.rmk: Likewise. | |
5867 | ||
5868 | * util/grub-emu.c (main): Fix unchecked pointer handling. | |
5869 | ||
2c2a681b | 5870 | 2007-07-02 Robert Millan <rmh@aybabtu.com> |
5871 | ||
5872 | * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap' | |
5873 | invocation to fail, in order to support partition-less media. | |
5874 | ||
5875 | * util/i386/pc/grub-install.in: Likewise. | |
5876 | ||
5877 | * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine | |
5878 | which fs or partmap modules are needed (akin to its sister scripts). | |
5879 | ||
5880 | Also use grub-probe to get rid of unportable /proc/mounts check. | |
5881 | ||
5882 | Print the same informational message that the other scripts do, before | |
fe6b695a | 5883 | exiting. |
2c2a681b | 5884 | |
6193defe | 5885 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
5886 | ||
fe6b695a | 5887 | * util/update-grub_lib.in (font_path): New function. Determine whether |
6193defe | 5888 | a font file can be found and, if so, echo the GRUB path to it. |
5889 | ||
5890 | * util/update-grub.in: Handle multiple terminals depending on user | |
5891 | input, platform availability and font file presence. Propagate | |
5892 | variables of our findings to /etc/grub.d/ children. | |
5893 | ||
5894 | * util/grub.d/00_header.in: Handle multiple terminals, based on | |
5895 | environment setup by update-grub. | |
5896 | ||
eface1dc | 5897 | 2007-06-23 Robert Millan <rmh@aybabtu.com> |
5898 | ||
ba50d28f | 5899 | * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod. |
eface1dc | 5900 | |
bf697e28 | 5901 | 2007-06-21 Robert Millan <rmh@aybabtu.com> |
5902 | ||
5903 | * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to | |
5904 | indicate end of data section in kernel image. | |
5905 | * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and | |
5906 | GRUB_KERNEL_MACHINE_DATA_END. | |
5907 | ||
5908 | * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve | |
5909 | space for it. | |
5910 | * kern/i386/efi/startup.S: Likewise. | |
5911 | ||
5912 | * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub | |
5913 | during image generation. Implement --prefix option to override this | |
5914 | patch. | |
5915 | * util/i386/efi/grub-mkimage.c: Likewise. | |
5916 | ||
5917 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Split | |
5918 | code to make path relative to its root into a separate function. | |
5919 | ||
5920 | * util/i386/pc/grub-install.in: Use newly provided | |
5921 | make_system_path_relative_to_its_root() to convert ${grubdir}, then | |
5922 | pass the result to grub-install --prefix. | |
5923 | ||
baa574b4 | 5924 | 2007-06-13 Robert Millan <rmh@aybabtu.com> |
5925 | ||
5926 | * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and | |
5927 | DEFAULT_DEVICE_MAP. | |
5928 | * util/grub-emu.c: Use above definitions from misc.h instead of | |
5929 | defining them. | |
5930 | * util/grub-mkdevicemap.c: Likewise. | |
5931 | * util/i386/pc/grub-setup.c: Likewise. | |
5932 | * util/grub-probe.c: Likewise. | |
5933 | (probe): Abort with grub_util_error() when either | |
5934 | grub_guess_root_device or grub_util_get_grub_dev fails. | |
5935 | ||
0215dcbf | 5936 | 2007-06-12 Robert Millan <rmh@aybabtu.com> |
5937 | ||
5938 | * normal/command.c (grub_command_execute): Use NULL rather than 0 for | |
5939 | "pager" assignment. | |
5940 | * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for | |
5941 | "pcdata". | |
5942 | * util/grub-probe.c (probe): Likewise for "drive_name". | |
5943 | ||
8af2ab7b | 5944 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
5945 | ||
5946 | * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes, | |
5947 | not just the cdrom one. | |
5948 | ||
59d31694 | 5949 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
5950 | ||
5951 | * util/i386/pc/grub-mkrescue.in: Add "set -e". | |
5952 | Add --pkglibdir=DIR option to override pkglibdir. | |
5953 | Mention --image-type=TYPE in help output. | |
5954 | Fix --grub-mkimage (it was a no-op). | |
fe6b695a | 5955 | Abort gracefully when no parameter is given. |
59d31694 | 5956 | |
7ee367e4 | 5957 | 2007-06-11 Robert Millan <rmh@aybabtu.com> |
5958 | ||
5959 | * util/i386/pc/grub-mkrescue.in: New file. | |
5960 | * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS. | |
5961 | * Makefile.in: Handle bin_SCRIPTS. | |
5962 | ||
29b0ed46 | 5963 | 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi> |
5964 | ||
5965 | * term/gfxterm.c (grub_gfxterm_init): Added support for specifying | |
5966 | list of video modes. | |
5967 | ||
c0f90770 | 5968 | 2007-06-06 Robert Millan <rmh@aybabtu.com> |
5969 | ||
5970 | * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if | |
5971 | file doesn't exist, or if it is in a filesystem grub can't read. | |
5972 | ||
5973 | * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do | |
5974 | not abort if GRUB_DRIVE could not be defined. Rearrange generated | |
5975 | header comment to fit in 80 columns when the variables are resolved. | |
5976 | ||
5977 | * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE | |
5978 | could be identified by update-grub. Remove redundant check for | |
fe6b695a | 5979 | unifont.pff existence (since convert_system_path_to_grub_path now |
c0f90770 | 5980 | handles that). |
5981 | ||
fb36dc26 | 5982 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
5983 | ||
5984 | * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c. | |
5985 | ||
5986 | * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. | |
5987 | ||
5988 | * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c. | |
5989 | ||
0c68c93e | 5990 | 2007-06-04 Robert Millan <rmh@aybabtu.com> |
5991 | ||
5992 | * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe. | |
5993 | ||
5994 | * include/grub/partition.h: Declare grub_apple_partition_map_init and | |
5995 | grub_apple_partition_map_fini. | |
5996 | ||
5997 | * util/biosdisk.c | |
5998 | (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed | |
5999 | to access >2 TiB disks). | |
6000 | ||
6001 | Print disk->total_sectors with %llu instead of %lu, since this | |
6002 | variable is always 64-bit (prevents wrong disk size from being displayed | |
6003 | on either >2 TiB disk or big-endian CPU). | |
6004 | ||
6005 | (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling | |
6006 | into a generic case that supports all (sane) partition maps. | |
6007 | ||
6008 | Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually | |
6009 | breaks big-endian. | |
6010 | ||
6011 | * util/grub-probe.c: Call grub_apple_partition_map_init() before probe() | |
6012 | and grub_apple_partition_map_fini() after that. | |
6013 | ||
0f23eb74 | 6014 | 2007-06-01 Robert Millan <rmh@aybabtu.com> |
6015 | ||
6016 | * util/update-grub.in: Export GRUB_CMDLINE_LINUX. | |
6017 | ||
6018 | * util/grub.d/00_header.in: Only enable gfxterm when | |
6019 | convert_system_path_to_grub_path() succeeds. | |
6020 | ||
42c71976 | 6021 | 2007-05-20 Robert Millan <rmh@aybabtu.com> |
6022 | ||
6023 | * util/update-grub_lib.in: New file. | |
6024 | * DISTLIST: Add update-grub_lib.in. | |
6025 | * conf/common.rmk: Generate update-grub_lib and install it in | |
6026 | $(lib_DATA). | |
6027 | * Makefile.in: Add install routine for $(lib_DATA). | |
6028 | ||
6029 | * util/grub.d/00_header.in: Use convert_system_path_to_grub_path() | |
6030 | function provided by update-grub_lib to support arbitrary paths of | |
6031 | unifont.pff. | |
6032 | * util/update-grub.in: Use convert_system_path_to_grub_path() to | |
6033 | initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables. | |
6034 | ||
5beb2291 | 6035 | 2007-05-19 Robert Millan <rmh@aybabtu.com> |
6036 | ||
6037 | * commands/i386/cpuid.c: New module. | |
6038 | * DISTLIST: Add it. | |
6039 | * conf/i386-efi.rmk: Enable cpuid.mod. | |
6040 | * conf/i386-pc.rmk: Likewise. | |
6041 | ||
7262eca1 | 6042 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
6043 | ||
6044 | * kern/disk.c (grub_disk_read): Check return value of | |
6045 | grub_realloc(). | |
6046 | ||
260ba823 | 6047 | 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx> |
6048 | ||
6049 | * util/getroot.c (grub_util_get_grub_dev): Support partitionable | |
6050 | arrays. | |
6051 | * disk/raid.c (grub_raid_open): Likewise. | |
6052 | ||
1ecb6cf2 | 6053 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
6054 | ||
6055 | * util/biosdisk.c (linux_find_partition): Allocate real_dev on the | |
6056 | stack instead of on the heap. | |
6057 | ||
6058 | * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough | |
6059 | before doing a read on it. | |
6060 | ||
6061 | * configure.ac: Only use -fno-stack-protector for the target | |
6062 | environment. | |
f19dbdb7 | 6063 | |
21c8cbb1 | 6064 | 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx> |
6065 | ||
6066 | * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add | |
6067 | __attribute_ ((unused)) to mode_type argument. | |
6068 | ||
6069 | * util/getroot.c (grub_guess_root_device): Fix #endif. | |
f19dbdb7 | 6070 | |
21c8cbb1 | 6071 | * kern/misc.c (memcmp): Fix prototype. |
6072 | ||
6073 | * include/grub/partition.h [GRUB_UTIL] | |
6074 | (grub_gpt_partition_map_init): Add prototype. | |
6075 | (grub_gpt_partition_map_fini): Likewise. | |
6076 | ||
6077 | * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed) | |
6078 | at the right place. | |
6079 | ||
6080 | * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U. | |
6081 | (grub_fat_read_data): Likewise. | |
6082 | (grub_fat_find_dir): Likewise. | |
6083 | ||
6084 | * font/manager.c (find_glyph): Make table a const. | |
6085 | (grub_font_get_glyph): Remove bitmap from if statement. | |
f19dbdb7 | 6086 | |
849d55d3 | 6087 | 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx> |
6088 | ||
6089 | * util/getroot.c (grub_guess_root_device): Remove RAID and LVM | |
6090 | code, first search for device in /dev/mapper, then in /dev. | |
6091 | (grub_util_get_grub_dev): New function. | |
6092 | * include/grub/util/getroot.h (grub_util_get_grub_dev): Add | |
6093 | prototype. | |
6094 | * util/grub-probe.c (probe): Remove check for RAID, call | |
6095 | grub_util_get_grub_dev() instead of | |
6096 | grub_util_biosdisk_get_grub_dev(). | |
6097 | * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of | |
6098 | grub_util_biosdisk_get_grub_dev(). | |
6099 | * util/i386/pc/grub-setup.c (main): Likewise. | |
6100 | ||
8fff7c2f | 6101 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
6102 | ||
6103 | * DISTLIST: Update for the latest changes. | |
6104 | * conf/i386-pc.rmk: Use the new paths for util/getroot.c, | |
6105 | util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c. | |
6106 | * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with | |
6107 | grub/util/biosdisk.h. | |
6108 | * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with | |
6109 | grub/util/biosdisk.h. | |
6110 | ||
48e12b52 | 6111 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
6112 | ||
6113 | * util/grub.d/00_header.in: Set default gfxmode to `640x480'. | |
6114 | ||
46b9d128 | 6115 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
6116 | ||
6117 | * util/i386/efi/grub-install.in: New. | |
6118 | * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the | |
6119 | newly added grub-install. | |
6120 | * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h | |
6121 | include. | |
6122 | * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with | |
6123 | grub/util/biosdisk.h. | |
6124 | * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with | |
6125 | grub/util/biosdisk.h. | |
6126 | ||
2d1a40a9 | 6127 | 2007-05-16 Robert Millan <rmh@aybabtu.com> |
6128 | ||
6129 | * include/grub/i386/pc/util/biosdisk.h: Moved to ... | |
6130 | * include/grub/util/biosdisk.h: ... here. | |
6131 | * util/i386/pc/biosdisk.c: Moved to ... | |
6132 | * util/biosdisk.c: ... here. | |
6133 | * util/i386/pc/getroot.c: Moved to ... | |
6134 | * util/getroot.c: ... here. | |
6135 | * util/i386/pc/grub-mkdevicemap.c: Moved to ... | |
6136 | * util/grub-mkdevicemap.c: ... here. | |
6137 | * util/i386/pc/grub-probe.c: Moved to ... | |
6138 | * util/grub-probe.c: ... here. | |
6139 | ||
9e26e3bc | 6140 | 2007-05-15 Robert Millan <rmh@aybabtu.com> |
6141 | ||
6142 | * util/update-grub.in: Remove duplicated line in grub.cfg header | |
6143 | message. | |
6144 | ||
57f96397 | 6145 | 2007-05-13 Robert Millan <rmh@aybabtu.com> |
6146 | ||
6147 | * util/update-grub.in: Fix a few assumptions about the devices holding | |
6148 | /, /boot and /boot/grub being the same. | |
6149 | * util/grub.d/00_header.in: Likewise. | |
6150 | * util/grub.d/10_hurd.in: Likewise. | |
6151 | * util/grub.d/10_linux.in: Likewise. | |
6152 | ||
6153 | * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary | |
6154 | patterns. Use that to define the `.old' suffix as older than `'. | |
6155 | ||
6156 | * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'. | |
6157 | ||
6158 | * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in | |
6159 | the grub.cfg header message. | |
6160 | ||
2e610d62 | 6161 | 2007-05-11 Robert Millan <rmh@aybabtu.com> |
6162 | ||
6163 | * util/update-grub.in: Create device.map if it doesn't already exist, | |
6164 | before attempting to run grub-probe. | |
6165 | Check for grub-probe and grub-mkdevicemap with the same code | |
6166 | grub-install is using. | |
6167 | Remove test mode. | |
6168 | ||
3f6a10ef | 6169 | 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx> |
6170 | ||
6171 | * Makefile.in: Add the datarootdir autoconf variable. | |
6172 | ||
02e7b75e | 6173 | 2007-05-09 Robert Millan <rmh@aybabtu.com> |
6174 | ||
6175 | * util/i386/pc/grub-probe.c (probe): When detecting partition map, | |
f19dbdb7 | 6176 | fail gracefully if dev->disk->partition == NULL. |
02e7b75e | 6177 | |
75f396cc | 6178 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
6179 | ||
6180 | * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to | |
6181 | determine partition map module. | |
6182 | * util/i386/pc/grub-install.in: Use this feature to decide which | |
6183 | partition module to load, instead of hardcoding pc and gpt. | |
6184 | ||
da65cb36 | 6185 | 2007-05-07 Robert Millan <rmh@aybabtu.com> |
6186 | ||
6187 | * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when | |
6188 | source directory differs from build directory. | |
6189 | ||
b57d6a91 | 6190 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
6191 | ||
6192 | * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir | |
6193 | initialisation. | |
6194 | ||
509d00f1 | 6195 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
6196 | ||
6197 | * util/update-grub.in: Create ${grub_prefix} if it doesn't exist. | |
6198 | ||
c48f23ef | 6199 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
6200 | ||
6201 | * util/grub.d/10_linux.in: Allow the administrator to insert Linux | |
6202 | command-line arguments via ${GRUB_CMDLINE_LINUX}. | |
6203 | ||
20b97658 | 6204 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
6205 | ||
6206 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c. | |
6207 | (grub_probe_SOURCES): Likewise. | |
6208 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect | |
6209 | GPT and initialize dos_part and bsd_part accordingly. | |
6210 | * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and | |
6211 | install_bsd_part. | |
6212 | (main): Activate gpt module for use during partition identification, | |
6213 | and deactivate it afterwards. | |
6214 | * util/i386/pc/grub-install.in: Add gpt module to core.img. | |
6215 | * util/i386/pc/grub-probe.c (main): Activate gpt module for use during | |
6216 | partition identification, and deactivate it afterwards. | |
6217 | ||
99123174 | 6218 | 2007-05-05 Robert Millan <rmh@aybabtu.com> |
6219 | ||
6220 | * term/i386/pc/console.c (grub_console_fini): Call | |
6221 | grub_term_set_current() before grub_term_unregister(). | |
6222 | ||
ebd97f6e | 6223 | 2007-05-04 Robert Millan <rmh@aybabtu.com> |
6224 | ||
6225 | * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in, | |
6226 | util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README. | |
6227 | * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS | |
6228 | and update-grub_DATA. | |
6229 | * conf/common.rmk: Build and install update-grub components. | |
6230 | * conf/common.mk: Regenerate. | |
6231 | * util/update-grub.in: New. Core of update-grub. | |
6232 | * util/grub.d/00_header.in: New. Generates grub.cfg header. | |
6233 | * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd. | |
6234 | * util/grub.d/10_linux.in: New. Generates boot entries for Linux. | |
6235 | * util/grub.d/README: New. Document grub.d directory layout. | |
6236 | ||
b06a264d | 6237 | 2007-05-01 Robert Millan <rmh@aybabtu.com> |
6238 | ||
6239 | * util/grub-emu.c: Move initialization functions | |
6240 | grub_util_biosdisk_init() and grub_init_all() before | |
6241 | grub_util_biosdisk_get_grub_dev(), which relies on them. | |
6242 | ||
41f0050e | 6243 | 2007-04-19 Robert Millan <rmh@aybabtu.com> |
6244 | ||
6245 | * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since | |
6246 | it is used later. | |
6247 | ||
04582bb3 | 6248 | 2007-04-18 Jerone Young <jerone@gmail.com> |
6249 | ||
f19dbdb7 | 6250 | * kernel/elf.c: Add missing parenthesis for conditional statement |
04582bb3 | 6251 | stanza. |
6252 | ||
08db4632 | 6253 | 2007-04-10 Jerone Young <jerone@gmail.com> |
49892fdf | 6254 | |
08db4632 | 6255 | * util/i386/pc/getroot.c: Update so that if root device is /dev/root , |
6256 | continue on and look for device node with real device name. | |
6257 | ||
801b76be | 6258 | 2007-04-10 Jerone Young <jerone@gmail.com> |
f19dbdb7 | 6259 | |
fe6b695a | 6260 | * configure.ac: Add argument for autoconf to use transformation |
1d543c3e | 6261 | ability. |
6262 | * Makefile.in: Add autoconf package transformation code. | |
6263 | * util/i386/pc/grub-install.in: Likewise. | |
6264 | * util/powerpc/ieee1275/grub-install.in: Likewise. | |
6265 | ||
6795c4e1 | 6266 | 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
6267 | ||
6268 | * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro. | |
6269 | (EXT2_GOOD_OLD_INODE_SIZE): Likewise. | |
6270 | (EXT2_REVISION): Likewise. | |
6271 | (EXT2_INODE_SIZE): Likewise. | |
6272 | (struct grub_ext2_block_group): Added a missing member | |
6273 | "used_dirs". | |
6274 | (grub_ext2_read_inode): Divide by the inode size in a superblock | |
6275 | instead of 128 to obtain INODES_PER_BLOCK. | |
6276 | Use the macro EXT2_INODE_SIZE instead of directly using | |
6277 | SBLOCK->INODE_SIZE. | |
6278 | ||
d70af616 | 6279 | 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
6280 | ||
6281 | * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a | |
6282 | superblock instead of the structure size to compute an | |
6283 | offset. This fixes the problem that GRUB could not read a | |
6284 | filesystem when inode size is different from 128-byte. | |
6285 | ||
3b801603 | 6286 | 2007-03-05 Marco Gerards <marco@gnu.org> |
6287 | ||
6288 | * normal/main.c (read_config_file): When "menu" is not set, create | |
6289 | an initial context. | |
6290 | ||
4785bfe4 | 6291 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
6292 | ||
6293 | * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed. | |
6294 | (HEAP_LIMIT): New macro. | |
6295 | (grub_claim_heap): Claim memory up to `heaplimit'. | |
6296 | ||
a0cbb023 | 6297 | 2007-02-21 Hollis Blanchard <hollis@penguinppc.org> |
6298 | ||
6299 | * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB. | |
6300 | * kern/powerpc/ieee1275/init.c (_end): Add declaration. | |
6301 | (_start): Likewise. | |
6302 | (grub_arch_modules_addr): Return address after `_end'. | |
6303 | * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h. | |
6304 | (load_modules): Use new parameter as `p_paddr' and `p_vaddr'. | |
6305 | (add_segments): Calculate `_end' from phdr size and location. | |
6306 | (ALIGN_UP): Moved to ... | |
6307 | * include/grub/misc.h: here. | |
6308 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN): | |
6309 | New macro. | |
6310 | (GRUB_IEEE1275_MODULE_BASE): Removed. | |
6311 | ||
fd7d8eba | 6312 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
6313 | ||
6314 | * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct | |
6315 | loop boundary. | |
6316 | ||
9b09e6fc | 6317 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
6318 | ||
6319 | * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t. | |
6320 | All users updated. | |
6321 | (grub_elf64_load_hook_t): Likewise. | |
6322 | * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve | |
6323 | debug output. | |
6324 | ||
3ce27299 | 6325 | 2007-02-20 Hollis Blanchard <hollis@penguinppc.org> |
6326 | ||
6327 | * kern/mm.c: Update copyright. | |
6328 | (grub_mm_debug): Correct syntax error. | |
6329 | (grub_mm_dump_free): New function. | |
6330 | (grub_debug_free): Call `grub_free'. | |
6331 | * include/grub/mm.h: Update copyright. | |
6332 | (grub_mm_dump_free): Add declaration. | |
6333 | ||
077d5fee | 6334 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
6335 | ||
6336 | * include/grub/ieee1275/ieee1275.h: Update copyright. | |
6337 | * kern/powerpc/ieee1275/init.c: Likewise. | |
6338 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
6339 | ||
6340 | * loader/powerpc/ieee1275/linux.c: Likewise. | |
6341 | * include/grub/elfload.h: Likewise. | |
6342 | * kern/elf.c: Likewise. | |
6343 | (grub_elf32_load): Pass `base' and `size' parameters. Update all | |
6344 | callers. | |
6345 | (grub_elf64_load): Likewise. | |
6346 | (grub_elf32_load_segment): Move to a nested function. | |
6347 | (grub_elf64_load_segment): Likewise. | |
6348 | ||
dc946850 | 6349 | 2007-02-12 Hollis Blanchard <hollis@penguinppc.org> |
6350 | ||
6351 | * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New | |
6352 | prototype. | |
6353 | * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed. | |
6354 | (grub_heap_len): Likewise. | |
6355 | (HEAP_SIZE): New macro. | |
6356 | (grub_claim_heap): New function. | |
6357 | (grub_machine_init): Don't claim heap directly. Call | |
6358 | `grub_claim_heap'. | |
6359 | * kern/powerpc/ieee1275/openfw.c: Include alloca.h. | |
6360 | (grub_available_iterate): New function. | |
6361 | ||
baa2a121 | 6362 | 2007-02-03 Thomas Schwinge <tschwinge@gnu.org> |
6363 | ||
6364 | * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition. | |
6365 | * configure.ac: Use it for testing the HOST and TARGET compilers. | |
6366 | ||
4fe9862e | 6367 | 2006-12-13 Thomas Schwinge <tschwinge@gnu.org> |
6368 | ||
6369 | * Makefile.in (enable_grub_emu): New variable. | |
6370 | * configure.ac (--enable-grub-emu): New option. | |
6371 | Do the checks for (n)curses only if `--enable-grub-emu' is requested. | |
6372 | * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested. | |
6373 | * conf/i386-pc.rmk: Likewise. | |
6374 | * conf/powerpc-ieee1275.rmk: Likewise. | |
6375 | * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise. | |
6376 | ||
a8aa5762 | 6377 | 2006-12-12 Marco Gerards <marco@gnu.org> |
6378 | ||
6379 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'. | |
6380 | ||
6381 | * kern/env.c (grub_env_unset): Don't free the member `value' when | |
6382 | the type is GRUB_ENV_VAR_DATA, in this case it's a user defined | |
6383 | pointer. | |
6384 | ||
6385 | * normal/main.c (current_menu): Removed. | |
6386 | (free_menu): Unset the `menu' environment variable. | |
6387 | (grub_normal_menu_addentry): Make use of the environment variable | |
6388 | `menu', instead of using the global `current_menu'. Allocate | |
6389 | memory for the sourcecode of this entry. | |
6390 | (read_config_file): New argument `nested', changed all callers. | |
6391 | Only in the case of a new context, initialize a new menu. Set the | |
6392 | `menu' environment variable. | |
6393 | (grub_normal_execute): Don't set and unset the environment | |
6394 | variable `menu' here anymore. Only free the menu when leaving the | |
6395 | context. | |
6396 | ||
6397 | * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory | |
6398 | leak. | |
6399 | ||
957b3a3e | 6400 | 2006-12-11 Marco Gerards <marco@gnu.org> |
6401 | ||
6402 | * normal/menu_entry.c (run): Fix off by one bug so the last line | |
6403 | is executed. Move the loader check to outside the loop. | |
6404 | ||
ef875714 | 6405 | 2006-12-08 Hollis Blanchard <hollis@penguinppc.org> |
6406 | ||
6407 | * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'. | |
6408 | ||
4e739985 | 6409 | 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org> |
6410 | ||
6411 | * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of | |
6412 | the number of sectors. Reported by Andrey Shuvikov | |
6413 | <mr_hyro@yahoo.com>. | |
f19dbdb7 | 6414 | |
790707f2 | 6415 | 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx> |
6416 | ||
6417 | * kern/disk.c (grub_disk_read): When there is a read error, always | |
6418 | try to read only the necessary data. | |
f19dbdb7 | 6419 | |
790707f2 | 6420 | * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and |
6421 | disk/raid.c. | |
6422 | * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New | |
6423 | prototype. | |
6424 | [GRUB_UTIL] (grub_raid_fini): Likewise. | |
6425 | [GRUB_UTIL] (grub_lvm_init): Likewise. | |
f19dbdb7 | 6426 | [GRUB_UTIL] (grub_lvm_fini): Likewise. |
790707f2 | 6427 | * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is |
6428 | RAID device and copy DEVICE_NAME to DRIVE_NAME in that case. | |
6429 | (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini() | |
6430 | and grub_raid_fini(). | |
f19dbdb7 | 6431 | |
03e58196 | 6432 | 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
6433 | ||
6434 | * include/grub/types.h (__unused): Rename to UNUSED. | |
6435 | * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused. | |
6436 | (grub_elf64_size): Likewise. | |
f19dbdb7 | 6437 | |
ae4f23bf | 6438 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
6439 | ||
6440 | * kern/elf.c (grub_elf_file): Call grub_file_seek. Call | |
6441 | grub_error_push and grub_error_pop in the error-handling path. | |
6442 | (grub_elf32_load_segment): Only call grub_file_read with non-zero | |
6443 | length. | |
6444 | ||
2166cc83 | 6445 | 2006-11-03 Hollis Blanchard <hollis@penguinppc.org> |
6446 | ||
6447 | * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c. | |
6448 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
6449 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
6450 | (kernel_elf_SOURCES): Likewise. | |
6451 | * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h. | |
6452 | * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise. | |
6453 | * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
6454 | * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise. | |
6455 | * conf/common.rmk (pkgdata_MODULES): Add elf.mod. | |
6456 | (elf_mod_SOURCES): New variable. | |
6457 | (elf_mod_CFLAGS): Likewise. | |
6458 | (elf_mod_LDFLAGS): Likewise. | |
6459 | * include/grub/types.h (__unused): New macro. | |
6460 | * include/grub/elfload.h: New file. | |
6461 | * kern/elf.c: Likewise. | |
6462 | * loader/powerpc/ieee1275/linux.c: Include elfload.h. | |
6463 | (ELF32_LOADMASK): New macro. | |
6464 | (ELF64_LOADMASK): Likewise. | |
6465 | (vmlinux): Removed. | |
6466 | (grub_linux_load32): New function. | |
6467 | (grub_linux_load64): Likewise. | |
6468 | (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64. | |
6469 | Use grub_elf_t instead of grub_file_t. | |
6470 | ||
a09d5aa5 | 6471 | 2006-11-02 Hollis Blanchard <hollis@penguinppc.org> |
6472 | ||
6473 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add | |
6474 | `catch_result' to struct set_color_args. | |
6475 | ||
d976fc51 | 6476 | 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
6477 | ||
6478 | * normal/menu.c: Include grub/script.h. | |
6479 | * normal/menu_entry.c: Likewise. | |
6480 | * include/grub/normal.h: Do not include grub/script.h. | |
6481 | ||
67507549 | 6482 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
6483 | ||
6484 | * kern/disk.c (grub_disk_read): Correct debug printf formatting. | |
6485 | ||
69203a99 | 6486 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
6487 | ||
6488 | * kern/disk.c (grub_disk_open): Print debug messages when opening a | |
6489 | disk. | |
6490 | (grub_disk_close): Print debug messages when closing a disk. | |
6491 | (grub_disk_read): Print debug messages when disk read fails. | |
6492 | * kern/fs.c (grub_fs_probe): Print debug messages when detecting | |
6493 | filesystem type. | |
6494 | * kern/partition.c: Include misc.h. | |
6495 | (grub_partition_iterate): Print debug messages when detecting | |
6496 | partition type. | |
6497 | ||
e2b8278c | 6498 | 2006-10-27 Hollis Blanchard <hollis@penguinppc.org> |
6499 | ||
6500 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status' | |
6501 | is negative. | |
6502 | * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0. | |
6503 | ||
97b2f2ff | 6504 | 2006-10-26 Hollis Blanchard <hollis@penguinppc.org> |
6505 | ||
6506 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): | |
6507 | Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test. | |
6508 | ||
6555d655 | 6509 | 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx> |
6510 | ||
6511 | * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes | |
6512 | instead of sizeof(lv). Patch by Michael Guntsche. | |
6513 | ||
4d42b77f | 6514 | 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx> |
6515 | ||
6516 | * disk/lvm.c: Rename VGS to VG_LIST. | |
6517 | (grub_lvm_iterate): Change VGS->LV to VG-LV. | |
6518 | (grub_lvm_open): Likewise. | |
6519 | Thanks to Michael Guntsche for finding this bug. | |
6520 | ||
5d74d927 | 6521 | 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
6522 | ||
6523 | * configure.ac (AC_INIT): Bumped to 1.95. | |
6524 | ||
a1bb27e4 | 6525 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
6526 | ||
6527 | * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev | |
6528 | with "/dev/.static/dev/md". | |
6529 | ||
e0994b8b | 6530 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
6531 | ||
6532 | * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of | |
6533 | DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open | |
6534 | DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and | |
6535 | DRIVE_NAME are always freed. | |
6536 | ||
6537 | * util/i386/pc/biosdisk.c (make_device_name): Add one into | |
6538 | DOS_PART, as a DOS partition is counted from one instead of zero | |
6539 | now. Reported by Robert Millan. | |
6540 | ||
ddd5cee9 | 6541 | 2006-10-14 Robert Millan <rmh@aybabtu.com> |
6542 | ||
6543 | * util/i386/pc/getroot.c (grub_guess_root_device): Stop using | |
6544 | grub_util_biosdisk_get_grub_dev to convert system device to GRUB device. | |
6545 | * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the | |
6546 | string returned by grub_guess_root_device. | |
6547 | * util/i386/pc/grub-setup.c: Likewise. | |
6548 | * util/i386/pc/grub-probefs.c: Likewise. | |
6549 | ||
6550 | * util/i386/pc/grub-probefs.c: Rename to ... | |
6551 | * util/i386/pc/grub-probe.c: ... this. | |
6552 | * DISTLIST: Remove grub-probefs, add grub-probe. | |
6553 | * conf/i386-efi.rmk: Likewise. | |
6554 | * conf/i386-pc.rmk: Likewise. | |
6555 | * util/i386/pc/grub-install.in: Likewise. | |
6556 | ||
6557 | * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to | |
6558 | choose which information we want to print. | |
6559 | ||
2b002173 | 6560 | 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> |
6561 | ||
6562 | * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c, | |
6563 | include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h, | |
6564 | include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h, | |
6565 | include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c, | |
6566 | video/readers/tga.c and video/i386/pc/vbeutil.c. | |
6567 | ||
6568 | 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx> | |
6569 | ||
6570 | Added support for RAID and LVM. | |
f19dbdb7 | 6571 | |
2b002173 | 6572 | * disk/lvm.c: New file. |
6573 | * disk/raid.c: Likewise. | |
6574 | * include/grub/lvm.h: Likewise. | |
f19dbdb7 | 6575 | * include/grub/raid.h: Likewise. |
2b002173 | 6576 | * include/grub/util/lvm.h: Likewise. |
6577 | * include/grub/util/raid.h: Likewise. | |
6578 | * util/lvm.c: Likewise. | |
6579 | * util/raid.c: Likewise. | |
6580 | ||
6581 | * include/grub/disk.h (grub_disk_dev_id): Add | |
6582 | GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID. | |
6583 | (grub_disk_get_size): New prototype. | |
6584 | * kern/disk.c (grub_disk_open): Check whether grub_partition_probe() | |
6585 | returns a partition. | |
6586 | (grub_disk_get_size): New function. | |
f19dbdb7 | 6587 | |
2b002173 | 6588 | * kern/i386/pc/init.c (make_install_device): Copy the prefix |
6589 | verbatim if grub_install_dos_part is -2. | |
6590 | ||
6591 | * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID | |
6592 | and LVM devices. | |
6593 | ||
6594 | * util/i386/pc/grub-setup.c (setup): New argument | |
6595 | MUST_EMBED. Force embedding of GRUB when the argument is | |
6596 | true. Close FILE before returning. | |
6597 | (main): Add support for RAID and LVM. | |
f19dbdb7 | 6598 | |
2b002173 | 6599 | * conf/common.rmk: Add RAID and LVM modules. |
6600 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and | |
6601 | util/lvm.c. | |
6602 | (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c. | |
6603 | ||
6604 | * kern/misc.c (grub_strstr): New function. | |
6605 | * include/grub/misc.h (grub_strstr): New prototype. | |
6606 | ||
050548d0 | 6607 | 2006-10-10 Tristan Gingold <tristan.gingold@bull.net> |
6608 | ||
6609 | * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant. | |
6610 | ||
da849d2d | 6611 | 2006-10-05 Tristan Gingold <tristan.gingold@bull.net> |
6612 | ||
6613 | * kern/misc.c (grub_strtoull): Guess the base only if not | |
6614 | specified. | |
6615 | ||
97b2f2ff | 6616 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
4f0acd39 | 6617 | |
6618 | * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World | |
6619 | PowerMac support. | |
6620 | ||
97b2f2ff | 6621 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
fba51f48 | 6622 | |
6623 | * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long. | |
6624 | ||
6625 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property): | |
6626 | Remove `flags' argument. All callers changed. | |
6627 | * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed. | |
6628 | (IEEE1275_IHANDLE_INVALID): New variable. | |
6629 | (IEEE1275_CELL_INVALID): New variable. | |
6630 | (grub_ieee1275_finddevice, grub_ieee1275_get_property, | |
6631 | grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package, | |
6632 | grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path, | |
6633 | grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open, | |
6634 | grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return | |
6635 | codes from Open Firmware. All callers updated. | |
6636 | (grub_ieee1275_next_property): Directly return Open Firmware return | |
6637 | code. | |
6638 | * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): | |
6639 | Standardize error checking from `grub_ieee1275_get_property'. | |
6640 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename | |
6641 | `devalias' to `aliases'. Correct comments. Consolidate error paths. | |
6642 | ||
97b2f2ff | 6643 | 2006-10-01 Hollis Blanchard <hollis@penguinppc.org> |
cc6d3df3 | 6644 | |
6645 | * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename | |
6646 | `instance_to_package_args' to `instance_to_path_args'. | |
6647 | ||
6648 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Use | |
6649 | `grub_ieee1275_chosen'. | |
6650 | ||
6651 | * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call | |
6652 | `grub_ieee1275_interpret'. | |
6653 | ||
97b2f2ff | 6654 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
02bb8acc | 6655 | |
6656 | * util/powerpc/ieee1275/grub-mkimage.c: Include config.h. | |
6657 | ||
97b2f2ff | 6658 | 2006-09-25 Hollis Blanchard <hollis@penguinppc.org> |
663b72f0 | 6659 | |
6660 | * include/grub/powerpc/libgcc.h (__floatdisf): New prototype. | |
6661 | (__cmpdi): Likewise. | |
6662 | ||
6663 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as | |
6664 | `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type | |
6665 | `grub_ssize_t'. | |
6666 | ||
02bb8acc | 6667 | * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h. |
663b72f0 | 6668 | |
6669 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual' | |
6670 | to type `grub_ssize_t'. | |
6671 | (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'. | |
6672 | ||
7f9a8531 | 6673 | 2006-09-22 Marco Gerards <marco@gnu.org> |
6674 | ||
6675 | * normal/script.c (grub_script_create_cmdmenu): Skip leading | |
6676 | newlines. | |
6677 | ||
b5ef1102 | 6678 | 2006-09-22 Marco Gerards <marco@gnu.org> |
6679 | ||
6680 | * commands/echo.c: New file. | |
6681 | ||
6682 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'. | |
6683 | ||
6684 | * conf/common.rmk (echo_mod_SOURCES): New variable. | |
6685 | (echo_mod_CFLAGS): Likewise. | |
6686 | (echo_mod_LDFLAGS): Likewise. | |
6687 | ||
2cff3677 | 6688 | 2006-09-22 Marco Gerards <marco@gnu.org> |
6689 | ||
6690 | * normal/main.c (get_line): Malloc memory instead of using | |
6691 | preallocated memory. Removed the arguments `cmdline' and | |
6692 | `max_len'. Updated all callers. | |
6693 | ||
6ba4688b | 6694 | 2006-09-22 Marco Gerards <marco@gnu.org> |
6695 | ||
6696 | * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable. | |
6697 | (normal_mod_DEPENDENCIES): Likewise. | |
6698 | ||
6699 | * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise. | |
6700 | (normal_mod_DEPENDENCIES): Likewise. | |
6701 | ||
6702 | * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise. | |
6703 | ||
e02ac02c | 6704 | 2006-09-22 Johan Rydberg <jrydberg@gnu.org> |
6705 | ||
6706 | * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and | |
6707 | programs. | |
6708 | * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare. | |
6709 | (normal_mod_DEPENDENCIES): Likewise. | |
6710 | * conf/i386-pc.mk: Regenerate. | |
6711 | * conf/i386-efi.mk: Likewise | |
6712 | * conf/common.mk: Likewise. | |
6713 | * conf/powerpc-ieee1275.mk: Likewise. | |
6714 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 6715 | |
8d252e44 | 6716 | 2006-09-22 Robert Millan <rmh@aybabtu.com> |
6717 | ||
6718 | Sync with i386 version. | |
6719 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage. | |
6720 | * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu. | |
6721 | ||
209bf7ac | 6722 | 2006-09-21 Robert Millan <rmh@aybabtu.com> |
6723 | ||
6724 | Import from GRUB Legacy (lib/device.c): | |
6725 | * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function. | |
6726 | (init_device_map) [__linux__]: Add support for I2O devices. | |
6727 | ||
6b146090 | 6728 | 2006-09-14 Marco Gerards <marco@gnu.org> |
6729 | ||
6730 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of | |
6731 | `-melf_i386'. | |
6732 | ||
e38600a8 | 6733 | 2006-09-14 Robert Millan <rmh@aybabtu.com> |
2952da5d | 6734 | |
6735 | * util/i386/pc/grub-install.in: Skip menu.lst when removing | |
6736 | /boot/grub/*.lst. | |
78fa1790 | 6737 | |
2952da5d | 6738 | * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static"). |
6b146090 | 6739 | |
2952da5d | 6740 | * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists |
6741 | before adding it to device.map. | |
6742 | ||
01b82a64 | 6743 | 2006-08-15 Johan Rydberg <jrydberg@gnu.org> |
6744 | ||
fe6b695a | 6745 | * genmk.rb: Let GCC generate dependencies the first time it |
01b82a64 | 6746 | compiles a file; using the -MD option. |
6747 | * conf/common.mk: Regenerate. | |
6748 | * conf/i386-pc.mk: Likewise. | |
6749 | * conf/i386-efi.mk: Likewise. | |
6750 | * conf/powerpc-ieee1275.mk: Likewise. | |
6751 | * conf/sparc64-ieee1275.mk: Likewise. | |
f19dbdb7 | 6752 | |
1064790d | 6753 | 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org> |
6754 | ||
6755 | Move the prototypes of grub_setjmp and grub_longjmp to | |
6756 | cpu/setjmp.h, so that each architecture may specify different | |
6757 | attributes. | |
f19dbdb7 | 6758 | |
1064790d | 6759 | * include/grub/i386/setjmp.h (grub_setjmp): New prototype. |
6760 | (grub_longjmp): Likewise. | |
6761 | * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.. | |
6762 | (grub_longjmp): Likewise. | |
6763 | * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise.. | |
6764 | (grub_longjmp): Likewise. | |
6765 | ||
6766 | * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed. | |
6767 | [!GRUB_UTIL] (grub_longjmp): Removed. | |
6768 | ||
29dda3ed | 6769 | 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr> |
6770 | ||
6771 | * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275 | |
6772 | "color!" method does not return any value. | |
6773 | ||
ad2a06ed | 6774 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
6775 | ||
6776 | * include/grub/bitmap.h: New file. | |
6777 | ||
6778 | * include/grub/i386/pc/vbeutil.h: Likewise. | |
6779 | ||
6780 | * video/bitmap.c: Likewise. | |
6781 | ||
6782 | * video/readers/tga.c: Likewise. | |
6783 | ||
6784 | * video/i386/pc/vbeutil.c: Likewise. | |
6785 | ||
6786 | * commands/videotest.c: Code cleanup and updated to reflect to new | |
6787 | video API. | |
6788 | ||
6789 | * term/gfxterm.c: Likewise. | |
6790 | ||
6791 | * video/video.c: Likewise. | |
6792 | ||
6793 | * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod. | |
6794 | (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c. | |
6795 | (bitmap_mod_SOURCES): New entry. | |
6796 | (bitmap_mod_CFLAGS): Likewise. | |
6797 | (bitmap_mod_LDFLAGS): Likewise. | |
6798 | (tga_mod_SOURCES): Likewise. | |
6799 | (tga_mod_CFLAGS): Likewise. | |
6800 | (tga_mod_LDFLAGS): Likewise. | |
6801 | ||
6802 | * include/grub/video.h (grub_video_blit_operators): New enum type. | |
6803 | (grub_video_render_target): Changed as forward declaration and moved | |
6804 | actual definition to be video driver specific. | |
6805 | (grub_video_adapter.blit_bitmap): Added blitting operator. | |
6806 | (grub_video_adapter.blit_render_target): Likewise. | |
6807 | (grub_video_blit_bitmap): Likewise. | |
6808 | (grub_video_blit_render_target): Likewise. | |
6809 | ||
6810 | * include/grub/i386/pc/vbe.h (grub_video_render_target): Added | |
6811 | driver specific render target definition. | |
6812 | (grub_video_vbe_map_rgba): Added driver internal helper. | |
6813 | (grub_video_vbe_unmap_color): Updated to use | |
6814 | grub_video_i386_vbeblit_info. | |
6815 | (grub_video_vbe_get_video_ptr): Likewise. | |
6816 | ||
6817 | * include/grub/i386/pc/vbeblit.h | |
6818 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use | |
6819 | grub_video_i386_vbeblit_info. | |
6820 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise. | |
6821 | (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise. | |
6822 | (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise. | |
6823 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise. | |
6824 | (grub_video_i386_vbeblit_index_R8G8B8): Likewise. | |
6825 | (grub_video_i386_vbeblit_index_index): Likewise. | |
6826 | (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function. | |
6827 | (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise. | |
6828 | (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise. | |
6829 | (grub_video_i386_vbeblit_blend): Added generic blitter for blend | |
6830 | operator. | |
6831 | (grub_video_i386_vbeblit_replace): Added generic blitter for replace | |
6832 | operator. | |
6833 | ||
6834 | * video/i386/pc/vbeblit.c: Updated to reflect changes on | |
6835 | include/grub/i386/pc/vbeblit.h. | |
6836 | ||
6837 | * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8): | |
6838 | Updated to use grub_video_i386_vbeblit_info. | |
6839 | (grub_video_i386_vbefill_R8G8B8): Likewise. | |
6840 | (grub_video_i386_vbefill_index): Likewise. | |
6841 | (grub_video_i386_vbefill): Added generic filler. | |
6842 | ||
6843 | * video/i386/pc/vbefill.c: Updated to reflect changes on | |
6844 | include/grub/i386/pc/vbefill.h. | |
6845 | ||
6846 | * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use | |
6847 | grub_video_i386_vbeblit_info. | |
6848 | (grub_video_vbe_unmap_color): Likewise. | |
6849 | (grub_video_vbe_blit_glyph): Likewise. | |
6850 | (grub_video_vbe_scroll): Likewise. | |
6851 | (grub_video_vbe_draw_pixel): Removed function. | |
6852 | (grub_video_vbe_get_pixel): Likewise. | |
6853 | (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and | |
6854 | updated code to use it. | |
6855 | (common_blitter): Added common blitter for render target and bitmap. | |
6856 | (grub_video_vbe_blit_bitmap): Updated to use common_blitter. | |
6857 | (grub_video_vbe_blit_render_target): Likewise. | |
6858 | ||
bc8c036d | 6859 | 2006-07-30 Johan Rydberg <jrydberg@gnu.org> |
6860 | ||
6861 | * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already | |
6862 | is in text mode if there is no console control protocol instance | |
6863 | available. | |
6864 | ||
684a8eff | 6865 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
6866 | ||
6867 | * include/grub/video.h: Code cleanup. | |
6868 | ||
6869 | * include/grub/i386/pc/vbe.h: Likewise. | |
6870 | ||
6871 | * video/i386/pc/vbe.c: Likewise. | |
6872 | ||
6873 | * video/i386/pc/vbeblit.c: Likewise. | |
6874 | ||
6875 | * video/i386/pc/vbefill.c: Likewise. | |
6876 | ||
6877 | * video/video.c: Likewise. Also added more comments. | |
6878 | ||
5915059b | 6879 | 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi> |
6880 | ||
6881 | * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ... | |
6882 | (struct grub_biosdisk_dap): Likewise. | |
6883 | ||
6884 | * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected | |
6885 | linkage settings for all functions. | |
6886 | ||
90ce5d56 | 6887 | 2006-07-12 Marco Gerards <marco@gnu.org> |
6888 | ||
6889 | * configure.ac (--enable-mm-debug): Fix typo. | |
6890 | ||
6891 | * genkernsyms.sh.in: Use proper quoting for `CC'. | |
6892 | ||
43e7f879 | 6893 | 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx> |
6894 | ||
6895 | * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32". | |
6896 | (normal_mod_ASFLAGS): Remove "-m32". | |
6897 | ||
4889bdec | 6898 | 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org> |
6899 | ||
6900 | * util/misc.c: Include config.h. | |
6901 | [!HAVE_MEMALIGN]: Do not include malloc.h. | |
6902 | (grub_memalign): Use posix_memalign, if present. Then, use | |
6903 | memalign, if present. Otherwise, emit an error. | |
6904 | ||
6905 | * util/grub-emu.c: Do not include malloc.h. | |
6906 | ||
6907 | * include/grub/util/misc.h: Include unistd.h. This is required for | |
6908 | FreeBSD, because off_t is defined in unistd.h. Reported by Harley | |
6909 | D. Eades III <hde@foobar-qux.org>. | |
6910 | ||
6911 | * configure.ac (AC_GNU_SOURCE): Added. | |
6912 | (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host | |
6913 | type. | |
6914 | ||
fd39d4da | 6915 | 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org> |
6916 | ||
6917 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that | |
6918 | ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS. | |
6919 | ||
b786f3b5 | 6920 | 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx> |
6921 | ||
6922 | * include/grub/types.h (grub_host_addr_t): Rename to | |
6923 | grub_target_addr_t. | |
6924 | (grub_host_off_t): Rename to grub_target_off_t. | |
6925 | (grub_host_size_t): Rename to grub_target_size_t. | |
6926 | (grub_host_ssize_t): Rename to grub_target_ssize_t. | |
6927 | Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables. | |
6928 | ||
6929 | * include/grub/kernel.h (struct grub_module_header): Change type | |
6930 | of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t. | |
6931 | (grub_module_info): Likewise. | |
f19dbdb7 | 6932 | |
051988bb | 6933 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
6934 | ||
6935 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional | |
6936 | of checking LINUX_MEM_SIZE was reverse. Reported by Jesus | |
6937 | Velazquez <jesus.velazquez@gmail.com>. | |
6938 | ||
deae281b | 6939 | 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org> |
6940 | ||
6941 | Count partitions from 1 instead of 0 in the string representation | |
6942 | of partitions. Still use 0-based internally. | |
f19dbdb7 | 6943 | |
deae281b | 6944 | * partmap/sun.c (grub_sun_is_valid): A cosmetic change. |
6945 | (sun_partition_map_iterate): Use grub_partition_t instead of | |
6946 | struct grub_partition *. Cast DESC->START_CYLINDER to | |
6947 | grub_uint64_t after converting the endian. | |
6948 | (sun_partition_map_probe): Subtract 1 for PARTNUM. | |
6949 | (sun_partition_map_get_name): Add 1 to P->INDEX. | |
6950 | ||
6951 | * partmap/pc.c (grub_partition_parse): Subtract 1 for | |
6952 | PCDATA->DOS_PART. | |
6953 | (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART. | |
6954 | ||
6955 | * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to | |
6956 | zero instead of one. | |
6957 | (gpt_partition_map_probe): Subtract 1 for PARTNUM. | |
6958 | (gpt_partition_map_get_name): Add 1 into P->INDEX. | |
6959 | ||
6960 | * partmap/apple.c (apple_partition_map_iterate): Change the type | |
6961 | of POS to unsigned. | |
6962 | (apple_partition_map_probe): Subtract 1 for PARTNUM. | |
6963 | (apple_partition_map_get_name): Add 1 into P->INDEX. | |
6964 | ||
6965 | * partmap/amiga.c (amiga_partition_map_iterate): Change the type | |
6966 | of POS to unsigned. | |
6967 | (amiga_partition_map_iterate): Cast NEXT to grub_off_t to | |
6968 | calculate the offset of a partition. | |
6969 | (amiga_partition_map_probe): Subtract 1 for PARTNUM. | |
6970 | (amiga_partition_map_get_name): Add 1 into P->INDEX. | |
6971 | ||
6972 | * partmap/acorn.c (acorn_partition_map_find): Change the type of | |
6973 | SECTOR to grub_disk_addr_t. | |
6974 | (acorn_partition_map_iterate): Likewise. | |
6975 | (acorn_partition_map_probe): Subtract 1 for PARTNUM. | |
6976 | Change the type of SECTOR to grub_disk_addr_t. Declare P on the | |
6977 | top. | |
6978 | (acorn_partition_map_get_name): Add 1 into P->INDEX. | |
6979 | ||
6980 | * kern/i386/pc/init.c (make_install_device): Add 1 into | |
6981 | GRUB_INSTALL_DOS_PART. | |
6982 | ||
6983 | * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed | |
6984 | conditional. | |
6985 | ||
524a1e6a | 6986 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
6987 | ||
6988 | Clean up the code to support 64-bit addressing in disks and | |
6989 | files. This change is not enough for filesystems yet. | |
f19dbdb7 | 6990 | |
524a1e6a | 6991 | * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the |
6992 | type of "start" to grub_uint64_t. | |
6993 | (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to | |
6994 | grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in | |
6995 | save_first_sector and save_blocklists. Use grub_le_to_cpu64 to | |
6996 | convert addresses. | |
6997 | ||
6998 | * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR | |
6999 | to grub_disk_addr_t. | |
7000 | ||
7001 | * partmap/gpt.c (gpt_partition_map_iterate): Fix the format | |
7002 | string. | |
7003 | ||
7004 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
7005 | ||
7006 | * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC | |
7007 | to char *. | |
7008 | ||
7009 | * normal/script.c (grub_script_parse): Remove unused MEMFREE. | |
7010 | ||
7011 | * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro. | |
7012 | ||
7013 | * normal/lexer.c (grub_script_yyerror): Specify unused to LEX. | |
7014 | ||
7015 | * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1 | |
7016 | to grub_off_t, to detect an error from grub_file_seek. | |
7017 | (grub_multiboot_load_elf32): Likewise. | |
7018 | ||
7019 | * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the | |
7020 | maximum unsigned long value when an overflow is detected. | |
7021 | (grub_strtoull): New function. | |
7022 | (grub_divmod64): Likewise. | |
7023 | (grub_lltoa): use grub_divmod64. | |
7024 | ||
7025 | * kern/fs.c (struct grub_fs_block): Change the type of "offset" to | |
7026 | grub_disk_addr_t. | |
7027 | (grub_fs_blocklist_open): Increase P if P is not NULL to advance | |
7028 | the pointer to next character. Use grub_strtoull instead of | |
7029 | grub_strtoul. | |
7030 | (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and | |
7031 | SIZE to grub_disk_addr_t, grub_off_t and grub_size_t, | |
7032 | respectively. | |
7033 | ||
fe6b695a | 7034 | * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the |
524a1e6a | 7035 | return value is signed. |
7036 | (grub_file_seek): Change the type of OLD to grub_off_t. Do not | |
7037 | test if OFFSET is less than zero, as OFFSET is unsigned now. | |
7038 | ||
7039 | * kern/disk.c (struct grub_disk_cache): Change the type of | |
7040 | "sector" to grub_disk_addr_t. | |
7041 | (grub_disk_cache_get_index): Change the type of SECTOR to | |
7042 | grub_disk_addr_t. Calculate the hash with SECTOR casted to | |
7043 | unsigned after shifting. | |
7044 | (grub_disk_cache_invalidate): Change the type of SECTOR to | |
7045 | grub_disk_addr_t. | |
7046 | (grub_disk_cache_unlock): Likewise. | |
7047 | (grub_disk_cache_store): Likewise. | |
7048 | (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE, | |
7049 | START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t, | |
7050 | grub_disk_addr_t and grub_uint64_t, respectively. | |
7051 | (grub_disk_read): Use an unsigned variable REAL_OFFSET for the | |
7052 | body, as the value of OFFSET is tweaked by | |
7053 | grub_disk_check_range. Change the types of START_SECTOR, LEN and | |
7054 | POS to grub_disk_addr_t, grub_size_t and grub_size_t, | |
7055 | respectively. | |
7056 | (grub_disk_write): Use an unsigned variable REAL_OFFSET for the | |
7057 | body, as the value of OFFSET is tweaked by | |
7058 | grub_disk_check_range. Change the types of LEN and N to | |
7059 | grub_size_t. | |
7060 | ||
7061 | * io/gzio.c (struct grub_gzio): Change the types of "data_offset" | |
7062 | and "saved_offset" to grub_off_t. | |
7063 | (test_header): Cast BUF to char *. | |
7064 | (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF | |
7065 | to char *. | |
7066 | (grub_gzio_read): Change the types of OFFSET and SIZE to | |
7067 | grub_off_t and grub_size_t, respectively. | |
7068 | ||
7069 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA): | |
7070 | Removed. | |
7071 | (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c. | |
7072 | (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40. | |
7073 | (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42. | |
7074 | (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e. | |
7075 | (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12. | |
7076 | ||
7077 | * include/grub/types.h (grub_off_t): Unconditionally set to | |
7078 | grub_uint64_t. | |
7079 | (grub_disk_addr_t): Changed to grub_uint64_t. | |
7080 | ||
7081 | * include/grub/partition.h (struct grub_partition): Change the | |
7082 | types of "start", "len" and "offset" to grub_disk_addr_t, | |
7083 | grub_uint64_t and grub_disk_addr_t, respectively. | |
7084 | (grub_partition_get_start): Return grub_disk_addr_t. | |
7085 | (grub_partition_get_len): Return grub_uint64_t. | |
7086 | ||
7087 | * include/grub/misc.h (grub_strtoull): New prototype. | |
7088 | (grub_divmod64): Likewise. | |
7089 | ||
7090 | * include/grub/fshelp.h (grub_fshelp_read_file): Change the types | |
7091 | of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and | |
7092 | grub_off_t, respectively. | |
7093 | All callers and references changed. | |
7094 | ||
7095 | * include/grub/fs.h (struct grub_fs): Change the type of LEN to | |
7096 | grub_size_t in "read". | |
7097 | All callers and references changed. | |
7098 | ||
7099 | * include/grub/file.h (struct grub_file): Change the types of | |
7100 | "offset" and "size" to grub_off_t and grub_off_t, | |
7101 | respectively. Change the type of SECTOR to grub_disk_addr_t in | |
7102 | "read_hook". | |
7103 | (grub_file_read): Change the type of LEN to grub_size_t. | |
7104 | (grub_file_seek): Return grub_off_t. Change the type of OFFSET to | |
7105 | grub_off_t. | |
7106 | (grub_file_size): Return grub_off_t. | |
7107 | (grub_file_tell): Likewise. | |
7108 | All callers and references changed. | |
7109 | ||
7110 | * include/grub/disk.h (struct grub_disk_dev): Change the types of | |
7111 | SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and | |
7112 | "write". | |
7113 | (struct grub_disk): Change the type of "total_sectors" to | |
7114 | grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in | |
f19dbdb7 | 7115 | "read_hook". |
524a1e6a | 7116 | (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to |
7117 | grub_disk_addr_t, grub_off_t and grub_size_t, respectively. | |
7118 | (grub_disk_write): Likewise. | |
7119 | All callers and references changed. | |
7120 | ||
7121 | * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to | |
7122 | char * for grub_strncmp to silence gcc. | |
7123 | (grub_iso9660_mount): Likewise. | |
7124 | (grub_iso9660_mount): Likewise. | |
7125 | (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense | |
7126 | return statement. | |
7127 | (grub_iso9660_iterate_dir): Likewise. | |
7128 | (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *. | |
7129 | ||
7130 | * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and | |
7131 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
7132 | ||
7133 | * fs/hfsplus.c (grub_hfsplus_read_file): Likewise. | |
7134 | ||
7135 | * fs/jfs.c (grub_jfs_read_file): Likewise. | |
7136 | ||
7137 | * fs/minix.c (grub_jfs_read_file): Likewise. | |
7138 | ||
7139 | * fs/sfs.c (grub_jfs_read_file): Likewise. | |
7140 | ||
7141 | * fs/ufs.c (grub_jfs_read_file): Likewise. | |
7142 | ||
7143 | * fs/xfs.c (grub_jfs_read_file): Likewise. | |
7144 | ||
7145 | * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN | |
7146 | and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t, | |
7147 | respectively. | |
7148 | ||
7149 | * fs/ext2.c (grub_ext2_read_block): When an error happens, set | |
7150 | BLKNR to -1 instead of returning GRUB_ERRNO. | |
7151 | (grub_ext2_read_file): Change the types of SECTOR and | |
7152 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
7153 | ||
7154 | * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and | |
7155 | LEN to grub_disk_addr_t and grub_size_t, respectively. | |
7156 | ||
7157 | * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for | |
7158 | grub_file_read. | |
7159 | ||
7160 | * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format | |
7161 | string. Do not cast SECTOR explicitly. | |
7162 | ||
7163 | * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of | |
7164 | TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS. | |
7165 | (grub_biosdisk_rw): Change the types of SECTOR and SIZE to | |
7166 | grub_disk_addr_t and grub_size_t, respectively. If the sector is | |
7167 | over 2TB and LBA mode is not supported, raise an error. | |
7168 | (get_safe_sectors): New function. | |
7169 | (grub_biosdisk_read): Use get_safe_sectors. | |
7170 | (grub_biosdisk_write): Likewise. | |
7171 | ||
7172 | * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string. | |
7173 | (grub_efidisk_write): Likewise. | |
7174 | ||
7175 | * disk/loopback.c (delete_loopback): Cosmetic changes. | |
7176 | (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME | |
7177 | correctly. | |
7178 | (grub_loopback_open): Likewise. | |
7179 | (grub_loopback_read): Likewise. Also, change the type of POS to | |
7180 | grub_off_t, and fix the usage of grub_memset. | |
7181 | ||
7182 | * commands/i386/pc/play.c: Include grub/machine/time.h. | |
7183 | ||
7184 | * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to | |
7185 | print FILE->SIZE. | |
7186 | ||
7187 | * commands/configfile.c: Include grub/env.h. | |
7188 | ||
7189 | * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use | |
7190 | GRUB_ERRNO directly instead. Change the type of POS to | |
7191 | grub_off_t. Follow the coding standard. | |
7192 | ||
7193 | * commands/blocklist.c: Include grub/partition.h. | |
7194 | (grub_cmd_blocklist): Return an error if the underlying device is | |
7195 | not a disk. Take the starting sector of a partition into account, | |
7196 | if a partition is used. | |
7197 | ||
7198 | * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of | |
7199 | a length field. | |
7200 | (lba_mode): Support 64-bit addresses. | |
7201 | (chs_mode): Likewise. | |
7202 | (copy_buffer): Adapted to the new offsets of a length field and a | |
7203 | segment field. | |
7204 | (blocklist_default_start): Allocate 64-bit space. | |
7205 | ||
7206 | * boot/i386/pc/boot.S (force_lba): Removed. | |
7207 | (boot_drive): Moved to under KERNEL_SECTOR. | |
fe987087 | 7208 | (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit |
524a1e6a | 7209 | space. |
7210 | (real_start): Set %si earlier. Remove code for FORCE_LBA, since it | |
7211 | is useless. | |
7212 | (lba_mode): Refactored to support a 64-bit address. More size | |
7213 | optimization. | |
7214 | (setup_sectors): Likewise. | |
7215 | ||
53af98ad | 7216 | 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org> |
7217 | ||
7218 | * DISTLIST: Added include/grub/i386/linux.h. Removed | |
7219 | include/grub/i386/pc/linux.h | |
7220 | ||
7221 | * configure.ac (AC_INIT): Bumped to 1.94. | |
7222 | ||
7223 | * config.guess: Updated from gnulib. | |
7224 | * config.sub: Likewise. | |
7225 | * install-sh: Likewise. | |
7226 | * mkinstalldirs: Likewise. | |
7227 | ||
b4c1940a | 7228 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
7229 | ||
7230 | * conf/common.rmk (grub_modules_init.lst): Depended on | |
7231 | grub_emu_SOURCES, excluding grub_emu_init.c, instead of | |
7232 | MODSRCFILES. | |
7233 | ||
7234 | * genmk.rb (PModule::rule): Reverted the previous change. | |
7235 | ||
cfca1cfd | 7236 | 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org> |
7237 | ||
7238 | * conf/common.rmk (grub_modules_init.lst): Depends on | |
7239 | $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure | |
7240 | that the target does not exist before producing. | |
7241 | (grub_modules_init.h): Remove the target before generating. | |
7242 | (grub_emu_init.c): Likewise. | |
7243 | ||
7244 | * genmk.rb (PModule::rule): Add source files into MODSRCFILES. | |
7245 | ||
aa6d7826 | 7246 | 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx> |
7247 | ||
7248 | * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS | |
7249 | for the target-specific tests. Make sure that we also have the | |
7250 | up-to-date target variables for those tests. | |
7251 | ||
26c607b9 | 7252 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
7253 | ||
7254 | * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_. | |
7255 | (PModule::rule): Likewise. | |
7256 | ||
0162321a | 7257 | 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org> |
7258 | ||
7259 | * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of | |
7260 | TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why | |
7261 | target-specific flags should be prefixed. | |
7262 | (PModule::rule): Likewise. | |
7263 | ||
6c826348 | 7264 | 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org> |
7265 | ||
7266 | * configure.ac (CMP): Check if cmp is available explicitly. | |
7267 | ||
b977bf01 | 7268 | 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org> |
7269 | ||
7270 | * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed. | |
7271 | (target_cpu): New variable. | |
7272 | (pkglibdir): Use target_cpu instead of host_cpu. | |
f19dbdb7 | 7273 | |
b977bf01 | 7274 | * util/i386/pc/grub-install.in (host_cpu): Removed. |
7275 | (target_cpu): New variable. | |
7276 | (pkglibdir): Use target_cpu instead of host_cpu. | |
7277 | ||
7278 | * util/genmoddep.c: Removed. | |
f19dbdb7 | 7279 | |
b977bf01 | 7280 | * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P |
7281 | instead of GRUB_HOST_SIZEOF_VOID_P. | |
7282 | * kern/dl.c: Likewise. | |
7283 | ||
7284 | * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to | |
7285 | ... | |
7286 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
7287 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
7288 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
7289 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
7290 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
7291 | * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
7292 | to ... | |
7293 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
7294 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
7295 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
7296 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
7297 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
7298 | * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed | |
7299 | to ... | |
7300 | (GRUB_TARGET_SIZEOF_VOID_P): ... this. | |
7301 | (GRUB_HOST_SIZEOF_LONG): Renamed to ... | |
7302 | (GRUB_TARGET_SIZEOF_LONG): ... this. | |
7303 | (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ... | |
7304 | (GRUB_TARGET_WORDS_BIGENDIAN): ... this. | |
7305 | ||
7306 | * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use | |
7307 | GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P. | |
7308 | [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG | |
7309 | instead of GRUB_HOST_SIZEOF_LONG. | |
7310 | [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of | |
7311 | GRUB_HOST_WORDS_BIGENDIAN to define or undefine | |
7312 | GRUB_CPU_WORDS_BIGENDIAN. | |
7313 | Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to | |
7314 | define grub_host_addr_t, grub_host_off_t, grub_host_size_t and | |
7315 | grub_host_ssize_t. | |
7316 | ||
7317 | * conf/i386-efi.rmk (noinst_UTILITIES): Removed. | |
7318 | (genmoddep_SOURCES): Likewise. | |
7319 | * conf/i386-pc.rmk (noinst_UTILITIES): Likewise. | |
7320 | (genmoddep_SOURCES): Likewise. | |
7321 | * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise. | |
7322 | (genmoddep_SOURCES): Likewise. | |
7323 | * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES): | |
7324 | Likewise. | |
7325 | (genmoddep_SOURCES): Likewise. | |
7326 | ||
7327 | * genmoddep.awk: New file. | |
7328 | ||
7329 | * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS, | |
7330 | TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC, | |
7331 | CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively. | |
7332 | (PModule::rule): Likewise. | |
7333 | (Program::rule): Likewise. | |
7334 | (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of | |
7335 | BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS, | |
7336 | respectively. | |
7337 | ||
7338 | * configure.ac: Rewritten intensively to use host and target | |
7339 | instead of build and host, respectively. | |
7340 | ||
7341 | * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu. | |
7342 | (host_cpu): Removed. | |
7343 | (target_cpu): New variable. | |
7344 | (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\". | |
7345 | (BUILD_CC): Removed. | |
7346 | (BUILD_CFLAGS): Likewise. | |
7347 | (BUILD_CPPFLAGS): Likewise. | |
7348 | (TARGET_CC): New variable. | |
7349 | (TARGET_CFLAGS): Likewise. | |
7350 | (TARGET_CPPFLAGS): Likewise. | |
7351 | (TARGET_LDFLAGS): Likewise. | |
7352 | (AWK): Likewise. | |
7353 | (include): Use target_cpu instead of host_cpu. | |
7354 | (moddep.lst:): Use genmoddep.awk instead of genmoddep. | |
f19dbdb7 | 7355 | |
b977bf01 | 7356 | * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c. |
7357 | ||
f09771a1 | 7358 | 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi> |
7359 | ||
7360 | * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to | |
7361 | 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed | |
7362 | field 'false' to 'exec_on_false'. | |
7363 | (grub_script_create_cmdif): Renamed argument names to reflect above | |
7364 | changes. | |
7365 | ||
7366 | * normal/execute.c (grub_script_execute_cmdif): Likewise. | |
7367 | ||
7368 | * normal/script.c (grub_script_create_cmdif): Likewise. | |
7369 | ||
118f4fb3 | 7370 | 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org> |
7371 | ||
7372 | * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the | |
7373 | top. | |
7374 | (grub_hfsplus_btree_recptr): Likewise. | |
7375 | (grub_hfsplus_find_block): Do not take RETRY any longer. Use | |
7376 | FILEBLOCK both to pass a block number and store next block | |
7377 | number. | |
7378 | (grub_hfsplus_read_block): Rewritten heavily to support an extent | |
7379 | overflow file correctly. Specify errors appropriately, because | |
7380 | fshelp expects that GRUB_ERRNO is set when fails. Reuse | |
7381 | grub_hfsplus_btree_recptr to get the pointer to a found key. | |
7382 | (grub_hfsplus_btree_search): Return 1 instead of 0 when no match | |
7383 | is found. | |
7384 | ||
7385 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and | |
7386 | linux.mod. | |
7387 | (_linux_mod_SOURCES): New variable. | |
7388 | (_linux_mod_CFLAGS): Likewise. | |
7389 | (_linux_mod_LDFLAGS): Likewise. | |
7390 | (linux_mod_SOURCES): Likewise. | |
7391 | (linux_mod_CFLAGS): Likewise. | |
7392 | (linux_mod_LDFLAGS): Likewise. | |
7393 | ||
7394 | * DISTLIST: Added loader/i386/efi/linux.c, | |
7395 | loader/i386/efi/linux_normal.c and | |
7396 | include/grub/i386/efi/loader.h. | |
7397 | ||
7398 | * loader/i386/efi/linux.c: New file. | |
7399 | * loader/i386/efi/linux_normal.c: Likewise. | |
7400 | * include/grub/i386/efi/loader.h: Likewise. | |
7401 | ||
89a7d726 | 7402 | 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org> |
7403 | ||
7404 | * commands/blocklist.c: New file. | |
7405 | ||
7406 | * DISTLIST: Added commands/blocklist.c. | |
7407 | ||
7408 | * term/efi/console.c (grub_console_highlight_color): Use a lighter | |
43b553ad | 7409 | color for the background, and a darker color for the foreground. |
89a7d726 | 7410 | (grub_console_checkkey): Return READ_KEY. |
7411 | (grub_console_cls): Set the background to | |
7412 | GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen. | |
7413 | ||
7414 | * kern/efi/efi.c (grub_efi_exit_boot_services): New function. | |
7415 | ||
7416 | * include/grub/i386/linux.h (struct linux_kernel_params): Fixed | |
7417 | the size of "padding5", "hd0_drive_info" and "hd1_drive_info". | |
7418 | ||
7419 | * include/grub/efi/efi.h (grub_efi_exit_boot_services): New | |
7420 | prototype. | |
7421 | ||
7422 | * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift | |
7423 | BG. The spec is wrong again. | |
7424 | ||
7425 | * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New | |
7426 | prototype. | |
7427 | [GRUB_UTIL] (grub_blocklist_fini): Likewise. | |
7428 | ||
7429 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
7430 | commands/blocklist.c. | |
7431 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
f19dbdb7 | 7432 | |
89a7d726 | 7433 | * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod. |
7434 | (blocklist_mod_SOURCES): New variable. | |
7435 | (blocklist_mod_CFLAGS): Likewise. | |
7436 | (blocklist_mod_LDFLAGS): Likewise. | |
7437 | ||
75c8f258 | 7438 | 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org> |
7439 | ||
7440 | * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate | |
7441 | duplication. | |
7442 | (lba_mode): Use %eax more intensively to reduce the code size. | |
7443 | ||
da2eb181 | 7444 | 2006-05-20 Marco Gerards <marco@gnu.org> |
7445 | ||
7446 | * normal/lexer.c (grub_script_yylex): Don't filter out newlines. | |
7447 | ||
7448 | * normal/parser.y (commandblock): Defined as <cmd>. A subroutine | |
7449 | for `menuentry'. | |
7450 | (script): Accept leading newlines. | |
7451 | (newlines): New rule to describe 0 or more newlines. | |
7452 | (commands): Accept `command' with trailing newline. Fixed the | |
7453 | order in which arguments were passed to `grub_script_add_cmd'. | |
7454 | Accept commands separated by newlines. | |
7455 | (function): Changed to accept newlines. | |
7456 | (menuentry) Rewritten. | |
7457 | ||
7458 | * normal/script.c (grub_script_create_cmdmenu): Add new entries in | |
7459 | front of the list, instead of to the end. | |
7460 | ||
577b4050 | 7461 | 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org> |
7462 | ||
7463 | * util/i386/pc/grub-install.in (bindir): New variable. | |
7464 | (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee | |
7465 | Shaver <lbgwjl@gmail.com>. | |
7466 | ||
0d6e1189 | 7467 | 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org> |
7468 | ||
7469 | * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of | |
7470 | grub/machine/linux.h | |
7471 | * loader/i386/pc/linux.c: Likewise. | |
7472 | ||
7473 | * include/grub/i386/pc/linux.h: Moved to ... | |
7474 | * include/grub/i386/linux.h: ... here. | |
7475 | ||
7476 | * include/grub/i386/linux.h (struct linux_kernel_params): New | |
7477 | struct. | |
f19dbdb7 | 7478 | |
31b86e9f | 7479 | 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi> |
7480 | ||
7481 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds | |
7482 | checking. | |
7483 | (grub_video_vbe_blit_glyph): Likewise. | |
7484 | (grub_video_vbe_blit_bitmap): Likewise. | |
7485 | (grub_video_vbe_blit_render_target): Likewise. | |
7486 | ||
83b984de | 7487 | 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org> |
7488 | ||
7489 | * configure.ac (--with-platform): Properly quote the square | |
7490 | brackets. | |
7491 | ||
5f0413bd | 7492 | 2006-05-08 Marco Gerards <marco@gnu.org> |
7493 | ||
7494 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from | |
7495 | this... | |
7496 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
7497 | (grubof_symlist.c): Renamed from this... | |
7498 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
7499 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
7500 | (grubof_SOURCES): Renamed from this... | |
7501 | (kernel_elf_SOURCES): ...to this. | |
7502 | (grubof_HEADERS): Renamed from this... | |
7503 | (kernel_elf_HEADERS): ...to this. | |
7504 | (grubof_CFLAGS): Renamed from this... | |
7505 | (kernel_elf_CFLAGS): ...to this. | |
7506 | (grubof_ASFLAGS): Renamed from this... | |
7507 | (kernel_elf_ASFLAGS): ...to this. | |
7508 | (grubof_LDFLAGS): Renamed from this... | |
7509 | (kernel_elf_LDFLAGS): ...to this. | |
7510 | ||
7511 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from | |
7512 | this... | |
7513 | (kernel_elf_HEADERS): ...to this. Updated all users. | |
7514 | (grubof_symlist.c): Renamed from this... | |
7515 | (kernel_elf_symlist.c): ...to this. Updated all users. | |
7516 | (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'. | |
7517 | (grubof_SOURCES): Renamed from this... | |
7518 | (kernel_elf_SOURCES): ...to this. | |
7519 | (grubof_HEADERS): Renamed from this... | |
7520 | (kernel_elf_HEADERS): ...to this. | |
7521 | (grubof_CFLAGS): Renamed from this... | |
7522 | (kernel_elf_CFLAGS): ...to this. | |
7523 | (grubof_ASFLAGS): Renamed from this... | |
7524 | (kernel_elf_ASFLAGS): ...to this. | |
7525 | (grubof_LDFLAGS): Renamed from this... | |
7526 | (kernel_elf_LDFLAGS): ...to this. | |
7527 | ||
7528 | * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use | |
7529 | `kernel.elf' instead of `grubof'. | |
7530 | ||
05568c2e | 7531 | 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org> |
7532 | ||
7533 | Add --with-platform to configure. Use pkglibdir instead of | |
7534 | pkgdatadir. This is reported by Roger Leigh. | |
7535 | ||
7536 | * util/powerpc/ieee1275/grub-install.in (datadir): Removed. | |
7537 | (host_vendor): Likewise. | |
7538 | (host_os): Likewise. | |
7539 | (pkgdatadir): Likewise. | |
7540 | (platform): New variable. | |
7541 | (pkglibdir): Likewise. | |
7542 | Use PKGLIBDIR instead of PKGDATADIR. | |
f19dbdb7 | 7543 | |
05568c2e | 7544 | * util/i386/pc/grub-install.in (datadir): Removed. |
7545 | (host_vendor): Likewise. | |
7546 | (host_os): Likewise. | |
7547 | (pkgdatadir): Likewise. | |
7548 | (platform): New variable. | |
7549 | (pkglibdir): Likewise. | |
7550 | Use PKGLIBDIR instead of PKGDATADIR. | |
7551 | ||
7552 | * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR | |
7553 | instead of GRUB_DATADIR. | |
7554 | (main): Likewise. | |
7555 | * util/i386/pc/grub-mkimage.c (usage): Likewise. | |
7556 | (main): Likewise. | |
7557 | * util/i386/efi/grub-mkimage.c (usage): Likewise. | |
7558 | (main): Likewise. | |
7559 | ||
7560 | * configure.ac (--with-platform): New option. | |
7561 | Use PLATFORM instead of HOST_VENDOR to specify a platform. | |
7562 | ||
7563 | * Makefile.in: Include a makefile based on PLATFORM instead of | |
7564 | HOST_VENDOR. | |
7565 | (pkgdatadir): Not appended by the machine type. | |
7566 | (pkglibdir): Appended by the machine type. | |
7567 | (host_vendor): Removed. | |
7568 | (platform): New variable. | |
7569 | (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR. | |
7570 | (install-local): Use PKGLIBDIR instead of PKGDATADIR. | |
7571 | (uninstall): Likewise. | |
7572 | ||
4e93851c | 7573 | 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org> |
7574 | ||
7575 | Use the environment context in the menu. Remove the commands | |
7576 | "default" and "timeout", and use variables instead. | |
f19dbdb7 | 7577 | |
4e93851c | 7578 | * normal/menu.c: Include grub/env.h. |
7579 | (print_entry): Cast TITLE to silence gcc. | |
7580 | (get_timeout): New function. | |
7581 | (set_timeout): Likewise. | |
7582 | (get_entry_number): Likewise. | |
7583 | (run_menu): Use a default entry, a fallback entry and a timeout | |
7584 | in the environment variables "default", "fallback" and | |
7585 | "timeout". Also, tweak the default entry if it is not within the | |
7586 | current menu entries. | |
7587 | (grub_menu_run): Use a fallback entry in the environment variable | |
7588 | "fallback". | |
7589 | ||
7590 | * normal/main.c (read_config_file): Do not initialize | |
7591 | NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or | |
7592 | NEWMENU->TIMEOUT. | |
7593 | (grub_normal_execute): Use a data slot to store the menu. | |
7594 | ||
7595 | * include/grub/normal.h (struct grub_menu): Removed default_entry, | |
7596 | fallback_entry and timeout. | |
7597 | (struct grub_menu_list): Removed. | |
7598 | (grub_menu_list_t): Likewise. | |
7599 | (struct grub_context): Likewise. | |
7600 | (grub_context_t): Likewise. | |
7601 | (grub_context_get): Likewise. | |
7602 | (grub_context_get_current_menu): Likewise. | |
7603 | (grub_context_push_menu): Likewise. | |
7604 | (grub_context_pop_menu): Likewise. | |
7605 | (grub_default_init): Likewise. | |
7606 | (grub_default_fini): Likewise. | |
7607 | (grub_timeout_init): Likewise. | |
7608 | (grub_timeout_fini): Likewise. | |
7609 | ||
7610 | * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod | |
7611 | and timeout.mod. | |
7612 | (normal_mod_SOURCES): Removed normal/context.c. | |
7613 | ||
7614 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed | |
7615 | commands/default.c, commands/timeout.c and normal/context.c. | |
7616 | (normal_mod_SOURCES): Removed normal/context.c. | |
7617 | ||
7618 | * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c, | |
7619 | commands/timeout.c and normal/context.c. | |
7620 | (normal_mod_SOURCES): Removed normal/context.c. | |
7621 | ||
7622 | * conf/i386-efi.rmk (grub_emu_SOURCES): Removed | |
7623 | commands/default.c, commands/timeout.c and normal/context.c. | |
7624 | (normal_mod_SOURCES): Removed normal/context.c. | |
7625 | ||
7626 | * conf/common.rmk (pkgdata_MODULES): Removed default.mod and | |
7627 | timeout.mod. | |
7628 | (default_mod_SOURCES): Removed. | |
7629 | (default_mod_CFLAGS): Likewise. | |
7630 | (default_mod_LDFLAGS): Likewise. | |
7631 | (timeout_mod_SOURCES): Removed. | |
7632 | (timeout_mod_CFLAGS): Likewise. | |
7633 | (timeout_mod_LDFLAGS): Likewise. | |
7634 | ||
7635 | * DISTLIST: Removed commands/default.c, commands/timeout.c and | |
7636 | normal/context.c. | |
7637 | ||
7638 | * commands/default.c: Removed. | |
7639 | * commands/timeout.c: Likewise. | |
7640 | * normal/context.c: Likewise. | |
7641 | ||
1eb9cc1d | 7642 | 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi> |
7643 | ||
7644 | * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag. | |
7645 | ||
385bd9c1 | 7646 | 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org> |
7647 | ||
7648 | * kern/env.c (struct grub_env_context): Removed "sorted". Renamed | |
7649 | "next" to "prev" for readability. | |
7650 | (struct grub_env_sorted_var): New struct. | |
7651 | (grub_env_context): Renamed to ... | |
7652 | (initial_context): ... this. | |
7653 | (grub_env_var_context): Renamed to ... | |
7654 | (current_context): ... this. | |
7655 | (grub_env_find): Look only at CURRENT_CONTEXT. | |
7656 | (grub_env_context_open): Rewritten to copy exported variables from | |
7657 | previous context. | |
7658 | (grub_env_context_close): Rewritten according to the new | |
7659 | scheme. Also, add an assertion to prevent the initial context from | |
7660 | removed. | |
7661 | (grub_env_insert): Removed the code for the sorted list. | |
7662 | (grub_env_remove): Likewise. | |
7663 | (grub_env_export): Simply mark the variable with | |
7664 | GRUB_ENV_VAR_GLOBAL. | |
7665 | (grub_env_set): A cosmetic change for naming consistency. | |
7666 | (grub_env_get): Likewise. | |
7667 | (grub_env_unset): Likewise. | |
7668 | (grub_env_iterate): Rewritten to sort variables within this | |
7669 | function. | |
7670 | (grub_register_variable_hook): Fixed for naming consistency. Call | |
7671 | grub_env_find again, only if NAME is not found at the first time. | |
7672 | (mangle_data_slot_name): New function. | |
7673 | (grub_env_set_data_slot): Likewise. | |
7674 | (grub_env_get_data_slot): Likewise. | |
7675 | (grub_env_unset_data_slot): Likewise. | |
7676 | ||
7677 | * include/grub/env.h (grub_env_var_type): New enum. | |
7678 | (GRUB_ENV_VAR_LOCAL): New constant. | |
7679 | (GRUB_ENV_VAR_GLOBAL): Likewise. | |
7680 | (GRUB_ENV_VAR_DATA): Likewise. | |
7681 | (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added | |
7682 | "type". | |
7683 | (grub_env_set): Replace VAR with NAME for consistency. | |
7684 | (grub_register_variable_hook): Likewise. | |
7685 | (grub_env_export): Specify the name of the argument. | |
7686 | (grub_env_set_data_slot): New prototype. | |
7687 | (grub_env_get_data_slot): Likewise. | |
7688 | (grub_env_unset_data_slot): Likewise. | |
7689 | ||
7f362539 | 7690 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
7691 | ||
7692 | Extend the loader so that GRUB can accept a loader which comes | |
7693 | back to GRUB when a loaded image exits. Also, this change adds | |
7694 | support for a chainloader on EFI. | |
f19dbdb7 | 7695 | |
7f362539 | 7696 | * term/efi/console.c: Include grub/misc.h. |
7697 | (grub_console_checkkey): Display a scan code on the top for | |
7698 | debugging. This will be removed once the EFI port gets stable. | |
7699 | Correct the scan code mapping. | |
7700 | ||
7701 | * kern/efi/mm.c (sort_memory_map): Sort in a descending order to | |
7702 | allocate memory from larger regions, in order to reduce the number | |
7703 | of allocated regions. Otherwise, the MacOSX loader panics. | |
7704 | (filter_memory_map): Avoid less than 1MB for compatibility with | |
7705 | other loaders. | |
7706 | (add_memory_regions): Allocate from the tail of a region, if | |
7707 | possible, to avoid allocating a region near to 1MB, for the MacOSX | |
7708 | loader. | |
7709 | ||
7710 | * kern/efi/init.c (grub_efi_set_prefix): Specify | |
7711 | GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image. | |
7712 | ||
7713 | * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new | |
7714 | argument IMAGE_HANDLE and specify it to get a loaded image. | |
7715 | (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to | |
7716 | grub_efi_get_loaded_image. | |
fe6b695a | 7717 | (grub_efi_get_filename): Divide the length by the size of |
7f362539 | 7718 | grub_efi_char16_t. |
7719 | (grub_efi_get_device_path): New function. | |
7720 | (grub_efi_print_device_path): Print End Device Path nodes. Divide | |
7721 | the length by the size of grub_efi_char16_t for a file path device | |
7722 | path node. | |
7723 | ||
7724 | * kern/loader.c (grub_loader_noreturn): New variable. | |
7725 | (grub_loader_set): Accept a new argument NORETURN. Set | |
7726 | GRUB_LOADER_NORETURN to NORETURN. | |
7727 | All callers changed. | |
7728 | (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call | |
7729 | grub_machine_fini. | |
7730 | ||
7731 | * include/grub/efi/efi.h (grub_efi_get_device_path): New | |
7732 | prototype. | |
7733 | (grub_efi_get_loaded_image): Take an argument to specify an image | |
7734 | handle. | |
7735 | ||
7736 | * include/grub/loader.h (grub_loader_set): Added one more argument | |
7737 | NORETURN. | |
7738 | ||
7739 | * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path | |
7740 | instead of grub_efi_open_protocol. | |
7741 | (grub_efidisk_get_device_name): Likewise. | |
7742 | (grub_efidisk_close): Print a newline. | |
7743 | (grub_efidisk_get_device_handle): Fixed to use | |
7744 | GRUB_EFI_DEVICE_PATH_SUBTYPE instead of | |
7745 | GRUB_EFI_DEVICE_PATH_TYPE. | |
7746 | ||
7747 | * disk/efi/efidisk.c (device_path_guid): Moved to ... | |
7748 | * kern/efi/efi.c (device_path_guid): ... here. | |
7749 | ||
7750 | * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and | |
7751 | chain.mod. | |
7752 | (kernel_mod_HEADERS): Added efi/disk.h. | |
7753 | (_chain_mod_SOURCES): New variable. | |
7754 | (_chain_mod_CFLAGS): Likewise. | |
7755 | (_chain_mod_LDFLAGS): Likewise. | |
7756 | (chain_mod_SOURCES): Likewise. | |
7757 | (chain_mod_CFLAGS): Likewise. | |
7758 | (chain_mod_LDFLAGS): Likewise. | |
7759 | ||
7760 | * DISTLIST: Added include/grub/efi/chainloader.h, | |
7761 | loader/efi/chainloader.c and loader/efi/chainloader_normal.c. | |
7762 | ||
7763 | * include/grub/efi/chainloader.h: New file. | |
7764 | * loader/efi/chainloader.c: Likewise. | |
7765 | * loader/efi/chainloader_normal.c: Likewise. | |
7766 | ||
c0111d6e | 7767 | 2006-04-30 Marco Gerards <marco@gnu.org> |
7768 | ||
7769 | * commands/configfile.c (grub_cmd_source): New function. | |
7770 | (GRUB_MOD_INIT): Register the commands `source' and `.'. | |
7771 | (GRUB_MOD_FINI): De-register the commands `source' and `.'. | |
7772 | ||
df5341da | 7773 | 2006-04-30 Marco Gerards <marco@gnu.org> |
7774 | ||
7775 | * normal/execute.c (grub_script_execute_cmd): Change the return | |
7776 | type to `grub_err_t'. Correctly return the error. | |
7777 | (grub_script_execute_cmdline): In case a command line is not a | |
7778 | command or a function, try to interpret it as an assignment. | |
7779 | ||
f85934bd | 7780 | 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org> |
7781 | ||
7782 | * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak. | |
7783 | (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also, | |
7784 | skip a node whose name is obviously invalid as UTF-16, | |
7785 | i.e. contains a NUL character. Stop the iteration when the last | |
7786 | directory entry is found. Instead of using the return value of | |
7787 | grub_hfsplus_btree_iterate_node, store the value in RET and use | |
7788 | it, because the iterator can be stopped by the last directory | |
7789 | entry. | |
7790 | ||
8f8a2cf8 | 7791 | 2006-04-30 Marco Gerards <marco@gnu.org> |
7792 | ||
7793 | * include/grub/env.h (grub_env_export): New prototype. Reported | |
7794 | by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>. | |
7795 | ||
a27e84ce | 7796 | 2006-04-30 Marco Gerards <marco@gnu.org> |
7797 | ||
7798 | * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the | |
7799 | size of the extents in a catalog file record. | |
7800 | ||
eaef0553 | 7801 | 2006-04-29 Marco Gerards <marco@gnu.org> |
7802 | ||
7803 | * commands/configfile.c (grub_cmd_configfile): Execute the | |
7804 | configfile within its own context. | |
7805 | ||
7806 | * include/grub/env.h (grub_env_context_open): New prototype. | |
7807 | (grub_env_context_close): Likewise. | |
7808 | ||
7809 | * kern/env.c (grub_env): Removed. | |
7810 | (grub_env_sorted): Likewise. | |
7811 | (grub_env_context): New variable. | |
7812 | (grub_env_var_context): Likewise. | |
7813 | (grub_env_find): Search both the active context and the global | |
7814 | context. | |
7815 | (grub_env_context_open): New function. | |
7816 | (grub_env_context_close): Likewise. | |
7817 | (grub_env_insert): Likewise. | |
7818 | (grub_env_remove): Likewise. | |
7819 | (grub_env_export): Likewise. | |
7820 | (grub_env_set): Changed to use helper functions to avoid code | |
7821 | duplication. | |
7822 | (grub_env_iterate): Rewritten so both the current context and the | |
7823 | global context are being used. | |
7824 | ||
7825 | * normal/command.c (export_command): New function. | |
7826 | (grub_command_init): Register the `export' function. | |
7827 | ||
7b455f4d | 7828 | 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org> |
7829 | ||
7830 | * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments | |
7831 | explicitly to suppress gcc's warnings. | |
7832 | * fs/fat.c (grub_fat_find_dir): Likewise. | |
7833 | (grub_fat_label): Likewise. | |
7834 | * fs/xfs.c (grub_xfs_read_inode): Likewise. | |
7835 | (grub_xfs_mount): Likewise. | |
7836 | (grub_xfs_label): Likewise. | |
7837 | * fs/affs.c (grub_affs_mount): Likewise. | |
7838 | (grub_affs_label): Likewise. | |
7839 | (grub_affs_iterate_dir): Likewise. | |
7840 | * fs/sfs.c (grub_sfs_mount): Likewise. | |
7841 | (grub_sfs_iterate_dir): Likewise. | |
7842 | * fs/ufs.c (grub_ufs_lookup_symlink): Likewise. | |
7843 | * fs/hfs.c (grub_hfs_mount): Likewise. | |
7844 | (grub_hfs_cmp_catkeys): Likewise. | |
7845 | (grub_hfs_find_dir): Likewise. | |
7846 | (grub_hfs_dir): Likewise. | |
7847 | (grub_hfs_label): Likewise. | |
7848 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
7849 | (grub_jfs_opendir): Likewise. | |
7850 | (grub_jfs_getent): Likewise. | |
7851 | (grub_jfs_lookup_symlink): Likewise. | |
7852 | (grub_jfs_label): Likewise. | |
7853 | * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise. | |
7854 | (grub_hfsplus_iterate_dir): Likewise. | |
7855 | (grub_hfsplus_btree_iterate_node): Made static. | |
7856 | ||
7857 | * util/grub-emu.c (prefix): New variable. | |
7858 | (grub_machine_set_prefix): New function. | |
7859 | (main): Do not set the environment variable "prefix" here. Only | |
7860 | set PREFIX, which is used later by grub_machine_set_prefix. | |
7861 | ||
7862 | * include/grub/video.h: Do not include grub/symbol.h. | |
7863 | (grub_video_register): Not exported. This symbol is not defined in | |
7864 | the kernel. | |
7865 | (grub_video_unregister): Likewise. | |
7866 | (grub_video_iterate): Likewise. | |
7867 | (grub_video_setup): Likewise. | |
7868 | (grub_video_restore): Likewise. | |
7869 | (grub_video_get_info): Likewise. | |
7870 | (grub_video_get_blit_format): Likewise. | |
7871 | (grub_video_set_palette): Likewise. | |
7872 | (grub_video_get_palette): Likewise. | |
7873 | (grub_video_set_viewport): Likewise. | |
7874 | (grub_video_get_viewport): Likewise. | |
7875 | (grub_video_map_color): Likewise. | |
7876 | (grub_video_map_rgb): Likewise. | |
7877 | (grub_video_map_rgba): Likewise. | |
7878 | (grub_video_fill_rect): Likewise. | |
7879 | (grub_video_blit_glyph): Likewise. | |
7880 | (grub_video_blit_bitmap): Likewise. | |
7881 | (grub_video_blit_render_target): Likewise. | |
7882 | (grub_video_scroll): Likewise. | |
7883 | (grub_video_swap_buffers): Likewise. | |
7884 | (grub_video_create_render_target): Likewise. | |
7885 | (grub_video_delete_render_target): Likewise. | |
7886 | (grub_video_set_active_render_target): Likewise. | |
7887 | ||
7888 | * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC): | |
7889 | Undefined. | |
7890 | [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise. | |
7891 | ||
7892 | * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on | |
7893 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
7894 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
7895 | instead of $(srcdir)/genkernsyms.sh. | |
7896 | ||
7897 | * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on | |
7898 | config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
7899 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
7900 | instead of $(srcdir)/genkernsyms.sh. | |
7901 | ||
7902 | * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use | |
7903 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
7904 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
7905 | instead of $(srcdir)/genkernsyms.sh. | |
7906 | ||
7907 | * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use | |
7908 | gensymlist.sh instead of $(srcdir)/gensymlist.sh. | |
7909 | (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh | |
7910 | instead of $(srcdir)/genkernsyms.sh. | |
7911 | ||
7912 | * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and | |
7913 | genkernsyms.sh. | |
7914 | ||
7915 | * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and | |
7916 | genkernsyms.sh. | |
7917 | (gensymlist.sh): New target. | |
7918 | (genkernsyms.sh): Likewise. | |
7919 | ||
7920 | * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added | |
7921 | genkernsyms.sh.in and gensymlist.sh.in. | |
7922 | ||
7923 | * genkernsyms.sh: Removed. | |
7924 | * gensymlist.sh: Likewise. | |
f19dbdb7 | 7925 | |
7b455f4d | 7926 | * genkernsyms.sh.in: New file. |
7927 | * gensymlist.sh.in: Likewise. | |
7928 | ||
1885bb27 | 7929 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
7930 | ||
7931 | * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not | |
7932 | clobber "prefix", since we may have already set it manually. | |
7933 | ||
71538dff | 7934 | 2006-04-25 Hollis Blanchard <hollis@penguinppc.org> |
7935 | ||
7936 | * kern/misc.c (abort): New alias for grub_abort. | |
7937 | ||
2965c7cc | 7938 | 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org> |
7939 | ||
7940 | A new machine-specific function "grub_machine_set_prefix" is | |
7941 | defined. This is called after loading modules, so that a prefix | |
7942 | initialization can use modules. Also, this change adds an | |
7943 | intensive debugging feature for the memory manager via the | |
7944 | configure option "--enable-mm-debug". | |
f19dbdb7 | 7945 | |
2965c7cc | 7946 | * partmap/gpt.c (gpt_partition_map_iterate): Add one more into |
7947 | PART.LEN. | |
7948 | ||
7949 | * kern/sparc64/ieee1275/init.c (abort): Removed. | |
7950 | (grub_stop): Likewise. | |
7951 | (grub_exit): New function. | |
7952 | (grub_set_prefix): Renamed to ... | |
7953 | (grub_machine_set_prefix): ... this. | |
7954 | (grub_machine_init): Do not call grub_set_prefix. | |
7955 | ||
7956 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ... | |
7957 | (grub_machine_set_prefix): ... this. | |
7958 | (grub_machine_init): Do not call grub_set_prefix. | |
7959 | ||
7960 | * kern/i386/pc/init.c (grub_machine_set_prefix): New function. | |
7961 | (grub_machine_init): Do not set the prefix here. | |
7962 | ||
7963 | * kern/i386/efi/init.c (grub_machine_set_prefix): New function. | |
7964 | ||
7965 | * kern/efi/init.c: Include grub/mm.h. | |
7966 | (grub_efi_set_prefix): New function. | |
7967 | ||
7968 | * kern/efi/efi.c (grub_exit): Call grub_efi_fini. | |
7969 | (grub_efi_get_filename): New function. | |
7970 | (grub_print_device_path): Renamed to ... | |
7971 | (grub_efi_print_device_path): ... this. | |
7972 | ||
7973 | * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined. | |
7974 | [MM_DEBUG] (grub_realloc): Likewise. | |
7975 | [MM_DEBUG] (grub_free): Likewise. | |
7976 | [MM_DEBUG] (grub_memalign): Likewise. | |
7977 | [MM_DEBUG] (grub_mm_debug): New variable. | |
7978 | [MM_DEBUG] (grub_debug_malloc): New function. | |
7979 | [MM_DEBUG] (grub_debug_free): New function. | |
7980 | [MM_DEBUG] (grub_debug_realloc): New function. | |
7981 | [MM_DEBUG] (grub_debug_memalign): New function. | |
7982 | ||
7983 | * kern/misc.c (grub_abort): Print a newline to distinguish | |
7984 | the message. | |
7985 | ||
7986 | * kern/main.c (grub_main): Call grub_machine_set_prefix and | |
7987 | grub_set_root_dev after loading modules. This is necessary when | |
7988 | setting a prefix depends on modules. | |
7989 | ||
7990 | * include/grub/efi/efi.h (grub_print_device_path): Renamed to ... | |
7991 | (grub_efi_print_device_path): ... this. | |
7992 | (grub_efi_get_filename): New prototype. | |
7993 | (grub_efi_set_prefix): Likewise. | |
7994 | ||
7995 | * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h | |
7996 | and grub/disk.h. | |
7997 | (grub_efidisk_get_device_handle): New prototype. | |
7998 | (grub_efidisk_get_device_name): Likewise. | |
7999 | ||
8000 | * include/grub/mm.h: Include config.h. | |
8001 | (MM_DEBUG): Removed. | |
8002 | [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype. | |
8003 | [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro. | |
8004 | [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise. | |
8005 | [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise. | |
8006 | [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise. | |
8007 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype. | |
8008 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype. | |
8009 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype. | |
8010 | [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype. | |
8011 | ||
8012 | * include/grub/kernel.h (grub_machine_set_prefix): New prototype. | |
8013 | ||
8014 | * disk/efi/efidisk.c: Include grub/partition.h. | |
8015 | (iterate_child_devices): New function. | |
8016 | (add_device): First, compare only last device path nodes, so that | |
8017 | devices are sorted by the types. | |
8018 | (grub_efidisk_get_device_handle): New function. | |
8019 | (grub_efidisk_get_device_name): Likewise. | |
8020 | ||
8021 | * configure.ac (--enable-mm-debug): New option to enable the | |
8022 | memory manager debugging feature. This makes the binary much | |
8023 | bigger, so is disabled by default. | |
8024 | ||
9cacaa17 | 8025 | 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org> |
8026 | ||
8027 | Use grub_abort instead of grub_stop, and grub_exit must be | |
8028 | define in each architecture now. Also, this change adds support | |
8029 | for EFI disks. | |
f19dbdb7 | 8030 | |
9cacaa17 | 8031 | * util/i386/pc/grub-probefs.c: Include grub/term.h. |
8032 | (grub_getkey): New function. | |
8033 | (grub_term_get_current): Likewise. | |
8034 | ||
8035 | * util/i386/pc/grub-setup.c: Include grub/term.h. | |
8036 | (grub_getkey): New function. | |
8037 | (grub_term_get_current): Likewise. | |
8038 | ||
8039 | * util/misc.c (grub_stop): Renamed to ... | |
8040 | (grub_exit): ... this. | |
8041 | ||
8042 | * kern/powerpc/ieee1275/init.c (abort): Renamed to ... | |
8043 | (grub_exit): ... this. | |
8044 | (grub_machine_init): Use grub_abort instead of abort. | |
8045 | (grub_stop): Removed. | |
8046 | ||
8047 | * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of | |
8048 | abort. | |
8049 | ||
8050 | * kern/i386/pc/startup.S (grub_exit): New function. | |
8051 | (cold_reboot): New label. | |
8052 | ||
8053 | * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h. | |
8054 | (grub_efi_init): Call grub_efidisk_init. | |
8055 | (grub_efi_fini): Call grub_efidisk_fini. | |
8056 | ||
8057 | * kern/efi/efi.c: Include grub/mm.h. | |
8058 | (grub_efi_console_control_guid): Renamed to ... | |
8059 | (console_control_guid): ... this. | |
8060 | (grub_efi_loaded_image_guid): Renamed to ... | |
8061 | (loaded_image_guid): ... this. | |
8062 | (grub_efi_locate_handle): New function. | |
8063 | (grub_efi_open_protocol): Likewise. | |
8064 | (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of | |
8065 | GRUB_EFI_CONSOLE_CONTROL_GUID. | |
8066 | (grub_efi_exit): Removed. | |
8067 | (grub_stop): Likewise. | |
8068 | (grub_efi_get_loaded_image): Use grub_efi_open_protocol. | |
8069 | (grub_exit): New function. | |
8070 | (grub_print_device_path): Likewise. | |
8071 | ||
8072 | * kern/rescue.c (grub_rescue_cmd_exit): New function. | |
8073 | (grub_enter_rescue_mode): Register "exit". | |
8074 | ||
8075 | * kern/misc.c (grub_real_dprintf): A cosmetic change. | |
8076 | (grub_abort): New function. | |
8077 | ||
8078 | * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop. | |
8079 | ||
8080 | * include/grub/sparc64/ieee1275/kernel.h (abort): Removed. | |
8081 | ||
8082 | * include/grub/powerpc/ieee1275/kernel.h (abort): Removed. | |
8083 | ||
8084 | * include/grub/efi/efi.h (grub_efi_exit): Removed. | |
8085 | (grub_print_device_path): New prototype. | |
8086 | (grub_efi_locate_handle): Likewise. | |
8087 | (grub_efi_open_protocol): Likewise. | |
8088 | ||
8089 | * include/grub/efi/disk.h (grub_efidisk_fini): New file. | |
8090 | * disk/efi/efidisk.c: Likewise. | |
8091 | ||
8092 | * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h. | |
8093 | ||
8094 | * include/grub/efi/console_control.h | |
8095 | (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes. | |
8096 | ||
8097 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the | |
8098 | last 8 bytes as an array. | |
8099 | (GRUB_EFI_DISK_IO_GUID): New macro. | |
8100 | (GRUB_EFI_BLOCK_IO_GUID): Likewise. | |
8101 | (GRUB_EFI_DEVICE_PATH_GUID): Likewise. | |
8102 | (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from | |
8103 | grub_uint8_t. | |
8104 | (struct grub_efi_guid): Use an array to specify the last 8 bytes. | |
8105 | (struct grub_efi_device_path): Rename the member "sub_type" to | |
8106 | "subtype". | |
8107 | (GRUB_EFI_DEVICE_PATH_TYPE): New macro. | |
8108 | (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise. | |
8109 | (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise. | |
8110 | (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise. | |
8111 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise. | |
8112 | (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise. | |
8113 | (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise. | |
8114 | (GRUB_EFI_NEXT_DEVICE_PATH): Likewise. | |
8115 | (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise. | |
8116 | (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise. | |
8117 | (struct grub_efi_pci_device_path): New structure. | |
8118 | (grub_efi_pci_device_path_t): New type. | |
8119 | (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro. | |
8120 | (struct grub_efi_pccard_device_path): New structure. | |
8121 | (grub_efi_pccard_device_path_t): New type. | |
8122 | (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro. | |
8123 | (struct grub_efi_memory_mapped_device_path): New structure. | |
8124 | (grub_efi_memory_mapped_device_path_t): New type. | |
8125 | (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro. | |
8126 | (struct grub_efi_vendor_device_path): New structure. | |
8127 | (grub_efi_vendor_device_path_t): New type. | |
8128 | (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro. | |
8129 | (struct grub_efi_controller_device_path): New structure. | |
8130 | (grub_efi_controller_device_path_t): New type. | |
8131 | (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro. | |
8132 | (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise. | |
8133 | (struct grub_efi_acpi_device_path): New structure. | |
8134 | (grub_efi_acpi_device_path_t): New type. | |
8135 | (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro. | |
8136 | (struct grub_efi_expanded_acpi_device_path): New structure. | |
8137 | (grub_efi_expanded_acpi_device_path_t): New type. | |
8138 | (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro. | |
8139 | (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise. | |
8140 | (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise. | |
8141 | (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise. | |
8142 | (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise. | |
8143 | (struct grub_efi_atapi_device_path): New structure. | |
8144 | (grub_efi_atapi_device_path_t): New type. | |
8145 | (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro. | |
8146 | (struct grub_efi_fibre_channel_device_path): New structure. | |
8147 | (grub_efi_fibre_channel_device_path_t): New type. | |
8148 | (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro. | |
8149 | (struct grub_efi_1394_device_path): New structure. | |
8150 | (grub_efi_1394_device_path_t): New type. | |
8151 | (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro. | |
8152 | (struct grub_efi_usb_device_path): New structure. | |
8153 | (grub_efi_usb_device_path_t): New type. | |
8154 | (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro. | |
8155 | (struct grub_efi_usb_class_device_path): New structure. | |
8156 | (grub_efi_usb_class_device_path_t): New type. | |
8157 | (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro. | |
8158 | (struct grub_efi_i2o_device_path): New structure. | |
8159 | (grub_efi_i2o_device_path_t): New type. | |
8160 | (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro. | |
8161 | (struct grub_efi_mac_address_device_path): New structure. | |
8162 | (grub_efi_mac_address_device_path_t): New type. | |
8163 | (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro. | |
8164 | (struct grub_efi_ipv4_device_path): New structure. | |
8165 | (grub_efi_ipv4_device_path_t): New type. | |
8166 | (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro. | |
8167 | (struct grub_efi_ipv6_device_path): New structure. | |
8168 | (grub_efi_ipv6_device_path_t): New type. | |
8169 | (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro. | |
8170 | (struct grub_efi_infiniband_device_path): New structure. | |
8171 | (grub_efi_infiniband_device_path_t): New type. | |
8172 | (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro. | |
8173 | (struct grub_efi_uart_device_path): New structure. | |
8174 | (grub_efi_uart_device_path_t): New type. | |
8175 | (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro. | |
8176 | (struct grub_efi_vendor_messaging_device_path): New structure. | |
8177 | (grub_efi_vendor_messaging_device_path_t): New type. | |
8178 | (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro. | |
8179 | (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise. | |
8180 | (struct grub_efi_hard_drive_device_path): New structure. | |
8181 | (grub_efi_hard_drive_device_path_t): New type. | |
8182 | (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro. | |
8183 | (struct grub_efi_cdrom_device_path): New structure. | |
8184 | (grub_efi_cdrom_device_path_t): New type. | |
8185 | (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro. | |
8186 | (struct grub_efi_vendor_media_device_path): New structure. | |
8187 | (grub_efi_vendor_media_device_path_t): New type. | |
8188 | (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro. | |
8189 | (struct grub_efi_file_path_device_path): New structure. | |
8190 | (grub_efi_file_path_device_path_t): New type. | |
8191 | (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro. | |
8192 | (struct grub_efi_protocol_device_path): New structure. | |
8193 | (grub_efi_protocol_device_path_t): New type. | |
8194 | (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro. | |
8195 | (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise. | |
8196 | (struct grub_efi_bios_device_path): New structure. | |
8197 | (grub_efi_bios_device_path_t): New type. | |
8198 | (struct grub_efi_disk_io): New structure. | |
8199 | (grub_efi_disk_io_t): New type. | |
8200 | (struct grub_efi_block_io_media): New structure. | |
8201 | (grub_efi_block_io_media_t): New type. | |
8202 | (struct grub_efi_block_io): New structure. | |
8203 | (grub_efi_block_io_t): New type. | |
8204 | ||
8205 | * include/grub/misc.h (grub_stop): Removed. | |
8206 | (grub_exit): New prototype. | |
8207 | (grub_abort): Likewise. | |
8208 | ||
8209 | * include/grub/disk.h (enum grub_disk_dev_id): Added | |
8210 | GRUB_DISK_DEVICE_EFIDISK_ID. | |
8211 | ||
8212 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added | |
8213 | disk/efi/efidisk.c. | |
8214 | (kernel_syms.lst): Remove the target if an error occurs. | |
8215 | ||
49986a9f | 8216 | 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org> |
8217 | ||
8218 | * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part, | |
8219 | as it was simply too buggy. | |
8220 | ||
970d3b8a | 8221 | 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org> |
8222 | ||
8223 | * kern/misc.c (grub_lltoa): New function. | |
8224 | (grub_vsprintf): Added support for the long long suffix, | |
8225 | i.e. "ll". | |
8226 | ||
ff04ec24 | 8227 | 2006-04-20 Hollis Blanchard <hollis@penguinppc.org> |
8228 | ||
8229 | * Makefile.in (LDFLAGS): Add variable. | |
8230 | (LD): Remove variable. | |
8231 | * configure.ac: Add -m32 to LDFLAGS. | |
8232 | * genmk.rb (PModule#rule): Use $(CC) instead of $(LD). | |
8233 | * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable. | |
8234 | (grubof_LDFLAGS): Use $(COMMON_LDFLAGS). | |
8235 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS, | |
8236 | suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New | |
8237 | variables. | |
8238 | * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
8239 | * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
8240 | * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib. | |
8241 | ||
37e5e1a4 | 8242 | 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi> |
8243 | ||
8244 | * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character | |
8245 | length for unknown glyph. | |
8246 | ||
c352d8dd | 8247 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> |
8248 | ||
2eab1c0d | 8249 | Add support for pre-loaded modules into the EFI port. |
f19dbdb7 | 8250 | |
2eab1c0d | 8251 | * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten |
8252 | completely. Accept one more argument DIR. The caller has changed. | |
8253 | ||
8254 | * kern/i386/efi/init.c (grub_arch_modules_addr): Removed. | |
8255 | ||
8256 | * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h. | |
8257 | (grub_efi_loaded_image_guid): New variable. | |
8258 | (grub_efi_get_loaded_image): New function. | |
8259 | (grub_arch_modules_addr): Likewise. | |
8260 | ||
8261 | * include/grub/efi/efi.h (grub_efi_get_loaded_image): New | |
8262 | prototype. | |
8263 | ||
8264 | * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro. | |
8265 | (struct grub_efi_loaded_image): New structure. | |
8266 | (grub_efi_loaded_image_t): New type. | |
8267 | ||
8268 | 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org> | |
f19dbdb7 | 8269 | |
c352d8dd | 8270 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file |
8271 | size with GRUB_OS_AREA_SIZE as grub_size_t instead of | |
8272 | grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>. | |
8273 | ||
6d01d6b4 | 8274 | 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org> |
8275 | ||
8276 | * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'. | |
8277 | ||
976a4ea0 | 8278 | 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org> |
8279 | ||
8280 | * DISTLIST: Added include/grub/efi/console.h, | |
8281 | include/grub/efi/time.h, include/grub/i386/efi/kernel.h, | |
8282 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
8283 | ||
8284 | * include/grub/efi/console.h: New file. | |
8285 | * include/grub/efi/time.h: Likewise. | |
8286 | * include/grub/i386/efi/kernel.h: Likewise. | |
8287 | * kern/efi/init.c: Likewise. | |
8288 | * kern/efi/mm.c: Likewise. | |
8289 | * term/efi/console.c: Likewise. | |
f19dbdb7 | 8290 | |
976a4ea0 | 8291 | * kern/i386/efi/init.c: Do not include grub/machine/time.h. |
8292 | (grub_stop): Removed. | |
8293 | (grub_get_rtc): Likewise. | |
8294 | (grub_machine_init): Simply call grub_efi_init. | |
8295 | (grub_machine_fini): Call grub_efi_fini. | |
8296 | ||
8297 | * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h. | |
8298 | (grub_efi_output_string): Removed. | |
8299 | (grub_efi_stall): New function. | |
8300 | (grub_stop): Likewise. | |
8301 | (grub_get_rtc): Likewise. | |
8302 | ||
8303 | * include/grub/efi/efi.h (grub_efi_output_string): Removed. | |
8304 | (grub_efi_stall): New prototype. | |
8305 | (grub_efi_allocate_pages): Likewise. | |
8306 | (grub_efi_free_pages): Likewise. | |
8307 | (grub_efi_get_memory_map): Likewise. | |
8308 | (grub_efi_mm_init): Likewise. | |
8309 | (grub_efi_mm_fini): Likewise. | |
8310 | (grub_efi_init): Likewise. | |
8311 | (grub_efi_fini): Likewise. | |
8312 | ||
8313 | * include/grub/i386/efi/time.h: Do not include | |
8314 | grub/symbol.h. Include grub/efi/time.h. | |
8315 | (GRUB_TICKS_PER_SECOND): Removed. | |
8316 | (grub_get_rtc): Likewise. | |
8317 | ||
8318 | * include/grub/efi/api.h (struct grub_efi_memory_descriptor): | |
8319 | Added padding. The EFI spec is buggy. | |
8320 | (GRUB_EFI_BLACK): New macro. | |
8321 | (GRUB_EFI_BLUE): Likewise. | |
8322 | (GRUB_EFI_GREEN): Likewise. | |
8323 | (GRUB_EFI_CYAN): Likewise. | |
8324 | (GRUB_EFI_RED): Likewise. | |
8325 | (GRUB_EFI_MAGENTA): Likewise. | |
8326 | (GRUB_EFI_BROWN): Likewise. | |
8327 | (GRUB_EFI_LIGHTGRAY): Likewise. | |
8328 | (GRUB_EFI_BRIGHT): Likewise. | |
8329 | (GRUB_EFI_DARKGRAY): Likewise. | |
8330 | (GRUB_EFI_LIGHTBLUE): Likewise. | |
8331 | (GRUB_EFI_LIGHTGREEN): Likewise. | |
8332 | (GRUB_EFI_LIGHTCYAN): Likewise. | |
8333 | (GRUB_EFI_LIGHTRED): Likewise. | |
8334 | (GRUB_EFI_LIGHTMAGENTA): Likewise. | |
8335 | (GRUB_EFI_YELLOW): Likewise. | |
8336 | (GRUB_EFI_WHITE): Likewise. | |
8337 | (GRUB_EFI_BACKGROUND_BLACK): Likewise. | |
8338 | (GRUB_EFI_BACKGROUND_BLUE): Likewise. | |
8339 | (GRUB_EFI_BACKGROUND_GREEN): Likewise. | |
8340 | (GRUB_EFI_BACKGROUND_CYAN): Likewise. | |
8341 | (GRUB_EFI_BACKGROUND_RED): Likewise. | |
8342 | (GRUB_EFI_BACKGROUND_MAGENTA): Likewise. | |
8343 | (GRUB_EFI_BACKGROUND_BROWN): Likewise. | |
8344 | (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise. | |
8345 | (GRUB_EFI_TEXT_ATTR): Likewise. | |
8346 | ||
8347 | * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c, | |
8348 | kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c. | |
8349 | (kernel_mod_HEADERS): Added efi/time.h. | |
8350 | ||
83709125 | 8351 | 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org> |
8352 | ||
8353 | * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk, | |
8354 | include/grub/efi/api.h, include/grub/efi/console_control.h, | |
8355 | include/grub/efi/efi.h, include/grub/efi/pe32.h, | |
8356 | include/grub/i386/efi/time.h, kern/efi/efi.c, | |
8357 | kern/i386/efi/init.c, kern/i386/efi/startup.S, | |
8358 | and util/i386/efi/grub-mkimage.c. | |
8359 | ||
8360 | * Makefile.in (RMKFILES): Added i386-efi.rmk. | |
8361 | ||
8362 | * genmk.rb (PModule#rule): Do not export symbols if | |
8363 | #{prefix}_EXPORTS is set to "no". | |
8364 | ||
8365 | * conf/i386-efi.mk: New file. | |
8366 | * conf/i386-efi.rmk: Likewise. | |
8367 | * include/grub/efi/api.h: Likewise. | |
8368 | * include/grub/efi/console_control.h: Likewise. | |
8369 | * include/grub/efi/efi.h: Likewise. | |
8370 | * include/grub/efi/pe32.h: Likewise. | |
8371 | * include/grub/i386/efi/time.h: Likewise. | |
8372 | * kern/efi/efi.c: Likewise. | |
8373 | * kern/i386/efi/init.c: Likewise. | |
8374 | * kern/i386/efi/startup.S: Likewise. | |
8375 | * util/i386/efi/grub-mkimage.c: Likewise. | |
8376 | ||
8377 | 2006-04-17 Marco Gerards <marco@gnu.org> | |
bfa2bd9e | 8378 | |
8379 | * include/grub/script.h: Include <grub/parser.h> and | |
8380 | "grub_script.tab.h". | |
8381 | (struct grub_lexer_param): New struct. | |
8382 | (struct grub_parser_param): Likewise. | |
8383 | (grub_script_create_arglist): Pass the state in an argument. | |
8384 | (grub_script_add_arglist): Likewise. | |
8385 | (grub_script_create_cmdline): Likewise. | |
8386 | (grub_script_create_cmdblock): Likewise. | |
8387 | (grub_script_create_cmdif): Likewise. | |
8388 | (grub_script_create_cmdmenu): Likewise. | |
8389 | (grub_script_add_cmd): Likewise. | |
8390 | (grub_script_arg_add): Likewise. | |
8391 | (grub_script_lexer_ref): Likewise. | |
8392 | (grub_script_lexer_deref): Likewise. | |
8393 | (grub_script_lexer_record_start): Likewise. | |
8394 | (grub_script_lexer_record_stop): Likewise. | |
8395 | (grub_script_mem_record): Likewise. | |
8396 | (grub_script_mem_record_stop): Likewise. | |
8397 | (grub_script_malloc): Likewise. | |
8398 | (grub_script_yylex): Likewise. | |
8399 | (grub_script_yyparse): Likewise. | |
8400 | (grub_script_yyerror): Likewise. | |
8401 | (grub_script_yylex): Likewise. | |
8402 | (grub_script_lexer_init): Return the state. | |
8403 | ||
8404 | * normal/lexer.c (grub_script_lexer_state): Removed variable. | |
8405 | (grub_script_lexer_done): Likewise. | |
8406 | (grub_script_lexer_getline): Likewise. | |
8407 | (grub_script_lexer_refs): Likewise. | |
8408 | (script): Likewise. | |
8409 | (newscript): Likewise. | |
8410 | (record): Likewise. | |
8411 | (recording): Likewise. | |
8412 | (recordpos): Likewise. | |
8413 | (recordlen): Likewise. | |
8414 | (grub_script_lexer_init): Return the state instead of setting | |
8415 | global variables. | |
8416 | (grub_script_lexer_ref): Use the newly added argument for state | |
8417 | instead of globals. | |
8418 | (grub_script_lexer_deref): Likewise. | |
8419 | (grub_script_lexer_record_start): Likewise. | |
8420 | (grub_script_lexer_record_stop): Likewise. | |
8421 | (recordchar): Likewise. | |
8422 | (nextchar): Likewise. | |
8423 | (grub_script_yylex2): Likewise. | |
8424 | (grub_script_yylex): Likewise. | |
8425 | (grub_script_yyerror): Likewise. | |
8426 | ||
8427 | * normal/parser.y (func_mem): Removed variable. | |
8428 | (menu_entry): Likewise. | |
8429 | (err): Likewise. | |
8430 | (%lex-param): New parser option. | |
8431 | (%parse-param): Likewise. | |
8432 | (script): Always return the AST. | |
8433 | (argument): Pass the state around. | |
8434 | (arguments): Likewise. | |
8435 | (grubcmd): Likewise. | |
8436 | (commands): Likewise. | |
8437 | (function): Likewise. | |
8438 | (menuentry): Likewise. | |
8439 | (if_statement): Likewise. | |
8440 | (if): Likewise. | |
8441 | ||
8442 | * normal/script.c (grub_script_memused): Removed variable. | |
8443 | (grub_script_parsed): Likewise. | |
8444 | (grub_script_malloc): Added a state argument. Use that instead of | |
8445 | global variables. | |
8446 | (grub_script_mem_record): Likewise. | |
8447 | (grub_script_mem_record_stop): Likewise. | |
8448 | (grub_script_arg_add): Likewise. | |
8449 | (grub_script_add_arglist): Likewise. | |
8450 | (grub_script_create_cmdline): Likewise. | |
8451 | (grub_script_create_cmdif): Likewise. | |
8452 | (grub_script_create_cmdmenu): Likewise. | |
8453 | (grub_script_add_cmd): Likewise. | |
8454 | (grub_script_parse): Setup the state before calling the parser. | |
f19dbdb7 | 8455 | |
e2a8c904 | 8456 | 2006-04-16 Marco Gerards <marco@gnu.org> |
6de2ee99 | 8457 | |
8458 | * normal/command.c (grub_command_init): Remove the title command. | |
8459 | ||
8460 | * normal/lexer.c (grub_script_yylex): Renamed from this... | |
8461 | (grub_script_yylex2): ... to this. | |
8462 | (grub_script_yylex): New function. Temporary | |
8463 | introduced to filter some tokens. | |
8464 | (grub_script_yyerror): Print a newline. | |
8465 | ||
8466 | * normal/main.c (read_config_file): Output information about the | |
8467 | lines that contain errors. Wait for a key after all lines have | |
8468 | been processed. Don't return an empty menu. | |
8469 | ||
8470 | * normal/parser.y (func_mem): Don't initialize. | |
8471 | (menu_entry): Likewise. | |
8472 | (err): New variable. | |
8473 | (script): Don't return anything when an error was encountered. | |
8474 | (ws, returns): Removed rules. | |
8475 | (argument): Disabled concatenated variable support. | |
8476 | (arguments): Remove explicit separators. | |
8477 | (grubcmd): Likewise. | |
8478 | (function): Likewise. | |
8479 | (menuentry): Likewise. | |
8480 | (if): Likewise. | |
8481 | (commands): Likewise. Add error handling. | |
8482 | ||
8483 | * normal/script.c (grub_script_create_cmdline): If | |
8484 | `grub_script_parsed' is 0, assume the parser encountered an error. | |
8485 | ||
c9a86192 | 8486 | 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org> |
8487 | ||
8488 | * configure.ac: Add support for EFI. Fix the typo | |
8489 | BUILD_LDDFLAGS. Restore the LDFLAGS after testing. | |
8490 | ||
70f3b243 | 8491 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
8492 | ||
8493 | * util/unifont2pff.rb: Removed unnecessary byte ordering. Now | |
8494 | foreign multibyte characters should be shown correctly. | |
8495 | ||
65f201ad | 8496 | 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi> |
8497 | ||
8498 | * normal/main.c (grub_normal_menu_addentry): Fixed menu size | |
8499 | calculation. | |
8500 | (read_config_file): Made it to close file before returning. | |
8501 | ||
b4b93674 | 8502 | 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi> |
8503 | ||
8504 | * DISTLIST: Added include/grub/i386/pc/vbeblit.h, | |
8505 | include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c, | |
8506 | video/i386/pc/vbefill.c. | |
8507 | ||
8508 | * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c, | |
8509 | video/i386/pc/vbefill.c. | |
8510 | ||
8511 | * include/grub/video.h (grub_video_blit_format): New enum. | |
8512 | (grub_video_mode_info): Added new member blit_format. | |
8513 | (grub_video_get_blit_format): New function prototype. | |
8514 | ||
8515 | * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New | |
8516 | function prototype. | |
8517 | (grub_video_vbe_map_rgb): Likewise. | |
8518 | (grub_video_vbe_unmap_color): Likewise. | |
8519 | ||
8520 | * include/grub/i386/pc/vbeblit.h: New file. | |
8521 | ||
8522 | * include/grub/i386/pc/vbefill.h: New file. | |
8523 | ||
8524 | * video/video.c (grub_video_get_blit_format): New function. | |
8525 | (grub_video_vbe_get_video_ptr): Re-declared as non-static. | |
8526 | (grub_video_vbe_map_rgb): Likewise. | |
8527 | (grub_video_vbe_unmap_color): Likewise. | |
8528 | ||
8529 | * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more | |
8530 | optimized fills. | |
8531 | (grub_video_vbe_blit_render_target): Changed to use more optimized | |
8532 | blits. | |
8533 | (grub_video_vbe_setup): Added detection for optimized settings. | |
8534 | (grub_video_vbe_create_render_target): Likewise. | |
8535 | ||
8536 | * video/i386/pc/vbeblit.c: New file. | |
8537 | ||
8538 | * video/i386/pc/vbefill.c: New file. | |
8539 | ||
c2379b9c | 8540 | 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi> |
8541 | ||
8542 | * font/manager.c (grub_font_get_glyph): Removed font fixup from | |
8543 | here... | |
8544 | ||
8545 | * util/unifont2pff.rb: ... and moved it to here. Improved argument | |
8546 | parsing to support both hex and dec ranges. If filename was missing | |
8547 | show usage information. | |
8548 | ||
bd0d7896 | 8549 | 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi> |
8550 | ||
8551 | * DISTLIST: Added include/grub/video.h, term/gfxterm.c, | |
8552 | video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c. | |
8553 | ||
8554 | * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod, | |
8555 | gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod. | |
8556 | (video_mod_SOURCES): Added. | |
8557 | (video_mod_CFLAGS): Likewise. | |
8558 | (video_mod_LDFLAGS): Likewise. | |
8559 | (gfxterm_mod_SOURCES): Likewise. | |
8560 | (gfxterm_mod_CFLAGS): Likewise. | |
8561 | (gfxterm_mod_LDFLAGS): Likewise. | |
8562 | (videotest_mod_SOURCES): Likewise. | |
8563 | (videotest_mod_CFLAGS): Likewise. | |
8564 | (videotest_mod_LDFLAGS): Likewise. | |
8565 | (vesafb_mod_SOURCES): Removed. | |
8566 | (vesafb_mod_CFLAGS): Likewise. | |
8567 | (vesafb_mod_LDFLAGS): Likewise. | |
8568 | (vga_mod_SOURCES): Likewise. | |
8569 | (vga_mod_CFLAGS): Likewise. | |
8570 | (vga_mod_LDFLAGS): Likewise. | |
8571 | ||
8572 | * commands/videotest.c: New file. | |
8573 | ||
8574 | * font/manager.c (fill_with_default_glyph): Modified to use | |
8575 | grub_font_glyph. | |
8576 | (grub_font_get_glyph): Likewise. | |
8577 | (fontmanager): Renamed from this... | |
8578 | (font_manager): ... to this. | |
8579 | ||
8580 | * include/grub/font.h (grub_font_glyph): Added new structure. | |
8581 | (grub_font_get_glyph): Modified to use grub_font_glyph. | |
8582 | ||
8583 | * include/grub/misc.h (grub_abs): Added as inline function. | |
8584 | ||
8585 | * include/grub/video.h: New file. | |
8586 | ||
8587 | * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro. | |
8588 | (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise. | |
8589 | (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise. | |
8590 | (grub_vbe_get_controller_info): Renamed from this... | |
8591 | (grub_vbe_bios_get_controller_info): ... to this. | |
8592 | (grub_vbe_get_mode_info): Renamed from this... | |
8593 | (grub_vbe_bios_get_mode_info): ... to this. | |
8594 | (grub_vbe_set_mode): Renamed from this... | |
8595 | (grub_vbe_bios_set_mode): ... to this. | |
8596 | (grub_vbe_get_mode): Renamed from this... | |
8597 | (grub_vbe_bios_get_mode): ... to this. | |
8598 | (grub_vbe_set_memory_window): Renamed from this... | |
8599 | (grub_vbe_bios_set_memory_window): ... to this. | |
8600 | (grub_vbe_get_memory_window): Renamed from this... | |
8601 | (grub_vbe_bios_get_memory_window): ... to this. | |
8602 | (grub_vbe_set_scanline_length): Renamed from this... | |
8603 | (grub_vbe_set_scanline_length): ... to this. | |
8604 | (grub_vbe_get_scanline_length): Renamed from this... | |
8605 | (grub_vbe_bios_get_scanline_length): ... to this. | |
8606 | (grub_vbe_set_display_start): Renamed from this... | |
8607 | (grub_vbe_bios_set_display_start): ... to this. | |
8608 | (grub_vbe_get_display_start): Renamed from this... | |
8609 | (grub_vbe_bios_get_display_start): ... to this. | |
8610 | (grub_vbe_set_palette_data): Renamed from this... | |
8611 | (grub_vbe_bios_set_palette_data): ... to this. | |
8612 | (grub_vbe_set_pixel_rgb): Removed. | |
8613 | (grub_vbe_set_pixel_index): Likewise. | |
8614 | ||
8615 | * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed | |
8616 | from this... | |
8617 | (grub_vbe_bios_get_controller_info): ... to this. | |
8618 | (grub_vbe_get_mode_info): Renamed from this... | |
8619 | (grub_vbe_bios_get_mode_info): ... to this. | |
8620 | (grub_vbe_set_mode): Renamed from this... | |
8621 | (grub_vbe_bios_set_mode): ... to this. | |
8622 | (grub_vbe_get_mode): Renamed from this... | |
8623 | (grub_vbe_bios_get_mode): ... to this. | |
8624 | (grub_vbe_set_memory_window): Renamed from this... | |
8625 | (grub_vbe_bios_set_memory_window): ... to this. | |
8626 | (grub_vbe_get_memory_window): Renamed from this... | |
8627 | (grub_vbe_bios_get_memory_window): ... to this. | |
8628 | (grub_vbe_set_scanline_length): Renamed from this... | |
8629 | (grub_vbe_set_scanline_length): ... to this. | |
8630 | (grub_vbe_get_scanline_length): Renamed from this... | |
8631 | (grub_vbe_bios_get_scanline_length): ... to this. | |
8632 | (grub_vbe_set_display_start): Renamed from this... | |
8633 | (grub_vbe_bios_set_display_start): ... to this. | |
8634 | (grub_vbe_get_display_start): Renamed from this... | |
8635 | (grub_vbe_bios_get_display_start): ... to this. | |
8636 | (grub_vbe_set_palette_data): Renamed from this... | |
8637 | (grub_vbe_bios_set_palette_data): ... to this. | |
8638 | (grub_vbe_bios_get_controller_info): Fixed problem with registers | |
8639 | getting corrupted after calling it. Added more pushes and pops. | |
8640 | (grub_vbe_bios_set_mode): Likewise. | |
8641 | (grub_vbe_bios_get_mode): Likewise. | |
8642 | (grub_vbe_bios_get_memory_window): Likewise. | |
8643 | (grub_vbe_bios_set_scanline_length): Likewise. | |
8644 | (grub_vbe_bios_get_scanline_length): Likewise. | |
8645 | (grub_vbe_bios_get_display_start): Likewise. | |
8646 | (grub_vbe_bios_set_palette_data): Likewise. | |
8647 | ||
8648 | * normal/cmdline.c (cl_set_pos): Refresh the screen. | |
8649 | (cl_insert): Likewise. | |
8650 | (cl_delete): Likewise. | |
8651 | ||
8652 | * term/gfxterm.c: New file. | |
8653 | ||
8654 | * term/i386/pc/vesafb.c: Removed file. | |
8655 | ||
8656 | * video/video.c: New file. | |
8657 | ||
8658 | * video/i386/pc/vbe.c (real2pm): Added new function. | |
8659 | (grub_video_vbe_draw_pixel): Likewise. | |
8660 | (grub_video_vbe_get_video_ptr): Likewise. | |
8661 | (grub_video_vbe_get_pixel): Likewise | |
8662 | (grub_video_vbe_init): Likewise. | |
8663 | (grub_video_vbe_fini): Likewise. | |
8664 | (grub_video_vbe_setup): Likewise. | |
8665 | (grub_video_vbe_get_info): Likewise. | |
8666 | (grub_video_vbe_set_palette): Likewise. | |
8667 | (grub_video_vbe_get_palette): Likewise. | |
8668 | (grub_video_vbe_set_viewport): Likewise. | |
8669 | (grub_video_vbe_get_viewport): Likewise. | |
8670 | (grub_video_vbe_map_color): Likewise. | |
8671 | (grub_video_vbe_map_rgb): Likewise. | |
8672 | (grub_video_vbe_map_rgba): Likewise. | |
8673 | (grub_video_vbe_unmap_color): Likewise. | |
8674 | (grub_video_vbe_fill_rect): Likewise. | |
8675 | (grub_video_vbe_blit_glyph): Likewise. | |
8676 | (grub_video_vbe_blit_bitmap): Likewise. | |
8677 | (grub_video_vbe_blit_render_target): Likewise. | |
8678 | (grub_video_vbe_scroll): Likewise. | |
8679 | (grub_video_vbe_swap_buffers): Likewise. | |
8680 | (grub_video_vbe_create_render_target): Likewise. | |
8681 | (grub_video_vbe_delete_render_target): Likewise. | |
8682 | (grub_video_vbe_set_active_render_target): Likewise. | |
8683 | (grub_vbe_set_pixel_rgb): Remove function. | |
8684 | (grub_vbe_set_pixel_index): Likewise. | |
8685 | (index_color_mode): Remove static variable. | |
8686 | (active_mode): Likewise. | |
8687 | (framebuffer): Likewise. | |
8688 | (bytes_per_scan_line): Likewise. | |
8689 | (grub_video_vbe_adapter): Added new static variable. | |
8690 | (framebuffer): Likewise. | |
8691 | (render_target): Likewise. | |
8692 | (initial_mode): Likewise. | |
8693 | (mode_in_use): Likewise. | |
8694 | (mode_list): Likewise. | |
8695 | ||
5f97350b | 8696 | 2006-03-10 Marco Gerards <marco@gnu.org> |
8697 | ||
8698 | * configure.ac (AC_INIT): Bumped to 1.93. | |
8699 | ||
8700 | * DISTLIST: Added `include/grub/hfs.h'. | |
8701 | ||
a3c5c6f8 | 8702 | 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org> |
8703 | ||
8704 | * boot/i386/pc/boot.S (general_error): Before looping, try INT | |
8705 | 18H, which might help the BIOS falling back to next boot media. | |
8706 | ||
6de53d26 | 8707 | 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org> |
8708 | ||
8709 | * util/i386/pc/grub-install.in: Escape a backslash. Reported by | |
8710 | Poe Chen <poe.poechen@gmail.com>. | |
8711 | ||
77c4a393 | 8712 | 2006-01-17 Marco Gerards <marco@gnu.org> |
8713 | ||
8714 | * include/grub/normal.h: Include <grub/script.h>. | |
8715 | (grub_command_list): Removed struct. | |
8716 | (grub_command_list_t): Removed type. | |
8717 | (grub_menu_entry): Remove members `num' and `command_list'. Add | |
8718 | members `commands' and `sourcecode'. | |
8719 | * include/grub/script.h: Add inclusion guards. | |
8720 | (grub_script_cmd_menuentry): New struct. | |
8721 | (grub_script_execute_menuentry): New prototype. | |
8722 | (grub_script_lexer_record_start): Likewise. | |
8723 | (grub_script_lexer_record_stop): Likewise. | |
8724 | * normal/execute.c (grub_script_execute_menuentry): New function. | |
8725 | * normal/lexer.c (record, recording, recordpos, recordlen): New | |
8726 | variables. | |
8727 | (grub_script_lexer_record_start): New function. | |
8728 | (grub_script_lexer_record_stop): Likewise. | |
8729 | (recordchar): Likewise. | |
8730 | (nextchar): Likewise. | |
8731 | (grub_script_yylex): Use `nextchar' to fetch new characters. Use | |
8732 | 2048 as the buffer size. Add the tokens `menuentry' and `@'. | |
8733 | * normal/main.c: Include <grub/parser.h> and <grub/script.h> | |
8734 | (current_menu): New variable. | |
8735 | (free_menu): Mainly rewritten. | |
8736 | (grub_normal_menu_addentry): New function. | |
8737 | (read_config_file): Rewritten. | |
8738 | * normal/menu.c (run_menu_entry): Mainly rewritten. | |
fe987087 | 8739 | * normal/menu_entry.c (make_screen): Rewritten the code to insert |
77c4a393 | 8740 | the menu entry. |
8741 | (run): Mainly rewritten. | |
8742 | * normal/parser.y (menu_entry): New variable. | |
8743 | (GRUB_PARSER_TOKEN_MENUENTRY): New token. | |
8744 | (menuentry): New rule. | |
8745 | (command): Add `menuentry'. | |
8746 | (if_statement): Allow additional returns before `fi'. | |
8747 | * normal/script.c (grub_script_create_cmdmenu): New function. | |
8748 | ||
144f1f98 | 8749 | 2006-01-03 Marco Gerards <marco@gnu.org> |
8750 | ||
8751 | * INSTALL: GNU Bison is required. | |
8752 | * configure.ac: Rewritten the test to detect Bison. | |
8753 | * Makefile.in (YACC): New variable. Reported by Xun Sun | |
8754 | <xun.sun.cn@gmail.com>. | |
8755 | ||
af4b2d89 | 8756 | 2006-01-03 Marco Gerards <marco@gnu.org> |
8757 | ||
8758 | * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of | |
8759 | the HFS+ filesystem to filesystem blocks. | |
8760 | (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a | |
8761 | GCC warning is silenced. | |
8762 | ||
15643b71 | 8763 | 2006-01-03 Marco Gerards <marco@gnu.org> |
8764 | ||
8765 | * partmap/apple.c (apple_partition_map_iterate): Convert the data | |
8766 | read from disk from big endian to host byte order. | |
8767 | ||
00905879 | 8768 | 2006-01-03 Hollis Blanchard <hollis@penguinppc.org> |
8769 | ||
8770 | * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official | |
8771 | documentation. | |
8772 | (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro. | |
8773 | (grub_hfs_mount): Grammar fix in error. Make sure this is not an | |
8774 | embedded HFS+ filesystem. | |
8775 | (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t) | |
8776 | (grub_hfs_sblock): Move from here... | |
8777 | * include/grub/hfs.h: To here... New file. | |
8778 | * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official | |
8779 | documentation. | |
8780 | (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK): | |
8781 | New macros. | |
8782 | (grub_hfsplus_volheader): Change type of member `magic' to | |
8783 | `grub_uint16_t'. | |
8784 | (grub_hfsplus_data): Add new member `embedded_offset'. | |
8785 | (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the | |
8786 | returned block. | |
8787 | (grub_hfsplus_mount): Read the HFS+ wrapper if it exists. | |
8788 | Calculate the offset. | |
8789 | ||
8899bc3e | 8790 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
8791 | ||
8792 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR): | |
8793 | Removed. | |
8794 | (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise. | |
8795 | ||
ae8c0277 | 8796 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
8797 | ||
8798 | * kern/env.c (grub_env_set): Check if ENV->VALUE instead of | |
8799 | ENV->NAME is NULL after allocating ENV->VALUE. | |
8800 | ||
07084456 | 8801 | 2005-12-25 Marco Gerards <marco@gnu.org> |
8802 | ||
8803 | * kern/env.c (grub_env_set): Rewritten the error handling code. | |
8804 | ||
4750f5f1 | 8805 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
8806 | ||
8807 | * geninit.sh: Made more robust, and more portable. | |
8808 | ||
50214199 | 8809 | 2005-12-25 Marco Gerards <marco@gnu.org> |
8810 | ||
8811 | Add support for Apple HFS+ filesystems. | |
f19dbdb7 | 8812 | |
50214199 | 8813 | * fs/hfsplus.c: New file. |
8814 | ||
8815 | * DISTLIST: Added `fs/hfsplus.c'. | |
8816 | ||
8817 | * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'. | |
8818 | (hfsplus_mod_SOURCES): New variable. | |
8819 | (hfsplus_mod_CFLAGS): Likewise. | |
8820 | (hfsplus_mod_LDFLAGS): Likewise. | |
8821 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'. | |
8822 | (grub_setup_SOURCES): Likewise. | |
8823 | (grub_mkdevicemap_SOURCES): Likewise. | |
8824 | (grub_emu_SOURCES): Likewise. | |
8825 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
8826 | ||
8827 | * fs/fshelp.c (grub_fshelp_log2blksize): New function. | |
8828 | ||
8829 | * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype. | |
8830 | ||
befaed6c | 8831 | 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org> |
8832 | ||
8833 | * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c, | |
8834 | commands/i386/pc/play.c, conf/common.mk, conf/common.rmk, | |
8835 | include/grub/parser.h, include/grub/script.h, kern/parser.c, | |
8836 | kern/sparc64/cache.S, normal/execute.c, normal/function.c, | |
8837 | normal/lexer.c, normal/parser.y, normal/script.c, and | |
8838 | partmap/gpt.c. | |
8839 | Removed kern/sparc64/cache.c. | |
8840 | ||
8841 | * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c, | |
8842 | grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h, | |
8843 | grub_emu_init.c. | |
8844 | ||
8845 | * configure.ac (AC_INIT): Bumped to 1.92. | |
8846 | ||
6a124103 | 8847 | 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi> |
8848 | ||
8849 | * kern/err.c (grub_error_push): Added new function to support error | |
8850 | stacks. | |
8851 | (grub_error_pop): Likewise. | |
8852 | (grub_error_stack_items): New local variable to support error stacks. | |
8853 | (grub_error_stack_pos): Likewise. | |
8854 | (grub_error_stack_assert): Likewise. | |
8855 | (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error | |
8856 | stack depth. | |
8857 | (grub_print_error): Added support to print errors from error stack. | |
8858 | ||
8859 | * include/grub/err.h (grub_error_push): Added function prototype. | |
8860 | (grub_error_pop): Likewise. | |
8861 | ||
be973c1b | 8862 | 2005-12-09 Hollis Blanchard <hollis@penguinppc.org> |
8863 | ||
8864 | * configure.ac: Accept `powerpc64' as host_cpu. | |
8865 | (amd64): Rename to `biarch32'. | |
8866 | ||
8867 | * kern/powerpc/cache.S (grub_arch_sync_caches): Handle | |
8868 | non-cacheline-aligned addresses. | |
8869 | ||
8870 | * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages. | |
8871 | (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches' | |
8872 | if `size' is non-zero. | |
8873 | ||
b04216ab | 8874 | 2005-12-03 Marco Gerards <mgerards@xs4all.nl> |
8875 | ||
8876 | * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"' | |
8877 | and `cd' to make sure the filename is not prefixed with a | |
8878 | directory name. | |
8879 | (pkgdata_MODULES): Add `gpt.mod'. | |
8880 | (gpt_mod_SOURCES): New variable. | |
8881 | (gpt_mod_CFLAGS): Likewise. | |
8882 | (gpt_mod_LDFLAGS): Likewise. | |
8883 | ||
8884 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'. | |
8885 | ||
8886 | * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK): | |
8887 | New macro. | |
8888 | ||
8889 | * partmap/gpt.c: New file. | |
8890 | ||
8891 | * partmap/pc.c (pc_partition_map_iterate): Don't continue when a | |
8892 | GPT partition map is detected. | |
8893 | ||
41730ed9 | 8894 | 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr> |
8895 | ||
8896 | * commands/i386/pc/play.c: New file. | |
8897 | * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod. | |
8898 | (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New | |
8899 | macros. | |
f19dbdb7 | 8900 | |
95dc3643 | 8901 | 2005-11-27 Marco Gerards <mgerards@xs4all.nl> |
8902 | ||
8903 | * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__ | |
8904 | ((unused))' to silence gcc warning. | |
8905 | ||
1569ec51 | 8906 | 2005-11-26 Hollis Blanchard <hollis@penguinppc.org> |
8907 | ||
8908 | * configure.ac: Correct `AC_PROG_YACC' test. | |
8909 | ||
9abde152 | 8910 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
8911 | ||
8912 | * util/powerpc/ieee1275/grub-install.in: Run the mount point | |
8913 | check before installing files. | |
8914 | ||
44b83271 | 8915 | 2005-11-22 Mike Small <smallm@panix.com> |
8916 | ||
8917 | * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition | |
8918 | number regex so multidigit numbers are recognized correctly. | |
8919 | ||
8920 | 2005-11-22 Mike Small <smallm@panix.com> | |
8921 | ||
8922 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a | |
8923 | debugging message before attempting to claim memory. | |
8924 | (grub_rescue_cmd_initrd): Add a claim debugging message and try | |
8925 | multiple addresses in case of failure. | |
8926 | ||
9c12956b | 8927 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
8928 | ||
8929 | * term/tparm.c (get_space): Remove empty `if' statement. | |
8930 | ||
8931 | * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'. | |
8932 | ||
8933 | * kern/parser.c (check_varstate): Rename `state' to 's'. | |
8934 | ||
aeaf81d9 | 8935 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
8936 | ||
8937 | * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all | |
8938 | variable definitions to the beginning of each function. Sort stack | |
8939 | variables by size. | |
8940 | (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read' | |
8941 | `buf' argument to `char *'. | |
8942 | ||
79bbb63f | 8943 | 2005-11-22 Hollis Blanchard <hollis@penguinppc.org> |
8944 | ||
8945 | * conf/powerpc-ieee1275.rmk: Include conf/common.mk. | |
8946 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 8947 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
79bbb63f | 8948 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
8949 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
8950 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
8951 | configfile.mod, search.mod, gzio.mod and test.mod. | |
8952 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
8953 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
8954 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
8955 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
8956 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
8957 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
8958 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
8959 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
8960 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
8961 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
8962 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
8963 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
8964 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
8965 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
8966 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
8967 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
8968 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
8969 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
8970 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
8971 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
8972 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
8973 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
8974 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed. | |
8975 | ||
8976 | * conf/common.mk (grub_modules_init.lst): Use `find' instead of | |
8977 | `grep --include'. | |
8978 | (pkgdata_MODULES): Add test.mod. | |
8979 | ||
233b1628 | 8980 | 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
8981 | ||
8982 | * genmk.rb: Fixed list rules moved to Makefile.in. Recognise | |
8983 | appending to variables with "+=". | |
8984 | (PModule): Use full pathname to generate *.lst filenames. | |
8985 | ||
8986 | * Makefile.in: Fixed list rules moved from genmk.rb. | |
8987 | (.DELETE_ON_ERROR): New special target. | |
8988 | (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk. | |
8989 | ||
8990 | * conf/i386-pc.rmk: Include conf/common.mk. | |
8991 | (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod, | |
fe6b695a | 8992 | minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod, |
233b1628 | 8993 | hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod, |
8994 | help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod, | |
8995 | sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod, | |
8996 | configfile.mod, search.mod, gzio.mod and test.mod. | |
8997 | (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst) | |
8998 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c) | |
8999 | (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS) | |
9000 | (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS) | |
9001 | (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS) | |
9002 | (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS) | |
9003 | (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS) | |
9004 | (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES) | |
9005 | (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES) | |
9006 | (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES) | |
9007 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
9008 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
9009 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES) | |
9010 | (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES) | |
9011 | (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES) | |
9012 | (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES) | |
9013 | (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
9014 | (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS) | |
9015 | (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS) | |
9016 | (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS) | |
9017 | (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS) | |
9018 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS) | |
9019 | (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from | |
9020 | here... | |
9021 | * conf/common.rmk: ... to here. New file. | |
9022 | ||
9023 | * conf/common.mk: New file. | |
9024 | ||
16f820c8 | 9025 | 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org> |
9026 | ||
9027 | * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
9028 | (grub_script.tab.c): ... here. | |
9029 | ||
9030 | * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ... | |
9031 | (grub_script.tab.c): ... here. | |
9032 | ||
9033 | * conf/i386-pc.rmk (grub_script.tab.h): Unified to ... | |
9034 | (grub_script.tab.c): ... here. | |
9035 | ||
9036 | * normal/command.c (grub_command_find): Fixed a memory leak of | |
9037 | MODULE_NAME. Reported by Mike Small <smallm@panix.com>. | |
9038 | ||
63ba1554 | 9039 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
9040 | ||
9041 | * include/grub/symbol.h: (FUNCTION): Use double quotes instead of | |
9042 | "@" which marks the start of a comment on ARM. | |
9043 | (VARIABLE): Likewise. | |
9044 | ||
7f67dc13 | 9045 | 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
9046 | ||
79bbb63f | 9047 | Add support for Linux/ADFS partition tables. |
7f67dc13 | 9048 | |
9049 | * partmap/acorn.c: New file. | |
9050 | ||
9051 | * include/grub/acorn_filecore.h: Likewise. | |
9052 | ||
9053 | * DISTLIST: Added `partmap/acorn.c' and | |
9054 | `include/grub/acorn_filecore.h'. | |
f19dbdb7 | 9055 | |
7f67dc13 | 9056 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add |
9057 | `partmap/acorn.c'. | |
9058 | (pkgdata_MODULES): Add `acorn.mod'. | |
9059 | (acorn_mod_SOURCES): New variable. | |
9060 | (acorn_mod_CFLAGS): Likewise. | |
9061 | ||
9062 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
9063 | `partmap/acorn.c'. | |
9064 | (pkgdata_MODULES): Add `acorn.mod'. | |
9065 | (acorn_mod_SOURCES): New variable. | |
9066 | (acorn_mod_CFLAGS): Likewise. | |
9067 | ||
9068 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'. | |
9069 | (pkgdata_MODULES): Add `acorn.mod'. | |
9070 | (acorn_mod_SOURCES): New variable. | |
9071 | (acorn_mod_CFLAGS): Likewise. | |
9072 | (acorn_mod_LDFLAGS): Likewise. | |
9073 | ||
9074 | * include/types.h (grub_disk_addr_t): New typedef. | |
9075 | ||
6d099807 | 9076 | 2005-11-13 Marco Gerards <mgerards@xs4all.nl> |
9077 | ||
9078 | * geninit.sh: New file. | |
9079 | ||
9080 | * geninitheader.sh: Likewise. | |
9081 | ||
9082 | * commands/boot.c (grub_boot_init, grub_boot_fini): Removed. | |
9083 | * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise. | |
9084 | * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise. | |
9085 | * commands/configfile.c (grub_configfile_init) | |
9086 | (grub_configfile_fini): Likewise. | |
9087 | * commands/default.c (grub_default_init, grub_default_fini): | |
9088 | Likewise. | |
9089 | * commands/help.c (grub_help_init, grub_help_fini): Likewise. | |
9090 | * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise. | |
9091 | * commands/search.c (grub_search_init, grub_search_fini): Likewise. | |
9092 | * commands/terminal.c (grub_terminal_init, grub_terminal_fini): | |
9093 | Likewise. | |
9094 | * commands/test.c (grub_test_init, grub_test_fini): Likewise. | |
9095 | * commands/timeout.c (grub_timeout_init, grub_timeout_fini): | |
9096 | Likewise. | |
9097 | * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise. | |
fe6b695a | 9098 | * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini): |
6d099807 | 9099 | Likewise. |
9100 | * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini): | |
9101 | Likewise. | |
fe6b695a | 9102 | * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini): |
6d099807 | 9103 | Likewise. |
9104 | * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise. | |
9105 | * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise. | |
9106 | * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise. | |
9107 | * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise. | |
9108 | * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise. | |
9109 | * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise. | |
9110 | * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise. | |
9111 | * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise. | |
9112 | * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise. | |
9113 | * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise. | |
9114 | * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise. | |
9115 | * normal/main.c (grub_normal_init, grub_normal_fini): Likewise. | |
9116 | * partmap/amiga.c (grub_amiga_partition_map_init) | |
9117 | (grub_amiga_partition_map_fini): Likewise. | |
9118 | * partmap/apple.c (grub_apple_partition_map_init) | |
9119 | (grub_apple_partition_map_fini): Likewise. | |
9120 | * partmap/pc.c (grub_pc_partition_map_init) | |
9121 | (grub_pc_partition_map_fini): Likewise. | |
9122 | * partmap/sun.c (grub_sun_partition_map_init, | |
9123 | grub_sun_partition_map_fini): Likewise. | |
9124 | * term/terminfo.c (grub_terminal_init, grub_terminal_fini): | |
9125 | Likewise. | |
9126 | ||
9127 | * util/grub-emu.c: Include <grub_modules_init.h>. | |
9128 | (main): Don't initialize and de-initialize any modules directly, | |
9129 | use `grub_init_all' and `grub_fini_all' instead. | |
9130 | ||
9131 | * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to | |
9132 | `grub_vesafb_mod_init'. | |
9133 | (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated | |
9134 | all users. | |
9135 | * term/i386/pc/vga.c (grub_vga_init): Renamed to | |
9136 | `grub_vga_mod_init'. Updated all users. | |
9137 | (grub_vga_fini): Renamed to `grub_vga_mod_fini'. | |
f19dbdb7 | 9138 | |
6d099807 | 9139 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'. |
9140 | (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New | |
9141 | rules. | |
9142 | ||
9143 | * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'. | |
9144 | Generate a function to initialize the module in utilities. | |
9145 | Updated all callers. | |
9146 | (GRUB_MOD_FINI): Add argument `name'. Generate a function to | |
9147 | initialize the module in utilities. Updated all callers. | |
9148 | ||
9046bcf0 | 9149 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
9150 | ||
9151 | * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI | |
9152 | escape sequence and a literal ^L to clear the screen. | |
9153 | ||
9154 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen | |
9155 | when returning from Open Firmware. | |
9156 | ||
d13ea639 | 9157 | 2005-11-09 Hollis Blanchard <hollis@penguinppc.org> |
9158 | ||
9159 | * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable. | |
9160 | (grub_ofconsole_height): Likewise. | |
9161 | (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width, | |
9162 | manually insert a '\n'. | |
9163 | (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and | |
9164 | `grub_ofconsole_height'. Return early if these are already set. | |
9165 | ||
a8fcf206 | 9166 | 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr> |
9167 | ||
9168 | * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add | |
9169 | `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c', | |
9170 | `normal/execute.c', `normal/lexer.c', `io/gzio.c', | |
9171 | `kern/parser.c', `grub_script.tab.c', `normal/function.c' | |
9172 | and `normal/script.c'. | |
9173 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
9174 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
9175 | (test_mod_SOURCES): New variable. | |
9176 | (test_mod_CFLAGS): Likewise. | |
9177 | (test_mod_LDFLAGS): Likewise. | |
9178 | (pkgdata_MODULES): Add `test.mod'. | |
9179 | (grub_script.tab.c): New rule. | |
9180 | (grub_script.tab.h): Likewise. | |
9181 | ||
b6b32745 | 9182 | 2005-11-07 Marco Gerards <mgerards@xs4all.nl> |
9183 | ||
9184 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
9185 | `commands/test.c', `normal/execute.c', `normal/lexer.c', | |
9186 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
9187 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
9188 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
9189 | (test_mod_SOURCES): New variable. | |
9190 | (test_mod_CFLAGS): Likewise. | |
9191 | (pkgdata_MODULES): Add `test.mod'. | |
9192 | (grub_script.tab.c): New rule. | |
9193 | (grub_script.tab.h): Likewise. | |
9194 | ||
daac212a | 9195 | 2005-11-06 Marco Gerards <mgerards@xs4all.nl> |
9196 | ||
9197 | Add initial scripting support. | |
9198 | ||
9199 | * commands/test.c: New file. | |
9200 | * include/grub/script.h: Likewise. | |
9201 | * normal/execute.c: Likewise. | |
9202 | * normal/function.c: Likewise. | |
9203 | * normal/lexer.c: Likewise. | |
9204 | * normal/parser.y: Likewise. | |
9205 | * normal/script.c: Likewise. | |
9206 | ||
9207 | * configure.ac: Add `AC_PROG_YACC' test. | |
f19dbdb7 | 9208 | |
daac212a | 9209 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c', |
9210 | `normal/execute.c', `normal/lexer.c', `grub_script.tab.c', | |
9211 | `normal/function.c' and `normal/script.c'. | |
9212 | (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c', | |
9213 | `grub_script.tab.c', `normal/function.c' and `normal/script.c'. | |
b6b32745 | 9214 | (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New |
9215 | variables. | |
daac212a | 9216 | (pkgdata_MODULES): Add `test.mod'. |
9217 | (grub_script.tab.c): New rule. | |
9218 | (grub_script.tab.h): Likewise. | |
9219 | ||
9220 | * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'. | |
9221 | ||
9222 | * include/grub/normal.h (grub_test_init): New prototype. | |
9223 | (grub_test_fini): Likewise. | |
f19dbdb7 | 9224 | |
daac212a | 9225 | * normal/command.c: Include <grub/script.h>. |
9226 | (grub_command_execute): Rewritten. | |
f19dbdb7 | 9227 | |
daac212a | 9228 | * util/grub-emu.c (main): Call `grub_test_init' and |
9229 | `grub_test_fini'. | |
9230 | ||
77500b2b | 9231 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
9232 | ||
9233 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs' | |
9234 | to 0. | |
9235 | * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if | |
9236 | there are no pending characters. | |
9237 | ||
e45deb9e | 9238 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
9239 | ||
9240 | * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use | |
9241 | `grub_strndup' to drop device arguments. Replace unnecessary | |
9242 | `grub_strndup' with `grub_strdup'. | |
9243 | ||
4ce32619 | 9244 | 2005-11-03 Hollis Blanchard <hollis@penguinppc.org> |
9245 | ||
9246 | * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the | |
9247 | `debug' environment variable has been set. | |
9248 | ||
9249 | 2005-11-02 Hollis Blanchard <hollis@penguinppc.org> | |
f19dbdb7 | 9250 | |
4ce32619 | 9251 | * Makefile.in (install-local): Use $(DATA). |
9252 | (uninstall): Likewise. | |
9253 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage... | |
9254 | (sbin_UTILITIES): ... to here. | |
9255 | (sbin_SCRIPTS): New variable. | |
9256 | (grub_install_SOURCES): New variable. | |
9257 | * util/powerpc/ieee1275/grub-install.in: New file. | |
9258 | * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove | |
9259 | variable. | |
9260 | (add_segments): Call `grub_util_get_path'. | |
9261 | ||
25fe6f03 | 9262 | 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org> |
9263 | ||
9264 | From Timothy Baldwin: | |
9265 | * commands/ls.c (grub_ls_list_files): Close FILE with | |
9266 | grub_file_close. | |
9267 | * kern/misc.c (grub_vsprintf): Terminate the string S with NUL. | |
9268 | ||
04ccf3ec | 9269 | 2005-10-24 Marco Gerards <mgerards@xs4all.nl> |
9270 | ||
9271 | * include/grub/parser.h: New file. | |
9272 | ||
9273 | * kern/parser.c: Likewise. | |
9274 | ||
9275 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'. | |
9276 | (grub_setup_SOURCES): Likewise. | |
9277 | (grub_probefs_SOURCES): Likewise. | |
9278 | (grub_emu_SOURCES): Likewise. | |
9279 | (kernel_img_HEADERS): Add `parser.h'. | |
9280 | ||
9281 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
9282 | (grub_emu_SOURCES): Add `kern/parser.c'. | |
9283 | (grubof_SOURCES): Likewise. | |
9284 | ||
9285 | * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'. | |
9286 | (grubof_SOURCES): Add `kern/parser.c'. | |
9287 | ||
9288 | * include/grub/misc.h (grub_split_cmdline): Removed prototype. | |
9289 | ||
9290 | * kern/misc.c (grub_split_cmdline): Removed function. | |
9291 | ||
9292 | * kern/rescue.c: Include <grub/parser.h>. | |
9293 | (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead | |
9294 | of `grub_split_cmdline'. | |
9295 | ||
9296 | * normal/command.c: Include <grub/parser.h>. | |
9297 | (grub_command_execute): Use `grub_parser_split_cmdline' instead | |
9298 | of `grub_split_cmdline'. | |
9299 | ||
9300 | * normal/completion.c: Include <grub/parser.h>. | |
9301 | (cmdline_state): New variable. | |
9302 | (iterate_dir): End the filename with a quote depending on the | |
9303 | command line state. | |
9304 | (get_state): new function. | |
9305 | (grub_normal_do_completion): Use `grub_parser_split_cmdline' to | |
9306 | split the arguments and determine the current argument. When the | |
9307 | argument string is not quoted, escape all spaces. | |
9308 | ||
6d8f4b0e | 9309 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
9310 | ||
9311 | * normal/sparc64/setjmp.S: New file. | |
9312 | ||
15cf03ed | 9313 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
9314 | ||
9315 | * include/grub/sparc64/libgcc.h: New file. | |
9316 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9. | |
9317 | (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of | |
9318 | normal/sparc64/setjmp.c. | |
9319 | ||
03e8661a | 9320 | 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr> |
9321 | ||
9322 | * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF. | |
9323 | * kern/sparc64/cache.S: New file. | |
9324 | * kern/sparc64/cache.c: Removed. | |
9325 | * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9. | |
9326 | (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and | |
9327 | -mtune=ultrasparc. | |
9328 | (COMMON_LDFLAGS): Add -melf64_sparc. | |
9329 | (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h. | |
9330 | (grubof_SOURCES): Use cache.S instead of cache.c. | |
9331 | (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker | |
9332 | --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc". | |
9333 | (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod | |
9334 | commented though. | |
9335 | (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c. | |
9336 | (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES) | |
9337 | (linux_mod_CFLAGS): Commented out. | |
9338 | (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented | |
9339 | out because module isn't built. | |
9340 | (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS) | |
9341 | (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS) | |
9342 | (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS) | |
9343 | (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS) | |
9344 | (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS) | |
9345 | (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
9346 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
9347 | (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS) | |
9348 | (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS) | |
9349 | (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES) | |
9350 | (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES) | |
9351 | (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES) | |
9352 | (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES) | |
9353 | (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro. | |
9354 | ||
34eeec8a | 9355 | 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org> |
9356 | ||
9357 | * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and | |
9358 | grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any | |
9359 | longer, because HFS should not be used on PC. | |
9360 | ||
708367a3 | 9361 | 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
9362 | ||
9363 | * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET | |
9364 | consistently within the loop. | |
9365 | ||
6fa1251a | 9366 | 2005-10-15 Marco Gerards <mgerards@xs4all.nl> |
9367 | ||
9368 | * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a | |
9369 | directory can not be read. | |
9370 | ||
4801580b | 9371 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
9372 | ||
9373 | * configure.ac (AC_INIT): Increase the version number to 1.91. | |
9374 | ||
9375 | * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h, | |
9376 | include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and | |
9377 | term/i386/pc/serial.c. | |
9378 | ||
219ad426 | 9379 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
9380 | ||
9381 | * kern/file.c (grub_file_seek): Seeking to an offset equal to a | |
9382 | file size must be permitted. | |
9383 | ||
9384 | * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake | |
9385 | between %ah and %al. | |
9386 | ||
688e5699 | 9387 | 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org> |
9388 | ||
9389 | * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to | |
9390 | grub_uint64_t. | |
9391 | Call the hook with a NUL-terminated filename. | |
9392 | (grub_xfs_mount): Use grub_be_to_cpu32 instead of | |
9393 | grub_cpu_to_be32. | |
9394 | ||
9395 | * kern/term.c (cursor_state): New variable. | |
9396 | (grub_term_set_current): Reset the cursor state on a new | |
9397 | terminal. | |
9398 | (grub_setcursor): Rewritten to use CURSOR_STATE. | |
9399 | (grub_getcursor): New function. | |
9400 | ||
9401 | * include/grub/term.h (grub_getcursor): New prototype. | |
9402 | ||
9403 | * io/gzio.c (test_header): Align BUF for accessing it as 32-bit | |
9404 | integers on ARM. Reported by Timothy Baldwin | |
9405 | <T.E.Baldwin99@members.leeds.ac.uk>. | |
9406 | ||
bb34586c | 9407 | 2005-10-11 Marco Gerards <mgerards@xs4all.nl> |
9408 | ||
9409 | * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not | |
9410 | allocated. | |
9411 | (grub_sfs_dir): Likewise. | |
9412 | ||
9a909877 | 9413 | 2005-10-09 Marco Gerards <mgerards@xs4all.nl> |
9414 | ||
9415 | Add support for the SFS filesystem. | |
9416 | ||
9417 | * fs/sfs.c: New file. | |
9418 | ||
9419 | * DISTLIST: Added `fs/sfs.c'. | |
9420 | ||
9421 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'. | |
9422 | (grub_probefs_SOURCES): Likewise. | |
9423 | (grub_emu_SOURCES): Likewise. | |
9424 | (pkgdata_MODULES): Add `sfs.mod'. | |
9425 | (sfs_mod_SOURCES): New variable. | |
9426 | (sfs_mod_CFLAGS): Likewise. | |
9427 | (sfs_mod_LDFLAGS): Likewise. | |
9428 | ||
9429 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'. | |
9430 | (pkgdata_MODULES): Add `sfs.mod'. | |
9431 | (sfs_mod_SOURCES): New variable. | |
9432 | (sfs_mod_CFLAGS): Likewise. | |
9433 | ||
9434 | * util/grub-emu.c (main): Call `grub_sfs_init' and | |
9435 | `grub_sfs_fini'. | |
9436 | ||
9437 | * include/grub/fs.h (grub_sfs_init): New prototype. | |
9438 | (grub_sfs_fini): Likewise. | |
9439 | ||
57bdbde3 | 9440 | 2005-10-07 Marco Gerards <mgerards@xs4all.nl> |
9441 | ||
9442 | Add support for the AFFS filesystem. | |
9443 | ||
9444 | * fs/affs.c: New file. | |
9445 | ||
9446 | * DISTLIST: Added `fs/affs.c'. | |
9447 | ||
9448 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'. | |
9449 | (grub_probefs_SOURCES): Likewise. | |
9450 | (grub_emu_SOURCES): Likewise. | |
9451 | (pkgdata_MODULES): Add `affs.mod'. | |
9452 | (affs_mod_SOURCES): New variable. | |
9453 | (affs_mod_CFLAGS): Likewise. | |
9454 | (affs_mod_LDFLAGS): Likewise. | |
9455 | ||
9456 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'. | |
9457 | (pkgdata_MODULES): Add `affs.mod'. | |
9458 | (affs_mod_SOURCES): New variable. | |
9459 | (affs_mod_CFLAGS): Likewise. | |
9460 | ||
9461 | * util/grub-emu.c (main): Call `grub_affs_init' and | |
9462 | `grub_affs_fini'. | |
9463 | ||
9464 | * include/grub/fs.h (grub_affs_init): New prototype. | |
9465 | (grub_affs_fini): Likewise. | |
9466 | ||
047b67e0 | 9467 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
9468 | ||
9469 | * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses. | |
9470 | ||
59b8208a | 9471 | 2005-10-01 Marco Gerards <mgerards@xs4all.nl> |
9472 | ||
9473 | * configure.ac: Accept `x86_64' as host_cpu. In that case add | |
9474 | `-m32' to CFLAGS. | |
9475 | ||
9476 | * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when | |
9477 | linking. | |
f19dbdb7 | 9478 | |
59b8208a | 9479 | * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'. |
9480 | (COMMON_LDFLAGS): New variable. | |
9481 | (kernel_img_LDFLAGS): Include `COMMON_FLAGS'. | |
9482 | (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS) | |
9483 | (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS) | |
9484 | (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS) | |
9485 | (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS) | |
9486 | (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS) | |
9487 | (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS) | |
9488 | (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS) | |
9489 | (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS) | |
9490 | (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS) | |
9491 | (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS) | |
9492 | (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS) | |
9493 | (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS) | |
9494 | (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS) | |
9495 | (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New | |
9496 | variables. | |
9497 | (normal_mod_ASFLAGS): Add `-m32'. | |
9498 | ||
9499 | * include/grub/types.h (grub_host_addr_t, grub_host_off_t) | |
9500 | (grub_host_size_t, grub_host_ssize_t): New types. | |
9501 | (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type | |
fe6b695a | 9502 | dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on |
59b8208a | 9503 | `GRUB_HOST_SIZEOF_VOID_P'. |
9504 | ||
9505 | * include/grub/kernel.h (struct grub_module_header): Type of | |
9506 | member offset changed to `grub_host_off_t'. Type of member size | |
9507 | changed to `grub_host_size_t'. | |
9508 | (struct grub_module_info): Type of member offset changed to | |
9509 | `grub_host_off_t'. Type of member size changed to | |
9510 | `grub_host_size_t'. | |
9511 | ||
b4093103 | 9512 | 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org> |
9513 | ||
9514 | Make GRUB's kernel compliant to Multiboot Specification. | |
f19dbdb7 | 9515 | |
b4093103 | 9516 | * kern/i386/pc/startup.S (multiboot_header): New label. |
9517 | (multiboot_entry): Likewise. | |
9518 | (multiboot_trampoline): Likewise. | |
9519 | ||
9520 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
9521 | Increased to 0x4A0. | |
9522 | ||
9523 | * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not | |
9524 | put parentheses after a question mark. | |
9525 | [!GRUB_UTIL] (my_mod): New variable. | |
9526 | ||
9527 | * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini. | |
9528 | ||
b2499b29 | 9529 | 2005-09-28 Marco Gerards <mgerards@xs4all.nl> |
9530 | ||
9531 | Adds support for the XFS filesystem. Btrees are not supported | |
9532 | yet. | |
9533 | ||
9534 | * fs/xfs.c: New file. | |
9535 | ||
9536 | * DISTLIST: Added `fs/xfs.c'. | |
9537 | ||
9538 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'. | |
9539 | (grub_probefs_SOURCES): Likewise. | |
9540 | (grub_emu_SOURCES): Likewise. | |
9541 | (pkgdata_MODULES): Add `xfs.mod'. | |
9542 | (xfs_mod_SOURCES): New variable. | |
9543 | (xfs_mod_CFLAGS): Likewise. | |
9544 | ||
9545 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'. | |
9546 | (pkgdata_MODULES): Add `xfs.mod'. | |
9547 | (xfs_mod_SOURCES): New variable. | |
9548 | (xfs_mod_CFLAGS): Likewise. | |
9549 | ||
9550 | * util/grub-emu.c (main): Call `grub_xfs_init' and | |
9551 | `grub_xfs_fini'. | |
9552 | ||
9553 | * include/grub/fs.h (grub_xfs_init): New prototype. | |
9554 | (grub_xfs_fini): Likewise. | |
9555 | ||
f19dbdb7 | 9556 | |
83d37a62 | 9557 | 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi> |
9558 | ||
9559 | * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed | |
9560 | color modes, allow greater than 16 colors to be configured as | |
9561 | a default palette. | |
9562 | ||
47d2d65e | 9563 | 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org> |
9564 | ||
9565 | * normal/completion.c (complete_arguments): Add the qualifier | |
9566 | const into OPTIONS. | |
9567 | ||
9568 | From Omniflux <omniflux+lists@omniflux.com>: | |
9569 | * include/grub/terminfo.h: New file. | |
9570 | * include/grub/tparm.h: Likewise. | |
9571 | * include/grub/i386/pc/serial.h: Likewise. | |
9572 | * term/terminfo.c: Likewise. | |
9573 | * term/tparm.c: Likewise. | |
9574 | * term/i386/pc/serial.c: Likewise. | |
9575 | * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and | |
9576 | serial.mod. | |
9577 | (terminfo_mod_SOURCES): New variable. | |
9578 | (terminfo_mod_CFLAGS): Likewise. | |
9579 | (serial_mod_SOURCES): Likewise. | |
9580 | (serial_mod_CFLAGS): Likewise. | |
9581 | ||
48b671ff | 9582 | 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org> |
9583 | ||
9584 | * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and | |
9585 | boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S | |
9586 | and kern/powerpc/ieee1275/cmain.c, respectively. | |
9587 | ||
9588 | * boot/powerpc/ieee1275/crt0.S: Moved to ... | |
9589 | * kern/powerpc/ieee1275/crt0.S: ... here. | |
9590 | ||
9591 | * boot/powerpc/ieee1275/cmain.c: Moved to ... | |
9592 | * kern/powerpc/ieee1275/cmain.c: ... here. | |
f19dbdb7 | 9593 | |
48b671ff | 9594 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use |
9595 | kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c | |
9596 | instead of boot/powerpc/ieee1275/crt0.S and | |
9597 | boot/powerpc/ieee1275/cmain.c, respectively. | |
9598 | ||
9599 | * boot/i386/pc/boot.S (lba_mode): Do not store the total number of | |
9600 | sectors. It was not used anyway. | |
9601 | ||
09fc77a7 | 9602 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
9603 | ||
9604 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix | |
9605 | `unused parameter' warning. | |
9606 | ||
003789c7 | 9607 | 2005-08-30 Hollis Blanchard <hollis@penguinppc.org> |
9608 | ||
9609 | * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New | |
9610 | function. | |
9611 | (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as | |
9612 | getcharwidth. | |
9613 | ||
67f44c86 | 9614 | 2005-08-28 Marco Gerards <metgerards@student.han.nl> |
9615 | ||
9616 | * include/grub/normal.h (enum grub_completion_type): Added | |
9617 | `GRUB_COMPLETION_TYPE_ARGUMENT'. | |
9618 | ||
9619 | * normal/cmdline.c (print_completion): Handle | |
9620 | the `GRUB_COMPLETION_TYPE_ARGUMENT' type. | |
9621 | * normal/menu_entry.c (store_completion): Likewise. | |
9622 | ||
9623 | * normal/completion.c (complete_arguments): New function. | |
9624 | (grub_normal_do_completion): Call `complete_arguments' when the | |
9625 | current words start with a dash. | |
9626 | ||
0b5abe02 | 9627 | 2005-08-27 Marco Gerards <metgerards@student.han.nl> |
9628 | ||
9629 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use | |
9630 | `gzio.mod' instead of `io.mod'). | |
9631 | ||
d9864ee1 | 9632 | 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org> |
9633 | ||
9634 | * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh. | |
9635 | (DISTDIRS): Added io and video. | |
9636 | Rewrite the search routine to make an output consistently. | |
9637 | ||
9638 | * DISTLIST: Added conf/sparc64-ieee1275.mk, | |
9639 | conf/sparc64-ieee1275.rmk, include/grub/gzio.h, | |
9640 | include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h, | |
9641 | io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c, | |
9642 | kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and | |
9643 | util/powerpc/ieee1275/misc.c. | |
f19dbdb7 | 9644 | |
d9864ee1 | 9645 | * include/grub/gzio.h: New file. |
9646 | * io/gzio.c: Likewise. | |
f19dbdb7 | 9647 | |
d9864ee1 | 9648 | * kern/file.c (grub_file_close): Call grub_device_close only if |
9649 | FILE->DEVICE is not NULL. | |
9650 | ||
9651 | * include/grub/mm.h [!NULL] (NULL): New macro. | |
9652 | ||
9653 | * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant. | |
9654 | ||
9655 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
9656 | (pkgdata_MODULES): Added gzio.mod. | |
9657 | (gzio_mod_SOURCES): New variable. | |
9658 | (gzio_mod_CFLAGS): Likewise. | |
9659 | ||
9660 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c. | |
9661 | (pkgdata_MODULES): Added gzio.mod. | |
9662 | (gzio_mod_SOURCES): New variable. | |
9663 | (gzio_mod_CFLAGS): Likewise. | |
9664 | ||
9665 | * commands/cat.c: Include grub/gzio.h. | |
9666 | (grub_cmd_cat): Use grub_gzfile_open instead of | |
9667 | grub_file_open. | |
f19dbdb7 | 9668 | |
d9864ee1 | 9669 | * commands/cmp.c: Include grub/gzio.h. |
9670 | (grub_cmd_cmp): Use grub_gzfile_open instead of | |
9671 | grub_file_open. | |
9672 | ||
9673 | * loader/i386/pc/multiboot.c: Include grub/gzio.h. | |
9674 | (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of | |
9675 | grub_file_open. | |
9676 | (grub_rescue_cmd_module): Likewise. | |
9677 | ||
fa46f4b5 | 9678 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
9679 | ||
9680 | * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be | |
9681 | kern/sparc64/ieee1275/init.c because it contains _start. | |
9682 | * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk. | |
9683 | ||
e9211b5d | 9684 | 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> |
9685 | ||
9686 | * configure.ac: Add support for sparc64 host with ieee1275 | |
9687 | firmware. | |
9688 | * configure: Generated from configure.ac. | |
9689 | * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t | |
9690 | instead of int. | |
9691 | (grub_ofdisk_read): Likewise. | |
9692 | (grub_ofdisk_open): Use %p to print pointer values, and cast the | |
9693 | pointers as (void *) to remove a warning. | |
9694 | (grub_ofdisk_close): Likewise. | |
9695 | (grub_ofdisk_read): Likewise. | |
9696 | * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never | |
9697 | returns, so make it return void to remove a warning. | |
9698 | * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit): | |
9699 | Corresponding prototype change. | |
9700 | * kern/mm.c (grub_mm_init_region): Use %p to print pointer | |
9701 | values, and cast the pointers as (void *) to remove a warning. | |
9702 | (grub_mm_dump): Likewise. | |
9703 | * conf/sparc64-ieee1275.mk: New file. | |
9704 | * conf/sparc64-ieee1275.rmk: Likewise. | |
9705 | * include/grub/sparc64/setjmp.h: Likewise. | |
9706 | * include/grub/sparc64/types.h: Likewise. | |
9707 | * include/grub/sparc64/ieee1275/console.h: Likewise. | |
9708 | * include/grub/sparc64/ieee1275/ieee1275.h: Likewise. | |
9709 | * include/grub/sparc64/ieee1275/kernel.h: Likewise. | |
9710 | * include/grub/sparc64/ieee1275/time.h: Likewise. | |
9711 | * kern/sparc64/cache.c: Likewise. | |
9712 | * kern/sparc64/dl.c: Likewise. | |
9713 | * kern/sparc64/ieee1275/init.c: Likewise. | |
9714 | * kern/sparc64/ieee1275/openfw.c: Likewise. | |
9715 | ||
385c6a92 | 9716 | 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
9717 | ||
9718 | * util/console.c (grub_ncurses_putchar): If C is greater than | |
9719 | 0x7f, set C to a question mark. | |
9720 | (grub_ncurses_getcharwidth): New function. | |
9721 | (grub_ncurses_term): Specify grub_ncurses_getcharwidth as | |
9722 | getcharwidth. | |
9723 | ||
9724 | * normal/menu.c (print_entry): Made aware of Unicode. First, | |
9725 | convert TITLE to UCS-4, and predict the cursor position by | |
9726 | grub_getcharwidth. | |
9727 | ||
9728 | * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier | |
9729 | const to SRC. | |
9730 | * kern/misc.c (grub_utf16_to_utf8): Likewise. | |
9731 | ||
16ccb8b1 | 9732 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
9733 | ||
9734 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify | |
9735 | the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
9736 | grub_strcat. | |
9737 | ||
9738 | * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot | |
9739 | file by the option BOOT_IMAGE. Use grub_stpcpy instead of | |
9740 | grub_strcpy and grub_strlen. Take it into account that a space | |
9741 | character is inserted as a delimiter. | |
9742 | ||
6a85ce79 | 9743 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
9744 | ||
9745 | * partmap/pc.c (pc_partition_map_iterate): Include the value of an | |
fe6b695a | 9746 | invalid magic in the error. |
6a85ce79 | 9747 | |
9748 | * commands/search.c: New file. | |
f19dbdb7 | 9749 | |
6a85ce79 | 9750 | * util/grub-emu.c (main): Call grub_search_init and |
9751 | grub_search_fini. | |
9752 | ||
9753 | * kern/rescue.c (grub_rescue_print_disks): Removed. | |
9754 | (grub_rescue_print_devices): New function. | |
9755 | (grub_rescue_cmd_ls): Use grub_device_iterate with | |
9756 | grub_rescue_print_devices instead of grub_disk_dev_iterate with | |
9757 | grub_rescue_print_disks. | |
9758 | ||
9759 | * kern/partition.c (grub_partition_iterate): Return the result of | |
9760 | PARTMAP->ITERATE instead of GRUB_ERRNO. | |
9761 | ||
9762 | * kern/device.c: Include grub/partition.h. | |
9763 | (grub_device_iterate): New function. | |
9764 | ||
9765 | * include/grub/partition.h (grub_partition_iterate): Return int | |
9766 | instead of grub_err_t. | |
9767 | ||
9768 | * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New | |
9769 | prototype. | |
9770 | [GRUB_UTIL] (grub_search_fini): Likewise. | |
9771 | ||
9772 | * include/grub/device.h (grub_device_iterate): New prototype. | |
9773 | ||
9774 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
9775 | commands/search.c. | |
9776 | (pkgdata_MODULES): Added search.mod. | |
9777 | (search_mod_SOURCES): New variable. | |
9778 | (search_mod_CFLAGS): Likewise. | |
9779 | ||
9780 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c. | |
9781 | (pkgdata_MODULES): Added search.mod. | |
9782 | (search_mod_SOURCES): New variable. | |
9783 | (search_mod_CFLAGS): Likewise. | |
9784 | ||
9785 | * commands/ls.c (grub_ls_list_disks): Renamed to ... | |
9786 | (grub_ls_list_devices): ... this, and use grub_device_iterate. | |
9787 | All callers changed. | |
9788 | ||
9789 | * DISTLIST: Added commands/search.c. | |
9790 | ||
ef095434 | 9791 | 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org> |
9792 | ||
9793 | * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the | |
9794 | conversion. | |
9795 | (grub_getcharwidth): New function. | |
9796 | ||
9797 | * kern/misc.c (grub_utf8_to_ucs4): New function. | |
9798 | ||
9799 | * include/grub/term.h (struct grub_term): Added a new member | |
9800 | "getcharwidth". | |
9801 | (grub_getcharwidth): New prototype. | |
9802 | ||
9803 | * include/grub/misc.h (grub_utf8_to_ucs4): New prototype. | |
9804 | ||
9805 | * term/i386/pc/console.c (map_char): New function. Segregated from | |
9806 | grub_console_putchar. | |
9807 | (grub_console_putchar): Use map_char. | |
9808 | (grub_console_getcharwidth): New function. | |
9809 | (grub_console_term): Specified grub_console_getcharwidth as | |
9810 | getcharwidth. | |
9811 | ||
9812 | * term/i386/pc/vga.c (grub_vga_getcharwidth): New function. | |
9813 | (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth. | |
9814 | ||
9815 | * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return | |
9816 | GRUB_ERRNO. | |
9817 | (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely | |
9818 | on grub_strtoul completely. | |
9819 | (write_char): Declare local variables in the beginning of the | |
9820 | function. | |
9821 | (grub_vesafb_getcharwidth): New function. | |
9822 | (grub_vesafb_term): Specified grub_vesafb_getcharwidth as | |
9823 | getcharwidth. | |
9824 | ||
1f0a95e4 | 9825 | 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org> |
9826 | ||
9827 | * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and | |
9828 | commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and | |
9829 | commands/i386/pc/vbetest.c. | |
9830 | ||
9831 | * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL, | |
9832 | call grub_vbe_get_controller_info again, because the returned | |
9833 | information is volatile. | |
9834 | (grub_vbe_set_video_mode): Mostly rewritten. | |
9835 | (grub_vbe_get_video_mode): Use grub_vbe_probe and use | |
9836 | grub_vbe_status_t correctly. | |
9837 | (grub_vbe_get_video_mode_info): Likewise. | |
9838 | (grub_vbe_set_pixel_rgb): Use a switch statement rather than | |
9839 | several if statements. | |
9840 | ||
9841 | * commands/i386/pc/vbe_list_modes.c: Renamed to ... | |
9842 | * commands/i386/pc/vbeinfo.c: ... this. | |
9843 | ||
9844 | * commands/i386/pc/vbe_test.c: Renamed to ... | |
9845 | * commands/i386/pc/vbetest.c: ... this. | |
9846 | ||
9847 | * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to | |
9848 | ... | |
9849 | (grub_cmd_vbeinfo): ... this. Save video modes before | |
9850 | iterating. Skip a video mode, if it is not available, not enough | |
9851 | information is given or it is monochrome. Show the memory | |
9852 | model. Leave the interpretation of MODEVAR to grub_strtoul | |
9853 | completely. | |
9854 | (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo. | |
9855 | (GRUB_MOD_FINI): Likewise. | |
9856 | ||
9857 | * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ... | |
9858 | (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use | |
9859 | grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a | |
9860 | duplicated grub_env_get. Leave the interpretation of MODEVAR to | |
9861 | grub_strtoul completely. | |
9862 | (real2pm): Removed. | |
9863 | (GRUB_MOD_INIT): Rename vbe_test to vbetest. | |
9864 | (GRUB_MOD_FINI): Likewise. | |
9865 | ||
9866 | * normal/misc.c: Include grub/mm.h. | |
9867 | ||
9868 | * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and | |
9869 | vbe_list_modes with vbetest.mod and vbeinfo.mod. | |
9870 | (vbe_list_modes_mod_SOURCES): Removed. | |
9871 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
9872 | (vbe_test_mod_SOURCES): Likewise. | |
9873 | (vbe_test_mod_CFLAGS): Likewise. | |
9874 | (vbeinfo_mod_SOURCES): New variable. | |
9875 | (vbeinfo_mod_CFLAGS): Likewise. | |
9876 | (vbetest_mod_SOURCES): Likewise. | |
9877 | (vbetest_mod_CFLAGS): Likewise. | |
9878 | ||
992ffbbe | 9879 | 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org> |
9880 | ||
9881 | * normal/misc.c: New file. | |
9882 | ||
9883 | * DISTLIST: Added normal/misc.c. | |
f19dbdb7 | 9884 | |
992ffbbe | 9885 | * partmap/amiga.c (amiga_partition_map_iterate): Add an argument |
9886 | DISK to HOOK. Call HOOK with DISK. | |
9887 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
9888 | * partmap/pc.c (pc_partition_map_iterate): Likewise. | |
9889 | * partmap/sun.c (sun_partition_map_iterate): Likewise. | |
9890 | ||
9891 | * normal/menu_entry.c (struct screen): Added a new member | |
9892 | "completion_shown". | |
9893 | (completion_buffer): New global variable. | |
9894 | (make_screen): Set SCREEN->COMPLETION_SHOWN to zero. | |
9895 | (store_completion): New function. | |
9896 | (complete): Likewise. | |
9897 | (clear_completions): Likewise. | |
9898 | (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero, | |
9899 | call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is | |
9900 | a tab, call complete. | |
9901 | ||
9902 | * normal/completion.c (disk_dev): Removed. | |
9903 | (print_simple_completion): Likewise. | |
9904 | (print_partition_completion): Likewise. | |
9905 | (print_func): New global variable. | |
9906 | (add_completion): Do not take the arguments WHAT or PRINT any | |
9907 | longer. Added a new argument TYPE. Instead of printing directly, | |
9908 | call PRINT_FUNC if not NULL. | |
9909 | All callers changed. | |
9910 | (complete_device): Use a local variable DEV instead of | |
9911 | DISK_DEV. Do not move CURRENT_WORD to the end of a device name. | |
9912 | (grub_normal_do_completion): Take a new argument HOOK. Do not | |
9913 | initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an | |
9914 | empty string, return NULL instead. | |
9915 | All callers changed. | |
9916 | ||
9917 | * normal/cmdline.c (print_completion): New function. | |
9918 | ||
9919 | * kern/partition.c (grub_partition_iterate): Add an argument DISK | |
9920 | to HOOK. | |
9921 | All callers changed. | |
9922 | ||
9923 | * kern/disk.c (grub_print_partinfo): Removed. | |
9924 | ||
9925 | * include/grub/partition.h (struct grub_partition_map): Add a new | |
9926 | argument DISK into HOOK of ITERATE. | |
9927 | (grub_partition_iterate): Add a new argument DISK to HOOK. | |
9928 | ||
9929 | * include/grub/normal.h (enum grub_completion_type): New enum. | |
9930 | (grub_completion_type_t): New type. | |
9931 | (GRUB_COMPLETION_TYPE_COMMAND): New constant. | |
9932 | (GRUB_COMPLETION_TYPE_DEVICE): Likewise. | |
9933 | (GRUB_COMPLETION_TYPE_PARTITION): Likewise. | |
9934 | (GRUB_COMPLETION_TYPE_FILE): Likewise. | |
9935 | (grub_normal_do_completion): Added a new argument HOOK. | |
9936 | (grub_normal_print_device_info): New prototype. | |
9937 | ||
9938 | * include/grub/disk.h (grub_print_partinfo): Removed. | |
9939 | ||
9940 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c. | |
9941 | (normal_mod_SOURCES): Likewise. | |
9942 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
9943 | (normal_mod_SOURCES): Likewise. | |
9944 | ||
9945 | * commands/ls.c (grub_ls_list_disks): Use | |
9946 | grub_normal_print_device_info instead of grub_print_partinfo. Free | |
9947 | PNAME. | |
9948 | (grub_ls_list_files): Use grub_normal_print_device_info instead of | |
9949 | duplicating the code. | |
9950 | ||
0bd41162 | 9951 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
9952 | ||
9953 | * commands/i386/pc/vbe_list_modes.c: Update source formatting to | |
f19dbdb7 | 9954 | follow GCS more precisely. |
9955 | * commands/i386/pc/vbe_test.c: Likewise. | |
9956 | * include/grub/i386/pc/vbe.h: Likewise. | |
9957 | * term/i386/pc/vesafb.c: Likewise. | |
9958 | * video/i386/pc/vbe.c: Likewise. | |
0bd41162 | 9959 | |
6323696a | 9960 | 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi> |
9961 | ||
9962 | * DISTLIST: Added term/i386/pc/vesafb.c | |
9963 | DISTLIST: Added video/i386/pc/vbe.c | |
9964 | DISTLIST: Added commands/i386/pc/vbe_list_modes.c. | |
9965 | DISTLIST: Added commands/i386/pc/vbe_test.c. | |
9966 | * commands/i386/pc/vbe_list_modes.c: New file. | |
9967 | * commands/i386/pc/vbe_test.c: Likewise. | |
9968 | * term/i386/pc/vesafb.c: Likewise. | |
9969 | * video/i386/pc/vbe.c: Likewise. | |
9970 | * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define. | |
9971 | (grub_vbe_probe) Added prototype. | |
9972 | (grub_vbe_set_video_mode) Likewise. | |
9973 | (grub_vbe_get_video_mode) Likewise. | |
9974 | (grub_vbe_get_video_mode_info) Likewise. | |
9975 | (grub_vbe_set_pixel_rgb) Likewise. | |
9976 | (grub_vbe_set_pixel_index) Likewise. | |
9977 | * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod. | |
9978 | (pkgdata_MODULES): Added vesafb.mod. | |
9979 | (pkgdata_MODULES): Added vbe_list_modes.mod. | |
9980 | (pkgdata_MODULES): Added vbe_test.mod. | |
9981 | (vbe_mod_SOURCES): Added. | |
9982 | (vbe_mod_CFLAGS): Likewise. | |
9983 | (vesafb_mod_SOURCES): Likewise. | |
9984 | (vesafb_mod_CFLAGS): Likewise. | |
9985 | (vbe_list_modes_mod_SOURCES): Likewise. | |
9986 | (vbe_list_modes_mod_CFLAGS): Likewise. | |
9987 | (vbe_test_mod_SOURCES): Likewise. | |
9988 | (vbe_test_mod_CFLAGS): Likewise. | |
9989 | ||
0a74e62f | 9990 | 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org> |
9991 | ||
0a74e62f | 9992 | * normal/command.c (grub_command_execute): If INTERACTIVE is |
9993 | false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print | |
9994 | CMDLINE. Disable the pager if INTERACTIVE is true. | |
9995 | All callers are changed. | |
9996 | ||
9997 | * normal/main.c (grub_normal_execute): Read command.lst and fs.lst | |
9998 | before reading a config file. | |
9999 | * normal/main.c (read_config_file): Even if a command is not | |
10000 | found, register it if it is within an entry. | |
10001 | ||
10002 | * util/grub-emu.c: Include sys/types.h and unistd.h. | |
10003 | (options): Added --hold. | |
10004 | (struct arguments): Added a new member "hold". | |
10005 | (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is | |
10006 | missing. | |
10007 | (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is | |
10008 | cleared by a debugger, if it is not zero. | |
10009 | ||
10010 | * include/grub/normal.h (grub_command_execute): Add an argument | |
10011 | INTERACTIVE. | |
10012 | ||
e51f85ae | 10013 | 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi> |
10014 | ||
10015 | * DISTLIST: Added include/grub/i386/pc/vbe.h. | |
10016 | ||
e9c6f39b | 10017 | 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org> |
10018 | ||
10019 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test | |
10020 | program with another one, because the old one didn't detect a bug | |
10021 | in gcc-3.4. Always use regparm 2, because the new test is still | |
10022 | not enough for gcc-4.0. Someone must investigate a simple test | |
10023 | case which detects a bug in gcc-4.0. | |
10024 | ||
8de3495c | 10025 | 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org> |
10026 | ||
10027 | * DISTLIST: Added normal/completion.c. | |
10028 | ||
10029 | * normal/completion.c: New file. | |
f19dbdb7 | 10030 | |
8de3495c | 10031 | * term/i386/pc/console.c (grub_console_getwh): New function. |
10032 | (grub_console_term): Assign grub_console_getwh to getwh. | |
10033 | ||
10034 | * normal/cmdline.c (grub_tab_complete): Removed. Now the same | |
10035 | function is defined in normal/completion.c as | |
10036 | grub_normal_do_completion. | |
10037 | (grub_cmdline_get): Use grub_normal_do_completion instead of | |
10038 | grub_tab_complete. | |
10039 | ||
10040 | * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK | |
10041 | returns non-zero, otherwise return 0. | |
10042 | (grub_partition_iterate): First, probe the partition map. Then, | |
10043 | call ITERATE only for this partition map. | |
10044 | ||
10045 | * kern/misc.c (grub_strncmp): Rewritten. | |
10046 | ||
10047 | * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE | |
10048 | returns non-zero. Otherwise return 0. | |
10049 | ||
10050 | * include/grub/partition.h (grub_partition_map_iterate): Return | |
10051 | int instead of void. | |
10052 | ||
10053 | * include/grub/normal.h (grub_normal_do_completion): New prototype. | |
10054 | ||
10055 | * include/grub/misc.h (grub_strncmp): Change the type of N to | |
10056 | grub_size_t. | |
10057 | ||
10058 | * include/grub/disk.h (grub_disk_dev_iterate): Return int instead | |
10059 | of void. | |
10060 | ||
10061 | * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to | |
fe6b695a | 10062 | unsigned explicitly before comparing it with I. |
8de3495c | 10063 | |
10064 | * kern/main.c (grub_env_write_root): Add the attribute unused into | |
10065 | VAR. | |
10066 | ||
10067 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
10068 | normal/completion.c. | |
10069 | (normal_mod_SOURCES): Likewise. | |
10070 | * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise. | |
10071 | (normal_mod_SOURCES): Likewise. | |
10072 | ||
10073 | * normal/command.c (grub_iterate_commands): If ITERATE returns | |
10074 | non-zero, return one immediately. | |
10075 | ||
e85e144b | 10076 | 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi> |
10077 | ||
10078 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h. | |
10079 | * kern/i386/pc/startup.S: Updated Global Descriptor table's | |
10080 | descriptions. | |
10081 | (grub_vbe_get_controller_info): New function. | |
10082 | (grub_vbe_get_mode_info): Likewise. | |
10083 | (grub_vbe_set_mode): Likewise. | |
10084 | (grub_vbe_get_mode): Likewise. | |
10085 | (grub_vbe_set_memory_window): Likewise. | |
10086 | (grub_vbe_get_memory_window): Likewise. | |
10087 | (grub_vbe_set_scanline_length): Likewise. | |
10088 | (grub_vbe_get_scanline_length): Likewise. | |
10089 | (grub_vbe_set_display_start): Likewise. | |
10090 | (grub_vbe_get_display_start): Likewise. | |
10091 | (grub_vbe_set_palette_data): Likewise. | |
10092 | * include/grub/i386/pc/vbe.h: New file. | |
10093 | ||
c46153d2 | 10094 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
10095 | ||
10096 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
10097 | kern/ieee1275/of.c with kern/ieee1275/ieee1275.c. | |
10098 | * DISTLIST: Likewise. | |
10099 | * kern/ieee1275/of.c: Moved to ... | |
10100 | * kern/ieee1275/ieee1275.c: ... here. | |
10101 | ||
0cb90c45 | 10102 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
10103 | ||
10104 | * term/ieee1275/ofconsole.c: Include <grub/mm.h>. | |
10105 | (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t. | |
10106 | Pass 0 as `end' parameter to grub_strtoul(). | |
10107 | ||
a19fb360 | 10108 | 2005-08-08 Hollis Blanchard <hollis@penguinppc.org> |
10109 | ||
10110 | * include/grub/powerpc/ieee1275/console.h: Do not include | |
10111 | <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE | |
10112 | ifdef. | |
10113 | (grub_console_cur_color): Remove i386-specific prototype. | |
10114 | (grub_console_real_putchar): Likewise. | |
10115 | (grub_console_checkkey): Likewise. | |
10116 | (grub_console_getkey): Likewise. | |
10117 | (grub_console_getxy): Likewise. | |
10118 | (grub_console_gotoxy): Likewise. | |
10119 | (grub_console_cls): Likewise. | |
10120 | (grub_console_setcursor): Likewise. | |
10121 | * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>. | |
10122 | Include <grub/machine/console.h>. | |
10123 | * term/ieee1275/ofconsole.c: Likewise. | |
10124 | ||
4ac9bd04 | 10125 | 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org> |
10126 | ||
10127 | * Makefile.in (LIBLZO): New variable. | |
10128 | ||
10129 | * configure.ac: Check for LZO version 2. | |
10130 | ||
10131 | * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include | |
10132 | lzo/lzo1x.h instead of lzo1x.h. | |
10133 | ||
10134 | * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead | |
10135 | of -llzo. | |
10136 | ||
10137 | * util/i386/pc/grub-setup.c (main): Do not free PREFIX | |
10138 | twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>. | |
10139 | ||
10140 | * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after | |
10141 | copying the data from PARTITION to P. | |
10142 | ||
f4917dfd | 10143 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
10144 | ||
10145 | * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is | |
10146 | negative, unload the module. | |
10147 | ||
10148 | * util/i386/pc/grub-setup.c (setup): The name of the PC partition | |
10149 | map is "pc_partition_map" but not "pc". | |
10150 | (usage): Fix the description. The options are --boot-image and | |
10151 | --core-image but not --boot-file or --core-file. | |
10152 | (main): If not specified explicitly, make BOOT_FILE and CORE_FILE | |
10153 | based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or | |
10154 | DEFAULT_DIRECTORY. | |
10155 | ||
10156 | * util/i386/pc/grub-install.in: Do not specify --boot-file or | |
10157 | --core-file. Specify INSTALL_DEVICE as an argument. | |
10158 | ||
10159 | * util/console.c: Include config.h. | |
10160 | [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h. | |
10161 | [HAVE_NCURSES_H]: Include ncurses.h. | |
10162 | [HAVE_CURSES_H]: Include curses.h. | |
10163 | [!A_NORMAL] (A_NORMAL): Defined as zero. | |
10164 | [!A_STANDOUT] (A_STANDOUT): Likewise. | |
10165 | ||
10166 | * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of | |
10167 | -lncurses. | |
10168 | * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise. | |
10169 | ||
10170 | * configure.ac: Check for curses libraries and headers. | |
10171 | ||
10172 | * Makefile.in (LIBCURSES): New variable. | |
10173 | ||
10174 | * genmk.rb (Script::rule): Set the executable bits. | |
10175 | ||
10176 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The | |
10177 | name of the PC partition map is "pc_partition_map" but not "pc". | |
10178 | ||
0e143073 | 10179 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
10180 | ||
10181 | * util/i386/pc/grub-install.in (grub_probefs): New variable. | |
10182 | (modules): Likewise. | |
10183 | (usage): Added descriptions for --modules and --grub-probefs. | |
10184 | Handle --modules and --grub-probefs. Save the arguments in MODULES | |
10185 | and GRUB_PROBEFS, respectively. | |
10186 | Auto-detect a filesystem module against GRUBDIR. If the result is | |
10187 | empty and modules are not specified explicitly, abort the | |
10188 | installation. Add the result to MODULES. | |
10189 | ||
10190 | * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c, | |
10191 | disk/powerpc/ieee1275/ofdisk.c, | |
10192 | include/grub/powerpc/ieee1275/init.h and | |
10193 | term/powerpc/ieee1275/ofconsole.c. | |
10194 | Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and | |
10195 | term/ieee1275/ofconsole.c. | |
10196 | ||
10197 | * include/grub/powerpc/ieee1275/console.h: Resurrected. | |
10198 | ||
10199 | * COPYING: Upgraded to the latest version. Only the address of the | |
10200 | FSF office has changed. | |
f19dbdb7 | 10201 | |
efd6e6d5 | 10202 | 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> |
10203 | ||
10204 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced | |
10205 | kern/ieee1275.c with kern/ieee1275/of.c. | |
10206 | ||
10207 | * kern/ieee1275.c: Moved to ... | |
10208 | * kern/ieee1275/of.c: ... here. | |
10209 | ||
8ceafda2 | 10210 | 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org> |
10211 | ||
10212 | * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for | |
fe6b695a | 10213 | readability. |
8ceafda2 | 10214 | |
10215 | * config.guess: Updated to the latest version from gnulib. | |
10216 | * config.sub: Likewise. | |
10217 | * install.sh: Likewise. | |
10218 | * mkinstalldirs: Likewise. | |
10219 | ||
10220 | * include/grub/console.h: Removed. This file is arch-specific. Do | |
10221 | not put this in include/grub. | |
10222 | ||
10223 | * include/grub/i386/pc/console.h: Resurrected. | |
10224 | ||
10225 | * util/console.c: Include grub/machine/console.h instead of | |
10226 | grub/console.h. | |
10227 | * util/grub-emu.c: Likewise. | |
10228 | ||
267f6cd9 | 10229 | 2005-08-04 Marco Gerards <metgerards@student.han.nl> |
10230 | ||
10231 | * kern/term.c (grub_putcode): Use `grub_getwh' instead of | |
10232 | hardcoded value. | |
f19dbdb7 | 10233 | |
267f6cd9 | 10234 | From Vincent Pelletier <subdino2004@yahoo.fr> |
10235 | * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT): | |
10236 | Redefined to use grub_getwh. | |
10237 | (grub_term): New member named getwh. | |
10238 | (grub_getwh): New prototype. | |
10239 | * kern/term.c (grub_getwh): New function. | |
10240 | * term/i386/pc/console.c (grub_console_getwh): New function. | |
10241 | (grub_console_term): New member `getwh'. | |
10242 | * term/i386/pc/vga.c (grub_vga_getwh): New function. | |
10243 | (grub_vga_term): New member `getwh'. | |
0b5abe02 | 10244 | * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use |
267f6cd9 | 10245 | grub_ssize_t. |
10246 | (grub_ofconsole_getw): New function. | |
10247 | (grub_ofconsole_init): Use grub_ssize_t and unsigned char. | |
10248 | (grub_ofconsole_term): New field named getwh and new initial | |
10249 | value. | |
10250 | ||
3be7266d | 10251 | 2005-08-03 Hollis Blanchard <hollis@penguinppc.org> |
10252 | ||
10253 | * include/grub/powerpc/ieee1275/ieee1275.h: Move ... | |
10254 | * include/grub/ieee1275/ieee1275.h: ... to here. All users updated. | |
10255 | Move `abort', `grub_reboot', and `grub_halt' prototypes ... | |
10256 | * include/grub/powerpc/ieee1275/kernel.h: ... to here. | |
10257 | * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead | |
10258 | of <grub/machine/ieee1275.h>. | |
10259 | * commands/ieee1275/reboot.c: Likewise. | |
10260 | * boot/powerpc/ieee1275/ieee1275.c: Move ... | |
10261 | * kern/ieee1275.c: ... to here. All users updated. Change all | |
10262 | parameter structs to use new type `grub_ieee1275_cell_t'. | |
10263 | * term/powerpc/ieee1275/ofconsole.c: Move ... | |
10264 | * term/ieee1275/ofconsole.c: ... to here. All users updated. | |
10265 | * disk/powerpc/ieee1275/ofdisk.c: Move ... | |
10266 | * disk/ieee1275/ofdisk.c: ... to here. All users updated. | |
10267 | * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type | |
10268 | to return int. | |
10269 | * include/grub/i386/pc/console.h: Move to include/grub/console.h. | |
10270 | Remove unused prototypes. All users updated. | |
10271 | * include/grub/powerpc/ieee1275/console.h: Removed. | |
10272 | * include/grub/powerpc/ieee1275/ieee1275.h: Define | |
10273 | `grub_ieee1275_cell_t'. | |
10274 | * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>. | |
10275 | Cast comparisons with -1 to the correct type. | |
10276 | * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter | |
10277 | type to match `grub_ieee1275_entry_fn'. | |
10278 | ||
8b5f3938 | 10279 | 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org> |
10280 | ||
10281 | * DISTLIST: Added util/i386/pc/grub-probefs.c. | |
10282 | ||
10283 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs. | |
10284 | (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and | |
10285 | partmap/sun.c. | |
10286 | (grub_probefs_SOURCES): New variable. | |
10287 | ||
10288 | * util/i386/pc/grub-probefs.c: New file. | |
10289 | ||
10290 | * util/i386/pc/grub-setup.c (main): Call | |
10291 | grub_pc_partition_map_init, grub_ufs_init, grub_minix_init, | |
10292 | grub_hfs_init and grub_jfs_init to initialize the system. Call | |
10293 | grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and | |
10294 | grub_pc_partition_map_fini to finish the system. | |
10295 | ||
ea409713 | 10296 | 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org> |
10297 | ||
10298 | * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New | |
10299 | function. | |
10300 | (grub_multiboot_load_elf32): Likewise. | |
10301 | (grub_multiboot_is_elf64): Likewise. | |
10302 | (grub_multiboot_load_elf64): Likewise. | |
10303 | (grub_multiboot_load_elf): Likewise. | |
10304 | (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load | |
10305 | an ELF32 or ELF64 file. | |
10306 | This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>. | |
10307 | ||
10308 | From Serbinenko Vladimir <serbinenko.vova@list.ru>: | |
10309 | * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not | |
10310 | NULL before calling FS->LABEL. | |
10311 | * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL. | |
10312 | * commands/ls.c (grub_ls_list_files): Show labels, if possible. | |
10313 | (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL | |
10314 | before calling FS->LABEL. | |
10315 | ||
141a288b | 10316 | 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org> |
10317 | ||
10318 | * util/i386/pc/grub-install.in (datadir): New variable. | |
10319 | (libdir): Removed. | |
10320 | (pkgdatadir): New variable. | |
10321 | (pkglibdir): Removed. | |
10322 | ||
0d5f8a54 | 10323 | 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org> |
10324 | ||
10325 | * DISTLIST: Added util/i386/pc/grub-install.in. | |
10326 | ||
10327 | * util/i386/pc/grub-install.in: New file. | |
10328 | ||
10329 | * conf/i386-pc.rmk (sbin_SCRIPTS): New variable. | |
10330 | (grub_install_SOURCES): Likewise. | |
10331 | ||
10332 | * genmk.rb: Added support for scripts. | |
10333 | (Script): New class. | |
10334 | (scripts): New variable. | |
10335 | ||
10336 | * Makefile.in (install-local): Install sbin_SCRIPTS by | |
10337 | INSTALL_SCRIPT. | |
10338 | (uninstall): Remove sbin_SCRIPTS. | |
10339 | ||
10340 | * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB | |
10341 | device, try to get a GRUB device by | |
10342 | grub_util_biosdisk_get_grub_dev. | |
10343 | Free DEST_DEV. | |
10344 | ||
10345 | * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated | |
10346 | description for --device-map. | |
10347 | ||
5f968e1e | 10348 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
10349 | ||
10350 | Change the semantics of variable hooks. They now return strings | |
10351 | instead of error values. | |
f19dbdb7 | 10352 | |
5f968e1e | 10353 | * util/i386/pc/grub-setup.c: Include grub/env.h. |
10354 | (setup): Use grub_device_set_root instead of grub_env_set. | |
10355 | ||
10356 | * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and | |
10357 | grub_env_get instead of grub_device_set_root and | |
10358 | grub_device_get_root, respectively. | |
10359 | ||
10360 | * kern/main.c (grub_env_write_root): New function. | |
10361 | (grub_set_root_dev): Register grub_env_write_hook for "root". Use | |
10362 | grub_env_set instead of grub_device_set_root. | |
10363 | ||
10364 | * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need | |
10365 | many variables. | |
10366 | (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK | |
10367 | rather than calling ENV->WRITE_HOOK afterwards. | |
10368 | (grub_env_get): Return the result of ENV->READ_HOOK rather than | |
10369 | passing a pointer of a pointer. | |
10370 | (grub_register_variable_hook): Change the types of "read_hook" and | |
10371 | "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t, | |
10372 | respectively. | |
10373 | Allocate the default empty string on the heap, because this string | |
10374 | may be freed later. | |
10375 | ||
10376 | * kern/device.c: Include grub/env.h. | |
10377 | (grub_device_set_root): Removed. | |
10378 | (grub_device_get_root): Likewise. | |
10379 | (grub_device_open): Use grub_env_get instead of | |
10380 | grub_device_get_root. | |
10381 | ||
10382 | * include/grub/env.h (grub_env_read_hook_t): New type. | |
10383 | (grub_env_write_hook_t): Likewise. | |
10384 | (grub_env_var): Change the types of "read_hook" and "write_hook" | |
10385 | to grub_env_read_hook_t and grub_env_write_hook_t, respectively. | |
10386 | (grub_register_variable_hook): Likewise. | |
10387 | ||
10388 | * include/grub/device.h (grub_device_set_root): Removed. | |
10389 | (grub_device_set_root): Likewise. | |
10390 | ||
10391 | * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and | |
10392 | make sure that DIRNAME terminates with '/', so that | |
10393 | grub_fat_find_dir will fail if PATH is not a directory. | |
10394 | ||
10395 | * commands/ls.c (grub_ls_list_files): Remove the qualifier const | |
10396 | from DIRNAME. | |
10397 | Use the qualifier auto for print_files and print_files_long. | |
10398 | If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME | |
10399 | as a regular file. | |
10400 | Put a newline only if there is no error. | |
10401 | (grub_cmd_ls): Remove grub_ls_print_files, because this is not | |
10402 | used. | |
10403 | ||
896f0afd | 10404 | 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> |
10405 | ||
10406 | * kern/partition.c (grub_partition_probe): Initialize PART to | |
10407 | NULL. Otherwise, when no partition map is registered, this returns | |
10408 | a garbage. | |
10409 | ||
b28b81b2 | 10410 | 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> |
10411 | ||
10412 | * partmap/apple.c (apple_partition_map_iterate): Check if POS | |
10413 | equals GRUB_DISK_SECTOR_SIZE to see if the partition table is | |
10414 | valid. | |
10415 | ||
5f3607e0 | 10416 | 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org> |
10417 | ||
10418 | * commands/ls.c (grub_ls_list_disks): Print the filesystem | |
10419 | information on each device, if it does not have partitions. Print | |
10420 | "Device" instead of "Disk", because this function is not specific | |
10421 | to disk devices. | |
10422 | ||
10423 | * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG | |
10424 | static to ensure that it is put on the memory rather than a | |
10425 | register. | |
10426 | ||
502c87e8 | 10427 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
10428 | ||
10429 | * commands/cat.c (GRUB_MOD_INIT): Use better documentation. | |
10430 | (grub_cat_init): Likewise. | |
10431 | * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise. | |
10432 | (options): Likewise. | |
10433 | * commands/configfile.c (GRUB_MOD_INIT): Likewise. | |
10434 | (grub_configfile_init): Likewise. | |
10435 | * font/manager.c (GRUB_MOD_INIT): Likewise. | |
10436 | * commands/help.c (GRUB_MOD_INIT): Likewise. | |
10437 | (grub_help_init): Likewise. | |
10438 | * normal/command.c (grub_command_init): Likewise. | |
10439 | * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise. | |
10440 | * disk/loopback.c (grub_loop_init): Likewise. | |
10441 | (GRUB_MOD_INIT): Likewise. | |
10442 | * commands/ls.c (grub_ls_init): Likewise. | |
10443 | (GRUB_MOD_INIT): Likewise. | |
10444 | (options): Likewise. | |
10445 | * commands/boot.c (grub_boot_init): Likewise. | |
10446 | (GRUB_MOD_INIT): Likewise. | |
10447 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise. | |
10448 | * commands/i386/pc/reboot.c (grub_reboot_init): Likewise. | |
10449 | (GRUB_MOD_INIT): Likewise. | |
10450 | * commands/cmp.c (grub_cmp_init): Likewise. | |
10451 | (GRUB_MOD_INIT): Likewise. | |
10452 | ||
10453 | * normal/arg.c: Use <> instead of "" to include header files. | |
10454 | (SHORT_ARG_HELP): New macro. | |
10455 | (SHORT_ARG_USAGE): Likewise. | |
10456 | (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead | |
10457 | of 'h' and 'u' for help and usage, respectively. Use more GNU-like | |
10458 | descriptions. | |
10459 | (find_short): Check if C is 'h' or 'u' explicitly. | |
10460 | (grub_arg_show_help): Use space characters instead of tabs. Treat | |
10461 | SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u | |
10462 | are shown with --help and --usage only if they are not used for | |
10463 | the command itself. | |
10464 | (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of | |
10465 | 'h' and 'u'. | |
10466 | ||
10467 | * include/grub/arg.h (struct grub_arg_option): Add the qualifier | |
10468 | const into "longarg". Change the type of "shortarg" to int. | |
10469 | ||
f806d18e | 10470 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
10471 | ||
10472 | * boot/i386/pc/boot.S (boot_drive_check): New label. | |
10473 | ||
10474 | * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New | |
10475 | macro. | |
10476 | ||
10477 | * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes | |
10478 | which do not pass a boot drive correctly. Copied from GRUB Legacy. | |
10479 | ||
e293232b | 10480 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
10481 | ||
10482 | * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a): | |
10483 | When turning off Gate A20, skip the check and return immediately, | |
10484 | because this is not fatal usually. | |
10485 | ||
ebedfd00 | 10486 | 2005-07-17 Yoshinori Okuji <okuji@enbug.org> |
10487 | ||
10488 | * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should | |
10489 | be 0x7C00 instead of 0x8000. | |
10490 | ||
10491 | * boot/i386/pc/pxeboot.S: Rewritten. | |
10492 | ||
10493 | * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify | |
10494 | EXT_C. | |
10495 | (gate_a20_check_state): Read a byte from 0x108000. Invert the | |
10496 | result. | |
10497 | ||
654fc59f | 10498 | 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org> |
10499 | ||
10500 | * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for | |
10501 | robustness. This routine now supports a BIOS call and System | |
10502 | Control Port A to modify the gate A20. | |
10503 | ||
10504 | * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): | |
10505 | Increased to 0x440. | |
10506 | ||
09f9923f | 10507 | 2005-07-12 Hollis Blanchard <hollis@penguinppc.org> |
10508 | ||
10509 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the | |
10510 | device path and resulting ihandle. | |
10511 | (grub_ofdisk_close): dprintf the ihandle being closed. | |
10512 | (grub_ofdisk_read): dprintf function parameters. | |
10513 | * kern/mm.c (grub_mm_init_region): Likewise. | |
10514 | * loader/powerpc/ieee1275/linux.c: Remove extra whitespace. | |
10515 | (grub_linux_boot): dprintf the Linux entry point, initrd address and | |
10516 | size, and boot arguments. | |
10517 | (grub_rescue_cmd_linux): dprintf each ELF segment's address and size | |
10518 | before loading into memory. | |
10519 | (grub_rescue_cmd_initrd): dprintf the initrd's address and size | |
10520 | before loading into memory. | |
10521 | ||
7ef504d8 | 10522 | 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org> |
10523 | ||
10524 | * kern/mm.c: Added much documentation. | |
10525 | (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is | |
10526 | 8, set to 5 instead of 8. | |
10527 | ||
e0f050c2 | 10528 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
10529 | ||
10530 | * DISTLIST: Added util/i386/pc/grub-mkimage.c. | |
10531 | ||
10532 | * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap. | |
10533 | (grub_mkdevicemap_SOURCES): New variable. | |
10534 | ||
10535 | * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from | |
10536 | lib/device.c of GRUB Legacy. | |
10537 | ||
7224189a | 10538 | 2005-07-10 Yoshinori Okuji <okuji@enbug.org> |
10539 | ||
10540 | * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL | |
10541 | instead of PATH is NULL. | |
10542 | ||
68c864eb | 10543 | 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr> |
10544 | ||
10545 | * commands/cmp.c (BUFFER_SIZE): New macro. | |
10546 | (grub_cmd_cmp): Close the right file at the right time. Compare | |
10547 | only data just read. Don't report files of different size as | |
10548 | identical. Dynamically allocate buffers. Move variable | |
10549 | declarations at the beginning of function. | |
10550 | ||
e6f3e614 | 10551 | 2005-07-09 Yoshinori Okuji <okuji@enbug.org> |
10552 | ||
10553 | * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was | |
10554 | reverse. | |
10555 | ||
f8f1559a | 10556 | 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr> |
10557 | ||
10558 | * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d | |
10559 | when backspace is pressed at beginning of line. | |
10560 | ||
39c9d41d | 10561 | 2005-07-03 Yoshinori Okuji <okuji@enbug.org> |
10562 | ||
10563 | * DISTLIST: Added genfslist.sh. | |
10564 | ||
10565 | * normal/main.c (fs_module_list): New variable. | |
10566 | (autoload_fs_module): New function. | |
10567 | (read_fs_list): Likewise. | |
10568 | (grub_normal_execute): Call read_fs_list. | |
10569 | ||
10570 | * kern/fs.c (grub_fs_autoload_hook): New variable. | |
10571 | (grub_fs_probe): Added support for auto-loading. | |
10572 | ||
10573 | * include/grub/normal.h (struct grub_fs_module_list): New struct. | |
10574 | (grub_fs_module_list_t): New type. | |
10575 | ||
10576 | * include/grub/fs.h (grub_fs_autoload_hook_t): New type. | |
10577 | (grub_fs_autoload_hook): New prototype. | |
10578 | ||
10579 | * genfslist.sh: New file. | |
f19dbdb7 | 10580 | |
39c9d41d | 10581 | * genmk.rb: Added a rule to generate a filesystem list. |
10582 | ||
121c1d83 | 10583 | 2005-06-30 Marco Gerards <metgerards@student.han.nl> |
10584 | ||
10585 | * configure.ac: Fix the test for cross-compiling. | |
10586 | ||
10587 | * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't | |
10588 | define GRUB_UTIL anymore. | |
10589 | ||
10590 | * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes | |
10591 | so this function works on other systems than just big endian. | |
10592 | (load_modules): Likewise. | |
10593 | (add_segments): Likewise. | |
10594 | ||
e75d76e1 | 10595 | 2005-06-23 Hollis Blanchard <hollis@penguinppc.org> |
10596 | ||
10597 | * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string | |
10598 | contains `l' modifier, get a long from va_arg(). | |
10599 | ||
50b5a0a7 | 10600 | 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org> |
10601 | ||
10602 | * kern/mm.c (grub_free): If the next free block which is being | |
10603 | merged is the first free block, set the first block to the block | |
10604 | being freed. | |
10605 | Reported by Vincent Guffens <guffens@inma.ucl.ac.be>. | |
10606 | ||
89371b20 | 10607 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
10608 | ||
10609 | * boot/powerpc/ieee1275/cmain.c (cmain): Initialize | |
10610 | `grub_ieee1275_chosen'. | |
10611 | ||
168d6e58 | 10612 | 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> |
10613 | ||
10614 | * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition. | |
10615 | (grub_ieee1275_chosen): New variable. | |
10616 | (cmain): Initialize and use `grub_ieee1275_chosen' instead of | |
10617 | `chosen'. | |
10618 | * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space. | |
10619 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
10620 | Rename first argument to `phandle' for consistency. | |
10621 | (grub_ieee1275_get_property_length): Likewise. | |
10622 | (grub_ieee1275_next_property): Likewise. Change type of first argument | |
10623 | to grub_ieee1275_phandle_t. | |
10624 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn): | |
10625 | Move export next to declaration. | |
10626 | (grub_ieee1275_chosen): New variable. | |
10627 | * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE): | |
10628 | Correct cosmetic typo. | |
10629 | * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use | |
10630 | `grub_ieee1275_chosen'. | |
10631 | * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise. | |
10632 | * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise. | |
10633 | (grub_rescue_cmd_linux): Set `initrd_addr' to 0. | |
10634 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use | |
10635 | `grub_ieee1275_chosen'. | |
10636 | ||
ca5baa3f | 10637 | 2005-05-10 Hollis Blanchard <hollis@penguinppc.org> |
10638 | ||
10639 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse | |
10640 | /chosen/bootargs. | |
10641 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse | |
10642 | /chosen/bootargs as "variable=value" pairs. | |
10643 | ||
708b345f | 10644 | 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr> |
10645 | ||
10646 | * include/grub/misc.h (grub_dprintf): New macro. | |
10647 | (grub_real_dprintf): New prototype. | |
10648 | (grub_strword): Likewise. | |
10649 | (grub_iswordseparator): Likewise. | |
10650 | * kern/misc.c (grub_real_dprintf): New function. | |
10651 | (grub_strword): Likewise. | |
10652 | (grub_iswordseparator): Likewise. | |
10653 | ||
f4c5e67c | 10654 | 2005-04-30 Hollis Blanchard <hollis@penguinppc.org> |
10655 | ||
10656 | * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h. | |
10657 | (roundup): Remove macro. | |
10658 | (grub_ieee1275_flags): Make static. | |
10659 | (grub_ieee1275_realmode): Remove. | |
10660 | (grub_ieee1275_test_flag): New function. | |
10661 | (grub_ieee1275_set_flag): Likewise. | |
10662 | (find_options): Rename to `grub_ieee1275_find_options'; update | |
10663 | callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and | |
10664 | GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS. | |
10665 | (cmain): New prototype. | |
10666 | (cmain): Use `grub_ieee1275_set_flag' instead of accessing | |
10667 | `grub_ieee1275_flags' directly. | |
10668 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove | |
10669 | machine/biosdisk.h. | |
10670 | * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h. | |
10671 | Don't include grub/machine/init.h. | |
10672 | (grub_ofdisk_open): Call `grub_ieee1275_test_flag'. | |
10673 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
10674 | Remove prototype. | |
10675 | (grub_ieee1275_realmode): Likewise. | |
10676 | (grub_ieee1275_flag): New enum. | |
10677 | (grub_ieee1275_test_flag): New prototype. | |
10678 | (grub_ieee1275_set_flag): New prototype. | |
10679 | * include/grub/powerpc/ieee1275/init.h: Remove file. | |
10680 | * include/grub/powerpc/ieee1275/ofdisk.h: New file. | |
10681 | * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h. | |
10682 | Include grub/machine/console.h. Include grub/machine/ofdisk.h. | |
10683 | (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove | |
10684 | comment. | |
10685 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call | |
10686 | `grub_ieee1275_test_flag'. | |
10687 | (grub_ieee1275_encode_devname): Likewise. | |
10688 | ||
ed16607e | 10689 | 2005-04-21 Hollis Blanchard <hollis@penguinppc.org> |
10690 | ||
10691 | * include/grub/powerpc/ieee1275/ieee1275.h | |
10692 | (grub_ieee1275_encode_devname): New prototype. | |
10693 | (grub_ieee1275_get_filename): Likewise. | |
10694 | * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New | |
10695 | function. | |
10696 | (grub_set_prefix): Likewise. | |
10697 | (grub_machine_init): Call grub_set_prefix. | |
10698 | * kern/powerpc/ieee1275/openfw.c: Fix typos. | |
10699 | (grub_parse_type): New enum. | |
10700 | (grub_ieee1275_get_devargs): New function. | |
10701 | (grub_ieee1275_get_devname): Likewise. | |
10702 | (grub_ieee1275_parse_args): Likewise. | |
10703 | (grub_ieee1275_get_filename): Likewise. | |
10704 | (grub_ieee1275_encode_devname): Likewise. | |
10705 | ||
be369920 | 10706 | 2005-03-30 Marco Gerards <metgerards@student.han.nl> |
10707 | ||
10708 | * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call | |
10709 | `grub_loader_unset'. | |
10710 | ||
a5ce3a4a | 10711 | 2005-03-26 Hollis Blanchard <hollis@penguinppc.org> |
10712 | ||
10713 | * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt | |
10714 | instead of grub_ieee1275_interpret. | |
10715 | (grub_halt_init): New function. | |
10716 | (grub_halt_fini): Likewise. | |
10717 | (GRUB_MOD_INIT): Correct message grammar. | |
10718 | * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot | |
10719 | instead of grub_ieee1275_interpret. | |
10720 | (grub_reboot_init): New function. | |
10721 | (grub_reboot_fini): Likewise. | |
10722 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace | |
10723 | commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and | |
10724 | util/i386/pc/misc.c with commands/ieee1275/halt.c, | |
10725 | commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c. | |
10726 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New | |
10727 | function. | |
10728 | * include/grub/powerpc/ieee1275/console.h (grub_console_fini): | |
10729 | Add prototype. | |
10730 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add | |
10731 | prototype. | |
10732 | (grub_halt): Likewise. | |
10733 | * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment. | |
10734 | (cmain): Remove __attribute__((unused)). | |
10735 | * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable. | |
10736 | (grub_heap_len): Likewise. | |
10737 | (grub_machine_fini): New function. | |
10738 | * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function. | |
10739 | (grub_halt): Likewise. | |
10740 | * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New | |
10741 | function. | |
10742 | * util/powerpc/ieee1275/misc.c: New file. | |
10743 | ||
0058f771 | 10744 | 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> |
10745 | ||
10746 | * DISTLIST: New file. | |
10747 | * gendistlist.sh: Likewise. | |
f19dbdb7 | 10748 | |
0058f771 | 10749 | * Makefile.in (COMMON_DISTFILES): Removed. |
10750 | (BOOT_DISTFILES): Likewise. | |
10751 | (CONF_DISTFILES): Likewise. | |
10752 | (DISK_DISTFILES): Likewise. | |
10753 | (FS_DISTFILES): Likewise. | |
10754 | (INCLUDE_DISTFILES): Likewise. | |
10755 | (KERN_DISTFILES): Likewise. | |
10756 | (LOADER_DISTFILES): Likewise. | |
10757 | (TERM_DISTFILES): Likewise. | |
10758 | (UTIL_DISTFILES): Likewise. | |
10759 | (DISTFILES): Likewise. | |
10760 | (uninstall): Uninstall files in $(pkgdata_DATA). | |
10761 | (DISTLIST): New target. | |
10762 | (distdir): Use the contents of the file DISTLIST to get a list of | |
10763 | distributed files. | |
10764 | ||
46b3b8a5 | 10765 | 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org> |
10766 | ||
10767 | * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media | |
10768 | descriptor. This is ported from GRUB Legacy. | |
10769 | ||
10770 | * gencmdlist.sh: Added an extra semicolon to make it work with | |
10771 | old sed versions. Reported by Robert Bihlmeyer | |
10772 | <robbe@orcus.priv.at>. | |
10773 | ||
5822ff87 | 10774 | 2005-03-08 Yoshinori Okuji <okuji@enbug.org> |
10775 | ||
10776 | Automatic loading of commands is supported. | |
f19dbdb7 | 10777 | |
5822ff87 | 10778 | * normal/main.c (read_command_list): New function. |
10779 | (grub_normal_execute): Call read_command_list. | |
10780 | ||
10781 | * normal/command.c (grub_register_command): Return zero or CMD. | |
10782 | Allocate CMD->NAME from the heap. | |
10783 | Initialize CMD->MODULE_NAME to zero. | |
10784 | Find the same name as well. If the same command is found and it is | |
10785 | a dummy command, overwrite members. If it is not a dummy command, | |
10786 | return zero. | |
10787 | (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME. | |
10788 | (grub_command_find): If a dummy command is found, load a module | |
10789 | and retry to find a command only once. | |
10790 | ||
10791 | * normal/cmdline.c (grub_tab_complete): Call grub_command_find to | |
10792 | make sure that each command is loaded. | |
10793 | ||
10794 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New | |
10795 | macro. | |
10796 | (struct grub_command): Remove const from the member `name'. | |
10797 | Add a new member `module_name'. | |
10798 | (grub_register_command): Return grub_command_t. | |
10799 | ||
10800 | * commands/help.c (grub_cmd_help): Call grub_command_find to make | |
10801 | sure that each command is loaded. | |
10802 | ||
10803 | * genmk.rb (PModule::rule): Specify a module name without the | |
10804 | suffix ".mod" to gencmdlist.sh. | |
10805 | ||
7b1f4b57 | 10806 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
10807 | ||
10808 | * gencmdlist.sh: New file. | |
f19dbdb7 | 10809 | |
7b1f4b57 | 10810 | * genmk.rb (PModule::rule): Generate a rule for a command list. |
10811 | Clean command.lst. | |
10812 | Generate command.lst from $(COMMANDFILES). | |
10813 | ||
10814 | * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh. | |
10815 | (DATA): Added $(pkgdata_DATA). | |
10816 | (install-local): Install files in $(pkgdata_DATA). | |
10817 | ||
062aaf39 | 10818 | 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
10819 | ||
10820 | * term/i386/pc/vga.c (debug_command): Removed. | |
10821 | (GRUB_MOD_INIT): Do not register the command "debug". | |
10822 | ||
10823 | From Hollis Blanchard: | |
10824 | * commands/configfile.c: New file. | |
10825 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
10826 | commands/configfile.c. | |
10827 | (pkgdata_MODULES): Added configfile.mod. | |
10828 | (configfile_mod_SOURCES): New variable. | |
10829 | (configfile_mod_CFLAGS): Likewise. | |
10830 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added | |
10831 | commands/configfile.c. | |
10832 | (pkgdata_MODULES): Added configfile.mod. | |
10833 | (configfile_mod_SOURCES): New variable. | |
10834 | (configfile_mod_CFLAGS): Likewise. | |
10835 | * util/grub-emu.c (main): Call grub_configfile_init and | |
10836 | grub_configfile_fini. | |
10837 | * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New | |
10838 | prototype. | |
10839 | [GRUB_UTIL] (grub_configfile_fini): Likewise. | |
f19dbdb7 | 10840 | |
cee01aa6 | 10841 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
10842 | ||
10843 | * normal/arg.c (grub_arg_show_help): Do not show the bug report | |
10844 | address. | |
10845 | ||
10846 | * commands/help.c (grub_cmd_help): Do not print newlines after | |
10847 | the last command in print_command_help. | |
10848 | ||
93f3a1d8 | 10849 | 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org> |
10850 | ||
10851 | * commands/default.h: New file. | |
10852 | * commands/timeout.h: Likewise. | |
10853 | * normal/context.c: Likewise. | |
f19dbdb7 | 10854 | |
93f3a1d8 | 10855 | * util/misc.c: Do not include sys/times.h. |
10856 | Include sys/time.h and grub/machine/time.h. | |
10857 | (grub_get_rtc): Rewritten with gettimeofday. | |
10858 | ||
10859 | * util/grub-emu.c (main): Call grub_default_init and | |
10860 | grub_timeout_init before grub_normal_init, and call | |
10861 | grub_timeout_fini and grub_default_fini after grub_main. | |
10862 | ||
10863 | * util/console.c (grub_ncurses_checkkey): Return the read | |
10864 | character or -1. | |
10865 | ||
10866 | * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it | |
10867 | timeouts. | |
10868 | ||
10869 | * normal/main.c (read_config_file): Push MENU. If this fails, | |
10870 | print an error and wait for a user input. | |
10871 | Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE. | |
10872 | If a menu is empty or an error occurs, pop MENU. | |
10873 | (grub_normal_execute): Pop and free MENU after grub_menu_run | |
10874 | returns. | |
10875 | ||
10876 | * kern/loader.c (grub_loader_boot): Call grub_machine_fini. | |
10877 | ||
10878 | * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not | |
10879 | include time.h. | |
10880 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
10881 | without GRUB_UTIL. | |
10882 | * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include | |
10883 | time.h. | |
10884 | [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as | |
10885 | without GRUB_UTIL. | |
10886 | ||
10887 | * include/grub/normal.h (struct grub_menu_list): New struct. | |
10888 | (grub_menu_list_t): New type. | |
10889 | (struct grub_context): New struct. | |
10890 | (grub_context_t): New type. | |
10891 | (grub_register_command): Got rid of EXPORT_FUNC. | |
10892 | (grub_unregister_command): Likewise. | |
10893 | (grub_context_get): New prototype. | |
10894 | (grub_context_get_current_menu): Likewise. | |
10895 | (grub_context_push_menu): Likewise. | |
10896 | (grub_context_pop_menu): Likewise. | |
10897 | [GRUB_UTIL] (grub_default_init): Likewise. | |
10898 | [GRUB_UTIL] (grub_default_fini): Likewise. | |
10899 | [GRUB_UTIL] (grub_timeout_init): Likewise. | |
10900 | [GRUB_UTIL] (grub_timeout_fini): Likewise. | |
10901 | ||
10902 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c, | |
10903 | commands/timeout.c and normal/context.c. | |
10904 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
10905 | (normal_mod_SOURCES): Added normal/context.c. | |
10906 | (default_mod_SOURCES): New variable. | |
10907 | (default_mod_CFLAGS): Likewise. | |
10908 | (timeout_mod_SOURCES): Likewise. | |
10909 | (timeout_mod_CFLAGS): Likewise. | |
10910 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from | |
10911 | conf/i386-pc.rmk. | |
10912 | (pkgdata_MODULES): Added default.mod and timeout.mod. | |
10913 | (normal_mod_SOURCES): Added normal/context.c. | |
10914 | (default_mod_SOURCES): New variable. | |
10915 | (default_mod_CFLAGS): Likewise. | |
10916 | (timeout_mod_SOURCES): Likewise. | |
10917 | (timeout_mod_CFLAGS): Likewise. | |
10918 | ||
10919 | * Makefile.in (all-local): Added $(MKFILES). | |
10920 | ||
4ed2e1dd | 10921 | 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr> |
10922 | ||
10923 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'. | |
10924 | (grub_emu_SOURCES): Likewise. | |
10925 | (pkgdata_MODULES): Add `sun.mod'. | |
10926 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
10927 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
10928 | `partmap/sun.c'. | |
10929 | (pkgdata_MODULES): Add `sun.mod'. | |
10930 | (sun_mod_SOURCES, sun_mod_CFLAGS): New variables. | |
10931 | * include/grub/partition.h (grub_sun_partition_map_init): New | |
10932 | prototype. | |
10933 | (grub_sun_partition_map_fini): Likewise. | |
10934 | * partmap/sun.c: New file. | |
10935 | * util/grub-emu.c (main): Initialize and de-initialize the sun | |
10936 | partitionmap support. | |
10937 | ||
4d4e372e | 10938 | 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org> |
10939 | ||
10940 | This implements an Emacs-like menu entry editor. | |
f19dbdb7 | 10941 | |
4d4e372e | 10942 | * normal/menu_entry.c: New file. |
f19dbdb7 | 10943 | |
4d4e372e | 10944 | * util/console.c (grub_ncurses_putchar): Translate some Unicode |
10945 | characters to ASCII. | |
10946 | (saved_char): New variable. | |
10947 | (grub_ncurses_checkkey): Rewritten completely. | |
10948 | (grub_ncurses_getkey): Likewise. | |
10949 | (grub_ncurses_init): Call raw instead of cbreak. | |
10950 | ||
10951 | * normal/menu.c (print_entry): Do not put a space. | |
10952 | (init_page): Renamed to ... | |
10953 | (grub_menu_init_page): ... this. All callers changed. | |
10954 | (edit_menu_entry): Removed. | |
10955 | (run_menu): Call grub_menu_entry_run instead of edit_menu_entry. | |
10956 | ||
10957 | * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor. | |
10958 | ||
10959 | * kern/misc.c (grub_vprintf): Call grub_refresh. | |
10960 | ||
10961 | * normal/menu.c (DISP_LEFT): Renamed to ... | |
10962 | * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this. | |
10963 | * normal/menu.c (DISP_UP): Renamed to ... | |
10964 | * include/grub/term.h (GRUB_TERM_DISP_UP): ... this. | |
10965 | * normal/menu.c (DISP_RIGHT): Renamed to ... | |
10966 | * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this. | |
10967 | * normal/menu.c (DISP_DOWN): Renamed to ... | |
10968 | * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this. | |
10969 | * normal/menu.c (DISP_HLINE): Renamed to ... | |
10970 | * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this. | |
10971 | * normal/menu.c (DISP_VLINE): Renamed to ... | |
10972 | * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this. | |
10973 | * normal/menu.c (DISP_UL): Renamed to ... | |
10974 | * include/grub/term.h (GRUB_TERM_DISP_UL): ... this. | |
10975 | * normal/menu.c (DISP_UR): Renamed to ... | |
10976 | * include/grub/term.h (GRUB_TERM_DISP_UR): ... this. | |
10977 | * normal/menu.c (DISP_LL): Renamed to ... | |
10978 | * include/grub/term.h (GRUB_TERM_DISP_LL): ... this. | |
10979 | * normal/menu.c (DISP_LR): Renamed to ... | |
10980 | * include/grub/term.h (GRUB_TERM_DISP_LR): ... this. | |
10981 | * normal/menu.c (TERM_WIDTH): Renamed to ... | |
10982 | * include/grub/term.h (GRUB_TERM_WIDTH): ... this. | |
10983 | * normal/menu.c (TERM_HEIGHT): Renamed to ... | |
10984 | * include/grub/term.h (GRUB_TERM_HEIGHT): ... this. | |
10985 | * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ... | |
10986 | * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this. | |
10987 | * normal/menu.c (TERM_MARGIN): Renamed to ... | |
10988 | * include/grub/term.h (GRUB_TERM_MARGIN): ... this. | |
10989 | * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ... | |
10990 | * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this. | |
10991 | * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ... | |
10992 | * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this. | |
10993 | * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ... | |
10994 | * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this. | |
10995 | * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ... | |
10996 | * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this. | |
10997 | * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ... | |
10998 | * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this. | |
10999 | * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ... | |
11000 | * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this. | |
11001 | * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ... | |
11002 | * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this. | |
11003 | * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ... | |
11004 | * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this. | |
11005 | * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ... | |
11006 | * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this. | |
11007 | * normal/menu.c (TERM_CURSOR_X): Renamed to ... | |
11008 | * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this. | |
11009 | All callers changed. | |
11010 | ||
11011 | * include/grub/normal.h: New prototype. | |
11012 | ||
11013 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added | |
11014 | normal/menu_entry.c. | |
11015 | (normal_mod_SOURCES): Likewise. | |
11016 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise. | |
11017 | (normal_mod_SOURCES): Likewise. | |
11018 | ||
e6b92c8a | 11019 | 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org> |
11020 | ||
11021 | * include/grub/normal.h (grub_halt_init): New prototype. | |
11022 | (grub_halt_fini): Likewise. | |
11023 | (grub_reboot_init): Likewise. | |
11024 | (grub_reboot_fini): Likewise. | |
11025 | ||
11026 | * util/grub-emu.c: Include signal.h. | |
11027 | (main_env): New global variable. | |
11028 | (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot | |
11029 | catch C-c. | |
11030 | (grub_machine_fini): New function. | |
11031 | (main): Call grub_halt_init and grub_reboot_init before | |
11032 | grub_main, and grub_reboot_fini and grub_halt_fini after it. | |
11033 | Call setjmp with MAIN_ENV to go back afterwards. | |
11034 | Call grub_machine_fini right before return. | |
11035 | ||
11036 | * include/grub/util/misc.h: Include setjmp.h. | |
11037 | (main_env): New prototype. | |
11038 | ||
11039 | * include/grub/kernel.h (grub_machine_fini): New prototype. | |
11040 | * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise. | |
11041 | * include/grub/i386/pc/console.h (grub_console_fini): Likewise. | |
11042 | ||
11043 | * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function. | |
11044 | * kern/i386/pc/init.c (grub_machine_fini): Likewise. | |
11045 | * term/i386/pc/console.c (grub_console_fini): Likewise. | |
f19dbdb7 | 11046 | |
e6b92c8a | 11047 | * util/i386/pc/misc.c: New file. |
f19dbdb7 | 11048 | |
e6b92c8a | 11049 | * conf/i386-pc.rmk (grub_emu_SOURCES): Added |
11050 | util/i386/pc/misc.c, commands/i386/pc/halt.c and | |
11051 | commands/i386/pc/reboot.c. | |
11052 | ||
c642636f | 11053 | 2005-02-14 Guillem Jover <guillem@hadrons.org> |
11054 | ||
11055 | * include/grub/dl.h (grub_dl_check_header): New prototype. | |
11056 | (grub_arch_dl_check_header): Change return type to grub_err_t, | |
11057 | remove size parameter and export function. Update all callers. | |
11058 | * kern/dl.c (grub_dl_check_header): New function. | |
11059 | (grub_dl_load_core): Use `grub_dl_check_header' instead of | |
11060 | `grub_arch_dl_check_header'. Check ELF type. Check if sections | |
11061 | are inside the core. | |
11062 | * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch | |
11063 | independent ELF header checks. | |
11064 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
11065 | * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use | |
11066 | `grub_dl_check_header' instead of explicit checks. Check for the | |
11067 | ELF type. | |
11068 | * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use | |
11069 | `grub_dl_check_header' instead of explicit checks. Remove arch | |
11070 | specific ELF header checks. | |
11071 | ||
e6b92c8a | 11072 | * util/grub-emu.c (grub_arch_dl_check_header): Remove the |
11073 | argument SIZE. | |
11074 | ||
5eabe94b | 11075 | 2005-02-13 Hollis Blanchard <hollis@penguinppc.org> |
11076 | ||
11077 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod. | |
11078 | * include/grub/powerpc/libgcc.h (__mulsf3): New prototype. | |
11079 | ||
1b14a681 | 11080 | 2005-02-12 Hollis Blanchard <hollis@penguinppc.org> |
11081 | ||
11082 | * kern/partition.c (grub_partition_probe): Clear `grub_errno' and | |
f19dbdb7 | 11083 | return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 11084 | (part_map_iterate): Clear `grub_errno' and return 0 if |
f19dbdb7 | 11085 | `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE. |
1b14a681 | 11086 | * partmap/amiga.c (amiga_partition_map_iterate): Return |
11087 | GRUB_ERR_BAD_PART_TABLE if no partition map magic is found. | |
11088 | * partmap/apple.c (apple_partition_map_iterate): Likewise. | |
11089 | ||
aca108aa | 11090 | 2005-02-01 Guillem Jover <guillem@hadrons.org> |
11091 | ||
11092 | * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module | |
11093 | help info. | |
11094 | ||
c9f9c556 | 11095 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
11096 | ||
11097 | * include/grub/powerpc/ieee1275/loader.h (grub_load_linux): | |
11098 | Removed prototype. | |
11099 | (grub_rescue_cmd_linux): New prototype. | |
11100 | (grub_rescue_cmd_initrd): Likewise. | |
11101 | * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct | |
11102 | `bi_rec'. | |
11103 | (grub_linux_release_mem): Release the memory for the initrd. | |
11104 | (grub_load_linux): Renamed from this... | |
11105 | (grub_rescue_cmd_linux): ...To this. Changed all callers. | |
11106 | Changed `entry' not to be static. Loop over memory regions to | |
11107 | find another one when the default fails. | |
11108 | (grub_rescue_cmd_initrd): New function. | |
11109 | (grub_linux_init): Remove function. | |
11110 | (grub_linux_fini): Likewise. | |
11111 | (GRUB_MOD_INIT): Register `initrd'. | |
11112 | (GRUB_MOD_FINI): Unregister `initrd'. | |
11113 | * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init): | |
11114 | Function removed. | |
11115 | (grub_linux_normal_fini): Likewise. | |
11116 | (GRUB_MOD_INIT): Register `initrd'. | |
11117 | (GRUB_MOD_FINI): Unregister `initrd'. | |
11118 | ||
990cf3aa | 11119 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> |
11120 | ||
11121 | * commands/help.c: New file. | |
11122 | * normal/arg.c (show_help): Renamed to... | |
11123 | (grub_arg_show_help): ... this. | |
11124 | * commands/i386/pc/halt.c: New file. | |
11125 | * commands/i386/pc/reboot.c: Likewise. | |
11126 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'. | |
11127 | (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'. | |
11128 | (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES) | |
11129 | (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New | |
11130 | variables. | |
11131 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
11132 | `commands/help.c'. | |
11133 | (pkgdata_MODULES): Add `help.mod'. | |
11134 | (help_mod_SOURCES, help_mod_CFLAGS): New variables. | |
11135 | * grub/i386/pc/init.h (grub_reboot): New prototype. | |
11136 | (grub_halt): Likewise. | |
11137 | * include/grub/normal.h (grub_arg_show_help): New prototype. | |
11138 | (grub_help_init): Likewise. | |
11139 | (grub_help_fini): Likewise. | |
11140 | * util/grub-emu.c (main): Initialize and deinitialize the help | |
11141 | command. | |
11142 | ||
11143 | * normal/cmdline.c (grub_cmdline_get): Doc fix. | |
11144 | ||
11145 | * normal/command.c (grub_command_init): Fixed the description of | |
11146 | the `set' and `unset' commands. | |
11147 | ||
11148 | 2005-01-31 Marco Gerards <metgerards@student.han.nl> | |
0f79cdc1 | 11149 | |
11150 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New | |
11151 | function. | |
11152 | * commands/ieee1275/halt.c: New file. | |
11153 | * commands/ieee1275/reboot.c: Likewise. | |
11154 | * commands/ieee1275/suspend.c (grub_cmd_suspend): Use | |
11155 | `__attribute__ ((unused))'. Some GCS related fixed. | |
11156 | (grub_suspend_init) [GRUB_UTIL]: Function removed. | |
11157 | (grub_suspend_fini): Likewise. | |
11158 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod' | |
11159 | and `halt.mod'. | |
11160 | (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES) | |
11161 | (halt_mod_CFLAGS): New variables. | |
11162 | * include/grub/powerpc/ieee1275/ieee1275.h | |
11163 | (grub_ieee1275_interpret): New prototype. | |
11164 | ||
1ab09cc7 | 11165 | 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org> |
11166 | ||
11167 | * include/grub/misc.h (memmove): New prototype. | |
11168 | (memcpy): Likewise. | |
11169 | ||
8b8cbdb2 | 11170 | 2005-01-22 Hollis Blanchard <hollis@penguinppc.org> |
11171 | ||
11172 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize | |
11173 | `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'. | |
11174 | ||
e3741a27 | 11175 | 2005-01-22 Marco Gerards <metgerards@student.han.nl> |
11176 | ||
11177 | * kern/misc.c (grub_strndup): Function rewritten. | |
11178 | ||
776bd780 | 11179 | 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr> |
11180 | ||
11181 | * normal/menu.c (TERM_WIDTH): Macro redefined. | |
11182 | (TERM_TOP_BORDER_Y): Likewise. | |
11183 | (draw_border): Replaced while-loop by a for-loop. Make the number | |
11184 | of lines consistent with the number of lines displayed in | |
11185 | print_entries. Added a margin below the rectangle. | |
11186 | (print_entry): Make the entry fit in the rectangle. | |
11187 | (print_entries): Display the scroll arrows next to the right | |
11188 | border. | |
11189 | ||
78026bce | 11190 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
11191 | ||
11192 | * fs/minix.c (grub_minix_find_file): Reserve more space for | |
11193 | `fpath' so the \0 can be stored. Use `grub_strcpy' instead of | |
11194 | `grub_strncpy' to copy `path' into it. | |
11195 | ||
67bbaf0f | 11196 | 2005-01-21 Marco Gerards <metgerards@student.han.nl> |
11197 | ||
11198 | Add the loopback device, a device via which files can be accessed | |
11199 | as devices. | |
f19dbdb7 | 11200 | |
67bbaf0f | 11201 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'. |
11202 | (pkgdata_MODULES): Add loopback.mod. | |
11203 | (loopback_mod_SOURCES): New variable. | |
11204 | (loopback_mod_CFLAGS): Likewise. | |
11205 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add | |
11206 | `disk/loopback.c'. | |
11207 | (pkgdata_MODULES): Add loopback.mod. | |
11208 | (loopback_mod_SOURCES): New variable. | |
11209 | (loopback_mod_CFLAGS): Likewise. | |
11210 | * disk/loopback.c: new file. | |
11211 | * include/grub/normal.h (grub_loop_init): New prototype. | |
11212 | (grub_loop_fini): New prototype. | |
11213 | * util/grub-emu.c (main): Initialize and de-initialize loopback | |
11214 | support. | |
11215 | * include/grub/disk.h (grub_disk_dev_id): Add | |
11216 | `GRUB_DISK_DEVICE_LOOPBACK_ID'. | |
11217 | ||
6f1c18bd | 11218 | 2005-01-20 Hollis Blanchard <hollis@penguinppc.org> |
11219 | ||
11220 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New | |
11221 | function. | |
11222 | * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod. | |
11223 | (suspend_mod_SOURCES): New variable. | |
11224 | (suspend_mod_CFLAGS): Likewise. | |
11225 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter): | |
11226 | New prototype. | |
11227 | * commands/ieee1275/suspend.c: New file. | |
11228 | ||
b38551da | 11229 | 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
11230 | ||
11231 | * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__ | |
f19dbdb7 | 11232 | ((unused))' to `__attribute__ ((used))'. |
b38551da | 11233 | (GRUB_MOD_FINI): Likewise. |
11234 | * kern/dl.c (grub_dl_load_file): Fix null pointer dereference. | |
11235 | * genmk.rb (PModule): Assign space to common symbols when linking | |
11236 | modules. | |
11237 | ||
777aff39 | 11238 | 2005-01-20 Marco Gerards <metgerards@student.han.nl> |
11239 | ||
11240 | * include/grub/mm.h (grub_mm_init_region): Change the type of the | |
11241 | `unsigned' arguments to `grub_size_t'. | |
11242 | (grub_malloc): Likewise. | |
11243 | (grub_realloc): Likewise. | |
11244 | (grub_memalign): Likewise. | |
11245 | * kern/i386/dl.c (grub_arch_dl_check_header): Likewise. | |
11246 | * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise. | |
11247 | * util/misc.c (grub_malloc): Likewise. | |
11248 | (grub_realloc): Likewise. | |
11249 | * kern/mm.c (get_header_from_pointer): Change the casts to | |
11250 | `unsigned' into a cast to `grub_size_t'. | |
11251 | ||
11252 | * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always | |
11253 | point to `currnode' when `currnode' is changed. | |
11254 | ||
11255 | * util/grub-emu.c (main): Initialize `progname'. Reported by Nico | |
11256 | Schottelius <nico-linux@schottelius.org>. | |
11257 | ||
d0ff18e1 | 11258 | 2005-01-09 Hollis Blanchard <hollis@penguinppc.org> |
11259 | ||
11260 | * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>. | |
11261 | (note_path): Remove variable. | |
11262 | (GRUB_IEEE1275_NOTE_NAME): New macro. | |
11263 | (GRUB_IEEE1275_NOTE_TYPE): Likewise. | |
11264 | (grub_ieee1275_note_hdr): New structure. | |
11265 | (grub_ieee1275_note_desc): Likewise. | |
11266 | (grub_ieee1275_note): Likewise. | |
11267 | (load_note): Remove `dir' argument. All callers updated. Remove | |
11268 | `note_img' and `path'. Do not load a file from `note_path'. | |
11269 | Initialize a struct grub_ieee1275_note and write that to `out'. | |
11270 | Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE. | |
11271 | ||
4ca7004c | 11272 | 2005-01-05 Marco Gerards <metgerards@student.han.nl> |
11273 | ||
11274 | * util/misc.c (grub_util_read_image): Revert last change. It | |
11275 | called `grub_util_read_at', which seeks from the beginning of the | |
11276 | file. | |
11277 | ||
0b412211 | 11278 | 2005-01-04 Hollis Blanchard <hollis@penguinppc.org> |
11279 | ||
11280 | * TODO: Add note about endianness in grub-mkimage. | |
11281 | * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note | |
11282 | section. | |
11283 | * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage. | |
11284 | (grub_mkimage_SOURCES): New target. | |
11285 | * include/grub/kernel.h (grub_start_addr): Remove variable. | |
11286 | (grub_end_addr): Likewise. | |
11287 | (grub_total_module_size): Likewise. | |
11288 | (grub_kernel_image_size): Likewise. | |
11289 | (GRUB_MODULE_MAGIC): New constant. | |
11290 | (grub_module_info): New structure. | |
11291 | (grub_arch_modules_addr): New prototype. | |
11292 | (grub_get_end_addr): Remove prototype. | |
11293 | * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype. | |
11294 | * include/grub/powerpc/ieee1275/kernel.h: New file. | |
11295 | * include/grub/util/misc.h (grub_util_get_fp_size): New | |
11296 | prototype. | |
11297 | (grub_util_read_at): Likewise. | |
11298 | (grub_util_write_image_at): Likewise. | |
11299 | * kern/main.c (grub_get_end_addr): Remove function. | |
11300 | (grub_load_modules): Call grub_arch_modules_addr instead of using | |
11301 | grub_end_addr. Look for a grub_module_info struct in memory. Use | |
11302 | the grub_module_info fields instead of calling grub_get_end_addr | |
11303 | as loop conditions. Move grub_add_unused_region code here. | |
11304 | (grub_add_unused_region): Remove function. | |
11305 | * kern/i386/pc/init.c: Include grub/cache.h. | |
11306 | (grub_machine_init): Remove call to grub_get_end_addr. Remove | |
11307 | one call to add_mem_region. | |
11308 | (grub_arch_modules_addr): New function. | |
11309 | * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable. | |
11310 | (grub_total_module_size): Likewise. | |
11311 | Include grub/machine/kernel.h. | |
11312 | (grub_arch_modules_addr): New function. | |
11313 | * util/grub-emu.c (grub_end_addr): Remove variable. | |
11314 | (grub_total_module_size): Likewise. | |
11315 | (grub_arch_modules_addr): New function. | |
11316 | * util/misc.c: Include unistd.h. | |
11317 | (grub_util_get_fp_size): New function. | |
11318 | (grub_util_read_at): Likewise. | |
11319 | (grub_util_write_image_at): Likewise. | |
11320 | (grub_util_read_image): Call grub_util_read_at. | |
11321 | (grub_util_write_image): Call grub_util_write_image_at. | |
11322 | * util/i386/pc/grub-mkimage.c (generate_image): Allocate | |
11323 | additional memory in kernel_img for a struct grub_module_info. | |
11324 | Fill in that grub_module_info. | |
11325 | * util/powerpc/ieee1275/grub-mkimage.c: New file. | |
11326 | ||
458786f8 | 11327 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
11328 | ||
11329 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds): | |
11330 | New function. | |
11331 | * include/grub/powerpc/ieee1275/ieee1275.h | |
11332 | (grub_ieee1275_milliseconds): New prototype. | |
11333 | * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND): | |
11334 | Change to 1000. | |
11335 | * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call | |
11336 | grub_ieee1275_milliseconds. | |
11337 | ||
ac507d1b | 11338 | 2005-01-03 Hollis Blanchard <hollis@penguinppc.org> |
11339 | ||
11340 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New | |
11341 | variable. | |
11342 | (find_options): New function. | |
11343 | (cmain): Call find_options. | |
11344 | * include/grub/powerpc/ieee1275/ieee1275.h | |
11345 | (grub_ieee1275_realmode): New extern variable. | |
11346 | * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call | |
11347 | grub_map if grub_ieee1275_realmode is false. | |
11348 | ||
6b8fd1c4 | 11349 | 2004-12-29 Marco Gerards <metgerards@student.han.nl> |
11350 | ||
11351 | * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty | |
11352 | lines are inserted and make it work like readline. Reported by | |
11353 | Vincent Pelletier <subdino2004@yahoo.fr>. | |
11354 | ||
8514a1e0 | 11355 | 2004-12-28 Marco Gerards <metgerards@student.han.nl> |
11356 | ||
11357 | * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack. | |
11358 | ||
11359 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove | |
11360 | `kern/powerpc/cache.S'. | |
11361 | ||
924b6140 | 11362 | 2004-12-27 Marco Gerards <metgerards@student.han.nl> |
11363 | ||
11364 | * genmk.rb: Handle the `Program' class in the main loop. Written | |
11365 | by Johan Rydberg <jrydberg@gnu.org>. | |
11366 | (Program): New class. | |
11367 | (programs): New variable. | |
11368 | * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h> | |
11369 | instead of "grub/machine/ieee1275.h". Include <grub/kernel.h> | |
11370 | instead of "grub/kernel.h". Include <grub/machine/init.h>. | |
11371 | (help_arch): Function removed. | |
11372 | * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add | |
11373 | `powerpc/libgcc.h' and `loader.h'. | |
11374 | (pkgdata_PROGRAMS): New variable. | |
11375 | (sbin_UTILITIES): Variable removed. | |
11376 | (grub_emu_SOURCES): Added kern/powerpc/cache.S. | |
11377 | (grubof_SOURCES): Variable re-defined so it only includes the | |
11378 | core functionality. | |
11379 | (grubof_CFLAGS): Remove `-DGRUBOF'. | |
11380 | (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS, | |
11381 | (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES) | |
11382 | (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS) | |
11383 | (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES) | |
11384 | (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS) | |
11385 | (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES) | |
11386 | (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS) | |
11387 | (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS) | |
11388 | (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES) | |
11389 | (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS) | |
11390 | (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS) | |
11391 | (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES) | |
11392 | (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS) | |
11393 | (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES) | |
11394 | (pc_mod_CFLAGS): New variables. | |
11395 | * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>. | |
11396 | (grub_ofdisk_iterate): Add a prototype for `dev_iterate'. | |
11397 | * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype. | |
11398 | * include/grub/loader.h (grub_os_area_addr, grub_os_area_size): | |
11399 | Moved from here... | |
11400 | * include/grub/i386/pc/init.h (grub_os_area_addr) | |
11401 | (rub_os_area_size): ... to here. | |
11402 | * include/grub/powerpc/ieee1275/ieee1275.h | |
11403 | (grub_ieee1275_entry_fn): Export symbol. | |
11404 | * include/grub/powerpc/ieee1275/init.h: New file. | |
11405 | * include/grub/powerpc/libgcc.h: Likewise. | |
11406 | * include/grub/cache.h: Likewise. | |
11407 | * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard | |
11408 | <hollis@penguinppc.org>. | |
11409 | * kern/dl.c: Include <grub/cache.h>. | |
11410 | (grub_dl_flush_cache): New function. | |
11411 | (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache | |
11412 | for this module. | |
11413 | * kern/powerpc/ieee1275/init.c (grub_ofdisk_init) | |
11414 | (grub_console_init): Removed prototypes. | |
11415 | (grub_machine_init): Don't initialize the modules anymore. | |
11416 | * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function | |
11417 | static. | |
11418 | * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN): | |
11419 | Macro undef removed. | |
11420 | (GRUB_HOST_WORDS_BIGENDIAN): New macro. | |
11421 | * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add | |
11422 | relocation `R_PPC_REL32'. Return an error when the relocation is | |
11423 | unknown. | |
11424 | * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'. | |
11425 | * kern/i386/pc/init.c (grub_arch_sync_caches): New function. | |
11426 | * util/misc.c (grub_arch_sync_caches): Likewise. | |
11427 | ||
e4b47e0c | 11428 | 2004-12-19 Marco Gerards <metgerards@student.han.nl> |
11429 | ||
11430 | * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove | |
11431 | `symlist.c', add `grubof_symlist.c'. | |
11432 | (symlist.c): Variable removed. | |
11433 | (grubof_HEADERS): Variable added. | |
11434 | (grubof_symlist.c): New target. | |
11435 | (kernel_syms.lst): Use `grubof_HEADERS' instead of | |
11436 | `kernel_img_HEADERS'. | |
11437 | (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'. | |
11438 | * kern/powerpc/dl.c: New file. | |
11439 | * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header): | |
11440 | Function removed. | |
11441 | (grub_arch_dl_relocate_symbols): Likewise. | |
11442 | (grub_register_exported_symbols): Likewise. | |
11443 | ||
4ceb3636 | 11444 | 2004-12-13 Marco Gerards <metgerards@student.han.nl> |
11445 | ||
11446 | * fs/ext2.c (grub_ext2_open): Don't use data after freeing it. | |
11447 | (grub_ext2_dir): Likewise. Don't return in case of an error, jump | |
11448 | to fail instead. Reported by Vincent Pelletier | |
11449 | <subdino2004@yahoo.fr>. | |
11450 | ||
11451 | * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when | |
11452 | it is not allocated. Reported by Vincent Pelletier | |
11453 | <subdino2004@yahoo.fr>. | |
11454 | ||
11455 | * normal/cmdline.c (grub_tab_complete): Add a blank line to the | |
11456 | output so the output looks better. | |
f19dbdb7 | 11457 | |
3f1578fe | 11458 | 2004-12-04 Marco Gerards <metgerards@student.han.nl> |
11459 | ||
11460 | Modulize the partition map support and add support for the amiga | |
11461 | partition map. | |
f19dbdb7 | 11462 | |
3f1578fe | 11463 | * commands/ls.c: Include <grub/partition.h> instead of |
11464 | <grub/machine/partition.h>. | |
11465 | * kern/disk.c: Likewise. | |
11466 | * kern/rescue.c: Likewise. | |
11467 | * loader/i386/pc/chainloader.c: Likewise. | |
11468 | * normal/cmdline.c: Likewise. | |
11469 | * kern/powerpc/ieee1275/init.c: Likewise. | |
11470 | (grub_machine_init): Call `grub_pc_partition_map_init', | |
11471 | `grub_amiga_partition_map_init' and | |
11472 | `grub_apple_partition_map_init'. | |
11473 | * conf/i386-pc.rmk (kernel_img_SOURCES): Remove | |
11474 | `disk/i386/pc/partition.c'. Add `kern/partition.c'. | |
11475 | (kernel_img_HEADERS): Remove `machine/partition.h'. Add | |
11476 | `partition.h' and `pc_partition.h'. | |
11477 | (grub_setup_SOURCES): Remove | |
11478 | `disk/i386/pc/partition.c'. Add `kern/partition.c', | |
11479 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
11480 | (grub_emu_SOURCES): Likewise. | |
11481 | (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'. | |
11482 | (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES) | |
11483 | (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables. | |
11484 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
11485 | `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c', | |
11486 | `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'. | |
11487 | (grubof_SOURCES): Likewise. | |
11488 | * disk/i386/pc/partition.c: File removed. | |
11489 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
11490 | * include/grub/powerpc/ieee1275/partition.h: Likewise. | |
11491 | * include/grub/i386/pc/partition.h: Likewise. | |
11492 | * kern/partition.c: New file. | |
11493 | * partmap/amiga.c: Likewise. | |
11494 | * partmap/apple.c: Likewise. | |
11495 | * partmap/pc.c: Likewise. | |
11496 | * include/grub/partition.h: Likewise.. | |
11497 | * include/grub/pc_partition.h: Likewise. | |
11498 | * util/grub-emu.c: Include <grub/partition.h> instead of | |
11499 | <grub/machine/partition.h>. | |
11500 | (main): Call `grub_pc_partition_map_init', | |
11501 | `grub_amiga_partition_map_init' and | |
11502 | `grub_apple_partition_map_init' and deinitialize afterwards. | |
11503 | * util/i386/pc/biosdisk.c: Include `#include | |
11504 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
11505 | `<grub/machine/partition.h>'. | |
11506 | * util/i386/pc/grub-setup.c: Likewise. | |
11507 | * util/i386/pc/biosdisk.c: Likewise. | |
11508 | (grub_util_biosdisk_get_grub_dev): Only access the PC specific | |
11509 | partition information in case of a PC partition. | |
11510 | * util/i386/pc/grub-setup.c: Include `#include | |
11511 | <grub/partition.h>' and `include <grub/pc_partition.h>' instead of | |
11512 | `<grub/machine/partition.h>'. | |
11513 | (setup): Only access the PC specific partition information in case | |
11514 | of a PC partition. | |
11515 | ||
0ef4ced9 | 11516 | 2004-11-17 Hollis Blanchard <hollis@penguinppc.org> |
f19dbdb7 | 11517 | |
0ef4ced9 | 11518 | * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function. |
11519 | (grub_longjmp): Likewise. | |
11520 | * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to | |
11521 | 20. | |
11522 | * normal/powerpc/setjmp.S: New file. | |
11523 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
11524 | `normal/powerpc/setjmp.S'. | |
11525 | (grubof_CFLAGS): Add `-DGRUBOF'. | |
11526 | * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to | |
11527 | [GRUB_UTIL && !GRUBOF]. | |
f19dbdb7 | 11528 | |
19950e29 | 11529 | 2004-11-16 Marco Gerards <metgerards@student.han.nl> |
11530 | ||
11531 | * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any | |
11532 | property named `name'. Correctly handle the error returned by | |
11533 | `grub_ieee1275_finddevice' if a device can not be opened. | |
11534 | ||
a2fea427 | 11535 | 2004-11-02 Hollis Blanchard <hollis@penguinppc.org> |
11536 | ||
11537 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test | |
11538 | `actual' for negativity. | |
11539 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove | |
11540 | kern/fshelp.c. | |
11541 | ||
41ea0ea3 | 11542 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
11543 | ||
11544 | * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350. | |
11545 | (PAGE_OFFSET): New macro. | |
11546 | (CRTC_ADDR_PORT): Likewise. | |
11547 | (CRTC_DATA_PORT): Likewise. | |
11548 | (START_ADDR_HIGH_REGISTER): Likewise. | |
11549 | (START_ADDR_LOW_REGISTER): Likewise. | |
11550 | (GRAPHICS_ADDR_PORT): Likewise. | |
11551 | (GRAPHICS_DATA_PORT): Likewise. | |
11552 | (READ_MAP_REGISTER): Likewise. | |
11553 | (INPUT_STATUS1_REGISTER): Likewise. | |
11554 | (INPUT_STATUS1_VERTR_BIT): Likewise. | |
11555 | (page): New variable. | |
11556 | (wait_vretrace): New function. | |
11557 | (set_read_map): Likewise. | |
11558 | (set_start_address): Likewise. | |
11559 | (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to | |
11560 | the right page. | |
11561 | (check_vga_mem): Take the page into account. | |
11562 | (write_char): Likewise. | |
11563 | (write_cursor): Likewise. | |
11564 | (scroll_up): Likewise. Copy the page to the page that is not | |
11565 | shown and switch between both pages. | |
11566 | (grub_vga_putchar): Fix off by one error. | |
11567 | (grub_vga_cls): Wait for the vertical retrace. Take the page into | |
11568 | account. | |
11569 | ||
ad0bd20b | 11570 | 2004-11-01 Marco Gerards <metgerards@student.han.nl> |
11571 | ||
11572 | Add support for iso9660 (including rockridge). | |
f19dbdb7 | 11573 | |
ad0bd20b | 11574 | * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c. |
11575 | (iso9660_mod_SOURCES): New variable. | |
11576 | (iso9660_mod_CFLAGS): Likewise. | |
11577 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c. | |
11578 | * include/grub/fs.h (grub_iso9660_init): New prototype. | |
11579 | * util/grub-emu.c (main): Call `grub_iso9660_init'. | |
11580 | * fs/iso9660.c: New file. | |
11581 | ||
11582 | * include/grub/misc.h (grub_strncat): New prototype. | |
11583 | * kern/misc.c (grub_strncat): New function. | |
f19dbdb7 | 11584 | |
ad0bd20b | 11585 | * fs/hfs.c (grub_hfs_mount): Translate the error |
11586 | `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'. | |
11587 | * fs/jfs.c (grub_jfs_mount): Likewise. | |
11588 | * fs/ufs.c (grub_ufs_mount): Likewise. | |
11589 | ||
a5477a59 | 11590 | 2004-10-28 Hollis Blanchard <hollis@penguinppc.org> |
11591 | ||
11592 | * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements | |
11593 | which initialized BAT registers. | |
11594 | * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN, | |
11595 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
11596 | Move from here... | |
11597 | * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN, | |
11598 | grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON): | |
11599 | ... to here. | |
11600 | * kern/powerpc/ieee1275/openfw.c (grub_map): New function. | |
11601 | (grub_mapclaim): Likewise. | |
11602 | * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use | |
11603 | grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by | |
11604 | hand. | |
11605 | ||
9304c1f8 | 11606 | 2004-10-19 Hollis Blanchard <hollis@penguinppc.org> |
11607 | ||
11608 | * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin. | |
11609 | (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add | |
11610 | -ffreestanding and -msoft-float. | |
11611 | ||
86f4ae25 | 11612 | 2004-10-15 Hollis Blanchard <hollis@penguinppc.org> |
11613 | ||
11614 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not | |
11615 | append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is | |
11616 | set in grub_ieee1275_flags. | |
11617 | ||
38912228 | 11618 | 2004-10-14 Hollis Blanchard <hollis@penguinppc.org> |
11619 | ||
11620 | * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function | |
11621 | prototype. | |
11622 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Call | |
11623 | grub_console_init first. | |
11624 | Change the memory range used for grub_ieee1275_claim and | |
11625 | grub_mm_init_region. | |
11626 | Print an error message if the claim fails. | |
11627 | Include <grub/misc.h>. | |
11628 | ||
d1923dc8 | 11629 | 2004-10-13 Hollis Blanchard <hollis@penguinppc.org> |
11630 | ||
11631 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate): | |
11632 | Call grub_children_iterate for device nodes of type `scsi', | |
11633 | `ide', or `ata'. | |
11634 | (grub_ofdisk_open): Remove manual device alias resolution. | |
11635 | Fix memory leak when device cannot be opened. | |
f19dbdb7 | 11636 | * include/grub/powerpc/ieee1275/ieee1275.h |
d1923dc8 | 11637 | (grub_children_iterate): New prototype. |
11638 | * kern/powerpc/ieee1275/openfw.c (grub_children_iterate): | |
11639 | New function. | |
11640 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): | |
11641 | Return -1 if args.size was -1. | |
11642 | ||
4512e4f3 | 11643 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
11644 | ||
11645 | * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global. | |
11646 | (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old | |
11647 | World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim | |
11648 | Open Firmware's memory for it; claim memory from _start to _end. | |
11649 | * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern. | |
11650 | (_end): New extern. | |
11651 | (_start): Zero BSS from __bss_start to _end. | |
11652 | * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags): | |
11653 | New extern. | |
11654 | (GRUB_IEEE1275_NO_PARTITION_0): New #define. | |
11655 | ||
4d61feb0 | 11656 | 2004-10-11 Hollis Blanchard <hollis@penguinppc.org> |
11657 | ||
ad0bd20b | 11658 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return |
11659 | -1 if args.base was -1. | |
4d61feb0 | 11660 | |
026fa2f9 | 11661 | 2004-10-08 Hollis Blanchard <hollis@penguinppc.org> |
11662 | ||
11663 | * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI | |
11664 | escape sequence instead of a literal ^L. Also call | |
11665 | grub_ofconsole_gotoxy. | |
11666 | ||
9f2220ef | 11667 | 2004-10-03 Hollis Blanchard <hollis@penguinppc.org> |
11668 | ||
11669 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change | |
11670 | void * arguments to grub_addr_t. All callers updated. Also make | |
11671 | the `result' argument optional. | |
11672 | (grub_ieee1275_release): change void * arguments to grub_addr_t. | |
11673 | All callers updated. | |
11674 | ||
8a572cd7 | 11675 | 2004-09-22 Hollis Blanchard <hollis@penguinppc.org> |
11676 | ||
11677 | * commands/ls.c (grub_ls_list_files): Use the string following the | |
11678 | initial ')', if present, as the filesystem path. | |
11679 | * kern/rescue.c (grub_rescue_cmd_ls): Likewise. | |
11680 | ||
11681 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first. | |
11682 | ||
18aa81f2 | 11683 | 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org> |
11684 | ||
11685 | Make the source code of the menu interface more readable. | |
f19dbdb7 | 11686 | |
18aa81f2 | 11687 | * normal/menu.c: Include grub/mm.h. |
11688 | (TERM_WIDTH): New macro. | |
11689 | (TERM_HEIGHT): Likewise. | |
11690 | (TERM_INFO_HEIGHT): Likewise. | |
11691 | (TERM_MARGIN): Likewise. | |
11692 | (TERM_SCROLL_WIDTH): Likewise. | |
11693 | (TERM_TOP_BORDER_Y): Likewise. | |
11694 | (TERM_LEFT_BORDER_X): Likewise. | |
11695 | (TERM_BORDER_WIDTH): Likewise. | |
11696 | (TERM_MESSAGE_HEIGHT): Likewise. | |
11697 | (TERM_BORDER_HEIGHT): Likewise. | |
11698 | (TERM_NUM_ENTRIES): Likewise. | |
11699 | (TERM_FIRST_ENTRY_Y): Likewise. | |
11700 | (TERM_ENTRY_WIDTH): Likewise. | |
11701 | (TERM_CURSOR_X): Likewise. | |
11702 | (draw_border): Use macros instead of magic numbers. | |
11703 | (print_entry): Likewise. | |
11704 | (print_entries): Likewise. | |
11705 | (run_menu): Likewise. Also, handle the key 'e'. | |
11706 | (run_menu_entry): Ignore empty command lines. | |
11707 | (print_message): Added a new argument EDIT. If EDIT is true, | |
11708 | print a different message. | |
11709 | (init_page): Likewise. | |
11710 | (edit_menu_entry): New function. Not implemented yet. | |
11711 | ||
b47efe30 | 11712 | 2004-09-17 Marco Gerards <metgerards@student.han.nl> |
11713 | ||
11714 | Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels | |
11715 | can be loaded from normal mode. | |
f19dbdb7 | 11716 | |
b47efe30 | 11717 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and |
11718 | `multiboot.mod'. | |
11719 | (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES) | |
11720 | (multiboot_mod_CFLAGS): New variables. | |
11721 | * loader/i386/pc/linux_normal.c: New file. | |
f19dbdb7 | 11722 | * loader/i386/pc/multiboot_normal.c: Likewise. |
11723 | ||
b47efe30 | 11724 | * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the |
11725 | attribute `unused'. | |
f19dbdb7 | 11726 | |
b47efe30 | 11727 | * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use |
11728 | `fdiro' to read the mode information from instead of `diro'. | |
11729 | ||
11730 | * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after | |
11731 | looking up a symlink. | |
11732 | ||
11733 | * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New | |
11734 | macro. | |
11735 | * normal/command.c (grub_command_execute): Don't parse the | |
11736 | arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the | |
11737 | flags of the command. | |
11738 | ||
11739 | * normal/menu.c (grub_menu_run): Fix typo. | |
11740 | ||
da75ac71 | 11741 | 2004-09-14 Hollis Blanchard <hollis@penguinppc.org> |
11742 | ||
11743 | * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware. | |
11744 | ||
11745 | * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use | |
11746 | `y + 1' instead of `y - 1'. | |
11747 | ||
11748 | * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'. | |
f19dbdb7 | 11749 | |
062b24c2 | 11750 | 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org> |
11751 | ||
11752 | From Hollis Blanchard <hollis@penguinppc.org>: | |
11753 | * kern/misc.c (memmove): New alias for grub_memmove. | |
11754 | (memcmp): New alias for grub_memcmp. | |
11755 | (memset): New alias for grub_memset. | |
f19dbdb7 | 11756 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property): |
062b24c2 | 11757 | Change "int handle" to "grub_ieee1275_phandle_t handle". |
f19dbdb7 | 11758 | * include/grub/powerpc/ieee1275/ieee1275.h |
062b24c2 | 11759 | (grub_ieee1275_get_property): Likewise. |
f19dbdb7 | 11760 | |
8ddad845 | 11761 | 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz> |
11762 | ||
11763 | Added normal mode command `chainloader' as module chain.mod, which | |
11764 | depends on normal.mod and _chain.mod. | |
f19dbdb7 | 11765 | |
8ddad845 | 11766 | * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'. |
11767 | (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added. | |
11768 | * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader): | |
11769 | Deleted prototype. | |
11770 | * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All | |
11771 | but arguments parsing moved to ... | |
11772 | (grub_chainloader_cmd): ... here. New function. | |
11773 | * include/grub/i386/pc/chainloader.h: New file. | |
11774 | * loader/i386/pc/chainloader_normal.c: Likewise. | |
11775 | ||
2c1f4ce3 | 11776 | 2004-09-11 Marco Gerards <metgerards@student.han.nl> |
11777 | ||
11778 | * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c. | |
11779 | (grub_mkimage_LDFLAGS): Likewise. | |
11780 | (grub_emu_SOURCES): Likewise. | |
11781 | (kernel_img_HEADERS): Added fshelp.h. | |
11782 | * fs/ext2.c: Include <grub/fshelp.h>. | |
11783 | (FILETYPE_REG): New macro. | |
11784 | (FILETYPE_INO_REG): Likewise. | |
11785 | (grub_ext_sblock): Renamed to `grub_ext2_sblock'. | |
11786 | Changed all users. | |
11787 | (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed | |
11788 | all users. | |
11789 | (grub_fshelp_node): New struct. | |
11790 | (grub_ext2_data): Added member `diropen'. Changed member `inode' | |
11791 | to a pointer. | |
11792 | (grub_ext2_get_file_block): Removed function. | |
11793 | (grub_ext2_read_block): New function. | |
11794 | (grub_ext2_read_file): Replaced parameter `data' by `node'. | |
11795 | This function was written. | |
11796 | (grub_ext2_mount): Read the root inode. Create a diropen struct. | |
11797 | (grub_ext2_find_file): Removed function. | |
11798 | (grub_ext2_read_symlink): New function. | |
11799 | (grub_ext2_iterate_dir): Likewise. | |
11800 | (grub_ext2_open): Rewritten. | |
11801 | (grub_ext2_dir): Rewritten. | |
11802 | * include/grub/fshelp.h: New file. | |
11803 | * fs/fshelp.c: Likewise. | |
11804 | ||
3c52136a | 11805 | 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org> |
11806 | ||
11807 | * normal/menu.c: Include grub/loader.h and grub/machine/time.h. | |
11808 | (print_message): Add a missing newline. | |
11809 | (run_menu): Added timeout support. | |
11810 | (run_menu_entry): New local function. | |
11811 | (grub_menu_run): Added support for booting. | |
11812 | ||
11813 | * kern/loader.c (grub_loader_is_loaded): New function. | |
11814 | ||
11815 | * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h. | |
11816 | (grub_get_rtc): Exported. | |
11817 | ||
11818 | * include/grub/i386/pc/time.h: Include grub/symbol.h. | |
11819 | (grub_get_rtc): Exported. | |
11820 | ||
11821 | * include/grub/normal.h (struct grub_command_list): Remove | |
11822 | constant from the member `command'. | |
11823 | ||
11824 | * include/grub/loader.h (grub_loader_is_loaded): Declared. | |
11825 | ||
11826 | * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant. | |
11827 | ||
11828 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h. | |
11829 | ||
aa033560 | 11830 | 2004-08-28 Marco Gerards <metgerards@student.han.nl> |
11831 | ||
11832 | Add support for the JFS filesystem. | |
11833 | ||
11834 | * fs/jfs.c: New file. | |
11835 | * include/grub/fs.h (grub_jfs_init): New prototype. | |
11836 | (grub_jfs_fini): New prototype. | |
11837 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c. | |
11838 | (grub_emu_SOURCES): Likewise. | |
11839 | (pkgdata_MODULES): Add jfs.mod. | |
11840 | (jfs_mod_SOURCES): New variable. | |
11841 | (jfs_mod_CFLAGS): Likewise. | |
11842 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c. | |
11843 | (grubof_SOURCES): Likewise. | |
11844 | * util/grub-emu.c (main): Initialize and deinitialize JFS support. | |
11845 | ||
11846 | * fs/fat.c (grub_fat_find_dir): Convert the filename little | |
11847 | endian to the host endian. | |
11848 | (grub_fat_utf16_to_utf8): Move function from there... | |
11849 | * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert | |
fe987087 | 11850 | the endianness of the source string anymore. |
aa033560 | 11851 | * include/grub/misc.h (grub_utf16_to_utf8): New prototype. |
11852 | ||
94bc45af | 11853 | 2004-08-24 Marco Gerards <metgerards@student.han.nl> |
11854 | ||
11855 | * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional. | |
11856 | (grub_boot_fini) [GRUB_UTIL]: Likewise. | |
11857 | (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise. | |
11858 | (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise. | |
f19dbdb7 | 11859 | |
94bc45af | 11860 | * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'. |
11861 | (grub_hfs_iterate_dir): Make the function static. Add prototypes | |
11862 | for `node_found' and `it_dir'. | |
11863 | (grub_hfs_dir): Add prototype for `dir_hook'. | |
11864 | ||
11865 | * fs/minix.c (grub_minix_get_file_block): Add prototype for | |
11866 | `grub_get_indir'. Rename `indir' in two blocks to `indir16' | |
11867 | and `indir32' to silence a gcc warning. | |
11868 | ||
11869 | * include/grub/fs.h (grub_hfs_init): New prototype. | |
11870 | (grub_hfs_fini): Likewise. | |
f19dbdb7 | 11871 | |
11872 | ||
97543f08 | 11873 | 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org> |
11874 | ||
11875 | Each disk device has its own id now. This is useful to make use | |
11876 | of multiple disk devices. | |
f19dbdb7 | 11877 | |
97543f08 | 11878 | * include/grub/disk.h (grub_disk_dev_id): New enum. |
11879 | (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant. | |
11880 | (GRUB_DISK_DEVICE_OFDISK_ID): Likewise. | |
11881 | ||
11882 | * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify | |
11883 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
11884 | ||
11885 | * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify | |
11886 | GRUB_DISK_DEVICE_OFDISK_ID as an id. | |
11887 | ||
11888 | * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify | |
11889 | GRUB_DISK_DEVICE_BIOSDISK_ID as an id. | |
11890 | ||
11891 | * include/grub/disk.h (struct grub_disk_dev): Added a new member | |
11892 | "id" which is used by the cache manager. | |
11893 | ||
11894 | * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead | |
11895 | of just "GRUB". | |
11896 | ||
64372eb4 | 11897 | 2004-08-18 Marco Gerards <metgerards@student.han.nl> |
11898 | ||
11899 | * fs/hfs.c: New file. | |
11900 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c. | |
11901 | (grub_emu_SOURCES): Likewise. | |
11902 | (pkgdata_MODULES): Add hfs.mod. | |
11903 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c. | |
11904 | (grubof_SOURCES): Likewise. | |
11905 | * util/grub-emu.c (main): Initialize and deinitialize HFS support. | |
11906 | ||
11907 | * include/grub/misc.h (grub_strncasecmp): Add prototype. | |
11908 | * kern/misc.c (grub_strncasecmp): Add function. | |
11909 | ||
cc61b58f | 11910 | 2004-08-14 Marco Gerards <metgerards@student.han.nl> |
11911 | ||
11912 | * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro | |
11913 | with parentheses. | |
11914 | ||
11915 | * fs/ext2.c (FILETYPE_UNKNOWN): New macro. | |
11916 | (grub_ext2_dir): In case the directory entry type is unknown, read | |
11917 | it from the inode. | |
11918 | ||
0ef123f6 | 11919 | 2004-08-02 Peter Bruin <pjbruin@dds.nl> |
11920 | ||
11921 | * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass | |
11922 | grub_load_linux instead of grub_rescue_cmd_linux as second | |
11923 | argument of grub_rescue_register_command. | |
11924 | ||
11925 | * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk. | |
11926 | ||
a447c5df | 11927 | 2004-07-27 Marco Gerards <metgerards@student.han.nl> |
11928 | ||
11929 | * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New | |
11930 | function. | |
11931 | * commands/boot.c: Remove the check for `GRUB_UTIL'. | |
11932 | * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add | |
11933 | `loader/powerpc/ieee1275/linux.c', | |
11934 | `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'. | |
11935 | * include/grub/powerpc/ieee1275/ieee1275.h | |
11936 | (grub_ieee1275_release): New prototype. | |
11937 | * include/grub/powerpc/ieee1275/loader.h: Rewritten. | |
11938 | * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize | |
11939 | normal, boot, linux and linux_normal. | |
11940 | * loader/powerpc/ieee1275/linux.c: New file. | |
11941 | * loader/powerpc/ieee1275/linux_normal.c: Likewise. | |
11942 | ||
5a9e3546 | 11943 | 2004-07-12 Marco Gerards <metgerards@student.han.nl> |
11944 | ||
11945 | * normal/arg.c (grub_arg_parse): Correct error handling after | |
11946 | reallocating the argumentlist (check if `argl' is not null instead | |
11947 | of checking if `args' is not null). | |
11948 | * kern/mm.c (grub_realloc): Return the same pointer when using the | |
11949 | same region, instead of returning the header address. | |
11950 | ||
e15199cb | 11951 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
11952 | ||
11953 | * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip | |
11954 | one block instead of two when looking for the initial partition. | |
11955 | (grub_partition_probe): Initialize the local variable `p' with 0. | |
11956 | Use base 10 for the grub_strtoul call. | |
11957 | * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the | |
11958 | need for one local variable. | |
11959 | (grub_strtoul): Don't add the new value to `num', instead of that | |
11960 | just assign it. | |
11961 | ||
020616c2 | 11962 | 2004-07-11 Marco Gerards <metgerards@student.han.nl> |
11963 | ||
11964 | * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img. | |
11965 | (pxeboot_img_SOURCES): New variable. | |
11966 | (pxeboot_img_ASFLAGS): Likewise. | |
11967 | (pxeboot_img_LDFLAGS): Likewise. | |
11968 | * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from | |
11969 | GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy | |
11970 | <lode_leroy@hotmail.com>. | |
11971 | ||
6c51eb64 | 11972 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
11973 | ||
11974 | * kern/rescue.c (grub_enter_rescue_mode): Don't continue when | |
11975 | there was no input. | |
11976 | ||
cfb12aff | 11977 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
11978 | ||
11979 | * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed | |
11980 | the history buffer logic. | |
11981 | ||
6eabba74 | 11982 | 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz> |
11983 | ||
11984 | * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY) | |
11985 | (FILETYPE_INO_SYMLINK): New macros. | |
11986 | (grub_ext2_find_file): Check if the node is a directory using the | |
11987 | inode stat information instead of using the filetype in the | |
11988 | dirent. Exclude the first character of an absolute symlink. | |
11989 | (grub_ext2_dir): Mask out the filetype part of the mode member of | |
11990 | the inode. | |
11991 | ||
66e19ef8 | 11992 | 2004-05-24 Marco Gerards <metgerards@student.han.nl> |
11993 | ||
11994 | Add support for UFS version 1 and 2. Add support for the minix | |
11995 | filesystem version 1 and 2, both the variants with 14 and 30 long | |
11996 | filenames. | |
f19dbdb7 | 11997 | |
66e19ef8 | 11998 | * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and |
11999 | fs/minix.c. | |
12000 | (grub_emu_SOURCES): Likewise. | |
12001 | (pkgdata_MODULES): Add ufs.mod and minix.mod. | |
12002 | (ufs_mod_SOURCES): New variable. | |
12003 | (ufs_mod_CFLAGS): Likewise. | |
12004 | (minix_mod_SOURCES): Likewise. | |
12005 | (minix_mod_CFLAGS): Likewise. | |
12006 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and | |
12007 | fs/minix.c. | |
12008 | (grubof_SOURCES): Likewise. | |
12009 | * fs/ufs.c: New file. | |
12010 | * fs/minix.c: New file. | |
12011 | * include/grub/fs.h (grub_ufs_init): New prototype. | |
12012 | (grub_ufs_fini): Likewise. | |
12013 | (grub_minix_init): Likewise. | |
12014 | (grub_minix_fini): Likewise. | |
12015 | * util/grub-emu.c (main): Initialize and deinitialize UFS and | |
12016 | minix fs. | |
12017 | ||
cc2e748a | 12018 | 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx> |
12019 | ||
12020 | * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c, | |
12021 | commands/ls.c, commands/terminal.c, commands/boot.c, | |
12022 | commands/cmp.c and commands/cat.c. | |
12023 | (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc. | |
12024 | ||
12025 | * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of | |
12026 | "env.h" | |
12027 | ||
4b13b216 | 12028 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
12029 | ||
12030 | All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_ | |
12031 | and grub_, respectively. Because the conversion is trivial and | |
12032 | mechanical, I omit the details here. Please refer to the CVS | |
12033 | if you need more information. | |
12034 | ||
6a142551 | 12035 | 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> |
12036 | ||
12037 | * include/pupa: Renamed to ... | |
12038 | * include/grub: ... this. | |
12039 | * util/i386/pc/pupa-mkimage.c: Renamed to ... | |
12040 | * util/i386/pc/grub-mkimage.c: ... this. | |
12041 | * util/i386/pc/pupa-setup.c: Renamed to ... | |
12042 | * util/i386/pc/grub-setup.c: ... this. | |
12043 | * util/pupa-emu.c: Renamed to ... | |
12044 | * util/grub-emu.c: ... this. | |
12045 | ||
e56cdf21 | 12046 | 2004-03-29 Marco Gerards <metgerards@student.han.nl> |
12047 | ||
12048 | Add support for the newworld apple macintosh (PPC). This has been | |
12049 | tested on the powerbook 2000 only. It only adds support for | |
12050 | generic ieee1275 functions, console and disk support. This should | |
12051 | be easy to port to other architectures with support for Open | |
12052 | Firmware. | |
f19dbdb7 | 12053 | |
e56cdf21 | 12054 | * configure.ac: Accept the powerpc as host_cpu. In the case of |
12055 | the powerpc cpu set the host_vendor to ieee1275. Make sure the i386 | |
12056 | specific tests are only executed while building for the i386. | |
12057 | Inverse test for crosscompile. | |
12058 | * genmk.rb (Utility): Allow assembler files. | |
12059 | * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno. | |
12060 | * conf/powerpc-ieee1275.rmk: New file. | |
12061 | * disk/powerpc/ieee1275/ofdisk.c: Likewise. | |
12062 | * disk/powerpc/ieee1275/partition.c: Likewise. | |
12063 | * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise. | |
12064 | * include/pupa/powerpc/ieee1275/console.h: Likewise. | |
12065 | * include/pupa/powerpc/ieee1275/partition.h: Likewise. | |
12066 | * include/pupa/powerpc/ieee1275/time.h: Likewise. | |
12067 | * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise. | |
12068 | * include/pupa/powerpc/ieee1275/multiboot.h: Likewise. | |
12069 | * include/pupa/powerpc/ieee1275/loader.h | |
12070 | * include/pupa/powerpc/setjmp.h: Likewise. | |
12071 | * include/pupa/powerpc/types.h: Likewise. | |
12072 | * kern/powerpc/ieee1275/init.c: Likewise. | |
12073 | * kern/powerpc/ieee1275/openfw.c: Likewise. | |
12074 | * term/powerpc/ieee1275/ofconsole.c: Likewise. | |
12075 | ||
12076 | These files were written by Johan Rydberg | |
12077 | (jrydberg@night.trouble.net) and I only modified them slightly. | |
f19dbdb7 | 12078 | |
e56cdf21 | 12079 | * boot/powerpc/ieee1275/cmain.c: New file. |
12080 | * boot/powerpc/ieee1275/crt0.S: Likewise. | |
12081 | * boot/powerpc/ieee1275/ieee1275.c: Likewise. | |
12082 | * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise. | |
12083 | ||
8c8cc205 | 12084 | 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx> |
12085 | ||
12086 | * Makefile.in: Update copyright. | |
12087 | * genmodsrc.sh: Likewise. | |
12088 | * gensymlist.sh: Likewise. | |
12089 | * term/i386/pc/vga.c: Indent correctly. | |
12090 | ||
12091 | * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as | |
12092 | bugreporting address. | |
12093 | * util/i386/pc/pupa-setup.c (usage): Likewise, | |
12094 | (main): Call pupa_ext2_init and pupa_ext2_fini. | |
12095 | ||
f19dbdb7 | 12096 | * fs/fat.c (log2): Renamed to ... |
8c8cc205 | 12097 | (fat_log2): ... this. |
12098 | All callers changed. | |
12099 | * kern/misc.c (memcpy): Alias to pupa_memmove. | |
12100 | * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix | |
12101 | lvalue cast. | |
12102 | * util/console.c (pupa_ncurses_fini): Return 0. | |
12103 | ||
12104 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]: | |
12105 | Move fail label here. | |
12106 | [__GNU__]: Don't warn when using stat. | |
12107 | (open_device)[!__linux__]: Check if FD < 0 instead of !FD. | |
12108 | (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to | |
12109 | long int. Use strtol instead of strtoul. | |
f19dbdb7 | 12110 | |
db1771cf | 12111 | 2004-03-14 Marco Gerards <metgerards@student.han.nl> |
12112 | ||
12113 | * commands/boot.c: New file. | |
12114 | * commands/cat.c: Likewise. | |
12115 | * commands/cmp.c: Likewise. | |
12116 | * commands/ls.c: Likewise. | |
12117 | * commands/terminal.c: Likewise. | |
12118 | * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>. | |
12119 | (pupa_register_command): Changed interface to match the new | |
12120 | argument parser. | |
12121 | (pupa_command_execute): Changed (almost rewritten) so it uses | |
12122 | pupa_split_command. Added support for setting variables using the | |
12123 | syntax `foo=bar'. | |
12124 | (rescue_command): Changed to work with the new argument parser. | |
12125 | (terminal_command): Moved from here to commands/terminal.c. | |
12126 | (set_command): New function. | |
12127 | (unset_command): New function. | |
12128 | (insmod_command): New function. | |
12129 | (rmmod_command): New function. | |
12130 | (lsmod_command): New function. | |
12131 | (pupa_command_init): Don't initialize the command terminal | |
12132 | anymore. Initialize the commands set, unset, insmod, rmmod and | |
12133 | lsmod. | |
12134 | * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c. | |
12135 | (kernel_img_HEADERS): Add arg.h and env.h. | |
12136 | (pupa_mkimage_LDFLAGS): Add kern/env.c. | |
12137 | (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c, | |
12138 | commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c, | |
12139 | normal/arg.c. | |
12140 | (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and | |
12141 | terminal.mod. | |
12142 | (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c. | |
12143 | (boot_mod_SOURCES): New variable. | |
12144 | (terminal_mod_SOURCES): Likewise. | |
12145 | (ls_mod_SOURCES): Likewise. | |
12146 | (cmp_mod_SOURCES): Likewise. | |
12147 | (cat_mod_SOURCES): Likewise. | |
12148 | ||
12149 | * normal/arg.c: New file. | |
12150 | * kern/env.c: Likewise. | |
12151 | * include/pupa/arg.h: Likewise. | |
12152 | * include/pupa/env.h: Likewise. | |
12153 | * font/manager.c (font_command): Changed to match argument parsing | |
12154 | interface changes. | |
12155 | (PUPA_MOD_INIT): Likewise. | |
12156 | * hello/hello.c (pupa_cmd_hello): Likewise. | |
12157 | (PUPA_MOD_INIT): Likewise. | |
12158 | * include/pupa/disk.h: Include <pupa/device.h>. | |
12159 | (pupa_print_partinfo): New prototype. | |
12160 | * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed. | |
12161 | (pupa_dl_get_prefix): Likewise. | |
12162 | * include/pupa/misc.h: Include <pupa/err.h>. | |
12163 | (pupa_isgraph): New prototype. | |
12164 | (pupa_isdigit): Likewise. | |
12165 | (pupa_split_cmdline): Likewise. | |
12166 | * include/pupa/normal.h: Include <pupa/arg.h>. | |
12167 | (pupa_command): Changed the prototype of the member `func' to | |
12168 | match the argument parsing interface. Added member `options'. | |
12169 | (pupa_register_command): Updated to match function. | |
12170 | (pupa_arg_parse): New prototype. | |
12171 | (pupa_hello_init) [PUPA_UTIL]: New prototype. | |
12172 | (pupa_hello_fini) [PUPA_UTIL]: Likewise. | |
12173 | (pupa_ls_init) [PUPA_UTIL]: Likewise. | |
12174 | (pupa_ls_fini) [PUPA_UTIL]: Likewise. | |
12175 | (pupa_cat_init) [PUPA_UTIL]: Likewise. | |
12176 | (pupa_cat_fini) [PUPA_UTIL]: Likewise. | |
12177 | (pupa_boot_init) [PUPA_UTIL]: Likewise. | |
12178 | (pupa_boot_fini) [PUPA_UTIL]: Likewise. | |
12179 | (pupa_cmp_init) [PUPA_UTIL]: Likewise. | |
12180 | (pupa_cmp_fini) [PUPA_UTIL]: Likewise. | |
12181 | (pupa_terminal_init) [PUPA_UTIL]: Likewise. | |
12182 | (pupa_terminal_fini) [PUPA_UTIL]: Likewise. | |
12183 | * kern/disk.c: Include <pupa/file.h>. | |
12184 | (pupa_print_partinfo): New function. | |
12185 | * kern/dl.c: Include <pupa/env.h>. | |
12186 | (pupa_dl_dir): Variable removed. | |
12187 | (pupa_dl_load): Use the environment variable `prefix' instead of | |
12188 | the variable pupa_dl_dir. | |
12189 | (pupa_dl_set_prefix): Function removed. | |
12190 | (pupa_dl_get_prefix): Likewise. | |
12191 | * kern/i386/pc/init.c: Include <pupa/env.h>. | |
12192 | (pupa_machine_init): Use the environment variable `prefix' instead of | |
12193 | using pupa_dl_set_prefix to set the prefix. | |
12194 | * kern/main.c: Include <pupa/env.h>. | |
12195 | (pupa_set_root_dev): Use the environment variable `prefix' instead of | |
12196 | using pupa_dl_get_prefix to get the prefix. | |
12197 | * kern/misc.c: Include <pupa/env.h>. | |
12198 | (pupa_isdigit): New function. | |
12199 | (pupa_isgraph): Likewise. | |
12200 | (pupa_ftoa): Likewise. | |
12201 | (pupa_vsprintf): Added support for printing values of the type | |
12202 | `double'. Make it possible to format variable output when using | |
12203 | formatting like `%1.2%f'. | |
12204 | (pupa_split_cmdline): New function. | |
12205 | * kern/rescue.c: Include <pupa/env.h>. | |
12206 | (next_word): Removed function. | |
12207 | (pupa_rescue_cmd_prefix): Likewise. | |
12208 | (pupa_rescue_cmd_set): New function. | |
12209 | (pupa_rescue_cmd_unset): New function. | |
12210 | (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to | |
12211 | split the command line instead of splitting it here. Added | |
12212 | support for setting variables using the syntax `foo=bar'. Don't | |
12213 | initialize the prefix command anymore. Initialized the set and | |
12214 | unset commands. | |
12215 | * normal/cmdline.c: Include <pupa/env.h>. | |
12216 | (pupa_tab_complete): Added prototypes for print_simple_completion, | |
12217 | print_partition_completion, add_completion, iterate_commands, | |
12218 | iterate_dev, iterate_part and iterate_dir. Moved code to print | |
12219 | partition information from here to kern/disk.c. | |
fe6b695a | 12220 | (pupa_cmdline_run): Don't check if the function exists anymore. |
db1771cf | 12221 | * normal/main.c: Include <pupa/env.h>. |
12222 | (pupa_rescue_cmd_normal): Use the environment variable `prefix' | |
12223 | instead of using pupa_dl_get_prefix to get the prefix. | |
12224 | * term/i386/pc/vga.c: Include <pupa/arg.h>. | |
12225 | (check_vga_mem): Cast pointers to `void *' to silence a gcc | |
12226 | warning. | |
12227 | (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case. | |
12228 | (pupa_vga_setcolor): Declare unused variables with `__attribute__ | |
12229 | ((unused))' to silence a gcc warning. | |
12230 | (pupa_vga_setcolor): Likewise. | |
12231 | (debug_command): Changed to match argument parsing | |
12232 | interface changes. | |
12233 | * util/pupa-emu.c: Include <pupa/env.h>. | |
12234 | (options): Added 0's for unused fields to silence a gcc warning. | |
12235 | (argp): Likewise. | |
12236 | (main): Use the environment variable `prefix' instead of using | |
12237 | pupa_dl_set_prefix to set the prefix. Initialize the commands ls, | |
12238 | boot, cmp, cat and terminal. Finish the commands boot, cmp, cat | |
12239 | and terminal. | |
12240 | ||
12241 | * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>. | |
12242 | * util/misc.c: Include <malloc.h>. | |
12243 | (pupa_malloc): Rewritten so errors are correctly reported. | |
12244 | (pupa_realloc): Likewise. | |
12245 | (pupa_memalign): Likewise. | |
12246 | (pupa_mm_init_region): Declare unused variables with | |
12247 | `__attribute__ ((unused))' to silence a gcc warning. | |
12248 | * normal/i386/setjmp.S: Remove tab at the end of the file to | |
12249 | silence a gcc warning. | |
12250 | * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused | |
12251 | variables with `__attribute__ ((unused))' to silence a gcc | |
12252 | warning. | |
12253 | * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the | |
12254 | local variable i unsigned to silence a gcc warning. | |
12255 | ||
12256 | * kern/term.c: Include <pupa/misc.h>. | |
12257 | (pupa_more_lines): New variable. | |
12258 | (pupa_more): Likewise. | |
12259 | (pupa_putcode): When the pager is active pause at the end of every | |
12260 | screen. | |
12261 | (pupa_set_more): New function. | |
12262 | * include/pupa/term.h (pupa_set_more): New prototype. | |
12263 | ||
12264 | ||
3b1139cb | 12265 | 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org> |
12266 | ||
12267 | Now this project is GRUB 2 rather than PUPA. The location of | |
12268 | the CVS repository was moved to GRUB's. | |
f19dbdb7 | 12269 | |
3b1139cb | 12270 | * configure.ac: Use bug-grub as the reporting address. |
12271 | Use GRUB instead of PUPA. | |
12272 | Change the version number to 1.90. | |
12273 | ||
8367695c | 12274 | 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org> |
12275 | ||
12276 | * genkernsyms.sh: Updated copyright information. | |
12277 | * genmk.rb: Likewise. | |
12278 | * genmodsrc.sh: Likewise. | |
12279 | * gensymlist.sh: Likewise. | |
12280 | * boot/i386/pc/boot.S: Likewise. | |
12281 | * boot/i386/pc/diskboot.S: Likewise. | |
12282 | * disk/i386/pc/biosdisk.c: Likewise. | |
12283 | * disk/i386/pc/partition.c: Likewise. | |
12284 | * font/manager.c: Likewise. | |
12285 | * fs/ext2.c: Likewise. | |
12286 | * fs/fat.c: Likewise. | |
12287 | * include/pupa/boot.h: Likewise. | |
12288 | * include/pupa/device.h: Likewise. | |
12289 | * include/pupa/disk.h: Likewise. | |
12290 | * include/pupa/dl.h: Likewise. | |
12291 | * include/pupa/elf.h: Likewise. | |
12292 | * include/pupa/err.h: Likewise. | |
12293 | * include/pupa/file.h: Likewise. | |
12294 | * include/pupa/font.h: Likewise. | |
12295 | * include/pupa/fs.h: Likewise. | |
12296 | * include/pupa/kernel.h: Likewise. | |
12297 | * include/pupa/loader.h: Likewise. | |
12298 | * include/pupa/misc.h: Likewise. | |
12299 | * include/pupa/mm.h: Likewise. | |
12300 | * include/pupa/net.h: Likewise. | |
12301 | * include/pupa/normal.h: Likewise. | |
12302 | * include/pupa/rescue.h: Likewise. | |
12303 | * include/pupa/setjmp.h: Likewise. | |
12304 | * include/pupa/symbol.h: Likewise. | |
12305 | * include/pupa/term.h: Likewise. | |
12306 | * include/pupa/types.h: Likewise. | |
12307 | * include/pupa/i386/setjmp.h: Likewise. | |
12308 | * include/pupa/i386/types.h: Likewise. | |
12309 | * include/pupa/i386/pc/biosdisk.h: Likewise. | |
12310 | * include/pupa/i386/pc/boot.h: Likewise. | |
12311 | * include/pupa/i386/pc/console.h: Likewise. | |
12312 | * include/pupa/i386/pc/init.h: Likewise. | |
12313 | * include/pupa/i386/pc/kernel.h: Likewise. | |
12314 | * include/pupa/i386/pc/linux.h: Likewise. | |
12315 | * include/pupa/i386/pc/loader.h: Likewise. | |
12316 | * include/pupa/i386/pc/memory.h: Likewise. | |
12317 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
12318 | * include/pupa/i386/pc/partition.h: Likewise. | |
12319 | * include/pupa/i386/pc/time.h: Likewise. | |
12320 | * include/pupa/i386/pc/vga.h: Likewise. | |
12321 | * include/pupa/i386/pc/util/biosdisk.h: Likewise. | |
12322 | * include/pupa/util/getroot.h: Likewise. | |
12323 | * include/pupa/util/misc.h: Likewise. | |
12324 | * include/pupa/util/resolve.h: Likewise. | |
12325 | * kern/device.c: Likewise. | |
12326 | * kern/disk.c: Likewise. | |
12327 | * kern/dl.c: Likewise. | |
12328 | * kern/err.c: Likewise. | |
12329 | * kern/file.c: Likewise. | |
12330 | * kern/fs.c: Likewise. | |
12331 | * kern/loader.c: Likewise. | |
12332 | * kern/main.c: Likewise. | |
12333 | * kern/misc.c: Likewise. | |
12334 | * kern/mm.c: Likewise. | |
12335 | * kern/rescue.c: Likewise. | |
12336 | * kern/term.c: Likewise. | |
12337 | * kern/i386/dl.c: Likewise. | |
12338 | * kern/i386/pc/init.c: Likewise. | |
12339 | * kern/i386/pc/lzo1x.S: Likewise. | |
12340 | * kern/i386/pc/startup.S: Likewise. | |
12341 | * loader/i386/pc/chainloader.c: Likewise. | |
12342 | * loader/i386/pc/linux.c: Likewise. | |
12343 | * loader/i386/pc/multiboot.c: Likewise. | |
12344 | * normal/cmdline.c: Likewise. | |
12345 | * normal/command.c: Likewise. | |
12346 | * normal/main.c: Likewise. | |
12347 | * normal/menu.c: Likewise. | |
12348 | * normal/i386/setjmp.S: Likewise. | |
12349 | * term/i386/pc/console.c: Likewise. | |
12350 | * term/i386/pc/vga.c: Likewise. | |
12351 | * util/console.c: Likewise. | |
12352 | * util/genmoddep.c: Likewise. | |
12353 | * util/misc.c: Likewise. | |
12354 | * util/pupa-emu.c: Likewise. | |
12355 | * util/resolve.c: Likewise. | |
12356 | * util/unifont2pff.rb: Likewise. | |
12357 | * util/i386/pc/biosdisk.c: Likewise. | |
12358 | * util/i386/pc/getroot.c: Likewise. | |
12359 | * util/i386/pc/pupa-mkimage.c: Likewise. | |
12360 | * util/i386/pc/pupa-setup.c: Likewise. | |
12361 | ||
e6eced71 | 12362 | 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx> |
12363 | ||
12364 | * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND | |
12365 | when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all | |
12366 | callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before | |
12367 | reading and reset it after reading. | |
12368 | (pupa_ext2_close): Return PUPA_ERR_NONE. | |
12369 | ||
12370 | * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS): | |
12371 | Correct value. | |
12372 | (struct linux_kernel_header): Add kernel_version and | |
12373 | initrd_addr_max. | |
12374 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether | |
12375 | pupa_file_read succeeds. | |
12376 | (pupa_rescue_cmd_initrd): Implement. | |
12377 | ||
5aded270 | 12378 | 2003-12-03 Marco Gerards <metgerards@student.han.nl> |
12379 | ||
12380 | * fs/ext2.c (pupa_ext2_label): New function. | |
12381 | (pupa_ext2_fs): Added label. | |
12382 | * fs/fat.c (pupa_fat_label): New function. | |
12383 | (pupa_fat_fs): Added label. | |
12384 | * include/pupa/fs.h (struct pupa_fs): Added prototype label. | |
12385 | ||
12386 | * kern/misc.c (pupa_strndup): New function. | |
12387 | * include/pupa/misc.h (pupa_strndup): New prototype. | |
12388 | ||
12389 | * include/pupa/normal.h: Include <pupa/err.h>. | |
12390 | (pupa_set_history): New prototype. | |
12391 | (pupa_iterate_commands): New prototype. | |
12392 | * normal/cmdline.c: Include <pupa/machine/partition.h>, | |
12393 | <pupa/disk.h>, <pupa/file.h>. | |
12394 | (hist_size): New variable. | |
12395 | (hist_lines): Likewise. | |
12396 | (hist_end): Likewise. | |
12397 | (hist_used): Likewise. | |
12398 | (pupa_set_history): New function. | |
12399 | (pupa_history_get): Likewise. | |
12400 | (pupa_history_add): Likewise. | |
12401 | (pupa_history_replace): Likewise. | |
12402 | (pupa_tab_complete): Likewise. | |
12403 | (pupa_cmdline_run): Added tab completion and history buffer. Tab | |
12404 | completion shows partitionnames while completing partitions, this | |
12405 | feature was suggested by Jeff Bailey. | |
12406 | * normal/command.c (pupa_iterate_commands): New function. | |
12407 | * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro. | |
12408 | (pupa_normal_init): Initialize history buffer. | |
12409 | (PUPA_MOD_INIT): Likewise. | |
12410 | (pupa_normal_fini): Free the history buffer. | |
12411 | (PUPA_MOD_FINI): Likewise. | |
12412 | ||
12413 | * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace | |
12414 | key. | |
12415 | ||
12416 | * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN. | |
12417 | * configure.ac [i386]: Check for regparam bug. | |
12418 | (NESTED_FUNC_ATTR) [! i386]: Defined. | |
12419 | ||
1f7315a3 | 12420 | 2003-11-17 Marco Gerards <metgerards@student.han.nl> |
12421 | ||
12422 | * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu. | |
12423 | (pupa_setup_SOURCES): Added util/i386/pc/getroot.c. | |
12424 | (pupa_emu_SOURCES): New variable. | |
12425 | (pupa_emu_LDFLAGS): Likewise. | |
12426 | * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype. | |
12427 | (pupa_ext2_fini) [PUPA_UTIL]: Likewise. | |
12428 | * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise. | |
12429 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
12430 | * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>. | |
12431 | (pupa_jmp_buf): New typedef. | |
12432 | (pupa_setjmp) [PUPA_UTIL]: New macro. | |
12433 | (pupa_longjmp) [PUPA_UTIL]: Likewise. | |
12434 | * include/pupa/term.h (struct pupa_term): New member `refresh'. | |
12435 | (pupa_refresh): New prototype. | |
12436 | * include/pupa/util/getroot.h: New file. | |
12437 | * kern/misc.c (pupa_vsprintf): Refresh the screen after updating | |
12438 | it. | |
12439 | * kern/rescue.c (pupa_rescue_get_command_line): Likewise. | |
12440 | (pupa_rescue_cmd_cat): Likewise. | |
12441 | (pupa_rescue_cmd_ls): Likewise. | |
12442 | (pupa_rescue_cmd_testload): Likewise. | |
12443 | (pupa_rescue_cmd_lsmod): Likewise. | |
12444 | * normal/cmdline.c (pupa_cmdline_get): Likewise. | |
12445 | * normal/menu.c (run_menu): Likewise. | |
12446 | * kern/term.c (pupa_cls): Likewise. | |
12447 | (pupa_refresh): New function. | |
12448 | * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function. | |
12449 | (pupa_normal_fini) [PUPA_UTIL]: Likewise. | |
12450 | * util/console.c: New file. | |
f19dbdb7 | 12451 | |
1f7315a3 | 12452 | * util/i386/pc/getroot.c: New file. |
12453 | * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>. | |
12454 | (pupa_putchar): New function. | |
12455 | (pupa_refresh): Likewise. | |
12456 | (xgetcwd): Function moved to ... | |
12457 | (strip_extra_slashes): Likewise. | |
12458 | (get_prefix): Likewise. | |
f19dbdb7 | 12459 | * util/i386/pc/getroot.c: ... here. |
1f7315a3 | 12460 | (find_root_device): Function moved and renamed to... |
12461 | * util/i386/pc/getroot.c (pupa_find_root_device): ... here. | |
12462 | Changed all callers. | |
12463 | * util/i386/pc/pupa-setup.c (guess_root_device): Function moved | |
12464 | and renamed to... | |
12465 | * util/i386/pc/getroot.c (pupa_guess_root_device): ... here. | |
12466 | Changed all callers. | |
12467 | * util/misc.c (pupa_memalign): New function. | |
12468 | (pupa_mm_init_region): Likewise. | |
12469 | (pupa_register_exported_symbols): Likewise. | |
12470 | (pupa_putchar): Function removed. | |
12471 | * util/pupa-emu.c: New file. | |
12472 | ||
9a5c1ade | 12473 | 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx> |
12474 | ||
12475 | * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod. | |
12476 | (_multiboot_mod_SOURCES): New variable. | |
12477 | (_multiboot_mod_CFLAGS): Likewise. | |
12478 | * loader/i386/pc/multiboot.c: New file. | |
12479 | * include/pupa/i386/pc/multiboot.h: Likewise. | |
12480 | * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h. | |
12481 | (pupa_multiboot_real_boot): New function. | |
12482 | * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h. | |
12483 | (pupa_multiboot_real_boot): New prototype. | |
12484 | (pupa_rescue_cmd_multiboot): Likewise | |
12485 | (pupa_rescue_cmd_module): Likewise. | |
12486 | ||
12487 | * kern/loader.c (pupa_loader_set): Continue when | |
12488 | pupa_loader_unload_func() fails. | |
12489 | (pupa_loader_unset): New function. | |
12490 | * include/pupa/loader.h (pupa_loader_unset): New prototype. | |
12491 | ||
12492 | * kern/misc.c (pupa_stpcpy): New function. | |
12493 | * include/pupa/misc.h (pupa_stpcpy): New prototype. | |
12494 | ||
8e72a9c0 | 12495 | 2003-11-12 Marco Gerards <metgerards@student.han.nl> |
12496 | ||
12497 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check | |
12498 | for available extensions. | |
12499 | ||
12500 | * include/pupa/i386/pc/time.h: New file. | |
12501 | * kern/disk.c: Include <pupa/machine/time.h>. | |
12502 | (PUPA_CACHE_TIMEOUT): New macro. | |
12503 | (pupa_last_time): New variable. | |
12504 | (pupa_disk_open): Flush the cache when there was a timeout. | |
12505 | (pupa_disk_close): Reset the timer. | |
12506 | * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from | |
12507 | pupa_currticks. | |
12508 | * util/misc.c: Include <sys/times.h> | |
12509 | (pupa_get_rtc): New function. | |
12510 | ||
c4adbd32 | 12511 | 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx> |
12512 | ||
12513 | * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks | |
12514 | as blocks. | |
12515 | (pupa_ext2_get_file_block): Use blocks member. | |
12516 | ||
12517 | * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the | |
12518 | first block. Return -1 instead of pupa_errno on error. | |
12519 | ||
bfd30f06 | 12520 | 2003-10-27 Marco Gerards <metgerards@student.han.nl> |
12521 | ||
12522 | * README: In the pupa-mkimage example use _chain instead of chain | |
12523 | and ext2 instead of fat. | |
12524 | * TODO: Replace ext2fs with jfs as an example. Add an item for | |
12525 | adding journal playback for ext2fs. | |
12526 | * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c. | |
12527 | (pkgdata_MODULES): Added ext2.mod. | |
12528 | (ext2_mod_SOURCES): New variable. | |
12529 | (ext2_mod_CFLAGS): Likewise. | |
12530 | * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP. | |
12531 | * include/pupa/misc.h (pupa_strncpy): New prototype. | |
12532 | (pupa_strcat): Likewise. | |
12533 | (pupa_strncmp): Likewise. | |
12534 | * kern/misc.c (pupa_strcat): Enable function. | |
12535 | (pupa_strncpy): New function. | |
12536 | (pupa_strncmp): Likewise. | |
12537 | * fs/ext2.c: New file. | |
f19dbdb7 | 12538 | |
bfd30f06 | 12539 | * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE |
12540 | when the read failed before retrying. | |
12541 | * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed. | |
12542 | (_FILE_OFFSET_BITS): Likewise. | |
12543 | * configure.ac: Added AC_SYS_LARGEFILE. | |
12544 | ||
98d15063 | 12545 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
12546 | ||
12547 | * genmk.rb (PModule#rule): Make sure to get only symbol names | |
12548 | from the output of nm. | |
12549 | Reported by Robert Millan <zeratul2@wanadoo.es>. | |
12550 | ||
18d9c7cd | 12551 | 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org> |
12552 | ||
12553 | I forgot to check in these changes for a long time. This adds | |
12554 | incomplete support for VGA console, and this is still very | |
12555 | buggy. Also, a lot of consideration is required for I18N, | |
12556 | UNICODE, and VGA font issues. Therefore, assume that this is | |
12557 | such that "better than nothing". | |
f19dbdb7 | 12558 | |
18d9c7cd | 12559 | * font/manager.c: New file. |
12560 | * include/pupa/font.h: Likewise. | |
12561 | * include/pupa/i386/pc/vga.h: Likewise. | |
12562 | * term/i386/pc/vga.c: Likewise. | |
12563 | * util/unifont2pff.rb: Likewise. | |
12564 | ||
12565 | * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h. | |
12566 | (pkgdata_MODULES): Added vga.mod and font.mod. | |
12567 | (vga_mod_SOURCES): New variables. | |
12568 | (vga_mod_CFLAGS): Likewise. | |
12569 | (font_mod_SOURCES): Likewise. | |
12570 | (font_mod_CFLAGS): Likewise. | |
12571 | ||
12572 | * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant. | |
12573 | ||
12574 | * include/pupa/term.h: Include pupa/err.h. | |
f19dbdb7 | 12575 | (struct pupa_term): Added init and fini. |
18d9c7cd | 12576 | Changed the argument of putchar to pupa_uint32_t. |
12577 | ||
12578 | * include/pupa/i386/pc/console.h: Include pupa/symbol.h. | |
12579 | (pupa_console_real_putchar): New prototype. | |
12580 | (pupa_console_putchar): Removed. | |
12581 | (pupa_console_checkkey): Exported. | |
12582 | (pupa_console_getkey): Likewise. | |
12583 | ||
12584 | * kern/misc.c (pupa_vsprintf): Add support for UNICODE | |
12585 | characters. | |
12586 | ||
12587 | * kern/term.c (pupa_term_set_current): Rewritten. | |
12588 | (pupa_putchar): Likewise. | |
12589 | (pupa_putcode): New function. | |
12590 | ||
12591 | * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ... | |
12592 | (pupa_console_real_putchar): ... this. | |
12593 | (pupa_vga_set_mode): New function. | |
12594 | (pupa_vga_get_font): Likewise. | |
12595 | ||
12596 | * normal/command.c: Include pupa/term.h. | |
12597 | (terminal_command): New function. | |
12598 | (pupa_command_init): Register the command "terminal". | |
12599 | ||
12600 | * normal/menu.c (DISP_LEFT): Changed to a UNICODE value. | |
12601 | (DISP_UP): Likewise. | |
12602 | (DISP_RIGHT): Likewise. | |
12603 | (DISP_DOWN): Likewise. | |
12604 | (DISP_HLINE): Likewise. | |
12605 | (DISP_VLINE): Likewise. | |
12606 | (DISP_UL): Likewise. | |
12607 | (DISP_UR): Likewise. | |
12608 | (DISP_LL): Likewise. | |
12609 | (DISP_LR): Likewise. | |
12610 | ||
12611 | * term/i386/pc/console.c (pupa_console_putchar): New function. | |
f19dbdb7 | 12612 | |
977329f5 | 12613 | 2003-02-08 NIIBE Yutaka <gniibe@m17n.org> |
12614 | ||
12615 | * util/resolve.c (pupa_util_resolve_dependencies): BUG | |
12616 | FIX. Reverse the path_list. | |
12617 | ||
12618 | * include/pupa/normal.h: Export pupa_register_command and | |
12619 | pupa_unregister_command. | |
12620 | ||
12621 | * hello/hello.c (pupa_cmd_hello): New module. | |
12622 | * conf/i386-pc.rmk: Added hello.mod. | |
12623 | ||
1f5ab428 | 12624 | 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org> |
12625 | ||
12626 | * kern/i386/pc/lzo1x.S: New file. | |
f19dbdb7 | 12627 | |
1f5ab428 | 12628 | * util/i386/pc/pupa-mkimage.c: Include lzo1x.h. |
12629 | (compress_kernel): New variable. | |
12630 | (generate_image): Heavily modified to support compressing a | |
12631 | large part of the core image. | |
12632 | ||
12633 | * util/misc.c (pupa_util_read_image): Fix a file descriptor | |
12634 | leak. | |
12635 | (pupa_util_load_image): New function. | |
12636 | ||
12637 | * kern/i386/pc/startup.S: Include pupa/machine/kernel.h. | |
12638 | (pupa_compressed_size): New variable. | |
12639 | (codestart): Enable Gate A20 here. | |
12640 | Decompress the compressed part of the core image. | |
12641 | Rearrange the code to put functions and variables which are | |
12642 | required for initialization in the non-compressed part. | |
12643 | Include lzo1x.S. | |
12644 | ||
12645 | * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20 | |
12646 | here. | |
12647 | ||
12648 | * include/pupa/util/misc.h (pupa_util_write_image): Declared. | |
12649 | ||
f19dbdb7 | 12650 | * include/pupa/i386/pc/kernel.h |
1f5ab428 | 12651 | (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro. |
12652 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4. | |
12653 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
12654 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
12655 | (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro. | |
12656 | ||
12657 | * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable. | |
12658 | ||
12659 | * genmk.rb (Image#rule): Put LDFLAGS at the end of a line. | |
12660 | (Utility#rule): Likewise. | |
12661 | ||
12662 | * configure.ac: Check if LZO is available. | |
12663 | ||
ce5bf700 | 12664 | 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org> |
12665 | ||
12666 | * include/pupa/normal.h: New file. | |
12667 | * include/pupa/setjmp.h: Likewise. | |
12668 | * include/pupa/i386/setjmp.h: Likewise. | |
12669 | * normal/cmdline.c: Likewise. | |
12670 | * normal/command.c: Likewise. | |
12671 | * normal/main.c: Likewise. | |
12672 | * normal/menu.c: Likewise. | |
12673 | * normal/i386/setjmp.S: Likewise. | |
f19dbdb7 | 12674 | |
ce5bf700 | 12675 | * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global. |
12676 | (pupa_rescue_cmd_initrd): Likewise. | |
12677 | ||
12678 | * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader): | |
12679 | Likewise. | |
12680 | ||
12681 | * kern/i386/pc/startup.S (translation_table): New variable. | |
12682 | (translate_keycode): New function. | |
12683 | (pupa_console_getkey): Call translate_keycode. | |
12684 | ||
12685 | * kern/rescue.c (attempt_normal_mode): New function. | |
12686 | (pupa_enter_rescue_mode): Attempt to execute the normal mode. If | |
12687 | it failed, print a message. | |
12688 | ||
12689 | * kern/mm.c (pupa_real_malloc): Print more information when a | |
12690 | free magic is broken. | |
12691 | (pupa_free): If the first free header is not free actually, set | |
12692 | it to P. | |
12693 | ||
12694 | * kern/main.c (pupa_load_normal_mode): Just load the module | |
12695 | "normal". | |
12696 | (pupa_main): Don't print the message | |
12697 | "Entering into rescue mode..." here. | |
12698 | ||
12699 | * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd): | |
12700 | Declared. | |
12701 | (pupa_rescue_cmd_initrd): Likewise. | |
12702 | (pupa_rescue_cmd_initrd): Likewise. | |
12703 | ||
12704 | * include/pupa/symbol.h (FUNCTION): Specify the type. | |
12705 | (VARIABLE): Likewise. | |
12706 | ||
12707 | * include/pupa/err.h (pupa_err_t): Added | |
12708 | PUPA_ERR_UNKNOWN_COMMAND. | |
12709 | ||
12710 | * include/pupa/dl.h (pupa_dl_set_prefix): Exported. | |
12711 | (pupa_dl_get_prefix): Likewise. | |
12712 | ||
12713 | * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod. | |
12714 | Added _chain.mod and _linux.mod instead of chain.mod and | |
12715 | linux.mod. | |
12716 | (chain_mod_SOURCES): Renamed to ... | |
12717 | (_chain_mod_SOURCES): ... this. | |
12718 | (chain_mod_CFLAGS): Renamed to ... | |
12719 | (_chain_mod_CFLAGS): ... this. | |
12720 | (linux_mod_SOURCES): Renamed to ... | |
12721 | (_linux_mod_SOURCES): ... this. | |
12722 | (linux_mod_CFLAGS): Renamed to ... | |
12723 | (_linux_mod_CFLAGS): ... this. | |
12724 | (normal_mod_SOURCES): New variable. | |
12725 | (normal_mod_CFLAGS): Likewise. | |
12726 | (normal_mod_ASFLAGS): Likewise. | |
12727 | ||
12728 | 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org> | |
12729 | ||
12730 | * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if | |
12731 | possible. | |
12732 | ||
fe6b695a | 12733 | * kern/dl.c (pupa_dl_ref): Refer depending modules |
ce5bf700 | 12734 | recursively. |
12735 | (pupa_dl_unref): Unrefer depending modules recursively. | |
12736 | Don't call pupa_dl_unload implicitly, because PUPA can crash if | |
12737 | a module is unloaded before one depending on that module is | |
12738 | unloaded. | |
12739 | (pupa_dl_unload): Unload depending modules explicitly, | |
12740 | if possible. | |
12741 | ||
c04da074 | 12742 | 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org> |
12743 | ||
12744 | * include/pupa/i386/pc/linux.h: New file. | |
12745 | * loader/i386/pc/linux.c: Likewise. | |
f19dbdb7 | 12746 | |
c04da074 | 12747 | * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector): |
12748 | Removed. | |
12749 | (pupa_chainloader_unload): Return PUPA_ERR_NONE. | |
12750 | (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead | |
12751 | of PUPA_CHAINLOADER_BOOT_SECTOR. | |
12752 | ||
12753 | * kern/i386/pc/startup.S: Include pupa/machine/linux.h. | |
12754 | (pupa_linux_prot_size): New variable. | |
12755 | (pupa_linux_tmp_addr): Likewise. | |
12756 | (pupa_linux_real_addr): Likewise. | |
12757 | (pupa_linux_boot_zimage): New function. | |
12758 | (pupa_linux_boot_bzimage): Likewise. | |
12759 | ||
12760 | * kern/i386/pc/init.c (struct mem_region): New structure. | |
12761 | (MAX_REGIONS): New macro. | |
12762 | (mem_regions): New variable. | |
12763 | (num_regions): Likewise. | |
12764 | (pupa_os_area_addr): Likewise. | |
12765 | (pupa_os_area_size): Likewise. | |
12766 | (pupa_lower_mem): Likewise. | |
12767 | (pupa_upper_mem): Likewise. | |
12768 | (add_mem_region): New function. | |
12769 | (compact_mem_regions): Likewise. | |
12770 | (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to | |
12771 | the size of the conventional memory and that of so-called upper | |
12772 | memory (before the first memory hole). | |
12773 | Instead of adding each found region to free memory, use | |
12774 | add_mem_region and add them after removing overlaps. | |
12775 | Also, add only 1/4 of the upper memory to free memory. The rest | |
12776 | is used for loading OS images. Maybe this is ad hoc, but this | |
12777 | makes it much easier to relocate OS images when booting. | |
12778 | ||
12779 | * kern/rescue.c (pupa_rescue_cmd_module): Removed. | |
12780 | (pupa_enter_rescue_mode): Don't register initrd and module. | |
12781 | ||
12782 | * kern/mm.c: Include pupa/dl.h. | |
12783 | ||
12784 | * kern/main.c: Include pupa/file.h and pupa/device.h. | |
12785 | ||
12786 | * kern/loader.c (pupa_loader_load_module_func): Removed. | |
12787 | (pupa_loader_load_module): Likewise. | |
12788 | ||
12789 | * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of | |
12790 | ``.o''. | |
12791 | ||
12792 | * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared. | |
12793 | (pupa_linux_tmp_addr): Likewise. | |
12794 | (pupa_linux_real_addr): Likewise. | |
12795 | (pupa_linux_boot_zimage): Likewise. | |
12796 | (pupa_linux_boot_bzimage): Likewise. | |
12797 | ||
12798 | * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared. | |
12799 | (pupa_upper_mem): Likewise. | |
12800 | (pupa_gate_a20): Don't export, because turning off Gate A20 in a | |
12801 | module is too dangerous. | |
12802 | ||
12803 | * include/pupa/loader.h (pupa_os_area_addr): Declared. | |
12804 | (pupa_os_area_size): Likewise. | |
12805 | (pupa_loader_set): Remove the first argument. Loader doesn't | |
12806 | manage modules or initrd any longer. | |
12807 | (pupa_loader_load_module): Removed. | |
12808 | ||
12809 | * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod. | |
12810 | (linux_mod_SOURCES): New variable. | |
12811 | (linux_mod_CFLAGS): Likewise. | |
12812 | ||
a13f9237 | 12813 | 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org> |
12814 | ||
12815 | * util/i386/pc/pupa-setup.c (setup): Convert the endianness of | |
12816 | the length of a blocklist correctly. | |
12817 | ||
12818 | * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]: | |
12819 | Use ioctl only if the OS file is a block device. | |
12820 | (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is | |
12821 | not very useful for normal files. | |
12822 | ||
12823 | * kern/main.c (pupa_set_root_dev): New function. | |
12824 | (pupa_load_normal_mode): Likewise. | |
12825 | (pupa_main): Call those above. | |
12826 | ||
12827 | * include/pupa/types.h (pupa_swap_bytes16): Cast the result to | |
12828 | pupa_uint16_t. | |
12829 | ||
12830 | * include/pupa/kernel.h (pupa_enter_normal_mode): Removed. | |
12831 | ||
a5ffe966 | 12832 | 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org> |
12833 | ||
12834 | * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h. | |
12835 | (setup): Configure the installed partition information and the | |
12836 | dl prefix. | |
12837 | ||
12838 | * loader/i386/pc/chainloader.c (my_mod): New variable. | |
12839 | (pupa_chainloader_unload): New function. | |
12840 | (pupa_rescue_cmd_chainloader): Refer itself. | |
12841 | (PUPA_MOD_INIT): Save its own module in MY_MOD. | |
12842 | ||
12843 | * kern/i386/pc/startup.S (install_partition): Removed. | |
12844 | (version_string): Likewise. | |
12845 | (config_file): Likewise. | |
12846 | (pupa_install_dos_part): New variable. | |
12847 | (pupa_install_bsd_part): Likewise. | |
12848 | (pupa_prefix): Likewise. | |
12849 | (pupa_chainloader_real_boot): Call pupa_dl_unload_all. | |
12850 | ||
12851 | * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h | |
12852 | and pupa/misc.h. | |
12853 | (make_install_device): New function. | |
12854 | (pupa_machine_init): Set the dl prefix. | |
12855 | ||
12856 | * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h. | |
12857 | (buf): Renamed to ... | |
12858 | (linebuf): ... this. | |
12859 | (pupa_rescue_cmd_prefix): New function. | |
12860 | (pupa_rescue_cmd_insmod): Likewise. | |
12861 | (pupa_rescue_cmd_rmmod): Likewise. | |
12862 | (pupa_rescue_cmd_lsmod): Likewise. | |
12863 | (pupa_enter_rescue_mode): Register new commands: prefix, insmod, | |
12864 | rmmod and lsmod. | |
12865 | ||
12866 | * kern/mm.c (pupa_memalign): If failed even after invalidating | |
12867 | disk caches, unload unneeded modules and retry. | |
12868 | ||
12869 | * kern/misc.c (pupa_memmove): New function. | |
12870 | (pupa_memcpy): Removed. | |
12871 | (pupa_strcpy): New function. | |
12872 | (pupa_itoa): Made static. | |
12873 | ||
12874 | * kern/dl.c (pupa_dl_iterate): New function. | |
12875 | (pupa_dl_ref): Likewise. | |
12876 | (pupa_dl_unref): Likewise. | |
12877 | (pupa_dl_unload): Return if succeeded or not. | |
12878 | (pupa_dl_unload_unneeded): New function. | |
12879 | (pupa_dl_unload_all): Likewise. | |
12880 | (pupa_dl_init): Renamed to ... | |
12881 | (pupa_dl_set_prefix): ... this. | |
12882 | (pupa_dl_get_prefix): New function. | |
12883 | ||
12884 | * include/pupa/i386/pc/kernel.h: Include pupa/types.h. | |
12885 | (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro. | |
12886 | (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise. | |
12887 | (PUPA_KERNEL_MACHINE_PREFIX): Likewise. | |
12888 | (pupa_install_dos_part): Declared. | |
12889 | (pupa_install_bsd_part): Likewise. | |
12890 | (pupa_prefix): Likewise. | |
12891 | (pupa_boot_drive): Likewise. | |
12892 | ||
12893 | * include/pupa/types.h: Fix a typo. | |
12894 | ||
12895 | * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to | |
12896 | pupa_memmove. | |
12897 | (pupa_memmove): Declared. | |
12898 | (pupa_strcpy): Likewise. | |
12899 | ||
12900 | * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now | |
12901 | pupa_mod_init takes one argument, its own module. | |
12902 | (pupa_dl_unload_unneeded): Declared. | |
12903 | (pupa_dl_unload_all): Likewise. | |
12904 | (pupa_dl_ref): Likewise. | |
12905 | (pupa_dl_unref): Likewise. | |
12906 | (pupa_dl_iterate): Likewise. | |
12907 | (pupa_dl_init): Renamed to ... | |
12908 | (pupa_dl_set_prefix): ... this. | |
12909 | (pupa_dl_get_prefix): Declared. | |
12910 | ||
12911 | * fs/fat.c [!PUPA_UTIL] (my_mod): New variable. | |
f19dbdb7 | 12912 | (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being |
a5ffe966 | 12913 | unloaded. |
12914 | (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded. | |
12915 | (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself. | |
12916 | ||
12917 | * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith, | |
12918 | -Wmissing-prototypes, -Wundef and -Wstrict-prototypes. | |
12919 | ||
012d7999 | 12920 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
12921 | ||
12922 | * util/i386/pc/pupa-setup.c (setup): Define the internal | |
12923 | function find_first_partition_start at the top level, because GCC | |
12924 | 3.0.x cannot compile internal functions in deeper scopes | |
12925 | correctly. | |
12926 | (find_root_device): Use lstat instead of stat. | |
12927 | Don't follow symbolic links. | |
12928 | Fix the path-constructing code. | |
12929 | ||
12930 | * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro. | |
12931 | (pupa_util_biosdisk_open) [__linux__]: Get the size of a device | |
12932 | by a BLKGETSIZE ioctl first, because block devices don't fill | |
12933 | the member st_mode of the structure stat on Linux. | |
12934 | [__linux__] (linux_find_partition): Use a temporary buffer | |
12935 | REAL_DEV for the working space. Copy it to DEV before returning. | |
12936 | (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the | |
12937 | buffer cache consistent. | |
12938 | (get_os_disk) [__linux__]: Use the length 5 instead of 4 for | |
12939 | strncmp. The previous value was merely wrong. | |
12940 | (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat. | |
12941 | ||
12942 | * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the | |
12943 | FAT size is 12. The previous value was merely wrong. | |
12944 | ||
12945 | * kern/main.c (pupa_main): Don't split the starting message from | |
12946 | newlines. | |
12947 | ||
12948 | * kern/term.c (pupa_putchar): Put CR after LF instead of before | |
12949 | LF, because BIOS goes crazy about character attributes in this | |
12950 | case. | |
12951 | ||
1cc73a62 | 12952 | 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org> |
12953 | ||
12954 | * include/i386/pc/util/biosdisk.h: New file. | |
12955 | * util/i386/pc/biosdisk.c: Likewise. | |
12956 | * util/i386/pc/pupa-setup.c: Likewise. | |
f19dbdb7 | 12957 | |
1cc73a62 | 12958 | * Makefile.in (INCLUDE_DISTFILES): Added |
12959 | include/pupa/i386/pc/util/biosdisk.h. | |
12960 | (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the | |
12961 | directory util/i386/pc. | |
12962 | (install-local): Added a rule for sbin_UTILITIES. | |
12963 | (uninstall): Likewise. | |
12964 | ||
12965 | * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc. | |
12966 | ||
12967 | * util/misc.c (xrealloc): New function. | |
12968 | (pupa_malloc): Likewise. | |
12969 | (pupa_free): Likewise. | |
12970 | (pupa_realloc): Likewise. | |
12971 | (pupa_stop): Likewise. | |
12972 | (pupa_putchar): Likewise. | |
12973 | ||
12974 | * kern/disk.c (pupa_disk_read): Prevent L from underflowing. | |
12975 | ||
12976 | * include/pupa/util/misc.h (xrealloc): Declared. | |
12977 | ||
12978 | * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New | |
12979 | macro. | |
12980 | (PUPA_BOOT_MACHINE_BPBEND): Renamed to ... | |
12981 | (PUPA_BOOT_MACHINE_BPB_END): ... this. | |
12982 | ||
12983 | * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared. | |
12984 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
12985 | ||
12986 | * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better | |
12987 | way should be implemented. | |
12988 | [PUPA_UTIL] (pupa_fat_fini): Likewise. | |
12989 | ||
12990 | * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase | |
12991 | the size of NAME for safety. | |
12992 | (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of | |
12993 | 0x88. | |
12994 | ||
12995 | * conf/i386-pc.rmk (sbin_UTILITIES): New variable. | |
12996 | (pupa_setup_SOURCES): Likewise. | |
12997 | ||
12998 | * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules. | |
12999 | ||
08b70fe8 | 13000 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
13001 | ||
13002 | * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a | |
13003 | bunch of pushl's from pusha, because this destroys the return | |
13004 | value. | |
13005 | ||
62ddcc8f | 13006 | 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org> |
13007 | ||
13008 | Use -mrtd and -mregparm=3 to reduce the generated code sizes. | |
13009 | This means that any missing prototypes could be fatal. Also, you | |
13010 | must take care when writing assembly code. See the comments at | |
13011 | the beginning of startup.S, for more details. | |
f19dbdb7 | 13012 | |
62ddcc8f | 13013 | * kern/i386/pc/startup.S (pupa_halt): Modified for the new |
13014 | compilation mechanism. | |
13015 | (pupa_chainloader_real_boot): Likewise. | |
13016 | (pupa_biosdisk_rw_int13_extensions): Likewise. | |
13017 | (pupa_biosdisk_rw_standard): Likewise. | |
13018 | (pupa_biosdisk_check_int13_extensions): Likewise. | |
13019 | (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise. | |
13020 | (pupa_biosdisk_get_diskinfo_standard): Likewise. | |
13021 | (pupa_get_memsize): Likewise. | |
13022 | (pupa_get_mmap_entry): Likewise. | |
13023 | (pupa_console_putchar): Likewise. | |
13024 | (pupa_console_setcursor): Likewise. | |
13025 | (pupa_getrtsecs): Use pushl instead of push. | |
13026 | ||
13027 | * kern/i386/pc/init.c (pupa_machine_init): Use the scratch | |
13028 | memory instead of the stack for a mmap entry, because some | |
13029 | BIOSes may ignore the maximum size and overflow. | |
13030 | ||
13031 | * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3. | |
13032 | ||
13033 | * genmk.rb (PModule#rule): Compile automatically generated | |
13034 | sources with module-specific CFLAGS as well as other sources. | |
13035 | ||
9962ed99 | 13036 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
13037 | ||
13038 | * configure.ac: Check ld. | |
13039 | Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS | |
13040 | respectively, before checking endianness and sizes. | |
13041 | ||
13042 | * Makefile.in (LD): New variable. | |
f19dbdb7 | 13043 | |
abdfc3c5 | 13044 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
13045 | ||
13046 | * Makefile.in (BUILD_CC): CC -> BUILD_CC. | |
13047 | ||
6a161fa9 | 13048 | 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org> |
13049 | ||
13050 | * Changelog: New file. | |
13051 |