352466bf45
* DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h', `include/multiboot2.h', `include/grub/elfload.h', `include/multiboot.h', `include/grub/multiboot.h', `include/grub/multiboot_loader.h', `include/grub/multiboot2.h', `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h', `kern/elf.c', `loader/multiboot_loader.c', `loader/multiboot_loader_normal.c', `loader/multiboot2.c', `loader/i386/pc/multiboot2.c', `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and `util/i386/pc/grub-mkrescue.in'. Remove `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h', `include/grub/i386/pc/util/biosdisk.h' and `include/grub/powerpc/ieee1275/multiboot.h'.
7637 lines
270 KiB
Text
7637 lines
270 KiB
Text
2007-08-02 Marco Gerards <marco@gnu.org>
|
|
|
|
* DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
|
|
`include/multiboot2.h', `include/grub/elfload.h',
|
|
`include/multiboot.h', `include/grub/multiboot.h',
|
|
`include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
|
|
`include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
|
|
`kern/elf.c', `loader/multiboot_loader.c',
|
|
`loader/multiboot_loader_normal.c', `loader/multiboot2.c',
|
|
`loader/i386/pc/multiboot2.c',
|
|
`loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
|
|
`util/i386/pc/grub-mkrescue.in'. Remove
|
|
`include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
|
|
`include/grub/i386/pc/util/biosdisk.h' and
|
|
`include/grub/powerpc/ieee1275/multiboot.h'.
|
|
|
|
2007-08-02 Bean <bean123ch@gmail.com>
|
|
|
|
* conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
|
|
(ntfs_mod_SOURCES): New variable.
|
|
(ntfs_mod_CFLAGS): Likewise.
|
|
(ntfs_mod_LDFLAGS): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
|
|
(grub_probe_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
|
|
* conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
|
|
(grub_emu_SOURCES): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
|
|
(grub_emu_SOURCES): Likewise.
|
|
|
|
* conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
|
|
|
|
* fs/ntfs.c: New file.
|
|
|
|
2007-08-02 Bean <bean123ch@gmail.com>
|
|
|
|
* disk.h (grub_disk): Use NESTED_FUNC_ATTR.
|
|
|
|
* file.h (grub_file): Likewise.
|
|
|
|
* fshelp.h (grub_fshelp_read_file): Likewise.
|
|
|
|
* util/i386/pc/grub-setup.c (setup): Likewise.
|
|
(save_first_sector): Likewise.
|
|
(save_blocklists): Likewise.
|
|
|
|
* fs/affs.c (grub_affs_read_file): Likewise.
|
|
|
|
* fs/ext2.c (grub_ext2_read_file): Likewise.
|
|
|
|
* fs/fat.c (grub_fat_read_data): Likewise.
|
|
|
|
* fs/fshelp.c (grub_fshelp_read_file): Likewise.
|
|
|
|
* fs/hfs.c (grub_hfs_read_file): Likewise.
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
|
|
|
|
* fs/jfs.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/minix.c (grub_minix_read_file): Likewise.
|
|
|
|
* fs/sfs.c (grub_sfs_read_file): Likewise.
|
|
|
|
* fs/ufs.c (grub_ufs_read_file): Likewise.
|
|
|
|
* fs/xfs.c (grub_xfs_read_file): Likewise.
|
|
|
|
* command/blocklist.c (read_blocklist): Likewise.
|
|
(print_blocklist): Likewise.
|
|
|
|
2007-08-02 Marco Gerards <marco@gnu.org>
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
|
|
`util/hostfs.c'.
|
|
|
|
* disk/host.c: New file.
|
|
|
|
* util/hostfs.c: Likewise.
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
|
|
return `GRUB_ERR_BAD_FS'.
|
|
* fs/sfs.c (grub_sfs_mount): Likewise.
|
|
* fs/xfs.c (grub_xfs_mount): Likewise.
|
|
|
|
* include/grub/disk.h (enum grub_disk_dev_id): Add
|
|
`GRUB_DISK_DEVICE_HOST_ID'.
|
|
|
|
* util/grub-emu.c (main): Initialize and de-initialize hostfs.
|
|
|
|
2007-07-24 Jerone Young <jerone@gmail.com>
|
|
|
|
* conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
|
|
modules for compilation.
|
|
* conf/powerpc-ieee1275.rmk: Likewise.
|
|
|
|
* include/multiboot.h: Move multiboot definitions to one file. Rename
|
|
many definitions to not get grub specific.
|
|
* include/multiboot2.h: Create header with multiboot 2 definitions.
|
|
* include/grub/multiboot.h: Header for grub specific function
|
|
prototypes and definitions.
|
|
* include/grub/multiboot2.h: Likewise.
|
|
* include/grub/multiboot_loader.h: Likewise.
|
|
* include/grub/i386/pc/multiboot.h: Removed.
|
|
* include/grub/powerpc/ieee1275/multiboot.h: Removed.
|
|
|
|
* loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
|
|
and 2 to allow for one multiboot and module commands.
|
|
* loader/multiboot2.c: Add multiboot2 functionality.
|
|
* loader/i386/pc/multiboot.c: Modify for new multiboot header location
|
|
and definition names.
|
|
* loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
|
|
2 functions.
|
|
* loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
|
|
ieee1275 specific multiboot2 code.
|
|
|
|
* kern/i386/pc/startup.S: Change headers and definition names for
|
|
multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
|
|
|
|
2007-07-22 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* geninitheader.sh: Process file specified in first parameter rather
|
|
than hardcoding grub_modules_init.lst.
|
|
* geninit.sh: Likewise. Also, construct header name dynamicaly rather
|
|
than hardcoding grub_modules_init.h.
|
|
|
|
* conf/common.rmk: Rename grub_modules_init.[ch] files associated with
|
|
grub-emu to grub_emu_init.[ch]. Add rules to build analogous
|
|
grub_probe_init.[ch] and grub_setup_init.[ch].
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
|
|
grub_modules_init.h with grub_emu_init.h.
|
|
(grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
|
|
grub_probe_init.[ch] files.
|
|
* conf/i386-efi.rmk: Likewise.
|
|
* conf/i386-pc.rmk: Likewise.
|
|
(grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
|
|
grub_setup_init.[ch] files.
|
|
|
|
* util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
|
|
* util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
|
|
to initialize modules rather than a list of hardcoded functions.
|
|
* util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
|
|
grub_init_all() to initialize modules rather than a list of hardcoded
|
|
functions.
|
|
|
|
2007-07-22 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
|
|
GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
|
|
|
|
2007-07-22 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
|
|
GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
|
|
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
|
|
flag when running on SmartFirmware.
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
|
|
"output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
|
|
was set.
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
|
|
Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
|
|
rather than decreasing it.
|
|
|
|
* util/i386/pc/grub-setup.c (setup): When embedding is required, but
|
|
there's not enough space to do it, fail in the same way as when it
|
|
can't be done because there are no partitions.
|
|
|
|
* util/powerpc/ieee1275/grub-install.in: Improve error message shown
|
|
when nvsetenv failed.
|
|
|
|
2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
|
|
because this rule is automatically generated.
|
|
(grub-mkrescue): Removed for the same reason as above.
|
|
|
|
2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Migrate to GNU General Public License Version 3.
|
|
|
|
* COPYING: Replaced with the plain text version of GPLv3.
|
|
|
|
* config.guess: Updated from gnulib.
|
|
* config.sub: Likewise.
|
|
|
|
* geninit.sh: Output a GPLv3 copyright notice.
|
|
* geninitheader.sh: Likewise.
|
|
* genmodsrc.sh: Likewise.
|
|
* gensymlist.sh.in: Likewise.
|
|
|
|
* boot/i386/pc/boot.S: Upgraded to GPLv3.
|
|
* boot/i386/pc/diskboot.S: Likewise.
|
|
* boot/i386/pc/pxeboot.S: Likewise.
|
|
* commands/blocklist.c: Likewise.
|
|
* commands/boot.c: Likewise.
|
|
* commands/cat.c: Likewise.
|
|
* commands/cmp.c: Likewise.
|
|
* commands/configfile.c: Likewise.
|
|
* commands/echo.c: Likewise.
|
|
* commands/help.c: Likewise.
|
|
* commands/ls.c: Likewise.
|
|
* commands/search.c: Likewise.
|
|
* commands/terminal.c: Likewise.
|
|
* commands/test.c: Likewise.
|
|
* commands/videotest.c: Likewise.
|
|
* commands/i386/cpuid.c: Likewise.
|
|
* commands/i386/pc/halt.c: Likewise.
|
|
* commands/i386/pc/play.c: Likewise.
|
|
* commands/i386/pc/reboot.c: Likewise.
|
|
* commands/i386/pc/vbeinfo.c: Likewise.
|
|
* commands/i386/pc/vbetest.c: Likewise.
|
|
* commands/ieee1275/halt.c: Likewise.
|
|
* commands/ieee1275/reboot.c: Likewise.
|
|
* commands/ieee1275/suspend.c: Likewise.
|
|
* disk/loopback.c: Likewise.
|
|
* disk/lvm.c: Likewise.
|
|
* disk/raid.c: Likewise.
|
|
* disk/efi/efidisk.c: Likewise.
|
|
* disk/i386/pc/biosdisk.c: Likewise.
|
|
* disk/ieee1275/ofdisk.c: Likewise.
|
|
* font/manager.c: Likewise.
|
|
* fs/affs.c: Likewise.
|
|
* fs/ext2.c: Likewise.
|
|
* fs/fat.c: Likewise.
|
|
* fs/fshelp.c: Likewise.
|
|
* fs/hfs.c: Likewise.
|
|
* fs/hfsplus.c: Likewise.
|
|
* fs/iso9660.c: Likewise.
|
|
* fs/jfs.c: Likewise.
|
|
* fs/minix.c: Likewise.
|
|
* fs/sfs.c: Likewise.
|
|
* fs/ufs.c: Likewise.
|
|
* fs/xfs.c: Likewise.
|
|
* hello/hello.c: Likewise.
|
|
* include/grub/acorn_filecore.h: Likewise.
|
|
* include/grub/arg.h: Likewise.
|
|
* include/grub/bitmap.h: Likewise.
|
|
* include/grub/boot.h: Likewise.
|
|
* include/grub/cache.h: Likewise.
|
|
* include/grub/device.h: Likewise.
|
|
* include/grub/disk.h: Likewise.
|
|
* include/grub/dl.h: Likewise.
|
|
* include/grub/elfload.h: Likewise.
|
|
* include/grub/env.h: Likewise.
|
|
* include/grub/err.h: Likewise.
|
|
* include/grub/file.h: Likewise.
|
|
* include/grub/font.h: Likewise.
|
|
* include/grub/fs.h: Likewise.
|
|
* include/grub/fshelp.h: Likewise.
|
|
* include/grub/gzio.h: Likewise.
|
|
* include/grub/hfs.h: Likewise.
|
|
* include/grub/kernel.h: Likewise.
|
|
* include/grub/loader.h: Likewise.
|
|
* include/grub/lvm.h: Likewise.
|
|
* include/grub/misc.h: Likewise.
|
|
* include/grub/mm.h: Likewise.
|
|
* include/grub/net.h: Likewise.
|
|
* include/grub/normal.h: Likewise.
|
|
* include/grub/parser.h: Likewise.
|
|
* include/grub/partition.h: Likewise.
|
|
* include/grub/pc_partition.h: Likewise.
|
|
* include/grub/raid.h: Likewise.
|
|
* include/grub/rescue.h: Likewise.
|
|
* include/grub/script.h: Likewise.
|
|
* include/grub/setjmp.h: Likewise.
|
|
* include/grub/symbol.h: Likewise.
|
|
* include/grub/term.h: Likewise.
|
|
* include/grub/terminfo.h: Likewise.
|
|
* include/grub/tparm.h: Likewise.
|
|
* include/grub/types.h: Likewise.
|
|
* include/grub/video.h: Likewise.
|
|
* include/grub/efi/api.h: Likewise.
|
|
* include/grub/efi/chainloader.h: Likewise.
|
|
* include/grub/efi/console.h: Likewise.
|
|
* include/grub/efi/console_control.h: Likewise.
|
|
* include/grub/efi/disk.h: Likewise.
|
|
* include/grub/efi/efi.h: Likewise.
|
|
* include/grub/efi/pe32.h: Likewise.
|
|
* include/grub/efi/time.h: Likewise.
|
|
* include/grub/i386/linux.h: Likewise.
|
|
* include/grub/i386/setjmp.h: Likewise.
|
|
* include/grub/i386/types.h: Likewise.
|
|
* include/grub/i386/efi/kernel.h: Likewise.
|
|
* include/grub/i386/efi/loader.h: Likewise.
|
|
* include/grub/i386/efi/time.h: Likewise.
|
|
* include/grub/i386/pc/biosdisk.h: Likewise.
|
|
* include/grub/i386/pc/boot.h: Likewise.
|
|
* include/grub/i386/pc/chainloader.h: Likewise.
|
|
* include/grub/i386/pc/console.h: Likewise.
|
|
* include/grub/i386/pc/init.h: Likewise.
|
|
* include/grub/i386/pc/kernel.h: Likewise.
|
|
* include/grub/i386/pc/loader.h: Likewise.
|
|
* include/grub/i386/pc/memory.h: Likewise.
|
|
* include/grub/i386/pc/multiboot.h: Likewise.
|
|
* include/grub/i386/pc/serial.h: Likewise.
|
|
* include/grub/i386/pc/time.h: Likewise.
|
|
* include/grub/i386/pc/vbe.h: Likewise.
|
|
* include/grub/i386/pc/vbeblit.h: Likewise.
|
|
* include/grub/i386/pc/vbefill.h: Likewise.
|
|
* include/grub/i386/pc/vbeutil.h: Likewise.
|
|
* include/grub/i386/pc/vga.h: Likewise.
|
|
* include/grub/ieee1275/ieee1275.h: Likewise.
|
|
* include/grub/ieee1275/ofdisk.h: Likewise.
|
|
* include/grub/powerpc/libgcc.h: Likewise.
|
|
* include/grub/powerpc/setjmp.h: Likewise.
|
|
* include/grub/powerpc/types.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/console.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/kernel.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/loader.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/multiboot.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/time.h: Likewise.
|
|
* include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
|
|
* include/grub/sparc64/libgcc.h: Likewise.
|
|
* include/grub/sparc64/setjmp.h: Likewise.
|
|
* include/grub/sparc64/types.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/console.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/kernel.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/time.h: Likewise.
|
|
* include/grub/util/biosdisk.h: Likewise.
|
|
* include/grub/util/getroot.h: Likewise.
|
|
* include/grub/util/lvm.h: Likewise.
|
|
* include/grub/util/misc.h: Likewise.
|
|
* include/grub/util/raid.h: Likewise.
|
|
* include/grub/util/resolve.h: Likewise.
|
|
* io/gzio.c: Likewise.
|
|
* kern/device.c: Likewise.
|
|
* kern/disk.c: Likewise.
|
|
* kern/dl.c: Likewise.
|
|
* kern/elf.c: Likewise.
|
|
* kern/env.c: Likewise.
|
|
* kern/err.c: Likewise.
|
|
* kern/file.c: Likewise.
|
|
* kern/fs.c: Likewise.
|
|
* kern/loader.c: Likewise.
|
|
* kern/main.c: Likewise.
|
|
* kern/misc.c: Likewise.
|
|
* kern/mm.c: Likewise.
|
|
* kern/parser.c: Likewise.
|
|
* kern/partition.c: Likewise.
|
|
* kern/rescue.c: Likewise.
|
|
* kern/term.c: Likewise.
|
|
* kern/efi/efi.c: Likewise.
|
|
* kern/efi/init.c: Likewise.
|
|
* kern/efi/mm.c: Likewise.
|
|
* kern/i386/dl.c: Likewise.
|
|
* kern/i386/efi/init.c: Likewise.
|
|
* kern/i386/efi/startup.S: Likewise.
|
|
* kern/i386/pc/init.c: Likewise.
|
|
* kern/i386/pc/lzo1x.S: Likewise.
|
|
* kern/i386/pc/startup.S: Likewise.
|
|
* kern/ieee1275/ieee1275.c: Likewise.
|
|
* kern/powerpc/cache.S: Likewise.
|
|
* kern/powerpc/dl.c: Likewise.
|
|
* kern/powerpc/ieee1275/cmain.c: Likewise.
|
|
* kern/powerpc/ieee1275/crt0.S: Likewise.
|
|
* kern/powerpc/ieee1275/init.c: Likewise.
|
|
* kern/powerpc/ieee1275/openfw.c: Likewise.
|
|
* kern/sparc64/cache.S: Likewise.
|
|
* kern/sparc64/dl.c: Likewise.
|
|
* kern/sparc64/ieee1275/init.c: Likewise.
|
|
* kern/sparc64/ieee1275/openfw.c: Likewise.
|
|
* loader/efi/chainloader.c: Likewise.
|
|
* loader/efi/chainloader_normal.c: Likewise.
|
|
* loader/i386/efi/linux.c: Likewise.
|
|
* loader/i386/efi/linux_normal.c: Likewise.
|
|
* loader/i386/pc/chainloader.c: Likewise.
|
|
* loader/i386/pc/chainloader_normal.c: Likewise.
|
|
* loader/i386/pc/linux.c: Likewise.
|
|
* loader/i386/pc/linux_normal.c: Likewise.
|
|
* loader/i386/pc/multiboot.c: Likewise.
|
|
* loader/i386/pc/multiboot_normal.c: Likewise.
|
|
* loader/powerpc/ieee1275/linux.c: Likewise.
|
|
* loader/powerpc/ieee1275/linux_normal.c: Likewise.
|
|
* normal/arg.c: Likewise.
|
|
* normal/cmdline.c: Likewise.
|
|
* normal/command.c: Likewise.
|
|
* normal/completion.c: Likewise.
|
|
* normal/execute.c: Likewise.
|
|
* normal/function.c: Likewise.
|
|
* normal/lexer.c: Likewise.
|
|
* normal/main.c: Likewise.
|
|
* normal/menu.c: Likewise.
|
|
* normal/menu_entry.c: Likewise.
|
|
* normal/misc.c: Likewise.
|
|
* normal/parser.y: Likewise.
|
|
* normal/script.c: Likewise.
|
|
* normal/i386/setjmp.S: Likewise.
|
|
* normal/powerpc/setjmp.S: Likewise.
|
|
* normal/sparc64/setjmp.S: Likewise.
|
|
* partmap/acorn.c: Likewise.
|
|
* partmap/amiga.c: Likewise.
|
|
* partmap/apple.c: Likewise.
|
|
* partmap/gpt.c: Likewise.
|
|
* partmap/pc.c: Likewise.
|
|
* partmap/sun.c: Likewise.
|
|
* term/gfxterm.c: Likewise.
|
|
* term/terminfo.c: Likewise.
|
|
* term/efi/console.c: Likewise.
|
|
* term/i386/pc/console.c: Likewise.
|
|
* term/i386/pc/serial.c: Likewise.
|
|
* term/i386/pc/vesafb.c: Likewise.
|
|
* term/i386/pc/vga.c: Likewise.
|
|
* term/ieee1275/ofconsole.c: Likewise.
|
|
* util/biosdisk.c: Likewise.
|
|
* util/console.c: Likewise.
|
|
* util/genmoddep.c: Likewise.
|
|
* util/getroot.c: Likewise.
|
|
* util/grub-emu.c: Likewise.
|
|
* util/grub-mkdevicemap.c: Likewise.
|
|
* util/grub-probe.c: Likewise.
|
|
* util/lvm.c: Likewise.
|
|
* util/misc.c: Likewise.
|
|
* util/raid.c: Likewise.
|
|
* util/resolve.c: Likewise.
|
|
* util/update-grub.in: Likewise.
|
|
* util/update-grub_lib.in: Likewise.
|
|
* util/grub.d/00_header.in: Likewise.
|
|
* util/grub.d/10_hurd.in: Likewise.
|
|
* util/grub.d/10_linux.in: Likewise.
|
|
* util/i386/efi/grub-install.in: Likewise.
|
|
* util/i386/efi/grub-mkimage.c: Likewise.
|
|
* util/i386/pc/grub-install.in: Likewise.
|
|
* util/i386/pc/grub-mkimage.c: Likewise.
|
|
* util/i386/pc/grub-mkrescue.in: Likewise.
|
|
* util/i386/pc/grub-setup.c: Likewise.
|
|
* util/i386/pc/misc.c: Likewise.
|
|
* util/powerpc/ieee1275/grub-install.in: Likewise.
|
|
* util/powerpc/ieee1275/grub-mkimage.c: Likewise.
|
|
* util/powerpc/ieee1275/misc.c: Likewise.
|
|
* video/bitmap.c: Likewise.
|
|
* video/video.c: Likewise.
|
|
* video/i386/pc/vbe.c: Likewise.
|
|
* video/i386/pc/vbeblit.c: Likewise.
|
|
* video/i386/pc/vbefill.c: Likewise.
|
|
* video/i386/pc/vbeutil.c: Likewise.
|
|
* video/readers/tga.c: Likewise.
|
|
|
|
2007-07-02 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* conf/i386-efi.rmk: Replace obsolete reference to
|
|
util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
|
|
with util/getroot.c.
|
|
* conf/powerpc-ieee1275.rmk: Likewise.
|
|
* conf/sparc64-ieee1275.rmk: Likewise.
|
|
|
|
* util/grub-emu.c (main): Fix unchecked pointer handling.
|
|
|
|
2007-07-02 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
|
|
invocation to fail, in order to support partition-less media.
|
|
|
|
* util/i386/pc/grub-install.in: Likewise.
|
|
|
|
* util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
|
|
which fs or partmap modules are needed (akin to its sister scripts).
|
|
|
|
Also use grub-probe to get rid of unportable /proc/mounts check.
|
|
|
|
Print the same informational message that the other scripts do, before
|
|
exitting.
|
|
|
|
2007-06-23 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub_lib.in (font_path): New function. Determine wether
|
|
a font file can be found and, if so, echo the GRUB path to it.
|
|
|
|
* util/update-grub.in: Handle multiple terminals depending on user
|
|
input, platform availability and font file presence. Propagate
|
|
variables of our findings to /etc/grub.d/ children.
|
|
|
|
* util/grub.d/00_header.in: Handle multiple terminals, based on
|
|
environment setup by update-grub.
|
|
|
|
2007-06-23 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
|
|
|
|
2007-06-21 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
|
|
indicate end of data section in kernel image.
|
|
* include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
|
|
GRUB_KERNEL_MACHINE_DATA_END.
|
|
|
|
* kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
|
|
space for it.
|
|
* kern/i386/efi/startup.S: Likewise.
|
|
|
|
* util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
|
|
during image generation. Implement --prefix option to override this
|
|
patch.
|
|
* util/i386/efi/grub-mkimage.c: Likewise.
|
|
|
|
* util/update-grub_lib.in (convert_system_path_to_grub_path): Split
|
|
code to make path relative to its root into a separate function.
|
|
|
|
* util/i386/pc/grub-install.in: Use newly provided
|
|
make_system_path_relative_to_its_root() to convert ${grubdir}, then
|
|
pass the result to grub-install --prefix.
|
|
|
|
2007-06-13 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
|
|
DEFAULT_DEVICE_MAP.
|
|
* util/grub-emu.c: Use above definitions from misc.h instead of
|
|
defining them.
|
|
* util/grub-mkdevicemap.c: Likewise.
|
|
* util/i386/pc/grub-setup.c: Likewise.
|
|
* util/grub-probe.c: Likewise.
|
|
(probe): Abort with grub_util_error() when either
|
|
grub_guess_root_device or grub_util_get_grub_dev fails.
|
|
|
|
2007-06-12 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* normal/command.c (grub_command_execute): Use NULL rather than 0 for
|
|
"pager" assignment.
|
|
* util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
|
|
"pcdata".
|
|
* util/grub-probe.c (probe): Likewise for "drive_name".
|
|
|
|
2007-06-11 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
|
|
not just the cdrom one.
|
|
|
|
2007-06-11 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-mkrescue.in: Add "set -e".
|
|
Add --pkglibdir=DIR option to override pkglibdir.
|
|
Mention --image-type=TYPE in help output.
|
|
Fix --grub-mkimage (it was a no-op).
|
|
Abort gracefuly when no parameter is given.
|
|
|
|
2007-06-11 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-mkrescue.in: New file.
|
|
* conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
|
|
* Makefile.in: Handle bin_SCRIPTS.
|
|
|
|
2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* term/gfxterm.c (grub_gfxterm_init): Added support for specifying
|
|
list of video modes.
|
|
|
|
2007-06-06 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
|
|
file doesn't exist, or if it is in a filesystem grub can't read.
|
|
|
|
* util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
|
|
not abort if GRUB_DRIVE could not be defined. Rearrange generated
|
|
header comment to fit in 80 columns when the variables are resolved.
|
|
|
|
* util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
|
|
could be identified by update-grub. Remove redundant check for
|
|
unifont.pff existance (since convert_system_path_to_grub_path now
|
|
handles that).
|
|
|
|
2007-06-04 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
|
|
|
|
* conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
|
|
|
|
2007-06-04 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
|
|
|
|
* include/grub/partition.h: Declare grub_apple_partition_map_init and
|
|
grub_apple_partition_map_fini.
|
|
|
|
* util/biosdisk.c
|
|
(grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
|
|
to access >2 TiB disks).
|
|
|
|
Print disk->total_sectors with %llu instead of %lu, since this
|
|
variable is always 64-bit (prevents wrong disk size from being displayed
|
|
on either >2 TiB disk or big-endian CPU).
|
|
|
|
(grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
|
|
into a generic case that supports all (sane) partition maps.
|
|
|
|
Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
|
|
breaks big-endian.
|
|
|
|
* util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
|
|
and grub_apple_partition_map_fini() after that.
|
|
|
|
2007-06-01 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub.in: Export GRUB_CMDLINE_LINUX.
|
|
|
|
* util/grub.d/00_header.in: Only enable gfxterm when
|
|
convert_system_path_to_grub_path() succeeds.
|
|
|
|
2007-05-20 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub_lib.in: New file.
|
|
* DISTLIST: Add update-grub_lib.in.
|
|
* conf/common.rmk: Generate update-grub_lib and install it in
|
|
$(lib_DATA).
|
|
* Makefile.in: Add install routine for $(lib_DATA).
|
|
|
|
* util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
|
|
function provided by update-grub_lib to support arbitrary paths of
|
|
unifont.pff.
|
|
* util/update-grub.in: Use convert_system_path_to_grub_path() to
|
|
initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
|
|
|
|
2007-05-19 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* commands/i386/cpuid.c: New module.
|
|
* DISTLIST: Add it.
|
|
* conf/i386-efi.rmk: Enable cpuid.mod.
|
|
* conf/i386-pc.rmk: Likewise.
|
|
|
|
2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* kern/disk.c (grub_disk_read): Check return value of
|
|
grub_realloc().
|
|
|
|
2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* util/getroot.c (grub_util_get_grub_dev): Support partitionable
|
|
arrays.
|
|
* disk/raid.c (grub_raid_open): Likewise.
|
|
|
|
2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* util/biosdisk.c (linux_find_partition): Allocate real_dev on the
|
|
stack instead of on the heap.
|
|
|
|
* kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
|
|
before doing a read on it.
|
|
|
|
* configure.ac: Only use -fno-stack-protector for the target
|
|
environment.
|
|
|
|
2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
|
|
__attribute_ ((unused)) to mode_type argument.
|
|
|
|
* util/getroot.c (grub_guess_root_device): Fix #endif.
|
|
|
|
* kern/misc.c (memcmp): Fix prototype.
|
|
|
|
* include/grub/partition.h [GRUB_UTIL]
|
|
(grub_gpt_partition_map_init): Add prototype.
|
|
(grub_gpt_partition_map_fini): Likewise.
|
|
|
|
* fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
|
|
at the right place.
|
|
|
|
* fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
|
|
(grub_fat_read_data): Likewise.
|
|
(grub_fat_find_dir): Likewise.
|
|
|
|
* font/manager.c (find_glyph): Make table a const.
|
|
(grub_font_get_glyph): Remove bitmap from if statement.
|
|
|
|
2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* util/getroot.c (grub_guess_root_device): Remove RAID and LVM
|
|
code, first search for device in /dev/mapper, then in /dev.
|
|
(grub_util_get_grub_dev): New function.
|
|
* include/grub/util/getroot.h (grub_util_get_grub_dev): Add
|
|
prototype.
|
|
* util/grub-probe.c (probe): Remove check for RAID, call
|
|
grub_util_get_grub_dev() instead of
|
|
grub_util_biosdisk_get_grub_dev().
|
|
* util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
|
|
grub_util_biosdisk_get_grub_dev().
|
|
* util/i386/pc/grub-setup.c (main): Likewise.
|
|
|
|
2007-05-16 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* DISTLIST: Update for the latest changes.
|
|
* conf/i386-pc.rmk: Use the new paths for util/getroot.c,
|
|
util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
|
|
* util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
|
|
grub/util/biosdisk.h.
|
|
* util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
|
|
grub/util/biosdisk.h.
|
|
|
|
2007-05-16 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/grub.d/00_header.in: Set default gfxmode to `640x480'.
|
|
|
|
2007-05-16 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/efi/grub-install.in: New.
|
|
* conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
|
|
newly added grub-install.
|
|
* util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
|
|
include.
|
|
* util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
|
|
grub/util/biosdisk.h.
|
|
* util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
|
|
grub/util/biosdisk.h.
|
|
|
|
2007-05-16 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* include/grub/i386/pc/util/biosdisk.h: Moved to ...
|
|
* include/grub/util/biosdisk.h: ... here.
|
|
* util/i386/pc/biosdisk.c: Moved to ...
|
|
* util/biosdisk.c: ... here.
|
|
* util/i386/pc/getroot.c: Moved to ...
|
|
* util/getroot.c: ... here.
|
|
* util/i386/pc/grub-mkdevicemap.c: Moved to ...
|
|
* util/grub-mkdevicemap.c: ... here.
|
|
* util/i386/pc/grub-probe.c: Moved to ...
|
|
* util/grub-probe.c: ... here.
|
|
|
|
2007-05-15 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub.in: Remove duplicated line in grub.cfg header
|
|
message.
|
|
|
|
2007-05-13 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub.in: Fix a few assumptions about the devices holding
|
|
/, /boot and /boot/grub being the same.
|
|
* util/grub.d/00_header.in: Likewise.
|
|
* util/grub.d/10_hurd.in: Likewise.
|
|
* util/grub.d/10_linux.in: Likewise.
|
|
|
|
* util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
|
|
patterns. Use that to define the `.old' suffix as older than `'.
|
|
|
|
* util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
|
|
|
|
* util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
|
|
the grub.cfg header message.
|
|
|
|
2007-05-11 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub.in: Create device.map if it doesn't already exist,
|
|
before attempting to run grub-probe.
|
|
Check for grub-probe and grub-mkdevicemap with the same code
|
|
grub-install is using.
|
|
Remove test mode.
|
|
|
|
2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* Makefile.in: Add the datarootdir autoconf variable.
|
|
|
|
2007-05-09 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-probe.c (probe): When detecting partition map,
|
|
fail gracefuly if dev->disk->partition == NULL.
|
|
|
|
2007-05-07 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
|
|
determine partition map module.
|
|
* util/i386/pc/grub-install.in: Use this feature to decide which
|
|
partition module to load, instead of hardcoding pc and gpt.
|
|
|
|
2007-05-07 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
|
|
source directory differs from build directory.
|
|
|
|
2007-05-05 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
|
|
initialisation.
|
|
|
|
2007-05-05 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
|
|
|
|
2007-05-05 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/grub.d/10_linux.in: Allow the administrator to insert Linux
|
|
command-line arguments via ${GRUB_CMDLINE_LINUX}.
|
|
|
|
2007-05-05 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
|
|
(grub_probe_SOURCES): Likewise.
|
|
* util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
|
|
GPT and initialize dos_part and bsd_part accordingly.
|
|
* util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
|
|
install_bsd_part.
|
|
(main): Activate gpt module for use during partition identification,
|
|
and deactivate it afterwards.
|
|
* util/i386/pc/grub-install.in: Add gpt module to core.img.
|
|
* util/i386/pc/grub-probe.c (main): Activate gpt module for use during
|
|
partition identification, and deactivate it afterwards.
|
|
|
|
2007-05-05 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* term/i386/pc/console.c (grub_console_fini): Call
|
|
grub_term_set_current() before grub_term_unregister().
|
|
|
|
2007-05-04 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
|
|
util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
|
|
* Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
|
|
and update-grub_DATA.
|
|
* conf/common.rmk: Build and install update-grub components.
|
|
* conf/common.mk: Regenerate.
|
|
* util/update-grub.in: New. Core of update-grub.
|
|
* util/grub.d/00_header.in: New. Generates grub.cfg header.
|
|
* util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
|
|
* util/grub.d/10_linux.in: New. Generates boot entries for Linux.
|
|
* util/grub.d/README: New. Document grub.d directory layout.
|
|
|
|
2007-05-01 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/grub-emu.c: Move initialization functions
|
|
grub_util_biosdisk_init() and grub_init_all() before
|
|
grub_util_biosdisk_get_grub_dev(), which relies on them.
|
|
|
|
2007-04-19 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
|
|
it is used later.
|
|
|
|
2007-04-18 Jerone Young <jerone@gmail.com>
|
|
|
|
* kernel/elf.c: Add missing parenthesis for conditional statement
|
|
stanza.
|
|
|
|
2007-04-10 Jerone Young <jerone@gmail.com>
|
|
|
|
* util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
|
|
continue on and look for device node with real device name.
|
|
|
|
2007-04-10 Jerone Young <jerone@gmail.com>
|
|
|
|
* configure.ac: Add argument for autoconf to use tranformation
|
|
ability.
|
|
* Makefile.in: Add autoconf package transformation code.
|
|
* util/i386/pc/grub-install.in: Likewise.
|
|
* util/powerpc/ieee1275/grub-install.in: Likewise.
|
|
|
|
2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
|
|
(EXT2_GOOD_OLD_INODE_SIZE): Likewise.
|
|
(EXT2_REVISION): Likewise.
|
|
(EXT2_INODE_SIZE): Likewise.
|
|
(struct grub_ext2_block_group): Added a missing member
|
|
"used_dirs".
|
|
(grub_ext2_read_inode): Divide by the inode size in a superblock
|
|
instead of 128 to obtain INODES_PER_BLOCK.
|
|
Use the macro EXT2_INODE_SIZE instead of directly using
|
|
SBLOCK->INODE_SIZE.
|
|
|
|
2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
|
|
superblock instead of the structure size to compute an
|
|
offset. This fixes the problem that GRUB could not read a
|
|
filesystem when inode size is different from 128-byte.
|
|
|
|
2007-03-05 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/main.c (read_config_file): When "menu" is not set, create
|
|
an initial context.
|
|
|
|
2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
|
|
(HEAP_LIMIT): New macro.
|
|
(grub_claim_heap): Claim memory up to `heaplimit'.
|
|
|
|
2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
|
|
* kern/powerpc/ieee1275/init.c (_end): Add declaration.
|
|
(_start): Likewise.
|
|
(grub_arch_modules_addr): Return address after `_end'.
|
|
* util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
|
|
(load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
|
|
(add_segments): Calculate `_end' from phdr size and location.
|
|
(ALIGN_UP): Moved to ...
|
|
* include/grub/misc.h: here.
|
|
* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
|
|
New macro.
|
|
(GRUB_IEEE1275_MODULE_BASE): Removed.
|
|
|
|
2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
|
|
loop boundary.
|
|
|
|
2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
|
|
All users updated.
|
|
(grub_elf64_load_hook_t): Likewise.
|
|
* kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
|
|
debug output.
|
|
|
|
2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/mm.c: Update copyright.
|
|
(grub_mm_debug): Correct syntax error.
|
|
(grub_mm_dump_free): New function.
|
|
(grub_debug_free): Call `grub_free'.
|
|
* include/grub/mm.h: Update copyright.
|
|
(grub_mm_dump_free): Add declaration.
|
|
|
|
2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/ieee1275/ieee1275.h: Update copyright.
|
|
* kern/powerpc/ieee1275/init.c: Likewise.
|
|
* kern/powerpc/ieee1275/openfw.c: Likewise.
|
|
|
|
* loader/powerpc/ieee1275/linux.c: Likewise.
|
|
* include/grub/elfload.h: Likewise.
|
|
* kern/elf.c: Likewise.
|
|
(grub_elf32_load): Pass `base' and `size' parameters. Update all
|
|
callers.
|
|
(grub_elf64_load): Likewise.
|
|
(grub_elf32_load_segment): Move to a nested function.
|
|
(grub_elf64_load_segment): Likewise.
|
|
|
|
2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
|
|
prototype.
|
|
* kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
|
|
(grub_heap_len): Likewise.
|
|
(HEAP_SIZE): New macro.
|
|
(grub_claim_heap): New function.
|
|
(grub_machine_init): Don't claim heap directly. Call
|
|
`grub_claim_heap'.
|
|
* kern/powerpc/ieee1275/openfw.c: Include alloca.h.
|
|
(grub_available_iterate): New function.
|
|
|
|
2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
|
|
|
|
* aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
|
|
* configure.ac: Use it for testing the HOST and TARGET compilers.
|
|
|
|
2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
|
|
|
|
* Makefile.in (enable_grub_emu): New variable.
|
|
* configure.ac (--enable-grub-emu): New option.
|
|
Do the checks for (n)curses only if `--enable-grub-emu' is requested.
|
|
* conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
|
|
* conf/i386-pc.rmk: Likewise.
|
|
* conf/powerpc-ieee1275.rmk: Likewise.
|
|
* conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
|
|
|
|
2006-12-12 Marco Gerards <marco@gnu.org>
|
|
|
|
* include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
|
|
|
|
* kern/env.c (grub_env_unset): Don't free the member `value' when
|
|
the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
|
|
pointer.
|
|
|
|
* normal/main.c (current_menu): Removed.
|
|
(free_menu): Unset the `menu' environment variable.
|
|
(grub_normal_menu_addentry): Make use of the environment variable
|
|
`menu', instead of using the global `current_menu'. Allocate
|
|
memory for the sourcecode of this entry.
|
|
(read_config_file): New argument `nested', changed all callers.
|
|
Only in the case of a new context, initialize a new menu. Set the
|
|
`menu' environment variable.
|
|
(grub_normal_execute): Don't set and unset the environment
|
|
variable `menu' here anymore. Only free the menu when leaving the
|
|
context.
|
|
|
|
* util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
|
|
leak.
|
|
|
|
2006-12-11 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/menu_entry.c (run): Fix off by one bug so the last line
|
|
is executed. Move the loader check to outside the loop.
|
|
|
|
2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
|
|
|
|
2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
|
|
the number of sectors. Reported by Andrey Shuvikov
|
|
<mr_hyro@yahoo.com>.
|
|
|
|
2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* kern/disk.c (grub_disk_read): When there is a read error, always
|
|
try to read only the necessary data.
|
|
|
|
* conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
|
|
disk/raid.c.
|
|
* include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
|
|
prototype.
|
|
[GRUB_UTIL] (grub_raid_fini): Likewise.
|
|
[GRUB_UTIL] (grub_lvm_init): Likewise.
|
|
[GRUB_UTIL] (grub_lvm_fini): Likewise.
|
|
* util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
|
|
RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
|
|
(main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
|
|
and grub_raid_fini().
|
|
|
|
2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* include/grub/types.h (__unused): Rename to UNUSED.
|
|
* kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
|
|
(grub_elf64_size): Likewise.
|
|
|
|
2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/elf.c (grub_elf_file): Call grub_file_seek. Call
|
|
grub_error_push and grub_error_pop in the error-handling path.
|
|
(grub_elf32_load_segment): Only call grub_file_read with non-zero
|
|
length.
|
|
|
|
2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
|
|
(kernel_elf_SOURCES): Likewise.
|
|
* conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
|
|
* conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
|
|
* conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
|
|
* conf/common.rmk (pkgdata_MODULES): Add elf.mod.
|
|
(elf_mod_SOURCES): New variable.
|
|
(elf_mod_CFLAGS): Likewise.
|
|
(elf_mod_LDFLAGS): Likewise.
|
|
* include/grub/types.h (__unused): New macro.
|
|
* include/grub/elfload.h: New file.
|
|
* kern/elf.c: Likewise.
|
|
* loader/powerpc/ieee1275/linux.c: Include elfload.h.
|
|
(ELF32_LOADMASK): New macro.
|
|
(ELF64_LOADMASK): Likewise.
|
|
(vmlinux): Removed.
|
|
(grub_linux_load32): New function.
|
|
(grub_linux_load64): Likewise.
|
|
(grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
|
|
Use grub_elf_t instead of grub_file_t.
|
|
|
|
2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
|
|
`catch_result' to struct set_color_args.
|
|
|
|
2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/menu.c: Include grub/script.h.
|
|
* normal/menu_entry.c: Likewise.
|
|
* include/grub/normal.h: Do not include grub/script.h.
|
|
|
|
2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/disk.c (grub_disk_read): Correct debug printf formatting.
|
|
|
|
2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/disk.c (grub_disk_open): Print debug messages when opening a
|
|
disk.
|
|
(grub_disk_close): Print debug messages when closing a disk.
|
|
(grub_disk_read): Print debug messages when disk read fails.
|
|
* kern/fs.c (grub_fs_probe): Print debug messages when detecting
|
|
filesystem type.
|
|
* kern/partition.c: Include misc.h.
|
|
(grub_partition_iterate): Print debug messages when detecting
|
|
partition type.
|
|
|
|
2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
|
|
is negative.
|
|
* kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
|
|
|
|
2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
|
|
Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
|
|
|
|
2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
|
|
instead of sizeof(lv). Patch by Michael Guntsche.
|
|
|
|
2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* disk/lvm.c: Rename VGS to VG_LIST.
|
|
(grub_lvm_iterate): Change VGS->LV to VG-LV.
|
|
(grub_lvm_open): Likewise.
|
|
Thanks to Michael Guntsche for finding this bug.
|
|
|
|
2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac (AC_INIT): Bumped to 1.95.
|
|
|
|
2006-10-14 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
|
|
with "/dev/.static/dev/md".
|
|
|
|
2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
|
|
DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
|
|
DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
|
|
DRIVE_NAME are always freed.
|
|
|
|
* util/i386/pc/biosdisk.c (make_device_name): Add one into
|
|
DOS_PART, as a DOS partition is counted from one instead of zero
|
|
now. Reported by Robert Millan.
|
|
|
|
2006-10-14 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/getroot.c (grub_guess_root_device): Stop using
|
|
grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
|
|
* util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
|
|
string returned by grub_guess_root_device.
|
|
* util/i386/pc/grub-setup.c: Likewise.
|
|
* util/i386/pc/grub-probefs.c: Likewise.
|
|
|
|
* util/i386/pc/grub-probefs.c: Rename to ...
|
|
* util/i386/pc/grub-probe.c: ... this.
|
|
* DISTLIST: Remove grub-probefs, add grub-probe.
|
|
* conf/i386-efi.rmk: Likewise.
|
|
* conf/i386-pc.rmk: Likewise.
|
|
* util/i386/pc/grub-install.in: Likewise.
|
|
|
|
* util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
|
|
choose which information we want to print.
|
|
|
|
2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
|
|
include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
|
|
include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
|
|
include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
|
|
video/readers/tga.c and video/i386/pc/vbeutil.c.
|
|
|
|
2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
Added support for RAID and LVM.
|
|
|
|
* disk/lvm.c: New file.
|
|
* disk/raid.c: Likewise.
|
|
* include/grub/lvm.h: Likewise.
|
|
* include/grub/raid.h: Likewise.
|
|
* include/grub/util/lvm.h: Likewise.
|
|
* include/grub/util/raid.h: Likewise.
|
|
* util/lvm.c: Likewise.
|
|
* util/raid.c: Likewise.
|
|
|
|
* include/grub/disk.h (grub_disk_dev_id): Add
|
|
GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
|
|
(grub_disk_get_size): New prototype.
|
|
* kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
|
|
returns a partition.
|
|
(grub_disk_get_size): New function.
|
|
|
|
* kern/i386/pc/init.c (make_install_device): Copy the prefix
|
|
verbatim if grub_install_dos_part is -2.
|
|
|
|
* util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
|
|
and LVM devices.
|
|
|
|
* util/i386/pc/grub-setup.c (setup): New argument
|
|
MUST_EMBED. Force embedding of GRUB when the argument is
|
|
true. Close FILE before returning.
|
|
(main): Add support for RAID and LVM.
|
|
|
|
* conf/common.rmk: Add RAID and LVM modules.
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
|
|
util/lvm.c.
|
|
(grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
|
|
|
|
* kern/misc.c (grub_strstr): New function.
|
|
* include/grub/misc.h (grub_strstr): New prototype.
|
|
|
|
2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
|
|
|
|
* include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
|
|
|
|
2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
|
|
|
|
* kern/misc.c (grub_strtoull): Guess the base only if not
|
|
specified.
|
|
|
|
2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
|
|
PowerMac support.
|
|
|
|
2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
|
|
|
|
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
|
|
Remove `flags' argument. All callers changed.
|
|
* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
|
|
(IEEE1275_IHANDLE_INVALID): New variable.
|
|
(IEEE1275_CELL_INVALID): New variable.
|
|
(grub_ieee1275_finddevice, grub_ieee1275_get_property,
|
|
grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
|
|
grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
|
|
grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
|
|
grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
|
|
codes from Open Firmware. All callers updated.
|
|
(grub_ieee1275_next_property): Directly return Open Firmware return
|
|
code.
|
|
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
|
|
Standardize error checking from `grub_ieee1275_get_property'.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
|
|
`devalias' to `aliases'. Correct comments. Consolidate error paths.
|
|
|
|
2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
|
|
`instance_to_package_args' to `instance_to_path_args'.
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_init): Use
|
|
`grub_ieee1275_chosen'.
|
|
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
|
|
`grub_ieee1275_interpret'.
|
|
|
|
2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
|
|
|
|
2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
|
|
(__cmpdi): Likewise.
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
|
|
`flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
|
|
`grub_ssize_t'.
|
|
|
|
* kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
|
|
|
|
* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
|
|
to type `grub_ssize_t'.
|
|
(grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
|
|
|
|
2006-09-22 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/script.c (grub_script_create_cmdmenu): Skip leading
|
|
newlines.
|
|
|
|
2006-09-22 Marco Gerards <marco@gnu.org>
|
|
|
|
* commands/echo.c: New file.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
|
|
|
|
* conf/common.rmk (echo_mod_SOURCES): New variable.
|
|
(echo_mod_CFLAGS): Likewise.
|
|
(echo_mod_LDFLAGS): Likewise.
|
|
|
|
2006-09-22 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/main.c (get_line): Malloc memory instead of using
|
|
preallocated memory. Removed the arguments `cmdline' and
|
|
`max_len'. Updated all callers.
|
|
|
|
2006-09-22 Marco Gerards <marco@gnu.org>
|
|
|
|
* conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
|
|
(normal_mod_DEPENDENCIES): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
|
|
(normal_mod_DEPENDENCIES): Likewise.
|
|
|
|
* conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
|
|
|
|
2006-09-22 Johan Rydberg <jrydberg@gnu.org>
|
|
|
|
* genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
|
|
programs.
|
|
* conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
|
|
(normal_mod_DEPENDENCIES): Likewise.
|
|
* conf/i386-pc.mk: Regenerate.
|
|
* conf/i386-efi.mk: Likewise
|
|
* conf/common.mk: Likewise.
|
|
* conf/powerpc-ieee1275.mk: Likewise.
|
|
* conf/sparc64-ieee1275.mk: Likewise.
|
|
|
|
2006-09-22 Robert Millan <rmh@aybabtu.com>
|
|
|
|
Sync with i386 version.
|
|
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
|
|
* conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
|
|
|
|
2006-09-21 Robert Millan <rmh@aybabtu.com>
|
|
|
|
Import from GRUB Legacy (lib/device.c):
|
|
* util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
|
|
(init_device_map) [__linux__]: Add support for I2O devices.
|
|
|
|
2006-09-14 Marco Gerards <marco@gnu.org>
|
|
|
|
* conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
|
|
`-melf_i386'.
|
|
|
|
2006-09-14 Robert Millan <rmh@aybabtu.com>
|
|
|
|
* util/i386/pc/grub-install.in: Skip menu.lst when removing
|
|
/boot/grub/*.lst.
|
|
|
|
* util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
|
|
|
|
* util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
|
|
before adding it to device.map.
|
|
|
|
2006-08-15 Johan Rydberg <jrydberg@gnu.org>
|
|
|
|
* genmk.rb: Let GCC generate dependenceies the first time it
|
|
compiles a file; using the -MD option.
|
|
* conf/common.mk: Regenerate.
|
|
* conf/i386-pc.mk: Likewise.
|
|
* conf/i386-efi.mk: Likewise.
|
|
* conf/powerpc-ieee1275.mk: Likewise.
|
|
* conf/sparc64-ieee1275.mk: Likewise.
|
|
|
|
2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Move the prototypes of grub_setjmp and grub_longjmp to
|
|
cpu/setjmp.h, so that each architecture may specify different
|
|
attributes.
|
|
|
|
* include/grub/i386/setjmp.h (grub_setjmp): New prototype.
|
|
(grub_longjmp): Likewise.
|
|
* include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
|
|
(grub_longjmp): Likewise.
|
|
* include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
|
|
(grub_longjmp): Likewise.
|
|
|
|
* include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
|
|
[!GRUB_UTIL] (grub_longjmp): Removed.
|
|
|
|
2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
|
|
|
|
* kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
|
|
"color!" method does not return any value.
|
|
|
|
2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* include/grub/bitmap.h: New file.
|
|
|
|
* include/grub/i386/pc/vbeutil.h: Likewise.
|
|
|
|
* video/bitmap.c: Likewise.
|
|
|
|
* video/readers/tga.c: Likewise.
|
|
|
|
* video/i386/pc/vbeutil.c: Likewise.
|
|
|
|
* commands/videotest.c: Code cleanup and updated to reflect to new
|
|
video API.
|
|
|
|
* term/gfxterm.c: Likewise.
|
|
|
|
* video/video.c: Likewise.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
|
|
(vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
|
|
(bitmap_mod_SOURCES): New entry.
|
|
(bitmap_mod_CFLAGS): Likewise.
|
|
(bitmap_mod_LDFLAGS): Likewise.
|
|
(tga_mod_SOURCES): Likewise.
|
|
(tga_mod_CFLAGS): Likewise.
|
|
(tga_mod_LDFLAGS): Likewise.
|
|
|
|
* include/grub/video.h (grub_video_blit_operators): New enum type.
|
|
(grub_video_render_target): Changed as forward declaration and moved
|
|
actual definition to be video driver specific.
|
|
(grub_video_adapter.blit_bitmap): Added blitting operator.
|
|
(grub_video_adapter.blit_render_target): Likewise.
|
|
(grub_video_blit_bitmap): Likewise.
|
|
(grub_video_blit_render_target): Likewise.
|
|
|
|
* include/grub/i386/pc/vbe.h (grub_video_render_target): Added
|
|
driver specific render target definition.
|
|
(grub_video_vbe_map_rgba): Added driver internal helper.
|
|
(grub_video_vbe_unmap_color): Updated to use
|
|
grub_video_i386_vbeblit_info.
|
|
(grub_video_vbe_get_video_ptr): Likewise.
|
|
|
|
* include/grub/i386/pc/vbeblit.h
|
|
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
|
|
grub_video_i386_vbeblit_info.
|
|
(grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
|
|
(grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
|
|
(grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
|
|
(grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
|
|
(grub_video_i386_vbeblit_index_R8G8B8): Likewise.
|
|
(grub_video_i386_vbeblit_index_index): Likewise.
|
|
(grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
|
|
(grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
|
|
(grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
|
|
(grub_video_i386_vbeblit_blend): Added generic blitter for blend
|
|
operator.
|
|
(grub_video_i386_vbeblit_replace): Added generic blitter for replace
|
|
operator.
|
|
|
|
* video/i386/pc/vbeblit.c: Updated to reflect changes on
|
|
include/grub/i386/pc/vbeblit.h.
|
|
|
|
* include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
|
|
Updated to use grub_video_i386_vbeblit_info.
|
|
(grub_video_i386_vbefill_R8G8B8): Likewise.
|
|
(grub_video_i386_vbefill_index): Likewise.
|
|
(grub_video_i386_vbefill): Added generic filler.
|
|
|
|
* video/i386/pc/vbefill.c: Updated to reflect changes on
|
|
include/grub/i386/pc/vbefill.h.
|
|
|
|
* video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
|
|
grub_video_i386_vbeblit_info.
|
|
(grub_video_vbe_unmap_color): Likewise.
|
|
(grub_video_vbe_blit_glyph): Likewise.
|
|
(grub_video_vbe_scroll): Likewise.
|
|
(grub_video_vbe_draw_pixel): Removed function.
|
|
(grub_video_vbe_get_pixel): Likewise.
|
|
(grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
|
|
updated code to use it.
|
|
(common_blitter): Added common blitter for render target and bitmap.
|
|
(grub_video_vbe_blit_bitmap): Updated to use common_blitter.
|
|
(grub_video_vbe_blit_render_target): Likewise.
|
|
|
|
2006-07-30 Johan Rydberg <jrydberg@gnu.org>
|
|
|
|
* kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
|
|
is in text mode if there is no console control protocol instance
|
|
available.
|
|
|
|
2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* include/grub/video.h: Code cleanup.
|
|
|
|
* include/grub/i386/pc/vbe.h: Likewise.
|
|
|
|
* video/i386/pc/vbe.c: Likewise.
|
|
|
|
* video/i386/pc/vbeblit.c: Likewise.
|
|
|
|
* video/i386/pc/vbefill.c: Likewise.
|
|
|
|
* video/video.c: Likewise. Also added more comments.
|
|
|
|
2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
|
|
(struct grub_biosdisk_dap): Likewise.
|
|
|
|
* include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
|
|
linkage settings for all functions.
|
|
|
|
2006-07-12 Marco Gerards <marco@gnu.org>
|
|
|
|
* configure.ac (--enable-mm-debug): Fix typo.
|
|
|
|
* genkernsyms.sh.in: Use proper quoting for `CC'.
|
|
|
|
2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
|
|
(normal_mod_ASFLAGS): Remove "-m32".
|
|
|
|
2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/misc.c: Include config.h.
|
|
[!HAVE_MEMALIGN]: Do not include malloc.h.
|
|
(grub_memalign): Use posix_memalign, if present. Then, use
|
|
memalign, if present. Otherwise, emit an error.
|
|
|
|
* util/grub-emu.c: Do not include malloc.h.
|
|
|
|
* include/grub/util/misc.h: Include unistd.h. This is required for
|
|
FreeBSD, because off_t is defined in unistd.h. Reported by Harley
|
|
D. Eades III <hde@foobar-qux.org>.
|
|
|
|
* configure.ac (AC_GNU_SOURCE): Added.
|
|
(AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
|
|
type.
|
|
|
|
2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
|
|
ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
|
|
|
|
2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* include/grub/types.h (grub_host_addr_t): Rename to
|
|
grub_target_addr_t.
|
|
(grub_host_off_t): Rename to grub_target_off_t.
|
|
(grub_host_size_t): Rename to grub_target_size_t.
|
|
(grub_host_ssize_t): Rename to grub_target_ssize_t.
|
|
Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
|
|
|
|
* include/grub/kernel.h (struct grub_module_header): Change type
|
|
of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
|
|
(grub_module_info): Likewise.
|
|
|
|
2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
|
|
of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
|
|
Velazquez <jesus.velazquez@gmail.com>.
|
|
|
|
2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Count partitions from 1 instead of 0 in the string representation
|
|
of partitions. Still use 0-based internally.
|
|
|
|
* partmap/sun.c (grub_sun_is_valid): A cosmetic change.
|
|
(sun_partition_map_iterate): Use grub_partition_t instead of
|
|
struct grub_partition *. Cast DESC->START_CYLINDER to
|
|
grub_uint64_t after converting the endian.
|
|
(sun_partition_map_probe): Subtract 1 for PARTNUM.
|
|
(sun_partition_map_get_name): Add 1 to P->INDEX.
|
|
|
|
* partmap/pc.c (grub_partition_parse): Subtract 1 for
|
|
PCDATA->DOS_PART.
|
|
(pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
|
|
|
|
* partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
|
|
zero instead of one.
|
|
(gpt_partition_map_probe): Subtract 1 for PARTNUM.
|
|
(gpt_partition_map_get_name): Add 1 into P->INDEX.
|
|
|
|
* partmap/apple.c (apple_partition_map_iterate): Change the type
|
|
of POS to unsigned.
|
|
(apple_partition_map_probe): Subtract 1 for PARTNUM.
|
|
(apple_partition_map_get_name): Add 1 into P->INDEX.
|
|
|
|
* partmap/amiga.c (amiga_partition_map_iterate): Change the type
|
|
of POS to unsigned.
|
|
(amiga_partition_map_iterate): Cast NEXT to grub_off_t to
|
|
calculate the offset of a partition.
|
|
(amiga_partition_map_probe): Subtract 1 for PARTNUM.
|
|
(amiga_partition_map_get_name): Add 1 into P->INDEX.
|
|
|
|
* partmap/acorn.c (acorn_partition_map_find): Change the type of
|
|
SECTOR to grub_disk_addr_t.
|
|
(acorn_partition_map_iterate): Likewise.
|
|
(acorn_partition_map_probe): Subtract 1 for PARTNUM.
|
|
Change the type of SECTOR to grub_disk_addr_t. Declare P on the
|
|
top.
|
|
(acorn_partition_map_get_name): Add 1 into P->INDEX.
|
|
|
|
* kern/i386/pc/init.c (make_install_device): Add 1 into
|
|
GRUB_INSTALL_DOS_PART.
|
|
|
|
* fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
|
|
conditional.
|
|
|
|
2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Clean up the code to support 64-bit addressing in disks and
|
|
files. This change is not enough for filesystems yet.
|
|
|
|
* util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
|
|
type of "start" to grub_uint64_t.
|
|
(setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
|
|
grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
|
|
save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
|
|
convert addresses.
|
|
|
|
* util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
|
|
to grub_disk_addr_t.
|
|
|
|
* partmap/gpt.c (gpt_partition_map_iterate): Fix the format
|
|
string.
|
|
|
|
* partmap/pc.c (pc_partition_map_iterate): Likewise.
|
|
|
|
* partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
|
|
to char *.
|
|
|
|
* normal/script.c (grub_script_parse): Remove unused MEMFREE.
|
|
|
|
* normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
|
|
|
|
* normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
|
|
|
|
* loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
|
|
to grub_off_t, to detect an error from grub_file_seek.
|
|
(grub_multiboot_load_elf32): Likewise.
|
|
|
|
* kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
|
|
maximum unsigned long value when an overflow is detected.
|
|
(grub_strtoull): New function.
|
|
(grub_divmod64): Likewise.
|
|
(grub_lltoa): use grub_divmod64.
|
|
|
|
* kern/fs.c (struct grub_fs_block): Change the type of "offset" to
|
|
grub_disk_addr_t.
|
|
(grub_fs_blocklist_open): Increase P if P is not NULL to advance
|
|
the pointer to next character. Use grub_strtoull instead of
|
|
grub_strtoul.
|
|
(grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
|
|
SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
|
|
respectively.
|
|
|
|
* kern/file.c (grub_file_read): Prevent an oveflow of LEN, as the
|
|
return value is signed.
|
|
(grub_file_seek): Change the type of OLD to grub_off_t. Do not
|
|
test if OFFSET is less than zero, as OFFSET is unsigned now.
|
|
|
|
* kern/disk.c (struct grub_disk_cache): Change the type of
|
|
"sector" to grub_disk_addr_t.
|
|
(grub_disk_cache_get_index): Change the type of SECTOR to
|
|
grub_disk_addr_t. Calculate the hash with SECTOR casted to
|
|
unsigned after shifting.
|
|
(grub_disk_cache_invalidate): Change the type of SECTOR to
|
|
grub_disk_addr_t.
|
|
(grub_disk_cache_unlock): Likewise.
|
|
(grub_disk_cache_store): Likewise.
|
|
(grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
|
|
START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
|
|
grub_disk_addr_t and grub_uint64_t, respectively.
|
|
(grub_disk_read): Use an unsigned variable REAL_OFFSET for the
|
|
body, as the value of OFFSET is tweaked by
|
|
grub_disk_check_range. Change the types of START_SECTOR, LEN and
|
|
POS to grub_disk_addr_t, grub_size_t and grub_size_t,
|
|
respectively.
|
|
(grub_disk_write): Use an unsigned variable REAL_OFFSET for the
|
|
body, as the value of OFFSET is tweaked by
|
|
grub_disk_check_range. Change the types of LEN and N to
|
|
grub_size_t.
|
|
|
|
* io/gzio.c (struct grub_gzio): Change the types of "data_offset"
|
|
and "saved_offset" to grub_off_t.
|
|
(test_header): Cast BUF to char *.
|
|
(get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
|
|
to char *.
|
|
(grub_gzio_read): Change the types of OFFSET and SIZE to
|
|
grub_off_t and grub_size_t, respectively.
|
|
|
|
* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
|
|
Removed.
|
|
(GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
|
|
(GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
|
|
(GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
|
|
(GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
|
|
(GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
|
|
|
|
* include/grub/types.h (grub_off_t): Unconditionally set to
|
|
grub_uint64_t.
|
|
(grub_disk_addr_t): Changed to grub_uint64_t.
|
|
|
|
* include/grub/partition.h (struct grub_partition): Change the
|
|
types of "start", "len" and "offset" to grub_disk_addr_t,
|
|
grub_uint64_t and grub_disk_addr_t, respectively.
|
|
(grub_partition_get_start): Return grub_disk_addr_t.
|
|
(grub_partition_get_len): Return grub_uint64_t.
|
|
|
|
* include/grub/misc.h (grub_strtoull): New prototype.
|
|
(grub_divmod64): Likewise.
|
|
|
|
* include/grub/fshelp.h (grub_fshelp_read_file): Change the types
|
|
of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
|
|
grub_off_t, respectively.
|
|
All callers and references changed.
|
|
|
|
* include/grub/fs.h (struct grub_fs): Change the type of LEN to
|
|
grub_size_t in "read".
|
|
All callers and references changed.
|
|
|
|
* include/grub/file.h (struct grub_file): Change the types of
|
|
"offset" and "size" to grub_off_t and grub_off_t,
|
|
respectively. Change the type of SECTOR to grub_disk_addr_t in
|
|
"read_hook".
|
|
(grub_file_read): Change the type of LEN to grub_size_t.
|
|
(grub_file_seek): Return grub_off_t. Change the type of OFFSET to
|
|
grub_off_t.
|
|
(grub_file_size): Return grub_off_t.
|
|
(grub_file_tell): Likewise.
|
|
All callers and references changed.
|
|
|
|
* include/grub/disk.h (struct grub_disk_dev): Change the types of
|
|
SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
|
|
"write".
|
|
(struct grub_disk): Change the type of "total_sectors" to
|
|
grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
|
|
"read_hook".
|
|
(grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
|
|
grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
|
|
(grub_disk_write): Likewise.
|
|
All callers and references changed.
|
|
|
|
* fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
|
|
char * for grub_strncmp to silence gcc.
|
|
(grub_iso9660_mount): Likewise.
|
|
(grub_iso9660_mount): Likewise.
|
|
(grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
|
|
return statement.
|
|
(grub_iso9660_iterate_dir): Likewise.
|
|
(grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
|
|
|
|
* fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
|
|
LEN to grub_disk_addr_t and grub_size_t, respectively.
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
|
|
|
|
* fs/jfs.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/minix.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/sfs.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/ufs.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/xfs.c (grub_jfs_read_file): Likewise.
|
|
|
|
* fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
|
|
and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
|
|
respectively.
|
|
|
|
* fs/ext2.c (grub_ext2_read_block): When an error happens, set
|
|
BLKNR to -1 instead of returning GRUB_ERRNO.
|
|
(grub_ext2_read_file): Change the types of SECTOR and
|
|
LEN to grub_disk_addr_t and grub_size_t, respectively.
|
|
|
|
* fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
|
|
LEN to grub_disk_addr_t and grub_size_t, respectively.
|
|
|
|
* font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
|
|
grub_file_read.
|
|
|
|
* disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
|
|
string. Do not cast SECTOR explicitly.
|
|
|
|
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
|
|
TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
|
|
(grub_biosdisk_rw): Change the types of SECTOR and SIZE to
|
|
grub_disk_addr_t and grub_size_t, respectively. If the sector is
|
|
over 2TB and LBA mode is not supported, raise an error.
|
|
(get_safe_sectors): New function.
|
|
(grub_biosdisk_read): Use get_safe_sectors.
|
|
(grub_biosdisk_write): Likewise.
|
|
|
|
* disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
|
|
(grub_efidisk_write): Likewise.
|
|
|
|
* disk/loopback.c (delete_loopback): Cosmetic changes.
|
|
(grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
|
|
correctly.
|
|
(grub_loopback_open): Likewise.
|
|
(grub_loopback_read): Likewise. Also, change the type of POS to
|
|
grub_off_t, and fix the usage of grub_memset.
|
|
|
|
* commands/i386/pc/play.c: Include grub/machine/time.h.
|
|
|
|
* commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
|
|
print FILE->SIZE.
|
|
|
|
* commands/configfile.c: Include grub/env.h.
|
|
|
|
* commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
|
|
GRUB_ERRNO directly instead. Change the type of POS to
|
|
grub_off_t. Follow the coding standard.
|
|
|
|
* commands/blocklist.c: Include grub/partition.h.
|
|
(grub_cmd_blocklist): Return an error if the underlying device is
|
|
not a disk. Take the starting sector of a partition into account,
|
|
if a partition is used.
|
|
|
|
* boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
|
|
a length field.
|
|
(lba_mode): Support 64-bit addresses.
|
|
(chs_mode): Likewise.
|
|
(copy_buffer): Adapted to the new offsets of a length field and a
|
|
segment field.
|
|
(blocklist_default_start): Allocate 64-bit space.
|
|
|
|
* boot/i386/pc/boot.S (force_lba): Removed.
|
|
(boot_drive): Moved to under KERNEL_SECTOR.
|
|
(kernel_sector): Moved to under KENREL_SEGMENT. Allocate 64-bit
|
|
space.
|
|
(real_start): Set %si earlier. Remove code for FORCE_LBA, since it
|
|
is useless.
|
|
(lba_mode): Refactored to support a 64-bit address. More size
|
|
optimization.
|
|
(setup_sectors): Likewise.
|
|
|
|
2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added include/grub/i386/linux.h. Removed
|
|
include/grub/i386/pc/linux.h
|
|
|
|
* configure.ac (AC_INIT): Bumped to 1.94.
|
|
|
|
* config.guess: Updated from gnulib.
|
|
* config.sub: Likewise.
|
|
* install-sh: Likewise.
|
|
* mkinstalldirs: Likewise.
|
|
|
|
2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/common.rmk (grub_modules_init.lst): Depended on
|
|
grub_emu_SOURCES, excluding grub_emu_init.c, instead of
|
|
MODSRCFILES.
|
|
|
|
* genmk.rb (PModule::rule): Reverted the previous change.
|
|
|
|
2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/common.rmk (grub_modules_init.lst): Depends on
|
|
$(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
|
|
that the target does not exist before producing.
|
|
(grub_modules_init.h): Remove the target before generating.
|
|
(grub_emu_init.c): Likewise.
|
|
|
|
* genmk.rb (PModule::rule): Add source files into MODSRCFILES.
|
|
|
|
2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
|
|
for the target-specific tests. Make sure that we also have the
|
|
up-to-date target variables for those tests.
|
|
|
|
2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
|
|
(PModule::rule): Likewise.
|
|
|
|
2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
|
|
TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
|
|
target-specific flags should be prefixed.
|
|
(PModule::rule): Likewise.
|
|
|
|
2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac (CMP): Check if cmp is available explicitly.
|
|
|
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
|
|
(target_cpu): New variable.
|
|
(pkglibdir): Use target_cpu instead of host_cpu.
|
|
|
|
* util/i386/pc/grub-install.in (host_cpu): Removed.
|
|
(target_cpu): New variable.
|
|
(pkglibdir): Use target_cpu instead of host_cpu.
|
|
|
|
* util/genmoddep.c: Removed.
|
|
|
|
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
|
|
instead of GRUB_HOST_SIZEOF_VOID_P.
|
|
* kern/dl.c: Likewise.
|
|
|
|
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
|
|
...
|
|
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
|
|
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
|
|
(GRUB_TARGET_SIZEOF_LONG): ... this.
|
|
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
|
|
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
|
|
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
|
|
to ...
|
|
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
|
|
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
|
|
(GRUB_TARGET_SIZEOF_LONG): ... this.
|
|
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
|
|
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
|
|
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
|
|
to ...
|
|
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
|
|
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
|
|
(GRUB_TARGET_SIZEOF_LONG): ... this.
|
|
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
|
|
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
|
|
|
|
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
|
|
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
|
|
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
|
|
instead of GRUB_HOST_SIZEOF_LONG.
|
|
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
|
|
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
|
|
GRUB_CPU_WORDS_BIGENDIAN.
|
|
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
|
|
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
|
|
grub_host_ssize_t.
|
|
|
|
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
|
|
(genmoddep_SOURCES): Likewise.
|
|
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
|
|
(genmoddep_SOURCES): Likewise.
|
|
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
|
|
(genmoddep_SOURCES): Likewise.
|
|
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
|
|
Likewise.
|
|
(genmoddep_SOURCES): Likewise.
|
|
|
|
* genmoddep.awk: New file.
|
|
|
|
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
|
|
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
|
|
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
|
|
(PModule::rule): Likewise.
|
|
(Program::rule): Likewise.
|
|
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
|
|
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
|
|
respectively.
|
|
|
|
* configure.ac: Rewritten intensively to use host and target
|
|
instead of build and host, respectively.
|
|
|
|
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
|
|
(host_cpu): Removed.
|
|
(target_cpu): New variable.
|
|
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
|
|
(BUILD_CC): Removed.
|
|
(BUILD_CFLAGS): Likewise.
|
|
(BUILD_CPPFLAGS): Likewise.
|
|
(TARGET_CC): New variable.
|
|
(TARGET_CFLAGS): Likewise.
|
|
(TARGET_CPPFLAGS): Likewise.
|
|
(TARGET_LDFLAGS): Likewise.
|
|
(AWK): Likewise.
|
|
(include): Use target_cpu instead of host_cpu.
|
|
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
|
|
|
|
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
|
|
|
|
2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
|
|
'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
|
|
field 'false' to 'exec_on_false'.
|
|
(grub_script_create_cmdif): Renamed argument names to reflect above
|
|
changes.
|
|
|
|
* normal/execute.c (grub_script_execute_cmdif): Likewise.
|
|
|
|
* normal/script.c (grub_script_create_cmdif): Likewise.
|
|
|
|
2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
|
|
top.
|
|
(grub_hfsplus_btree_recptr): Likewise.
|
|
(grub_hfsplus_find_block): Do not take RETRY any longer. Use
|
|
FILEBLOCK both to pass a block number and store next block
|
|
number.
|
|
(grub_hfsplus_read_block): Rewritten heavily to support an extent
|
|
overflow file correctly. Specify errors appropriately, because
|
|
fshelp expects that GRUB_ERRNO is set when fails. Reuse
|
|
grub_hfsplus_btree_recptr to get the pointer to a found key.
|
|
(grub_hfsplus_btree_search): Return 1 instead of 0 when no match
|
|
is found.
|
|
|
|
* conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
|
|
linux.mod.
|
|
(_linux_mod_SOURCES): New variable.
|
|
(_linux_mod_CFLAGS): Likewise.
|
|
(_linux_mod_LDFLAGS): Likewise.
|
|
(linux_mod_SOURCES): Likewise.
|
|
(linux_mod_CFLAGS): Likewise.
|
|
(linux_mod_LDFLAGS): Likewise.
|
|
|
|
* DISTLIST: Added loader/i386/efi/linux.c,
|
|
loader/i386/efi/linux_normal.c and
|
|
include/grub/i386/efi/loader.h.
|
|
|
|
* loader/i386/efi/linux.c: New file.
|
|
* loader/i386/efi/linux_normal.c: Likewise.
|
|
* include/grub/i386/efi/loader.h: Likewise.
|
|
|
|
2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* commands/blocklist.c: New file.
|
|
|
|
* DISTLIST: Added commands/blocklist.c.
|
|
|
|
* term/efi/console.c (grub_console_highlight_color): Use a lighter
|
|
color for the background, and a darker color for the foreground.
|
|
(grub_console_checkkey): Return READ_KEY.
|
|
(grub_console_cls): Set the background to
|
|
GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
|
|
|
|
* kern/efi/efi.c (grub_efi_exit_boot_services): New function.
|
|
|
|
* include/grub/i386/linux.h (struct linux_kernel_params): Fixed
|
|
the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
|
|
|
|
* include/grub/efi/efi.h (grub_efi_exit_boot_services): New
|
|
prototype.
|
|
|
|
* include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
|
|
BG. The spec is wrong again.
|
|
|
|
* include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
|
|
prototype.
|
|
[GRUB_UTIL] (grub_blocklist_fini): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added
|
|
commands/blocklist.c.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
|
|
|
|
* conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
|
|
(blocklist_mod_SOURCES): New variable.
|
|
(blocklist_mod_CFLAGS): Likewise.
|
|
(blocklist_mod_LDFLAGS): Likewise.
|
|
|
|
2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
|
|
duplication.
|
|
(lba_mode): Use %eax more intensively to reduce the code size.
|
|
|
|
2006-05-20 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/lexer.c (grub_script_yylex): Don't filter out newlines.
|
|
|
|
* normal/parser.y (commandblock): Defined as <cmd>. A subroutine
|
|
for `menuentry'.
|
|
(script): Accept leading newlines.
|
|
(newlines): New rule to describe 0 or more newlines.
|
|
(commands): Accept `command' with trailing newline. Fixed the
|
|
order in which arguments were passed to `grub_script_add_cmd'.
|
|
Accept commands separated by newlines.
|
|
(function): Changed to accept newlines.
|
|
(menuentry) Rewritten.
|
|
|
|
* normal/script.c (grub_script_create_cmdmenu): Add new entries in
|
|
front of the list, instead of to the end.
|
|
|
|
2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-install.in (bindir): New variable.
|
|
(grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
|
|
Shaver <lbgwjl@gmail.com>.
|
|
|
|
2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
|
|
grub/machine/linux.h
|
|
* loader/i386/pc/linux.c: Likewise.
|
|
|
|
* include/grub/i386/pc/linux.h: Moved to ...
|
|
* include/grub/i386/linux.h: ... here.
|
|
|
|
* include/grub/i386/linux.h (struct linux_kernel_params): New
|
|
struct.
|
|
|
|
2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
|
|
checking.
|
|
(grub_video_vbe_blit_glyph): Likewise.
|
|
(grub_video_vbe_blit_bitmap): Likewise.
|
|
(grub_video_vbe_blit_render_target): Likewise.
|
|
|
|
2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac (--with-platform): Properly quote the square
|
|
brackets.
|
|
|
|
2006-05-08 Marco Gerards <marco@gnu.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
|
|
this...
|
|
(kernel_elf_HEADERS): ...to this. Updated all users.
|
|
(grubof_symlist.c): Renamed from this...
|
|
(kernel_elf_symlist.c): ...to this. Updated all users.
|
|
(pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
|
|
(grubof_SOURCES): Renamed from this...
|
|
(kernel_elf_SOURCES): ...to this.
|
|
(grubof_HEADERS): Renamed from this...
|
|
(kernel_elf_HEADERS): ...to this.
|
|
(grubof_CFLAGS): Renamed from this...
|
|
(kernel_elf_CFLAGS): ...to this.
|
|
(grubof_ASFLAGS): Renamed from this...
|
|
(kernel_elf_ASFLAGS): ...to this.
|
|
(grubof_LDFLAGS): Renamed from this...
|
|
(kernel_elf_LDFLAGS): ...to this.
|
|
|
|
* conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
|
|
this...
|
|
(kernel_elf_HEADERS): ...to this. Updated all users.
|
|
(grubof_symlist.c): Renamed from this...
|
|
(kernel_elf_symlist.c): ...to this. Updated all users.
|
|
(pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
|
|
(grubof_SOURCES): Renamed from this...
|
|
(kernel_elf_SOURCES): ...to this.
|
|
(grubof_HEADERS): Renamed from this...
|
|
(kernel_elf_HEADERS): ...to this.
|
|
(grubof_CFLAGS): Renamed from this...
|
|
(kernel_elf_CFLAGS): ...to this.
|
|
(grubof_ASFLAGS): Renamed from this...
|
|
(kernel_elf_ASFLAGS): ...to this.
|
|
(grubof_LDFLAGS): Renamed from this...
|
|
(kernel_elf_LDFLAGS): ...to this.
|
|
|
|
* util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
|
|
`kernel.elf' instead of `grubof'.
|
|
|
|
2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Add --with-platform to configure. Use pkglibdir instead of
|
|
pkgdatadir. This is reported by Roger Leigh.
|
|
|
|
* util/powerpc/ieee1275/grub-install.in (datadir): Removed.
|
|
(host_vendor): Likewise.
|
|
(host_os): Likewise.
|
|
(pkgdatadir): Likewise.
|
|
(platform): New variable.
|
|
(pkglibdir): Likewise.
|
|
Use PKGLIBDIR instead of PKGDATADIR.
|
|
|
|
* util/i386/pc/grub-install.in (datadir): Removed.
|
|
(host_vendor): Likewise.
|
|
(host_os): Likewise.
|
|
(pkgdatadir): Likewise.
|
|
(platform): New variable.
|
|
(pkglibdir): Likewise.
|
|
Use PKGLIBDIR instead of PKGDATADIR.
|
|
|
|
* util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
|
|
instead of GRUB_DATADIR.
|
|
(main): Likewise.
|
|
* util/i386/pc/grub-mkimage.c (usage): Likewise.
|
|
(main): Likewise.
|
|
* util/i386/efi/grub-mkimage.c (usage): Likewise.
|
|
(main): Likewise.
|
|
|
|
* configure.ac (--with-platform): New option.
|
|
Use PLATFORM instead of HOST_VENDOR to specify a platform.
|
|
|
|
* Makefile.in: Include a makefile based on PLATFORM instead of
|
|
HOST_VENDOR.
|
|
(pkgdatadir): Not appended by the machine type.
|
|
(pkglibdir): Appended by the machine type.
|
|
(host_vendor): Removed.
|
|
(platform): New variable.
|
|
(BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
|
|
(install-local): Use PKGLIBDIR instead of PKGDATADIR.
|
|
(uninstall): Likewise.
|
|
|
|
2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Use the environment context in the menu. Remove the commands
|
|
"default" and "timeout", and use variables instead.
|
|
|
|
* normal/menu.c: Include grub/env.h.
|
|
(print_entry): Cast TITLE to silence gcc.
|
|
(get_timeout): New function.
|
|
(set_timeout): Likewise.
|
|
(get_entry_number): Likewise.
|
|
(run_menu): Use a default entry, a fallback entry and a timeout
|
|
in the environment variables "default", "fallback" and
|
|
"timeout". Also, tweak the default entry if it is not within the
|
|
current menu entries.
|
|
(grub_menu_run): Use a fallback entry in the environment variable
|
|
"fallback".
|
|
|
|
* normal/main.c (read_config_file): Do not initialize
|
|
NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
|
|
NEWMENU->TIMEOUT.
|
|
(grub_normal_execute): Use a data slot to store the menu.
|
|
|
|
* include/grub/normal.h (struct grub_menu): Removed default_entry,
|
|
fallback_entry and timeout.
|
|
(struct grub_menu_list): Removed.
|
|
(grub_menu_list_t): Likewise.
|
|
(struct grub_context): Likewise.
|
|
(grub_context_t): Likewise.
|
|
(grub_context_get): Likewise.
|
|
(grub_context_get_current_menu): Likewise.
|
|
(grub_context_push_menu): Likewise.
|
|
(grub_context_pop_menu): Likewise.
|
|
(grub_default_init): Likewise.
|
|
(grub_default_fini): Likewise.
|
|
(grub_timeout_init): Likewise.
|
|
(grub_timeout_fini): Likewise.
|
|
|
|
* conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
|
|
and timeout.mod.
|
|
(normal_mod_SOURCES): Removed normal/context.c.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
|
|
commands/default.c, commands/timeout.c and normal/context.c.
|
|
(normal_mod_SOURCES): Removed normal/context.c.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
|
|
commands/timeout.c and normal/context.c.
|
|
(normal_mod_SOURCES): Removed normal/context.c.
|
|
|
|
* conf/i386-efi.rmk (grub_emu_SOURCES): Removed
|
|
commands/default.c, commands/timeout.c and normal/context.c.
|
|
(normal_mod_SOURCES): Removed normal/context.c.
|
|
|
|
* conf/common.rmk (pkgdata_MODULES): Removed default.mod and
|
|
timeout.mod.
|
|
(default_mod_SOURCES): Removed.
|
|
(default_mod_CFLAGS): Likewise.
|
|
(default_mod_LDFLAGS): Likewise.
|
|
(timeout_mod_SOURCES): Removed.
|
|
(timeout_mod_CFLAGS): Likewise.
|
|
(timeout_mod_LDFLAGS): Likewise.
|
|
|
|
* DISTLIST: Removed commands/default.c, commands/timeout.c and
|
|
normal/context.c.
|
|
|
|
* commands/default.c: Removed.
|
|
* commands/timeout.c: Likewise.
|
|
* normal/context.c: Likewise.
|
|
|
|
2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
|
|
|
|
2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/env.c (struct grub_env_context): Removed "sorted". Renamed
|
|
"next" to "prev" for readability.
|
|
(struct grub_env_sorted_var): New struct.
|
|
(grub_env_context): Renamed to ...
|
|
(initial_context): ... this.
|
|
(grub_env_var_context): Renamed to ...
|
|
(current_context): ... this.
|
|
(grub_env_find): Look only at CURRENT_CONTEXT.
|
|
(grub_env_context_open): Rewritten to copy exported variables from
|
|
previous context.
|
|
(grub_env_context_close): Rewritten according to the new
|
|
scheme. Also, add an assertion to prevent the initial context from
|
|
removed.
|
|
(grub_env_insert): Removed the code for the sorted list.
|
|
(grub_env_remove): Likewise.
|
|
(grub_env_export): Simply mark the variable with
|
|
GRUB_ENV_VAR_GLOBAL.
|
|
(grub_env_set): A cosmetic change for naming consistency.
|
|
(grub_env_get): Likewise.
|
|
(grub_env_unset): Likewise.
|
|
(grub_env_iterate): Rewritten to sort variables within this
|
|
function.
|
|
(grub_register_variable_hook): Fixed for naming consistency. Call
|
|
grub_env_find again, only if NAME is not found at the first time.
|
|
(mangle_data_slot_name): New function.
|
|
(grub_env_set_data_slot): Likewise.
|
|
(grub_env_get_data_slot): Likewise.
|
|
(grub_env_unset_data_slot): Likewise.
|
|
|
|
* include/grub/env.h (grub_env_var_type): New enum.
|
|
(GRUB_ENV_VAR_LOCAL): New constant.
|
|
(GRUB_ENV_VAR_GLOBAL): Likewise.
|
|
(GRUB_ENV_VAR_DATA): Likewise.
|
|
(struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
|
|
"type".
|
|
(grub_env_set): Replace VAR with NAME for consistency.
|
|
(grub_register_variable_hook): Likewise.
|
|
(grub_env_export): Specify the name of the argument.
|
|
(grub_env_set_data_slot): New prototype.
|
|
(grub_env_get_data_slot): Likewise.
|
|
(grub_env_unset_data_slot): Likewise.
|
|
|
|
2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Extend the loader so that GRUB can accept a loader which comes
|
|
back to GRUB when a loaded image exits. Also, this change adds
|
|
support for a chainloader on EFI.
|
|
|
|
* term/efi/console.c: Include grub/misc.h.
|
|
(grub_console_checkkey): Display a scan code on the top for
|
|
debugging. This will be removed once the EFI port gets stable.
|
|
Correct the scan code mapping.
|
|
|
|
* kern/efi/mm.c (sort_memory_map): Sort in a descending order to
|
|
allocate memory from larger regions, in order to reduce the number
|
|
of allocated regions. Otherwise, the MacOSX loader panics.
|
|
(filter_memory_map): Avoid less than 1MB for compatibility with
|
|
other loaders.
|
|
(add_memory_regions): Allocate from the tail of a region, if
|
|
possible, to avoid allocating a region near to 1MB, for the MacOSX
|
|
loader.
|
|
|
|
* kern/efi/init.c (grub_efi_set_prefix): Specify
|
|
GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
|
|
|
|
* kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
|
|
argument IMAGE_HANDLE and specify it to get a loaded image.
|
|
(grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
|
|
grub_efi_get_loaded_image.
|
|
(grub_efi_get_filename): Divide the legnth by the size of
|
|
grub_efi_char16_t.
|
|
(grub_efi_get_device_path): New function.
|
|
(grub_efi_print_device_path): Print End Device Path nodes. Divide
|
|
the length by the size of grub_efi_char16_t for a file path device
|
|
path node.
|
|
|
|
* kern/loader.c (grub_loader_noreturn): New variable.
|
|
(grub_loader_set): Accept a new argument NORETURN. Set
|
|
GRUB_LOADER_NORETURN to NORETURN.
|
|
All callers changed.
|
|
(grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
|
|
grub_machine_fini.
|
|
|
|
* include/grub/efi/efi.h (grub_efi_get_device_path): New
|
|
prototype.
|
|
(grub_efi_get_loaded_image): Take an argument to specify an image
|
|
handle.
|
|
|
|
* include/grub/loader.h (grub_loader_set): Added one more argument
|
|
NORETURN.
|
|
|
|
* disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
|
|
instead of grub_efi_open_protocol.
|
|
(grub_efidisk_get_device_name): Likewise.
|
|
(grub_efidisk_close): Print a newline.
|
|
(grub_efidisk_get_device_handle): Fixed to use
|
|
GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
|
|
GRUB_EFI_DEVICE_PATH_TYPE.
|
|
|
|
* disk/efi/efidisk.c (device_path_guid): Moved to ...
|
|
* kern/efi/efi.c (device_path_guid): ... here.
|
|
|
|
* conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
|
|
chain.mod.
|
|
(kernel_mod_HEADERS): Added efi/disk.h.
|
|
(_chain_mod_SOURCES): New variable.
|
|
(_chain_mod_CFLAGS): Likewise.
|
|
(_chain_mod_LDFLAGS): Likewise.
|
|
(chain_mod_SOURCES): Likewise.
|
|
(chain_mod_CFLAGS): Likewise.
|
|
(chain_mod_LDFLAGS): Likewise.
|
|
|
|
* DISTLIST: Added include/grub/efi/chainloader.h,
|
|
loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
|
|
|
|
* include/grub/efi/chainloader.h: New file.
|
|
* loader/efi/chainloader.c: Likewise.
|
|
* loader/efi/chainloader_normal.c: Likewise.
|
|
|
|
2006-04-30 Marco Gerards <marco@gnu.org>
|
|
|
|
* commands/configfile.c (grub_cmd_source): New function.
|
|
(GRUB_MOD_INIT): Register the commands `source' and `.'.
|
|
(GRUB_MOD_FINI): De-register the commands `source' and `.'.
|
|
|
|
2006-04-30 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/execute.c (grub_script_execute_cmd): Change the return
|
|
type to `grub_err_t'. Correctly return the error.
|
|
(grub_script_execute_cmdline): In case a command line is not a
|
|
command or a function, try to interpret it as an assignment.
|
|
|
|
2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
|
|
(grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
|
|
skip a node whose name is obviously invalid as UTF-16,
|
|
i.e. contains a NUL character. Stop the iteration when the last
|
|
directory entry is found. Instead of using the return value of
|
|
grub_hfsplus_btree_iterate_node, store the value in RET and use
|
|
it, because the iterator can be stopped by the last directory
|
|
entry.
|
|
|
|
2006-04-30 Marco Gerards <marco@gnu.org>
|
|
|
|
* include/grub/env.h (grub_env_export): New prototype. Reported
|
|
by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
|
|
|
|
2006-04-30 Marco Gerards <marco@gnu.org>
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
|
|
size of the extents in a catalog file record.
|
|
|
|
2006-04-29 Marco Gerards <marco@gnu.org>
|
|
|
|
* commands/configfile.c (grub_cmd_configfile): Execute the
|
|
configfile within its own context.
|
|
|
|
* include/grub/env.h (grub_env_context_open): New prototype.
|
|
(grub_env_context_close): Likewise.
|
|
|
|
* kern/env.c (grub_env): Removed.
|
|
(grub_env_sorted): Likewise.
|
|
(grub_env_context): New variable.
|
|
(grub_env_var_context): Likewise.
|
|
(grub_env_find): Search both the active context and the global
|
|
context.
|
|
(grub_env_context_open): New function.
|
|
(grub_env_context_close): Likewise.
|
|
(grub_env_insert): Likewise.
|
|
(grub_env_remove): Likewise.
|
|
(grub_env_export): Likewise.
|
|
(grub_env_set): Changed to use helper functions to avoid code
|
|
duplication.
|
|
(grub_env_iterate): Rewritten so both the current context and the
|
|
global context are being used.
|
|
|
|
* normal/command.c (export_command): New function.
|
|
(grub_command_init): Register the `export' function.
|
|
|
|
2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
|
|
explicitly to suppress gcc's warnings.
|
|
* fs/fat.c (grub_fat_find_dir): Likewise.
|
|
(grub_fat_label): Likewise.
|
|
* fs/xfs.c (grub_xfs_read_inode): Likewise.
|
|
(grub_xfs_mount): Likewise.
|
|
(grub_xfs_label): Likewise.
|
|
* fs/affs.c (grub_affs_mount): Likewise.
|
|
(grub_affs_label): Likewise.
|
|
(grub_affs_iterate_dir): Likewise.
|
|
* fs/sfs.c (grub_sfs_mount): Likewise.
|
|
(grub_sfs_iterate_dir): Likewise.
|
|
* fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
|
|
* fs/hfs.c (grub_hfs_mount): Likewise.
|
|
(grub_hfs_cmp_catkeys): Likewise.
|
|
(grub_hfs_find_dir): Likewise.
|
|
(grub_hfs_dir): Likewise.
|
|
(grub_hfs_label): Likewise.
|
|
* fs/jfs.c (grub_jfs_mount): Likewise.
|
|
(grub_jfs_opendir): Likewise.
|
|
(grub_jfs_getent): Likewise.
|
|
(grub_jfs_lookup_symlink): Likewise.
|
|
(grub_jfs_label): Likewise.
|
|
* fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
|
|
(grub_hfsplus_iterate_dir): Likewise.
|
|
(grub_hfsplus_btree_iterate_node): Made static.
|
|
|
|
* util/grub-emu.c (prefix): New variable.
|
|
(grub_machine_set_prefix): New function.
|
|
(main): Do not set the environment variable "prefix" here. Only
|
|
set PREFIX, which is used later by grub_machine_set_prefix.
|
|
|
|
* include/grub/video.h: Do not include grub/symbol.h.
|
|
(grub_video_register): Not exported. This symbol is not defined in
|
|
the kernel.
|
|
(grub_video_unregister): Likewise.
|
|
(grub_video_iterate): Likewise.
|
|
(grub_video_setup): Likewise.
|
|
(grub_video_restore): Likewise.
|
|
(grub_video_get_info): Likewise.
|
|
(grub_video_get_blit_format): Likewise.
|
|
(grub_video_set_palette): Likewise.
|
|
(grub_video_get_palette): Likewise.
|
|
(grub_video_set_viewport): Likewise.
|
|
(grub_video_get_viewport): Likewise.
|
|
(grub_video_map_color): Likewise.
|
|
(grub_video_map_rgb): Likewise.
|
|
(grub_video_map_rgba): Likewise.
|
|
(grub_video_fill_rect): Likewise.
|
|
(grub_video_blit_glyph): Likewise.
|
|
(grub_video_blit_bitmap): Likewise.
|
|
(grub_video_blit_render_target): Likewise.
|
|
(grub_video_scroll): Likewise.
|
|
(grub_video_swap_buffers): Likewise.
|
|
(grub_video_create_render_target): Likewise.
|
|
(grub_video_delete_render_target): Likewise.
|
|
(grub_video_set_active_render_target): Likewise.
|
|
|
|
* include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
|
|
Undefined.
|
|
[GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
|
|
|
|
* conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
|
|
config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
|
|
(kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
|
|
instead of $(srcdir)/genkernsyms.sh.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
|
|
config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
|
|
(kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
|
|
instead of $(srcdir)/genkernsyms.sh.
|
|
|
|
* conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
|
|
gensymlist.sh instead of $(srcdir)/gensymlist.sh.
|
|
(kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
|
|
instead of $(srcdir)/genkernsyms.sh.
|
|
|
|
* conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
|
|
gensymlist.sh instead of $(srcdir)/gensymlist.sh.
|
|
(kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
|
|
instead of $(srcdir)/genkernsyms.sh.
|
|
|
|
* configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
|
|
genkernsyms.sh.
|
|
|
|
* Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
|
|
genkernsyms.sh.
|
|
(gensymlist.sh): New target.
|
|
(genkernsyms.sh): Likewise.
|
|
|
|
* DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
|
|
genkernsyms.sh.in and gensymlist.sh.in.
|
|
|
|
* genkernsyms.sh: Removed.
|
|
* gensymlist.sh: Likewise.
|
|
|
|
* genkernsyms.sh.in: New file.
|
|
* gensymlist.sh.in: Likewise.
|
|
|
|
2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
|
|
clobber "prefix", since we may have already set it manually.
|
|
|
|
2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/misc.c (abort): New alias for grub_abort.
|
|
|
|
2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
A new machine-specific function "grub_machine_set_prefix" is
|
|
defined. This is called after loading modules, so that a prefix
|
|
initialization can use modules. Also, this change adds an
|
|
intensive debugging feature for the memory manager via the
|
|
configure option "--enable-mm-debug".
|
|
|
|
* partmap/gpt.c (gpt_partition_map_iterate): Add one more into
|
|
PART.LEN.
|
|
|
|
* kern/sparc64/ieee1275/init.c (abort): Removed.
|
|
(grub_stop): Likewise.
|
|
(grub_exit): New function.
|
|
(grub_set_prefix): Renamed to ...
|
|
(grub_machine_set_prefix): ... this.
|
|
(grub_machine_init): Do not call grub_set_prefix.
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
|
|
(grub_machine_set_prefix): ... this.
|
|
(grub_machine_init): Do not call grub_set_prefix.
|
|
|
|
* kern/i386/pc/init.c (grub_machine_set_prefix): New function.
|
|
(grub_machine_init): Do not set the prefix here.
|
|
|
|
* kern/i386/efi/init.c (grub_machine_set_prefix): New function.
|
|
|
|
* kern/efi/init.c: Include grub/mm.h.
|
|
(grub_efi_set_prefix): New function.
|
|
|
|
* kern/efi/efi.c (grub_exit): Call grub_efi_fini.
|
|
(grub_efi_get_filename): New function.
|
|
(grub_print_device_path): Renamed to ...
|
|
(grub_efi_print_device_path): ... this.
|
|
|
|
* kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
|
|
[MM_DEBUG] (grub_realloc): Likewise.
|
|
[MM_DEBUG] (grub_free): Likewise.
|
|
[MM_DEBUG] (grub_memalign): Likewise.
|
|
[MM_DEBUG] (grub_mm_debug): New variable.
|
|
[MM_DEBUG] (grub_debug_malloc): New function.
|
|
[MM_DEBUG] (grub_debug_free): New function.
|
|
[MM_DEBUG] (grub_debug_realloc): New function.
|
|
[MM_DEBUG] (grub_debug_memalign): New function.
|
|
|
|
* kern/misc.c (grub_abort): Print a newline to distinguish
|
|
the message.
|
|
|
|
* kern/main.c (grub_main): Call grub_machine_set_prefix and
|
|
grub_set_root_dev after loading modules. This is necessary when
|
|
setting a prefix depends on modules.
|
|
|
|
* include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
|
|
(grub_efi_print_device_path): ... this.
|
|
(grub_efi_get_filename): New prototype.
|
|
(grub_efi_set_prefix): Likewise.
|
|
|
|
* include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
|
|
and grub/disk.h.
|
|
(grub_efidisk_get_device_handle): New prototype.
|
|
(grub_efidisk_get_device_name): Likewise.
|
|
|
|
* include/grub/mm.h: Include config.h.
|
|
(MM_DEBUG): Removed.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
|
|
[MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
|
|
|
|
* include/grub/kernel.h (grub_machine_set_prefix): New prototype.
|
|
|
|
* disk/efi/efidisk.c: Include grub/partition.h.
|
|
(iterate_child_devices): New function.
|
|
(add_device): First, compare only last device path nodes, so that
|
|
devices are sorted by the types.
|
|
(grub_efidisk_get_device_handle): New function.
|
|
(grub_efidisk_get_device_name): Likewise.
|
|
|
|
* configure.ac (--enable-mm-debug): New option to enable the
|
|
memory manager debugging feature. This makes the binary much
|
|
bigger, so is disabled by default.
|
|
|
|
2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Use grub_abort instead of grub_stop, and grub_exit must be
|
|
define in each architecture now. Also, this change adds support
|
|
for EFI disks.
|
|
|
|
* util/i386/pc/grub-probefs.c: Include grub/term.h.
|
|
(grub_getkey): New function.
|
|
(grub_term_get_current): Likewise.
|
|
|
|
* util/i386/pc/grub-setup.c: Include grub/term.h.
|
|
(grub_getkey): New function.
|
|
(grub_term_get_current): Likewise.
|
|
|
|
* util/misc.c (grub_stop): Renamed to ...
|
|
(grub_exit): ... this.
|
|
|
|
* kern/powerpc/ieee1275/init.c (abort): Renamed to ...
|
|
(grub_exit): ... this.
|
|
(grub_machine_init): Use grub_abort instead of abort.
|
|
(grub_stop): Removed.
|
|
|
|
* kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
|
|
abort.
|
|
|
|
* kern/i386/pc/startup.S (grub_exit): New function.
|
|
(cold_reboot): New label.
|
|
|
|
* kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
|
|
(grub_efi_init): Call grub_efidisk_init.
|
|
(grub_efi_fini): Call grub_efidisk_fini.
|
|
|
|
* kern/efi/efi.c: Include grub/mm.h.
|
|
(grub_efi_console_control_guid): Renamed to ...
|
|
(console_control_guid): ... this.
|
|
(grub_efi_loaded_image_guid): Renamed to ...
|
|
(loaded_image_guid): ... this.
|
|
(grub_efi_locate_handle): New function.
|
|
(grub_efi_open_protocol): Likewise.
|
|
(grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
|
|
GRUB_EFI_CONSOLE_CONTROL_GUID.
|
|
(grub_efi_exit): Removed.
|
|
(grub_stop): Likewise.
|
|
(grub_efi_get_loaded_image): Use grub_efi_open_protocol.
|
|
(grub_exit): New function.
|
|
(grub_print_device_path): Likewise.
|
|
|
|
* kern/rescue.c (grub_rescue_cmd_exit): New function.
|
|
(grub_enter_rescue_mode): Register "exit".
|
|
|
|
* kern/misc.c (grub_real_dprintf): A cosmetic change.
|
|
(grub_abort): New function.
|
|
|
|
* kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
|
|
|
|
* include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
|
|
|
|
* include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
|
|
|
|
* include/grub/efi/efi.h (grub_efi_exit): Removed.
|
|
(grub_print_device_path): New prototype.
|
|
(grub_efi_locate_handle): Likewise.
|
|
(grub_efi_open_protocol): Likewise.
|
|
|
|
* include/grub/efi/disk.h (grub_efidisk_fini): New file.
|
|
* disk/efi/efidisk.c: Likewise.
|
|
|
|
* DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
|
|
|
|
* include/grub/efi/console_control.h
|
|
(GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
|
|
|
|
* include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
|
|
last 8 bytes as an array.
|
|
(GRUB_EFI_DISK_IO_GUID): New macro.
|
|
(GRUB_EFI_BLOCK_IO_GUID): Likewise.
|
|
(GRUB_EFI_DEVICE_PATH_GUID): Likewise.
|
|
(grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
|
|
grub_uint8_t.
|
|
(struct grub_efi_guid): Use an array to specify the last 8 bytes.
|
|
(struct grub_efi_device_path): Rename the member "sub_type" to
|
|
"subtype".
|
|
(GRUB_EFI_DEVICE_PATH_TYPE): New macro.
|
|
(GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
|
|
(GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
|
|
(GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
|
|
(GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
|
|
(GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
|
|
(GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(struct grub_efi_pci_device_path): New structure.
|
|
(grub_efi_pci_device_path_t): New type.
|
|
(GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_pccard_device_path): New structure.
|
|
(grub_efi_pccard_device_path_t): New type.
|
|
(GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_memory_mapped_device_path): New structure.
|
|
(grub_efi_memory_mapped_device_path_t): New type.
|
|
(GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_vendor_device_path): New structure.
|
|
(grub_efi_vendor_device_path_t): New type.
|
|
(GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_controller_device_path): New structure.
|
|
(grub_efi_controller_device_path_t): New type.
|
|
(GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
|
|
(GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(struct grub_efi_acpi_device_path): New structure.
|
|
(grub_efi_acpi_device_path_t): New type.
|
|
(GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_expanded_acpi_device_path): New structure.
|
|
(grub_efi_expanded_acpi_device_path_t): New type.
|
|
(GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
|
|
(GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
|
|
(GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
|
|
(GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
|
|
(GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(struct grub_efi_atapi_device_path): New structure.
|
|
(grub_efi_atapi_device_path_t): New type.
|
|
(GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_fibre_channel_device_path): New structure.
|
|
(grub_efi_fibre_channel_device_path_t): New type.
|
|
(GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_1394_device_path): New structure.
|
|
(grub_efi_1394_device_path_t): New type.
|
|
(GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_usb_device_path): New structure.
|
|
(grub_efi_usb_device_path_t): New type.
|
|
(GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_usb_class_device_path): New structure.
|
|
(grub_efi_usb_class_device_path_t): New type.
|
|
(GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_i2o_device_path): New structure.
|
|
(grub_efi_i2o_device_path_t): New type.
|
|
(GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_mac_address_device_path): New structure.
|
|
(grub_efi_mac_address_device_path_t): New type.
|
|
(GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_ipv4_device_path): New structure.
|
|
(grub_efi_ipv4_device_path_t): New type.
|
|
(GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_ipv6_device_path): New structure.
|
|
(grub_efi_ipv6_device_path_t): New type.
|
|
(GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_infiniband_device_path): New structure.
|
|
(grub_efi_infiniband_device_path_t): New type.
|
|
(GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_uart_device_path): New structure.
|
|
(grub_efi_uart_device_path_t): New type.
|
|
(GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_vendor_messaging_device_path): New structure.
|
|
(grub_efi_vendor_messaging_device_path_t): New type.
|
|
(GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
|
|
(GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(struct grub_efi_hard_drive_device_path): New structure.
|
|
(grub_efi_hard_drive_device_path_t): New type.
|
|
(GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_cdrom_device_path): New structure.
|
|
(grub_efi_cdrom_device_path_t): New type.
|
|
(GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_vendor_media_device_path): New structure.
|
|
(grub_efi_vendor_media_device_path_t): New type.
|
|
(GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_file_path_device_path): New structure.
|
|
(grub_efi_file_path_device_path_t): New type.
|
|
(GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
|
|
(struct grub_efi_protocol_device_path): New structure.
|
|
(grub_efi_protocol_device_path_t): New type.
|
|
(GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
|
|
(GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
|
|
(struct grub_efi_bios_device_path): New structure.
|
|
(grub_efi_bios_device_path_t): New type.
|
|
(struct grub_efi_disk_io): New structure.
|
|
(grub_efi_disk_io_t): New type.
|
|
(struct grub_efi_block_io_media): New structure.
|
|
(grub_efi_block_io_media_t): New type.
|
|
(struct grub_efi_block_io): New structure.
|
|
(grub_efi_block_io_t): New type.
|
|
|
|
* include/grub/misc.h (grub_stop): Removed.
|
|
(grub_exit): New prototype.
|
|
(grub_abort): Likewise.
|
|
|
|
* include/grub/disk.h (enum grub_disk_dev_id): Added
|
|
GRUB_DISK_DEVICE_EFIDISK_ID.
|
|
|
|
* conf/i386-efi.rmk (kernel_mod_SOURCES): Added
|
|
disk/efi/efidisk.c.
|
|
(kernel_syms.lst): Remove the target if an error occurs.
|
|
|
|
2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
|
|
as it was simply too buggy.
|
|
|
|
2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/misc.c (grub_lltoa): New function.
|
|
(grub_vsprintf): Added support for the long long suffix,
|
|
i.e. "ll".
|
|
|
|
2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* Makefile.in (LDFLAGS): Add variable.
|
|
(LD): Remove variable.
|
|
* configure.ac: Add -m32 to LDFLAGS.
|
|
* genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
|
|
* conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
|
|
(grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
|
|
(_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
|
|
suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
|
|
variables.
|
|
* conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
|
|
* conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
|
|
* conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
|
|
|
|
2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
|
|
length for unknown glyph.
|
|
|
|
2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Add support for pre-loaded modules into the EFI port.
|
|
|
|
* util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
|
|
completely. Accept one more argument DIR. The caller has changed.
|
|
|
|
* kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
|
|
|
|
* kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
|
|
(grub_efi_loaded_image_guid): New variable.
|
|
(grub_efi_get_loaded_image): New function.
|
|
(grub_arch_modules_addr): Likewise.
|
|
|
|
* include/grub/efi/efi.h (grub_efi_get_loaded_image): New
|
|
prototype.
|
|
|
|
* include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
|
|
(struct grub_efi_loaded_image): New structure.
|
|
(grub_efi_loaded_image_t): New type.
|
|
|
|
2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
|
|
size with GRUB_OS_AREA_SIZE as grub_size_t instead of
|
|
grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
|
|
|
|
2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
|
|
|
|
* DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
|
|
|
|
2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added include/grub/efi/console.h,
|
|
include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
|
|
kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
|
|
|
|
* include/grub/efi/console.h: New file.
|
|
* include/grub/efi/time.h: Likewise.
|
|
* include/grub/i386/efi/kernel.h: Likewise.
|
|
* kern/efi/init.c: Likewise.
|
|
* kern/efi/mm.c: Likewise.
|
|
* term/efi/console.c: Likewise.
|
|
|
|
* kern/i386/efi/init.c: Do not include grub/machine/time.h.
|
|
(grub_stop): Removed.
|
|
(grub_get_rtc): Likewise.
|
|
(grub_machine_init): Simply call grub_efi_init.
|
|
(grub_machine_fini): Call grub_efi_fini.
|
|
|
|
* kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
|
|
(grub_efi_output_string): Removed.
|
|
(grub_efi_stall): New function.
|
|
(grub_stop): Likewise.
|
|
(grub_get_rtc): Likewise.
|
|
|
|
* include/grub/efi/efi.h (grub_efi_output_string): Removed.
|
|
(grub_efi_stall): New prototype.
|
|
(grub_efi_allocate_pages): Likewise.
|
|
(grub_efi_free_pages): Likewise.
|
|
(grub_efi_get_memory_map): Likewise.
|
|
(grub_efi_mm_init): Likewise.
|
|
(grub_efi_mm_fini): Likewise.
|
|
(grub_efi_init): Likewise.
|
|
(grub_efi_fini): Likewise.
|
|
|
|
* include/grub/i386/efi/time.h: Do not include
|
|
grub/symbol.h. Include grub/efi/time.h.
|
|
(GRUB_TICKS_PER_SECOND): Removed.
|
|
(grub_get_rtc): Likewise.
|
|
|
|
* include/grub/efi/api.h (struct grub_efi_memory_descriptor):
|
|
Added padding. The EFI spec is buggy.
|
|
(GRUB_EFI_BLACK): New macro.
|
|
(GRUB_EFI_BLUE): Likewise.
|
|
(GRUB_EFI_GREEN): Likewise.
|
|
(GRUB_EFI_CYAN): Likewise.
|
|
(GRUB_EFI_RED): Likewise.
|
|
(GRUB_EFI_MAGENTA): Likewise.
|
|
(GRUB_EFI_BROWN): Likewise.
|
|
(GRUB_EFI_LIGHTGRAY): Likewise.
|
|
(GRUB_EFI_BRIGHT): Likewise.
|
|
(GRUB_EFI_DARKGRAY): Likewise.
|
|
(GRUB_EFI_LIGHTBLUE): Likewise.
|
|
(GRUB_EFI_LIGHTGREEN): Likewise.
|
|
(GRUB_EFI_LIGHTCYAN): Likewise.
|
|
(GRUB_EFI_LIGHTRED): Likewise.
|
|
(GRUB_EFI_LIGHTMAGENTA): Likewise.
|
|
(GRUB_EFI_YELLOW): Likewise.
|
|
(GRUB_EFI_WHITE): Likewise.
|
|
(GRUB_EFI_BACKGROUND_BLACK): Likewise.
|
|
(GRUB_EFI_BACKGROUND_BLUE): Likewise.
|
|
(GRUB_EFI_BACKGROUND_GREEN): Likewise.
|
|
(GRUB_EFI_BACKGROUND_CYAN): Likewise.
|
|
(GRUB_EFI_BACKGROUND_RED): Likewise.
|
|
(GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
|
|
(GRUB_EFI_BACKGROUND_BROWN): Likewise.
|
|
(GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
|
|
(GRUB_EFI_TEXT_ATTR): Likewise.
|
|
|
|
* conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
|
|
kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
|
|
(kernel_mod_HEADERS): Added efi/time.h.
|
|
|
|
2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
|
|
include/grub/efi/api.h, include/grub/efi/console_control.h,
|
|
include/grub/efi/efi.h, include/grub/efi/pe32.h,
|
|
include/grub/i386/efi/time.h, kern/efi/efi.c,
|
|
kern/i386/efi/init.c, kern/i386/efi/startup.S,
|
|
and util/i386/efi/grub-mkimage.c.
|
|
|
|
* Makefile.in (RMKFILES): Added i386-efi.rmk.
|
|
|
|
* genmk.rb (PModule#rule): Do not export symbols if
|
|
#{prefix}_EXPORTS is set to "no".
|
|
|
|
* conf/i386-efi.mk: New file.
|
|
* conf/i386-efi.rmk: Likewise.
|
|
* include/grub/efi/api.h: Likewise.
|
|
* include/grub/efi/console_control.h: Likewise.
|
|
* include/grub/efi/efi.h: Likewise.
|
|
* include/grub/efi/pe32.h: Likewise.
|
|
* include/grub/i386/efi/time.h: Likewise.
|
|
* kern/efi/efi.c: Likewise.
|
|
* kern/i386/efi/init.c: Likewise.
|
|
* kern/i386/efi/startup.S: Likewise.
|
|
* util/i386/efi/grub-mkimage.c: Likewise.
|
|
|
|
2006-04-17 Marco Gerards <marco@gnu.org>
|
|
|
|
* include/grub/script.h: Include <grub/parser.h> and
|
|
"grub_script.tab.h".
|
|
(struct grub_lexer_param): New struct.
|
|
(struct grub_parser_param): Likewise.
|
|
(grub_script_create_arglist): Pass the state in an argument.
|
|
(grub_script_add_arglist): Likewise.
|
|
(grub_script_create_cmdline): Likewise.
|
|
(grub_script_create_cmdblock): Likewise.
|
|
(grub_script_create_cmdif): Likewise.
|
|
(grub_script_create_cmdmenu): Likewise.
|
|
(grub_script_add_cmd): Likewise.
|
|
(grub_script_arg_add): Likewise.
|
|
(grub_script_lexer_ref): Likewise.
|
|
(grub_script_lexer_deref): Likewise.
|
|
(grub_script_lexer_record_start): Likewise.
|
|
(grub_script_lexer_record_stop): Likewise.
|
|
(grub_script_mem_record): Likewise.
|
|
(grub_script_mem_record_stop): Likewise.
|
|
(grub_script_malloc): Likewise.
|
|
(grub_script_yylex): Likewise.
|
|
(grub_script_yyparse): Likewise.
|
|
(grub_script_yyerror): Likewise.
|
|
(grub_script_yylex): Likewise.
|
|
(grub_script_lexer_init): Return the state.
|
|
|
|
* normal/lexer.c (grub_script_lexer_state): Removed variable.
|
|
(grub_script_lexer_done): Likewise.
|
|
(grub_script_lexer_getline): Likewise.
|
|
(grub_script_lexer_refs): Likewise.
|
|
(script): Likewise.
|
|
(newscript): Likewise.
|
|
(record): Likewise.
|
|
(recording): Likewise.
|
|
(recordpos): Likewise.
|
|
(recordlen): Likewise.
|
|
(grub_script_lexer_init): Return the state instead of setting
|
|
global variables.
|
|
(grub_script_lexer_ref): Use the newly added argument for state
|
|
instead of globals.
|
|
(grub_script_lexer_deref): Likewise.
|
|
(grub_script_lexer_record_start): Likewise.
|
|
(grub_script_lexer_record_stop): Likewise.
|
|
(recordchar): Likewise.
|
|
(nextchar): Likewise.
|
|
(grub_script_yylex2): Likewise.
|
|
(grub_script_yylex): Likewise.
|
|
(grub_script_yyerror): Likewise.
|
|
|
|
* normal/parser.y (func_mem): Removed variable.
|
|
(menu_entry): Likewise.
|
|
(err): Likewise.
|
|
(%lex-param): New parser option.
|
|
(%parse-param): Likewise.
|
|
(script): Always return the AST.
|
|
(argument): Pass the state around.
|
|
(arguments): Likewise.
|
|
(grubcmd): Likewise.
|
|
(commands): Likewise.
|
|
(function): Likewise.
|
|
(menuentry): Likewise.
|
|
(if_statement): Likewise.
|
|
(if): Likewise.
|
|
|
|
* normal/script.c (grub_script_memused): Removed variable.
|
|
(grub_script_parsed): Likewise.
|
|
(grub_script_malloc): Added a state argument. Use that instead of
|
|
global variables.
|
|
(grub_script_mem_record): Likewise.
|
|
(grub_script_mem_record_stop): Likewise.
|
|
(grub_script_arg_add): Likewise.
|
|
(grub_script_add_arglist): Likewise.
|
|
(grub_script_create_cmdline): Likewise.
|
|
(grub_script_create_cmdif): Likewise.
|
|
(grub_script_create_cmdmenu): Likewise.
|
|
(grub_script_add_cmd): Likewise.
|
|
(grub_script_parse): Setup the state before calling the parser.
|
|
|
|
2006-04-16 Marco Gerards <marco@gnu.org>
|
|
|
|
* normal/command.c (grub_command_init): Remove the title command.
|
|
|
|
* normal/lexer.c (grub_script_yylex): Renamed from this...
|
|
(grub_script_yylex2): ... to this.
|
|
(grub_script_yylex): New function. Temporary
|
|
introduced to filter some tokens.
|
|
(grub_script_yyerror): Print a newline.
|
|
|
|
* normal/main.c (read_config_file): Output information about the
|
|
lines that contain errors. Wait for a key after all lines have
|
|
been processed. Don't return an empty menu.
|
|
|
|
* normal/parser.y (func_mem): Don't initialize.
|
|
(menu_entry): Likewise.
|
|
(err): New variable.
|
|
(script): Don't return anything when an error was encountered.
|
|
(ws, returns): Removed rules.
|
|
(argument): Disabled concatenated variable support.
|
|
(arguments): Remove explicit separators.
|
|
(grubcmd): Likewise.
|
|
(function): Likewise.
|
|
(menuentry): Likewise.
|
|
(if): Likewise.
|
|
(commands): Likewise. Add error handling.
|
|
|
|
* normal/script.c (grub_script_create_cmdline): If
|
|
`grub_script_parsed' is 0, assume the parser encountered an error.
|
|
|
|
2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac: Add support for EFI. Fix the typo
|
|
BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
|
|
|
|
2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* util/unifont2pff.rb: Removed unnecessary byte ordering. Now
|
|
foreign multibyte characters should be shown correctly.
|
|
|
|
2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* normal/main.c (grub_normal_menu_addentry): Fixed menu size
|
|
calculation.
|
|
(read_config_file): Made it to close file before returning.
|
|
|
|
2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* DISTLIST: Added include/grub/i386/pc/vbeblit.h,
|
|
include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
|
|
video/i386/pc/vbefill.c.
|
|
|
|
* conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
|
|
video/i386/pc/vbefill.c.
|
|
|
|
* include/grub/video.h (grub_video_blit_format): New enum.
|
|
(grub_video_mode_info): Added new member blit_format.
|
|
(grub_video_get_blit_format): New function prototype.
|
|
|
|
* include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
|
|
function prototype.
|
|
(grub_video_vbe_map_rgb): Likewise.
|
|
(grub_video_vbe_unmap_color): Likewise.
|
|
|
|
* include/grub/i386/pc/vbeblit.h: New file.
|
|
|
|
* include/grub/i386/pc/vbefill.h: New file.
|
|
|
|
* video/video.c (grub_video_get_blit_format): New function.
|
|
(grub_video_vbe_get_video_ptr): Re-declared as non-static.
|
|
(grub_video_vbe_map_rgb): Likewise.
|
|
(grub_video_vbe_unmap_color): Likewise.
|
|
|
|
* video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
|
|
optimized fills.
|
|
(grub_video_vbe_blit_render_target): Changed to use more optimized
|
|
blits.
|
|
(grub_video_vbe_setup): Added detection for optimized settings.
|
|
(grub_video_vbe_create_render_target): Likewise.
|
|
|
|
* video/i386/pc/vbeblit.c: New file.
|
|
|
|
* video/i386/pc/vbefill.c: New file.
|
|
|
|
2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* font/manager.c (grub_font_get_glyph): Removed font fixup from
|
|
here...
|
|
|
|
* util/unifont2pff.rb: ... and moved it to here. Improved argument
|
|
parsing to support both hex and dec ranges. If filename was missing
|
|
show usage information.
|
|
|
|
2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* DISTLIST: Added include/grub/video.h, term/gfxterm.c,
|
|
video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
|
|
gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
|
|
(video_mod_SOURCES): Added.
|
|
(video_mod_CFLAGS): Likewise.
|
|
(video_mod_LDFLAGS): Likewise.
|
|
(gfxterm_mod_SOURCES): Likewise.
|
|
(gfxterm_mod_CFLAGS): Likewise.
|
|
(gfxterm_mod_LDFLAGS): Likewise.
|
|
(videotest_mod_SOURCES): Likewise.
|
|
(videotest_mod_CFLAGS): Likewise.
|
|
(videotest_mod_LDFLAGS): Likewise.
|
|
(vesafb_mod_SOURCES): Removed.
|
|
(vesafb_mod_CFLAGS): Likewise.
|
|
(vesafb_mod_LDFLAGS): Likewise.
|
|
(vga_mod_SOURCES): Likewise.
|
|
(vga_mod_CFLAGS): Likewise.
|
|
(vga_mod_LDFLAGS): Likewise.
|
|
|
|
* commands/videotest.c: New file.
|
|
|
|
* font/manager.c (fill_with_default_glyph): Modified to use
|
|
grub_font_glyph.
|
|
(grub_font_get_glyph): Likewise.
|
|
(fontmanager): Renamed from this...
|
|
(font_manager): ... to this.
|
|
|
|
* include/grub/font.h (grub_font_glyph): Added new structure.
|
|
(grub_font_get_glyph): Modified to use grub_font_glyph.
|
|
|
|
* include/grub/misc.h (grub_abs): Added as inline function.
|
|
|
|
* include/grub/video.h: New file.
|
|
|
|
* include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
|
|
(GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
|
|
(GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
|
|
(grub_vbe_get_controller_info): Renamed from this...
|
|
(grub_vbe_bios_get_controller_info): ... to this.
|
|
(grub_vbe_get_mode_info): Renamed from this...
|
|
(grub_vbe_bios_get_mode_info): ... to this.
|
|
(grub_vbe_set_mode): Renamed from this...
|
|
(grub_vbe_bios_set_mode): ... to this.
|
|
(grub_vbe_get_mode): Renamed from this...
|
|
(grub_vbe_bios_get_mode): ... to this.
|
|
(grub_vbe_set_memory_window): Renamed from this...
|
|
(grub_vbe_bios_set_memory_window): ... to this.
|
|
(grub_vbe_get_memory_window): Renamed from this...
|
|
(grub_vbe_bios_get_memory_window): ... to this.
|
|
(grub_vbe_set_scanline_length): Renamed from this...
|
|
(grub_vbe_set_scanline_length): ... to this.
|
|
(grub_vbe_get_scanline_length): Renamed from this...
|
|
(grub_vbe_bios_get_scanline_length): ... to this.
|
|
(grub_vbe_set_display_start): Renamed from this...
|
|
(grub_vbe_bios_set_display_start): ... to this.
|
|
(grub_vbe_get_display_start): Renamed from this...
|
|
(grub_vbe_bios_get_display_start): ... to this.
|
|
(grub_vbe_set_palette_data): Renamed from this...
|
|
(grub_vbe_bios_set_palette_data): ... to this.
|
|
(grub_vbe_set_pixel_rgb): Removed.
|
|
(grub_vbe_set_pixel_index): Likewise.
|
|
|
|
* kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
|
|
from this...
|
|
(grub_vbe_bios_get_controller_info): ... to this.
|
|
(grub_vbe_get_mode_info): Renamed from this...
|
|
(grub_vbe_bios_get_mode_info): ... to this.
|
|
(grub_vbe_set_mode): Renamed from this...
|
|
(grub_vbe_bios_set_mode): ... to this.
|
|
(grub_vbe_get_mode): Renamed from this...
|
|
(grub_vbe_bios_get_mode): ... to this.
|
|
(grub_vbe_set_memory_window): Renamed from this...
|
|
(grub_vbe_bios_set_memory_window): ... to this.
|
|
(grub_vbe_get_memory_window): Renamed from this...
|
|
(grub_vbe_bios_get_memory_window): ... to this.
|
|
(grub_vbe_set_scanline_length): Renamed from this...
|
|
(grub_vbe_set_scanline_length): ... to this.
|
|
(grub_vbe_get_scanline_length): Renamed from this...
|
|
(grub_vbe_bios_get_scanline_length): ... to this.
|
|
(grub_vbe_set_display_start): Renamed from this...
|
|
(grub_vbe_bios_set_display_start): ... to this.
|
|
(grub_vbe_get_display_start): Renamed from this...
|
|
(grub_vbe_bios_get_display_start): ... to this.
|
|
(grub_vbe_set_palette_data): Renamed from this...
|
|
(grub_vbe_bios_set_palette_data): ... to this.
|
|
(grub_vbe_bios_get_controller_info): Fixed problem with registers
|
|
getting corrupted after calling it. Added more pushes and pops.
|
|
(grub_vbe_bios_set_mode): Likewise.
|
|
(grub_vbe_bios_get_mode): Likewise.
|
|
(grub_vbe_bios_get_memory_window): Likewise.
|
|
(grub_vbe_bios_set_scanline_length): Likewise.
|
|
(grub_vbe_bios_get_scanline_length): Likewise.
|
|
(grub_vbe_bios_get_display_start): Likewise.
|
|
(grub_vbe_bios_set_palette_data): Likewise.
|
|
|
|
* normal/cmdline.c (cl_set_pos): Refresh the screen.
|
|
(cl_insert): Likewise.
|
|
(cl_delete): Likewise.
|
|
|
|
* term/gfxterm.c: New file.
|
|
|
|
* term/i386/pc/vesafb.c: Removed file.
|
|
|
|
* video/video.c: New file.
|
|
|
|
* video/i386/pc/vbe.c (real2pm): Added new function.
|
|
(grub_video_vbe_draw_pixel): Likewise.
|
|
(grub_video_vbe_get_video_ptr): Likewise.
|
|
(grub_video_vbe_get_pixel): Likewise
|
|
(grub_video_vbe_init): Likewise.
|
|
(grub_video_vbe_fini): Likewise.
|
|
(grub_video_vbe_setup): Likewise.
|
|
(grub_video_vbe_get_info): Likewise.
|
|
(grub_video_vbe_set_palette): Likewise.
|
|
(grub_video_vbe_get_palette): Likewise.
|
|
(grub_video_vbe_set_viewport): Likewise.
|
|
(grub_video_vbe_get_viewport): Likewise.
|
|
(grub_video_vbe_map_color): Likewise.
|
|
(grub_video_vbe_map_rgb): Likewise.
|
|
(grub_video_vbe_map_rgba): Likewise.
|
|
(grub_video_vbe_unmap_color): Likewise.
|
|
(grub_video_vbe_fill_rect): Likewise.
|
|
(grub_video_vbe_blit_glyph): Likewise.
|
|
(grub_video_vbe_blit_bitmap): Likewise.
|
|
(grub_video_vbe_blit_render_target): Likewise.
|
|
(grub_video_vbe_scroll): Likewise.
|
|
(grub_video_vbe_swap_buffers): Likewise.
|
|
(grub_video_vbe_create_render_target): Likewise.
|
|
(grub_video_vbe_delete_render_target): Likewise.
|
|
(grub_video_vbe_set_active_render_target): Likewise.
|
|
(grub_vbe_set_pixel_rgb): Remove function.
|
|
(grub_vbe_set_pixel_index): Likewise.
|
|
(index_color_mode): Remove static variable.
|
|
(active_mode): Likewise.
|
|
(framebuffer): Likewise.
|
|
(bytes_per_scan_line): Likewise.
|
|
(grub_video_vbe_adapter): Added new static variable.
|
|
(framebuffer): Likewise.
|
|
(render_target): Likewise.
|
|
(initial_mode): Likewise.
|
|
(mode_in_use): Likewise.
|
|
(mode_list): Likewise.
|
|
|
|
2006-03-10 Marco Gerards <marco@gnu.org>
|
|
|
|
* configure.ac (AC_INIT): Bumped to 1.93.
|
|
|
|
* DISTLIST: Added `include/grub/hfs.h'.
|
|
|
|
2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* boot/i386/pc/boot.S (general_error): Before looping, try INT
|
|
18H, which might help the BIOS falling back to next boot media.
|
|
|
|
2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-install.in: Escape a backslash. Reported by
|
|
Poe Chen <poe.poechen@gmail.com>.
|
|
|
|
2006-01-17 Marco Gerards <marco@gnu.org>
|
|
|
|
* include/grub/normal.h: Include <grub/script.h>.
|
|
(grub_command_list): Removed struct.
|
|
(grub_command_list_t): Removed type.
|
|
(grub_menu_entry): Remove members `num' and `command_list'. Add
|
|
members `commands' and `sourcecode'.
|
|
* include/grub/script.h: Add inclusion guards.
|
|
(grub_script_cmd_menuentry): New struct.
|
|
(grub_script_execute_menuentry): New prototype.
|
|
(grub_script_lexer_record_start): Likewise.
|
|
(grub_script_lexer_record_stop): Likewise.
|
|
* normal/execute.c (grub_script_execute_menuentry): New function.
|
|
* normal/lexer.c (record, recording, recordpos, recordlen): New
|
|
variables.
|
|
(grub_script_lexer_record_start): New function.
|
|
(grub_script_lexer_record_stop): Likewise.
|
|
(recordchar): Likewise.
|
|
(nextchar): Likewise.
|
|
(grub_script_yylex): Use `nextchar' to fetch new characters. Use
|
|
2048 as the buffer size. Add the tokens `menuentry' and `@'.
|
|
* normal/main.c: Include <grub/parser.h> and <grub/script.h>
|
|
(current_menu): New variable.
|
|
(free_menu): Mainly rewritten.
|
|
(grub_normal_menu_addentry): New function.
|
|
(read_config_file): Rewritten.
|
|
* normal/menu.c (run_menu_entry): Mainly rewritten.
|
|
* normal/menu_entry.c (make_screen): Rewritten te code to insert
|
|
the menu entry.
|
|
(run): Mainly rewritten.
|
|
* normal/parser.y (menu_entry): New variable.
|
|
(GRUB_PARSER_TOKEN_MENUENTRY): New token.
|
|
(menuentry): New rule.
|
|
(command): Add `menuentry'.
|
|
(if_statement): Allow additional returns before `fi'.
|
|
* normal/script.c (grub_script_create_cmdmenu): New function.
|
|
|
|
2006-01-03 Marco Gerards <marco@gnu.org>
|
|
|
|
* INSTALL: GNU Bison is required.
|
|
* configure.ac: Rewritten the test to detect Bison.
|
|
* Makefile.in (YACC): New variable. Reported by Xun Sun
|
|
<xun.sun.cn@gmail.com>.
|
|
|
|
2006-01-03 Marco Gerards <marco@gnu.org>
|
|
|
|
* fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
|
|
the HFS+ filesystem to filesystem blocks.
|
|
(grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
|
|
GCC warning is silenced.
|
|
|
|
2006-01-03 Marco Gerards <marco@gnu.org>
|
|
|
|
* partmap/apple.c (apple_partition_map_iterate): Convert the data
|
|
read from disk from big endian to host byte order.
|
|
|
|
2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
|
|
documentation.
|
|
(GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
|
|
(grub_hfs_mount): Grammar fix in error. Make sure this is not an
|
|
embedded HFS+ filesystem.
|
|
(GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
|
|
(grub_hfs_sblock): Move from here...
|
|
* include/grub/hfs.h: To here... New file.
|
|
* fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
|
|
documentation.
|
|
(GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
|
|
New macros.
|
|
(grub_hfsplus_volheader): Change type of member `magic' to
|
|
`grub_uint16_t'.
|
|
(grub_hfsplus_data): Add new member `embedded_offset'.
|
|
(grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
|
|
returned block.
|
|
(grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
|
|
Calculate the offset.
|
|
|
|
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
|
|
Removed.
|
|
(GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
|
|
|
|
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/env.c (grub_env_set): Check if ENV->VALUE instead of
|
|
ENV->NAME is NULL after allocating ENV->VALUE.
|
|
|
|
2005-12-25 Marco Gerards <marco@gnu.org>
|
|
|
|
* kern/env.c (grub_env_set): Rewritten the error handling code.
|
|
|
|
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* geninit.sh: Made more robust, and more portable.
|
|
|
|
2005-12-25 Marco Gerards <marco@gnu.org>
|
|
|
|
Add support for Apple HFS+ filesystems.
|
|
|
|
* fs/hfsplus.c: New file.
|
|
|
|
* DISTLIST: Added `fs/hfsplus.c'.
|
|
|
|
* conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
|
|
(hfsplus_mod_SOURCES): New variable.
|
|
(hfsplus_mod_CFLAGS): Likewise.
|
|
(hfsplus_mod_LDFLAGS): Likewise.
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
|
|
(grub_setup_SOURCES): Likewise.
|
|
(grub_mkdevicemap_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
|
|
|
|
* fs/fshelp.c (grub_fshelp_log2blksize): New function.
|
|
|
|
* include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
|
|
|
|
2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
|
|
commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
|
|
include/grub/parser.h, include/grub/script.h, kern/parser.c,
|
|
kern/sparc64/cache.S, normal/execute.c, normal/function.c,
|
|
normal/lexer.c, normal/parser.y, normal/script.c, and
|
|
partmap/gpt.c.
|
|
Removed kern/sparc64/cache.c.
|
|
|
|
* conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
|
|
grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
|
|
grub_emu_init.c.
|
|
|
|
* configure.ac (AC_INIT): Bumped to 1.92.
|
|
|
|
2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* kern/err.c (grub_error_push): Added new function to support error
|
|
stacks.
|
|
(grub_error_pop): Likewise.
|
|
(grub_error_stack_items): New local variable to support error stacks.
|
|
(grub_error_stack_pos): Likewise.
|
|
(grub_error_stack_assert): Likewise.
|
|
(GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
|
|
stack depth.
|
|
(grub_print_error): Added support to print errors from error stack.
|
|
|
|
* include/grub/err.h (grub_error_push): Added function prototype.
|
|
(grub_error_pop): Likewise.
|
|
|
|
2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* configure.ac: Accept `powerpc64' as host_cpu.
|
|
(amd64): Rename to `biarch32'.
|
|
|
|
* kern/powerpc/cache.S (grub_arch_sync_caches): Handle
|
|
non-cacheline-aligned addresses.
|
|
|
|
* kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
|
|
(grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
|
|
if `size' is non-zero.
|
|
|
|
2005-12-03 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
|
|
and `cd' to make sure the filename is not prefixed with a
|
|
directory name.
|
|
(pkgdata_MODULES): Add `gpt.mod'.
|
|
(gpt_mod_SOURCES): New variable.
|
|
(gpt_mod_CFLAGS): Likewise.
|
|
(gpt_mod_LDFLAGS): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
|
|
|
|
* include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
|
|
New macro.
|
|
|
|
* partmap/gpt.c: New file.
|
|
|
|
* partmap/pc.c (pc_partition_map_iterate): Don't continue when a
|
|
GPT partition map is detected.
|
|
|
|
2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* commands/i386/pc/play.c: New file.
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
|
|
(play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
|
|
macros.
|
|
|
|
2005-11-27 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
|
|
((unused))' to silence gcc warning.
|
|
|
|
2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* configure.ac: Correct `AC_PROG_YACC' test.
|
|
|
|
2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* util/powerpc/ieee1275/grub-install.in: Run the mount point
|
|
check before installing files.
|
|
|
|
2005-11-22 Mike Small <smallm@panix.com>
|
|
|
|
* util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
|
|
number regex so multidigit numbers are recognized correctly.
|
|
|
|
2005-11-22 Mike Small <smallm@panix.com>
|
|
|
|
* loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
|
|
debugging message before attempting to claim memory.
|
|
(grub_rescue_cmd_initrd): Add a claim debugging message and try
|
|
multiple addresses in case of failure.
|
|
|
|
2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/tparm.c (get_space): Remove empty `if' statement.
|
|
|
|
* fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
|
|
|
|
* kern/parser.c (check_varstate): Rename `state' to 's'.
|
|
|
|
2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
|
|
variable definitions to the beginning of each function. Sort stack
|
|
variables by size.
|
|
(find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
|
|
`buf' argument to `char *'.
|
|
|
|
2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk: Include conf/common.mk.
|
|
(pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
|
|
minux.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
|
|
hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
|
|
help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
|
|
sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
|
|
configfile.mod, search.mod, gzio.mod and test.mod.
|
|
(symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
|
|
(grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
|
|
(fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
|
|
(fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
|
|
(ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
|
|
(ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
|
|
(minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
|
|
(hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
|
|
(jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
|
|
(iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
|
|
(xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
|
|
(affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
|
|
(sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
|
|
(hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
|
|
(boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
|
|
(terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
|
|
(ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
|
|
(cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
|
|
(help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
|
|
(font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
|
|
(terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
|
|
(amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
|
|
(apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
|
|
|
|
* conf/common.mk (grub_modules_init.lst): Use `find' instead of
|
|
`grep --include'.
|
|
(pkgdata_MODULES): Add test.mod.
|
|
|
|
2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
|
|
|
* genmk.rb: Fixed list rules moved to Makefile.in. Recognise
|
|
appending to variables with "+=".
|
|
(PModule): Use full pathname to generate *.lst filenames.
|
|
|
|
* Makefile.in: Fixed list rules moved from genmk.rb.
|
|
(.DELETE_ON_ERROR): New special target.
|
|
(RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
|
|
|
|
* conf/i386-pc.rmk: Include conf/common.mk.
|
|
(pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
|
|
minux.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
|
|
hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
|
|
help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
|
|
sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
|
|
configfile.mod, search.mod, gzio.mod and test.mod.
|
|
(symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
|
|
(grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
|
|
(fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
|
|
(fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
|
|
(ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
|
|
(ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
|
|
(minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
|
|
(hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
|
|
(jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
|
|
(iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
|
|
(xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
|
|
(affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
|
|
(sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
|
|
(hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
|
|
(boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
|
|
(terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
|
|
(ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
|
|
(cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
|
|
(help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
|
|
(font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
|
|
(terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
|
|
(amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
|
|
(apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
|
|
here...
|
|
* conf/common.rmk: ... to here. New file.
|
|
|
|
* conf/common.mk: New file.
|
|
|
|
2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
|
|
(grub_script.tab.c): ... here.
|
|
|
|
* conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
|
|
(grub_script.tab.c): ... here.
|
|
|
|
* conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
|
|
(grub_script.tab.c): ... here.
|
|
|
|
* normal/command.c (grub_command_find): Fixed a memory leak of
|
|
MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
|
|
|
|
2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
|
|
|
* include/grub/symbol.h: (FUNCTION): Use double quotes instead of
|
|
"@" which marks the start of a comment on ARM.
|
|
(VARIABLE): Likewise.
|
|
|
|
2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
|
|
|
Add support for Linux/ADFS partition tables.
|
|
|
|
* partmap/acorn.c: New file.
|
|
|
|
* include/grub/acorn_filecore.h: Likewise.
|
|
|
|
* DISTLIST: Added `partmap/acorn.c' and
|
|
`include/grub/acorn_filecore.h'.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`partmap/acorn.c'.
|
|
(pkgdata_MODULES): Add `acorn.mod'.
|
|
(acorn_mod_SOURCES): New variable.
|
|
(acorn_mod_CFLAGS): Likewise.
|
|
|
|
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`partmap/acorn.c'.
|
|
(pkgdata_MODULES): Add `acorn.mod'.
|
|
(acorn_mod_SOURCES): New variable.
|
|
(acorn_mod_CFLAGS): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
|
|
(pkgdata_MODULES): Add `acorn.mod'.
|
|
(acorn_mod_SOURCES): New variable.
|
|
(acorn_mod_CFLAGS): Likewise.
|
|
(acorn_mod_LDFLAGS): Likewise.
|
|
|
|
* include/types.h (grub_disk_addr_t): New typedef.
|
|
|
|
2005-11-13 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* geninit.sh: New file.
|
|
|
|
* geninitheader.sh: Likewise.
|
|
|
|
* commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
|
|
* commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
|
|
* commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
|
|
* commands/configfile.c (grub_configfile_init)
|
|
(grub_configfile_fini): Likewise.
|
|
* commands/default.c (grub_default_init, grub_default_fini):
|
|
Likewise.
|
|
* commands/help.c (grub_help_init, grub_help_fini): Likewise.
|
|
* commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
|
|
* commands/search.c (grub_search_init, grub_search_fini): Likewise.
|
|
* commands/terminal.c (grub_terminal_init, grub_terminal_fini):
|
|
Likewise.
|
|
* commands/test.c (grub_test_init, grub_test_fini): Likewise.
|
|
* commands/timeout.c (grub_timeout_init, grub_timeout_fini):
|
|
Likewise.
|
|
* commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
|
|
* commands/iee1275/halt.c (grub_halt_init, grub_halt_fini):
|
|
Likewise.
|
|
* commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
|
|
Likewise.
|
|
* commands/iee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
|
|
Likewise.
|
|
* disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
|
|
* fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
|
|
* fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
|
|
* fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
|
|
* fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
|
|
* fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
|
|
* fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
|
|
* fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
|
|
* fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
|
|
* fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
|
|
* fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
|
|
* normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
|
|
* partmap/amiga.c (grub_amiga_partition_map_init)
|
|
(grub_amiga_partition_map_fini): Likewise.
|
|
* partmap/apple.c (grub_apple_partition_map_init)
|
|
(grub_apple_partition_map_fini): Likewise.
|
|
* partmap/pc.c (grub_pc_partition_map_init)
|
|
(grub_pc_partition_map_fini): Likewise.
|
|
* partmap/sun.c (grub_sun_partition_map_init,
|
|
grub_sun_partition_map_fini): Likewise.
|
|
* term/terminfo.c (grub_terminal_init, grub_terminal_fini):
|
|
Likewise.
|
|
|
|
* util/grub-emu.c: Include <grub_modules_init.h>.
|
|
(main): Don't initialize and de-initialize any modules directly,
|
|
use `grub_init_all' and `grub_fini_all' instead.
|
|
|
|
* term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
|
|
`grub_vesafb_mod_init'.
|
|
(grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
|
|
all users.
|
|
* term/i386/pc/vga.c (grub_vga_init): Renamed to
|
|
`grub_vga_mod_init'. Updated all users.
|
|
(grub_vga_fini): Renamed to `grub_vga_mod_fini'.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
|
|
(grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
|
|
rules.
|
|
|
|
* include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
|
|
Generate a function to initialize the module in utilities.
|
|
Updated all callers.
|
|
(GRUB_MOD_FINI): Add argument `name'. Generate a function to
|
|
initialize the module in utilities. Updated all callers.
|
|
|
|
2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
|
|
escape sequence and a literal ^L to clear the screen.
|
|
|
|
* commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
|
|
when returning from Open Firmware.
|
|
|
|
2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
|
|
(grub_ofconsole_height): Likewise.
|
|
(grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
|
|
manually insert a '\n'.
|
|
(grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
|
|
`grub_ofconsole_height'. Return early if these are already set.
|
|
|
|
2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
|
|
`normal/execute.c', `normal/lexer.c', `io/gzio.c',
|
|
`kern/parser.c', `grub_script.tab.c', `normal/function.c'
|
|
and `normal/script.c'.
|
|
(normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
|
|
`grub_script.tab.c', `normal/function.c' and `normal/script.c'.
|
|
(test_mod_SOURCES): New variable.
|
|
(test_mod_CFLAGS): Likewise.
|
|
(test_mod_LDFLAGS): Likewise.
|
|
(pkgdata_MODULES): Add `test.mod'.
|
|
(grub_script.tab.c): New rule.
|
|
(grub_script.tab.h): Likewise.
|
|
|
|
2005-11-07 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`commands/test.c', `normal/execute.c', `normal/lexer.c',
|
|
`grub_script.tab.c', `normal/function.c' and `normal/script.c'.
|
|
(normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
|
|
`grub_script.tab.c', `normal/function.c' and `normal/script.c'.
|
|
(test_mod_SOURCES): New variable.
|
|
(test_mod_CFLAGS): Likewise.
|
|
(pkgdata_MODULES): Add `test.mod'.
|
|
(grub_script.tab.c): New rule.
|
|
(grub_script.tab.h): Likewise.
|
|
|
|
2005-11-06 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
Add initial scripting support.
|
|
|
|
* commands/test.c: New file.
|
|
* include/grub/script.h: Likewise.
|
|
* normal/execute.c: Likewise.
|
|
* normal/function.c: Likewise.
|
|
* normal/lexer.c: Likewise.
|
|
* normal/parser.y: Likewise.
|
|
* normal/script.c: Likewise.
|
|
|
|
* configure.ac: Add `AC_PROG_YACC' test.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
|
|
`normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
|
|
`normal/function.c' and `normal/script.c'.
|
|
(normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
|
|
`grub_script.tab.c', `normal/function.c' and `normal/script.c'.
|
|
(test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
|
|
variables.
|
|
(pkgdata_MODULES): Add `test.mod'.
|
|
(grub_script.tab.c): New rule.
|
|
(grub_script.tab.h): Likewise.
|
|
|
|
* include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
|
|
|
|
* include/grub/normal.h (grub_test_init): New prototype.
|
|
(grub_test_fini): Likewise.
|
|
|
|
* normal/command.c: Include <grub/script.h>.
|
|
(grub_command_execute): Rewritten.
|
|
|
|
* util/grub-emu.c (main): Call `grub_test_init' and
|
|
`grub_test_fini'.
|
|
|
|
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
|
|
to 0.
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
|
|
there are no pending characters.
|
|
|
|
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
|
|
`grub_strndup' to drop device arguments. Replace unnecessary
|
|
`grub_strndup' with `grub_strdup'.
|
|
|
|
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
|
|
`debug' environment variable has been set.
|
|
|
|
2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* Makefile.in (install-local): Use $(DATA).
|
|
(uninstall): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
|
|
(sbin_UTILITIES): ... to here.
|
|
(sbin_SCRIPTS): New variable.
|
|
(grub_install_SOURCES): New variable.
|
|
* util/powerpc/ieee1275/grub-install.in: New file.
|
|
* util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
|
|
variable.
|
|
(add_segments): Call `grub_util_get_path'.
|
|
|
|
2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
From Timothy Baldwin:
|
|
* commands/ls.c (grub_ls_list_files): Close FILE with
|
|
grub_file_close.
|
|
* kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
|
|
|
|
2005-10-24 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* include/grub/parser.h: New file.
|
|
|
|
* kern/parser.c: Likewise.
|
|
|
|
* conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
|
|
(grub_setup_SOURCES): Likewise.
|
|
(grub_probefs_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(kernel_img_HEADERS): Add `parser.h'.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
|
|
(grub_emu_SOURCES): Add `kern/parser.c'.
|
|
(grubof_SOURCES): Likewise.
|
|
|
|
* conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
|
|
(grubof_SOURCES): Add `kern/parser.c'.
|
|
|
|
* include/grub/misc.h (grub_split_cmdline): Removed prototype.
|
|
|
|
* kern/misc.c (grub_split_cmdline): Removed function.
|
|
|
|
* kern/rescue.c: Include <grub/parser.h>.
|
|
(grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
|
|
of `grub_split_cmdline'.
|
|
|
|
* normal/command.c: Include <grub/parser.h>.
|
|
(grub_command_execute): Use `grub_parser_split_cmdline' instead
|
|
of `grub_split_cmdline'.
|
|
|
|
* normal/completion.c: Include <grub/parser.h>.
|
|
(cmdline_state): New variable.
|
|
(iterate_dir): End the filename with a quote depending on the
|
|
command line state.
|
|
(get_state): new function.
|
|
(grub_normal_do_completion): Use `grub_parser_split_cmdline' to
|
|
split the arguments and determine the current argument. When the
|
|
argument string is not quoted, escape all spaces.
|
|
|
|
2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* normal/sparc64/setjmp.S: New file.
|
|
|
|
2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* include/grub/sparc64/libgcc.h: New file.
|
|
* conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
|
|
(normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
|
|
normal/sparc64/setjmp.c.
|
|
|
|
2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
|
|
* kern/sparc64/cache.S: New file.
|
|
* kern/sparc64/cache.c: Removed.
|
|
* conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
|
|
(COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
|
|
-mtune=ultrasparc.
|
|
(COMMON_LDFLAGS): Add -melf64_sparc.
|
|
(grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
|
|
(grubof_SOURCES): Use cache.S instead of cache.c.
|
|
(grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
|
|
--oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
|
|
(pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
|
|
commented though.
|
|
(normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
|
|
(_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
|
|
(linux_mod_CFLAGS): Commented out.
|
|
(_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
|
|
out because module isn't built.
|
|
(fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
|
|
(ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
|
|
(jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
|
|
(hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
|
|
(ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
|
|
(font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
|
|
(pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
|
|
(suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
|
|
(help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
|
|
(configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
|
|
(xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
|
|
(affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
|
|
(sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
|
|
(gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
|
|
|
|
2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
|
|
grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
|
|
longer, because HFS should not be used on PC.
|
|
|
|
2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
|
|
|
* io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
|
|
consistently within the loop.
|
|
|
|
2005-10-15 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
|
|
directory can not be read.
|
|
|
|
2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac (AC_INIT): Increase the version number to 1.91.
|
|
|
|
* DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
|
|
include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
|
|
term/i386/pc/serial.c.
|
|
|
|
2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/file.c (grub_file_seek): Seeking to an offset equal to a
|
|
file size must be permitted.
|
|
|
|
* kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
|
|
between %ah and %al.
|
|
|
|
2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
|
|
grub_uint64_t.
|
|
Call the hook with a NUL-terminated filename.
|
|
(grub_xfs_mount): Use grub_be_to_cpu32 instead of
|
|
grub_cpu_to_be32.
|
|
|
|
* kern/term.c (cursor_state): New variable.
|
|
(grub_term_set_current): Reset the cursor state on a new
|
|
terminal.
|
|
(grub_setcursor): Rewritten to use CURSOR_STATE.
|
|
(grub_getcursor): New function.
|
|
|
|
* include/grub/term.h (grub_getcursor): New prototype.
|
|
|
|
* io/gzio.c (test_header): Align BUF for accessing it as 32-bit
|
|
integers on ARM. Reported by Timothy Baldwin
|
|
<T.E.Baldwin99@members.leeds.ac.uk>.
|
|
|
|
2005-10-11 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
|
|
allocated.
|
|
(grub_sfs_dir): Likewise.
|
|
|
|
2005-10-09 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
Add support for the SFS filesystem.
|
|
|
|
* fs/sfs.c: New file.
|
|
|
|
* DISTLIST: Added `fs/sfs.c'.
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
|
|
(grub_probefs_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add `sfs.mod'.
|
|
(sfs_mod_SOURCES): New variable.
|
|
(sfs_mod_CFLAGS): Likewise.
|
|
(sfs_mod_LDFLAGS): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
|
|
(pkgdata_MODULES): Add `sfs.mod'.
|
|
(sfs_mod_SOURCES): New variable.
|
|
(sfs_mod_CFLAGS): Likewise.
|
|
|
|
* util/grub-emu.c (main): Call `grub_sfs_init' and
|
|
`grub_sfs_fini'.
|
|
|
|
* include/grub/fs.h (grub_sfs_init): New prototype.
|
|
(grub_sfs_fini): Likewise.
|
|
|
|
2005-10-07 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
Add support for the AFFS filesystem.
|
|
|
|
* fs/affs.c: New file.
|
|
|
|
* DISTLIST: Added `fs/affs.c'.
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
|
|
(grub_probefs_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add `affs.mod'.
|
|
(affs_mod_SOURCES): New variable.
|
|
(affs_mod_CFLAGS): Likewise.
|
|
(affs_mod_LDFLAGS): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
|
|
(pkgdata_MODULES): Add `affs.mod'.
|
|
(affs_mod_SOURCES): New variable.
|
|
(affs_mod_CFLAGS): Likewise.
|
|
|
|
* util/grub-emu.c (main): Call `grub_affs_init' and
|
|
`grub_affs_fini'.
|
|
|
|
* include/grub/fs.h (grub_affs_init): New prototype.
|
|
(grub_affs_fini): Likewise.
|
|
|
|
2005-10-01 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
|
|
|
|
2005-10-01 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
* configure.ac: Accept `x86_64' as host_cpu. In that case add
|
|
`-m32' to CFLAGS.
|
|
|
|
* genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
|
|
linking.
|
|
|
|
* conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
|
|
(COMMON_LDFLAGS): New variable.
|
|
(kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
|
|
(_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
|
|
(ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
|
|
(hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
|
|
(xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
|
|
(normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
|
|
(terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
|
|
(cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
|
|
(halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
|
|
(terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
|
|
(multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
|
|
(pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
|
|
(default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
|
|
(vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
|
|
(vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
|
|
variables.
|
|
(normal_mod_ASFLAGS): Add `-m32'.
|
|
|
|
* include/grub/types.h (grub_host_addr_t, grub_host_off_t)
|
|
(grub_host_size_t, grub_host_ssize_t): New types.
|
|
(grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
|
|
dependant of `GRUB_CPU_SIZEOF_VOID_P' instead on
|
|
`GRUB_HOST_SIZEOF_VOID_P'.
|
|
|
|
* include/grub/kernel.h (struct grub_module_header): Type of
|
|
member offset changed to `grub_host_off_t'. Type of member size
|
|
changed to `grub_host_size_t'.
|
|
(struct grub_module_info): Type of member offset changed to
|
|
`grub_host_off_t'. Type of member size changed to
|
|
`grub_host_size_t'.
|
|
|
|
2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Make GRUB's kernel compliant to Multiboot Specification.
|
|
|
|
* kern/i386/pc/startup.S (multiboot_header): New label.
|
|
(multiboot_entry): Likewise.
|
|
(multiboot_trampoline): Likewise.
|
|
|
|
* include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
|
|
Increased to 0x4A0.
|
|
|
|
* fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
|
|
put parentheses after a question mark.
|
|
[!GRUB_UTIL] (my_mod): New variable.
|
|
|
|
* util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
|
|
|
|
2005-09-28 Marco Gerards <mgerards@xs4all.nl>
|
|
|
|
Adds support for the XFS filesystem. Btrees are not supported
|
|
yet.
|
|
|
|
* fs/xfs.c: New file.
|
|
|
|
* DISTLIST: Added `fs/xfs.c'.
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
|
|
(grub_probefs_SOURCES): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add `xfs.mod'.
|
|
(xfs_mod_SOURCES): New variable.
|
|
(xfs_mod_CFLAGS): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
|
|
(pkgdata_MODULES): Add `xfs.mod'.
|
|
(xfs_mod_SOURCES): New variable.
|
|
(xfs_mod_CFLAGS): Likewise.
|
|
|
|
* util/grub-emu.c (main): Call `grub_xfs_init' and
|
|
`grub_xfs_fini'.
|
|
|
|
* include/grub/fs.h (grub_xfs_init): New prototype.
|
|
(grub_xfs_fini): Likewise.
|
|
|
|
|
|
2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
|
|
color modes, allow greater than 16 colors to be configured as
|
|
a default palette.
|
|
|
|
2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/completion.c (complete_arguments): Add the qualifier
|
|
const into OPTIONS.
|
|
|
|
From Omniflux <omniflux+lists@omniflux.com>:
|
|
* include/grub/terminfo.h: New file.
|
|
* include/grub/tparm.h: Likewise.
|
|
* include/grub/i386/pc/serial.h: Likewise.
|
|
* term/terminfo.c: Likewise.
|
|
* term/tparm.c: Likewise.
|
|
* term/i386/pc/serial.c: Likewise.
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
|
|
serial.mod.
|
|
(terminfo_mod_SOURCES): New variable.
|
|
(terminfo_mod_CFLAGS): Likewise.
|
|
(serial_mod_SOURCES): Likewise.
|
|
(serial_mod_CFLAGS): Likewise.
|
|
|
|
2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
|
|
boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
|
|
and kern/powerpc/ieee1275/cmain.c, respectively.
|
|
|
|
* boot/powerpc/ieee1275/crt0.S: Moved to ...
|
|
* kern/powerpc/ieee1275/crt0.S: ... here.
|
|
|
|
* boot/powerpc/ieee1275/cmain.c: Moved to ...
|
|
* kern/powerpc/ieee1275/cmain.c: ... here.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
|
|
kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
|
|
instead of boot/powerpc/ieee1275/crt0.S and
|
|
boot/powerpc/ieee1275/cmain.c, respectively.
|
|
|
|
* boot/i386/pc/boot.S (lba_mode): Do not store the total number of
|
|
sectors. It was not used anyway.
|
|
|
|
2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
|
|
`unused parameter' warning.
|
|
|
|
2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
|
|
function.
|
|
(grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
|
|
getcharwidth.
|
|
|
|
2005-08-28 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* include/grub/normal.h (enum grub_completion_type): Added
|
|
`GRUB_COMPLETION_TYPE_ARGUMENT'.
|
|
|
|
* normal/cmdline.c (print_completion): Handle
|
|
the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
|
|
* normal/menu_entry.c (store_completion): Likewise.
|
|
|
|
* normal/completion.c (complete_arguments): New function.
|
|
(grub_normal_do_completion): Call `complete_arguments' when the
|
|
current words start with a dash.
|
|
|
|
2005-08-27 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
|
|
`gzio.mod' instead of `io.mod').
|
|
|
|
2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
|
|
(DISTDIRS): Added io and video.
|
|
Rewrite the search routine to make an output consistently.
|
|
|
|
* DISTLIST: Added conf/sparc64-ieee1275.mk,
|
|
conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
|
|
include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
|
|
io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
|
|
kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
|
|
util/powerpc/ieee1275/misc.c.
|
|
|
|
* include/grub/gzio.h: New file.
|
|
* io/gzio.c: Likewise.
|
|
|
|
* kern/file.c (grub_file_close): Call grub_device_close only if
|
|
FILE->DEVICE is not NULL.
|
|
|
|
* include/grub/mm.h [!NULL] (NULL): New macro.
|
|
|
|
* include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
|
|
(pkgdata_MODULES): Added gzio.mod.
|
|
(gzio_mod_SOURCES): New variable.
|
|
(gzio_mod_CFLAGS): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
|
|
(pkgdata_MODULES): Added gzio.mod.
|
|
(gzio_mod_SOURCES): New variable.
|
|
(gzio_mod_CFLAGS): Likewise.
|
|
|
|
* commands/cat.c: Include grub/gzio.h.
|
|
(grub_cmd_cat): Use grub_gzfile_open instead of
|
|
grub_file_open.
|
|
|
|
* commands/cmp.c: Include grub/gzio.h.
|
|
(grub_cmd_cmp): Use grub_gzfile_open instead of
|
|
grub_file_open.
|
|
|
|
* loader/i386/pc/multiboot.c: Include grub/gzio.h.
|
|
(grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
|
|
grub_file_open.
|
|
(grub_rescue_cmd_module): Likewise.
|
|
|
|
2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
|
|
kern/sparc64/ieee1275/init.c because it contains _start.
|
|
* conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
|
|
|
|
2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* configure.ac: Add support for sparc64 host with ieee1275
|
|
firmware.
|
|
* configure: Generated from configure.ac.
|
|
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
|
|
instead of int.
|
|
(grub_ofdisk_read): Likewise.
|
|
(grub_ofdisk_open): Use %p to print pointer values, and cast the
|
|
pointers as (void *) to remove a warning.
|
|
(grub_ofdisk_close): Likewise.
|
|
(grub_ofdisk_read): Likewise.
|
|
* kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
|
|
returns, so make it return void to remove a warning.
|
|
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
|
|
Corresponding prototype change.
|
|
* kern/mm.c (grub_mm_init_region): Use %p to print pointer
|
|
values, and cast the pointers as (void *) to remove a warning.
|
|
(grub_mm_dump): Likewise.
|
|
* conf/sparc64-ieee1275.mk: New file.
|
|
* conf/sparc64-ieee1275.rmk: Likewise.
|
|
* include/grub/sparc64/setjmp.h: Likewise.
|
|
* include/grub/sparc64/types.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/console.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/kernel.h: Likewise.
|
|
* include/grub/sparc64/ieee1275/time.h: Likewise.
|
|
* kern/sparc64/cache.c: Likewise.
|
|
* kern/sparc64/dl.c: Likewise.
|
|
* kern/sparc64/ieee1275/init.c: Likewise.
|
|
* kern/sparc64/ieee1275/openfw.c: Likewise.
|
|
|
|
2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/console.c (grub_ncurses_putchar): If C is greater than
|
|
0x7f, set C to a question mark.
|
|
(grub_ncurses_getcharwidth): New function.
|
|
(grub_ncurses_term): Specify grub_ncurses_getcharwidth as
|
|
getcharwidth.
|
|
|
|
* normal/menu.c (print_entry): Made aware of Unicode. First,
|
|
convert TITLE to UCS-4, and predict the cursor position by
|
|
grub_getcharwidth.
|
|
|
|
* include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
|
|
const to SRC.
|
|
* kern/misc.c (grub_utf16_to_utf8): Likewise.
|
|
|
|
2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
|
|
the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
|
|
grub_strcat.
|
|
|
|
* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
|
|
file by the option BOOT_IMAGE. Use grub_stpcpy instead of
|
|
grub_strcpy and grub_strlen. Take it into account that a space
|
|
character is inserted as a delimiter.
|
|
|
|
2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* partmap/pc.c (pc_partition_map_iterate): Include the value of an
|
|
invalid magic in thre error.
|
|
|
|
* commands/search.c: New file.
|
|
|
|
* util/grub-emu.c (main): Call grub_search_init and
|
|
grub_search_fini.
|
|
|
|
* kern/rescue.c (grub_rescue_print_disks): Removed.
|
|
(grub_rescue_print_devices): New function.
|
|
(grub_rescue_cmd_ls): Use grub_device_iterate with
|
|
grub_rescue_print_devices instead of grub_disk_dev_iterate with
|
|
grub_rescue_print_disks.
|
|
|
|
* kern/partition.c (grub_partition_iterate): Return the result of
|
|
PARTMAP->ITERATE instead of GRUB_ERRNO.
|
|
|
|
* kern/device.c: Include grub/partition.h.
|
|
(grub_device_iterate): New function.
|
|
|
|
* include/grub/partition.h (grub_partition_iterate): Return int
|
|
instead of grub_err_t.
|
|
|
|
* include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
|
|
prototype.
|
|
[GRUB_UTIL] (grub_search_fini): Likewise.
|
|
|
|
* include/grub/device.h (grub_device_iterate): New prototype.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
|
|
commands/search.c.
|
|
(pkgdata_MODULES): Added search.mod.
|
|
(search_mod_SOURCES): New variable.
|
|
(search_mod_CFLAGS): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
|
|
(pkgdata_MODULES): Added search.mod.
|
|
(search_mod_SOURCES): New variable.
|
|
(search_mod_CFLAGS): Likewise.
|
|
|
|
* commands/ls.c (grub_ls_list_disks): Renamed to ...
|
|
(grub_ls_list_devices): ... this, and use grub_device_iterate.
|
|
All callers changed.
|
|
|
|
* DISTLIST: Added commands/search.c.
|
|
|
|
2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
|
|
conversion.
|
|
(grub_getcharwidth): New function.
|
|
|
|
* kern/misc.c (grub_utf8_to_ucs4): New function.
|
|
|
|
* include/grub/term.h (struct grub_term): Added a new member
|
|
"getcharwidth".
|
|
(grub_getcharwidth): New prototype.
|
|
|
|
* include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
|
|
|
|
* term/i386/pc/console.c (map_char): New function. Segregated from
|
|
grub_console_putchar.
|
|
(grub_console_putchar): Use map_char.
|
|
(grub_console_getcharwidth): New function.
|
|
(grub_console_term): Specified grub_console_getcharwidth as
|
|
getcharwidth.
|
|
|
|
* term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
|
|
(grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
|
|
|
|
* term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
|
|
GRUB_ERRNO.
|
|
(grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
|
|
on grub_strtoul completely.
|
|
(write_char): Declare local variables in the beginning of the
|
|
function.
|
|
(grub_vesafb_getcharwidth): New function.
|
|
(grub_vesafb_term): Specified grub_vesafb_getcharwidth as
|
|
getcharwidth.
|
|
|
|
2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
|
|
commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
|
|
commands/i386/pc/vbetest.c.
|
|
|
|
* video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
|
|
call grub_vbe_get_controller_info again, because the returned
|
|
information is volatile.
|
|
(grub_vbe_set_video_mode): Mostly rewritten.
|
|
(grub_vbe_get_video_mode): Use grub_vbe_probe and use
|
|
grub_vbe_status_t correctly.
|
|
(grub_vbe_get_video_mode_info): Likewise.
|
|
(grub_vbe_set_pixel_rgb): Use a switch statement rather than
|
|
several if statements.
|
|
|
|
* commands/i386/pc/vbe_list_modes.c: Renamed to ...
|
|
* commands/i386/pc/vbeinfo.c: ... this.
|
|
|
|
* commands/i386/pc/vbe_test.c: Renamed to ...
|
|
* commands/i386/pc/vbetest.c: ... this.
|
|
|
|
* commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
|
|
...
|
|
(grub_cmd_vbeinfo): ... this. Save video modes before
|
|
iterating. Skip a video mode, if it is not available, not enough
|
|
information is given or it is monochrome. Show the memory
|
|
model. Leave the interpretation of MODEVAR to grub_strtoul
|
|
completely.
|
|
(GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
|
|
(GRUB_MOD_FINI): Likewise.
|
|
|
|
* commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
|
|
(grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
|
|
grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
|
|
duplicated grub_env_get. Leave the interpretation of MODEVAR to
|
|
grub_strtoul completely.
|
|
(real2pm): Removed.
|
|
(GRUB_MOD_INIT): Rename vbe_test to vbetest.
|
|
(GRUB_MOD_FINI): Likewise.
|
|
|
|
* normal/misc.c: Include grub/mm.h.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
|
|
vbe_list_modes with vbetest.mod and vbeinfo.mod.
|
|
(vbe_list_modes_mod_SOURCES): Removed.
|
|
(vbe_list_modes_mod_CFLAGS): Likewise.
|
|
(vbe_test_mod_SOURCES): Likewise.
|
|
(vbe_test_mod_CFLAGS): Likewise.
|
|
(vbeinfo_mod_SOURCES): New variable.
|
|
(vbeinfo_mod_CFLAGS): Likewise.
|
|
(vbetest_mod_SOURCES): Likewise.
|
|
(vbetest_mod_CFLAGS): Likewise.
|
|
|
|
2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/misc.c: New file.
|
|
|
|
* DISTLIST: Added normal/misc.c.
|
|
|
|
* partmap/amiga.c (amiga_partition_map_iterate): Add an argument
|
|
DISK to HOOK. Call HOOK with DISK.
|
|
* partmap/apple.c (apple_partition_map_iterate): Likewise.
|
|
* partmap/pc.c (pc_partition_map_iterate): Likewise.
|
|
* partmap/sun.c (sun_partition_map_iterate): Likewise.
|
|
|
|
* normal/menu_entry.c (struct screen): Added a new member
|
|
"completion_shown".
|
|
(completion_buffer): New global variable.
|
|
(make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
|
|
(store_completion): New function.
|
|
(complete): Likewise.
|
|
(clear_completions): Likewise.
|
|
(grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
|
|
call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
|
|
a tab, call complete.
|
|
|
|
* normal/completion.c (disk_dev): Removed.
|
|
(print_simple_completion): Likewise.
|
|
(print_partition_completion): Likewise.
|
|
(print_func): New global variable.
|
|
(add_completion): Do not take the arguments WHAT or PRINT any
|
|
longer. Added a new argument TYPE. Instead of printing directly,
|
|
call PRINT_FUNC if not NULL.
|
|
All callers changed.
|
|
(complete_device): Use a local variable DEV instead of
|
|
DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
|
|
(grub_normal_do_completion): Take a new argument HOOK. Do not
|
|
initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
|
|
empty string, return NULL instead.
|
|
All callers changed.
|
|
|
|
* normal/cmdline.c (print_completion): New function.
|
|
|
|
* kern/partition.c (grub_partition_iterate): Add an argument DISK
|
|
to HOOK.
|
|
All callers changed.
|
|
|
|
* kern/disk.c (grub_print_partinfo): Removed.
|
|
|
|
* include/grub/partition.h (struct grub_partition_map): Add a new
|
|
argument DISK into HOOK of ITERATE.
|
|
(grub_partition_iterate): Add a new argument DISK to HOOK.
|
|
|
|
* include/grub/normal.h (enum grub_completion_type): New enum.
|
|
(grub_completion_type_t): New type.
|
|
(GRUB_COMPLETION_TYPE_COMMAND): New constant.
|
|
(GRUB_COMPLETION_TYPE_DEVICE): Likewise.
|
|
(GRUB_COMPLETION_TYPE_PARTITION): Likewise.
|
|
(GRUB_COMPLETION_TYPE_FILE): Likewise.
|
|
(grub_normal_do_completion): Added a new argument HOOK.
|
|
(grub_normal_print_device_info): New prototype.
|
|
|
|
* include/grub/disk.h (grub_print_partinfo): Removed.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
|
|
(normal_mod_SOURCES): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
|
|
(normal_mod_SOURCES): Likewise.
|
|
|
|
* commands/ls.c (grub_ls_list_disks): Use
|
|
grub_normal_print_device_info instead of grub_print_partinfo. Free
|
|
PNAME.
|
|
(grub_ls_list_files): Use grub_normal_print_device_info instead of
|
|
duplicating the code.
|
|
|
|
2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* commands/i386/pc/vbe_list_modes.c: Update source formatting to
|
|
follow GCS more precisely.
|
|
* commands/i386/pc/vbe_test.c: Likewise.
|
|
* include/grub/i386/pc/vbe.h: Likewise.
|
|
* term/i386/pc/vesafb.c: Likewise.
|
|
* video/i386/pc/vbe.c: Likewise.
|
|
|
|
2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* DISTLIST: Added term/i386/pc/vesafb.c
|
|
DISTLIST: Added video/i386/pc/vbe.c
|
|
DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
|
|
DISTLIST: Added commands/i386/pc/vbe_test.c.
|
|
* commands/i386/pc/vbe_list_modes.c: New file.
|
|
* commands/i386/pc/vbe_test.c: Likewise.
|
|
* term/i386/pc/vesafb.c: Likewise.
|
|
* video/i386/pc/vbe.c: Likewise.
|
|
* include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
|
|
(grub_vbe_probe) Added prototype.
|
|
(grub_vbe_set_video_mode) Likewise.
|
|
(grub_vbe_get_video_mode) Likewise.
|
|
(grub_vbe_get_video_mode_info) Likewise.
|
|
(grub_vbe_set_pixel_rgb) Likewise.
|
|
(grub_vbe_set_pixel_index) Likewise.
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
|
|
(pkgdata_MODULES): Added vesafb.mod.
|
|
(pkgdata_MODULES): Added vbe_list_modes.mod.
|
|
(pkgdata_MODULES): Added vbe_test.mod.
|
|
(vbe_mod_SOURCES): Added.
|
|
(vbe_mod_CFLAGS): Likewise.
|
|
(vesafb_mod_SOURCES): Likewise.
|
|
(vesafb_mod_CFLAGS): Likewise.
|
|
(vbe_list_modes_mod_SOURCES): Likewise.
|
|
(vbe_list_modes_mod_CFLAGS): Likewise.
|
|
(vbe_test_mod_SOURCES): Likewise.
|
|
(vbe_test_mod_CFLAGS): Likewise.
|
|
|
|
2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/command.c (grub_command_execute): If INTERACTIVE is
|
|
false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
|
|
CMDLINE. Disable the pager if INTERACTIVE is true.
|
|
All callers are changed.
|
|
|
|
* normal/main.c (grub_normal_execute): Read command.lst and fs.lst
|
|
before reading a config file.
|
|
* normal/main.c (read_config_file): Even if a command is not
|
|
found, register it if it is within an entry.
|
|
|
|
* util/grub-emu.c: Include sys/types.h and unistd.h.
|
|
(options): Added --hold.
|
|
(struct arguments): Added a new member "hold".
|
|
(parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
|
|
missing.
|
|
(main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
|
|
cleared by a debugger, if it is not zero.
|
|
|
|
* include/grub/normal.h (grub_command_execute): Add an argument
|
|
INTERACTIVE.
|
|
|
|
2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* DISTLIST: Added include/grub/i386/pc/vbe.h.
|
|
|
|
2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
|
|
program with another one, because the old one didn't detect a bug
|
|
in gcc-3.4. Always use regparm 2, because the new test is still
|
|
not enough for gcc-4.0. Someone must investigate a simple test
|
|
case which detects a bug in gcc-4.0.
|
|
|
|
2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added normal/completion.c.
|
|
|
|
* normal/completion.c: New file.
|
|
|
|
* term/i386/pc/console.c (grub_console_getwh): New function.
|
|
(grub_console_term): Assign grub_console_getwh to getwh.
|
|
|
|
* normal/cmdline.c (grub_tab_complete): Removed. Now the same
|
|
function is defined in normal/completion.c as
|
|
grub_normal_do_completion.
|
|
(grub_cmdline_get): Use grub_normal_do_completion instead of
|
|
grub_tab_complete.
|
|
|
|
* kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
|
|
returns non-zero, otherwise return 0.
|
|
(grub_partition_iterate): First, probe the partition map. Then,
|
|
call ITERATE only for this partition map.
|
|
|
|
* kern/misc.c (grub_strncmp): Rewritten.
|
|
|
|
* kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
|
|
returns non-zero. Otherwise return 0.
|
|
|
|
* include/grub/partition.h (grub_partition_map_iterate): Return
|
|
int instead of void.
|
|
|
|
* include/grub/normal.h (grub_normal_do_completion): New prototype.
|
|
|
|
* include/grub/misc.h (grub_strncmp): Change the type of N to
|
|
grub_size_t.
|
|
|
|
* include/grub/disk.h (grub_disk_dev_iterate): Return int instead
|
|
of void.
|
|
|
|
* normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
|
|
unsigned explictly before comparing it with I.
|
|
|
|
* kern/main.c (grub_env_write_root): Add the attribute unused into
|
|
VAR.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
|
|
normal/completion.c.
|
|
(normal_mod_SOURCES): Likewise.
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
|
|
(normal_mod_SOURCES): Likewise.
|
|
|
|
* normal/command.c (grub_iterate_commands): If ITERATE returns
|
|
non-zero, return one immediately.
|
|
|
|
2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
|
|
|
|
* conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
|
|
* kern/i386/pc/startup.S: Updated Global Descriptor table's
|
|
descriptions.
|
|
(grub_vbe_get_controller_info): New function.
|
|
(grub_vbe_get_mode_info): Likewise.
|
|
(grub_vbe_set_mode): Likewise.
|
|
(grub_vbe_get_mode): Likewise.
|
|
(grub_vbe_set_memory_window): Likewise.
|
|
(grub_vbe_get_memory_window): Likewise.
|
|
(grub_vbe_set_scanline_length): Likewise.
|
|
(grub_vbe_get_scanline_length): Likewise.
|
|
(grub_vbe_set_display_start): Likewise.
|
|
(grub_vbe_get_display_start): Likewise.
|
|
(grub_vbe_set_palette_data): Likewise.
|
|
* include/grub/i386/pc/vbe.h: New file.
|
|
|
|
2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
|
|
kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
|
|
* DISTLIST: Likewise.
|
|
* kern/ieee1275/of.c: Moved to ...
|
|
* kern/ieee1275/ieee1275.c: ... here.
|
|
|
|
2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/ieee1275/ofconsole.c: Include <grub/mm.h>.
|
|
(grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
|
|
Pass 0 as `end' parameter to grub_strtoul().
|
|
|
|
2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/powerpc/ieee1275/console.h: Do not include
|
|
<grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
|
|
ifdef.
|
|
(grub_console_cur_color): Remove i386-specific prototype.
|
|
(grub_console_real_putchar): Likewise.
|
|
(grub_console_checkkey): Likewise.
|
|
(grub_console_getkey): Likewise.
|
|
(grub_console_getxy): Likewise.
|
|
(grub_console_gotoxy): Likewise.
|
|
(grub_console_cls): Likewise.
|
|
(grub_console_setcursor): Likewise.
|
|
* kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
|
|
Include <grub/machine/console.h>.
|
|
* term/ieee1275/ofconsole.c: Likewise.
|
|
|
|
2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* Makefile.in (LIBLZO): New variable.
|
|
|
|
* configure.ac: Check for LZO version 2.
|
|
|
|
* util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
|
|
lzo/lzo1x.h instead of lzo1x.h.
|
|
|
|
* conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
|
|
of -llzo.
|
|
|
|
* util/i386/pc/grub-setup.c (main): Do not free PREFIX
|
|
twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
|
|
|
|
* partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
|
|
copying the data from PARTITION to P.
|
|
|
|
2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
|
|
negative, unload the module.
|
|
|
|
* util/i386/pc/grub-setup.c (setup): The name of the PC partition
|
|
map is "pc_partition_map" but not "pc".
|
|
(usage): Fix the description. The options are --boot-image and
|
|
--core-image but not --boot-file or --core-file.
|
|
(main): If not specified explicitly, make BOOT_FILE and CORE_FILE
|
|
based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
|
|
DEFAULT_DIRECTORY.
|
|
|
|
* util/i386/pc/grub-install.in: Do not specify --boot-file or
|
|
--core-file. Specify INSTALL_DEVICE as an argument.
|
|
|
|
* util/console.c: Include config.h.
|
|
[HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
|
|
[HAVE_NCURSES_H]: Include ncurses.h.
|
|
[HAVE_CURSES_H]: Include curses.h.
|
|
[!A_NORMAL] (A_NORMAL): Defined as zero.
|
|
[!A_STANDOUT] (A_STANDOUT): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
|
|
-lncurses.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
|
|
|
|
* configure.ac: Check for curses libraries and headers.
|
|
|
|
* Makefile.in (LIBCURSES): New variable.
|
|
|
|
* genmk.rb (Script::rule): Set the executable bits.
|
|
|
|
* util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
|
|
name of the PC partition map is "pc_partition_map" but not "pc".
|
|
|
|
2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-install.in (grub_probefs): New variable.
|
|
(modules): Likewise.
|
|
(usage): Added descriptions for --modules and --grub-probefs.
|
|
Handle --modules and --grub-probefs. Save the arguments in MODULES
|
|
and GRUB_PROBEFS, respectively.
|
|
Auto-detect a filesystem module against GRUBDIR. If the result is
|
|
empty and modules are not specified explicitly, abort the
|
|
installation. Add the result to MODULES.
|
|
|
|
* DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
|
|
disk/powerpc/ieee1275/ofdisk.c,
|
|
include/grub/powerpc/ieee1275/init.h and
|
|
term/powerpc/ieee1275/ofconsole.c.
|
|
Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
|
|
term/ieee1275/ofconsole.c.
|
|
|
|
* include/grub/powerpc/ieee1275/console.h: Resurrected.
|
|
|
|
* COPYING: Upgraded to the latest version. Only the address of the
|
|
FSF office has changed.
|
|
|
|
2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
|
|
kern/ieee1275.c with kern/ieee1275/of.c.
|
|
|
|
* kern/ieee1275.c: Moved to ...
|
|
* kern/ieee1275/of.c: ... here.
|
|
|
|
2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
|
|
readablity.
|
|
|
|
* config.guess: Updated to the latest version from gnulib.
|
|
* config.sub: Likewise.
|
|
* install.sh: Likewise.
|
|
* mkinstalldirs: Likewise.
|
|
|
|
* include/grub/console.h: Removed. This file is arch-specific. Do
|
|
not put this in include/grub.
|
|
|
|
* include/grub/i386/pc/console.h: Resurrected.
|
|
|
|
* util/console.c: Include grub/machine/console.h instead of
|
|
grub/console.h.
|
|
* util/grub-emu.c: Likewise.
|
|
|
|
2005-08-04 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* kern/term.c (grub_putcode): Use `grub_getwh' instead of
|
|
hardcoded value.
|
|
|
|
From Vincent Pelletier <subdino2004@yahoo.fr>
|
|
* include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
|
|
Redefined to use grub_getwh.
|
|
(grub_term): New member named getwh.
|
|
(grub_getwh): New prototype.
|
|
* kern/term.c (grub_getwh): New function.
|
|
* term/i386/pc/console.c (grub_console_getwh): New function.
|
|
(grub_console_term): New member `getwh'.
|
|
* term/i386/pc/vga.c (grub_vga_getwh): New function.
|
|
(grub_vga_term): New member `getwh'.
|
|
* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
|
|
grub_ssize_t.
|
|
(grub_ofconsole_getw): New function.
|
|
(grub_ofconsole_init): Use grub_ssize_t and unsigned char.
|
|
(grub_ofconsole_term): New field named getwh and new initial
|
|
value.
|
|
|
|
2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/powerpc/ieee1275/ieee1275.h: Move ...
|
|
* include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
|
|
Move `abort', `grub_reboot', and `grub_halt' prototypes ...
|
|
* include/grub/powerpc/ieee1275/kernel.h: ... to here.
|
|
* commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
|
|
of <grub/machine/ieee1275.h>.
|
|
* commands/ieee1275/reboot.c: Likewise.
|
|
* boot/powerpc/ieee1275/ieee1275.c: Move ...
|
|
* kern/ieee1275.c: ... to here. All users updated. Change all
|
|
parameter structs to use new type `grub_ieee1275_cell_t'.
|
|
* term/powerpc/ieee1275/ofconsole.c: Move ...
|
|
* term/ieee1275/ofconsole.c: ... to here. All users updated.
|
|
* disk/powerpc/ieee1275/ofdisk.c: Move ...
|
|
* disk/ieee1275/ofdisk.c: ... to here. All users updated.
|
|
* boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
|
|
to return int.
|
|
* include/grub/i386/pc/console.h: Move to include/grub/console.h.
|
|
Remove unused prototypes. All users updated.
|
|
* include/grub/powerpc/ieee1275/console.h: Removed.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h: Define
|
|
`grub_ieee1275_cell_t'.
|
|
* kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
|
|
Cast comparisons with -1 to the correct type.
|
|
* loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
|
|
type to match `grub_ieee1275_entry_fn'.
|
|
|
|
2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added util/i386/pc/grub-probefs.c.
|
|
|
|
* conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
|
|
(grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
|
|
partmap/sun.c.
|
|
(grub_probefs_SOURCES): New variable.
|
|
|
|
* util/i386/pc/grub-probefs.c: New file.
|
|
|
|
* util/i386/pc/grub-setup.c (main): Call
|
|
grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
|
|
grub_hfs_init and grub_jfs_init to initialize the system. Call
|
|
grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
|
|
grub_pc_partition_map_fini to finish the system.
|
|
|
|
2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
|
|
function.
|
|
(grub_multiboot_load_elf32): Likewise.
|
|
(grub_multiboot_is_elf64): Likewise.
|
|
(grub_multiboot_load_elf64): Likewise.
|
|
(grub_multiboot_load_elf): Likewise.
|
|
(grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
|
|
an ELF32 or ELF64 file.
|
|
This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
|
|
|
|
From Serbinenko Vladimir <serbinenko.vova@list.ru>:
|
|
* kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
|
|
NULL before calling FS->LABEL.
|
|
* fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
|
|
* commands/ls.c (grub_ls_list_files): Show labels, if possible.
|
|
(grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
|
|
before calling FS->LABEL.
|
|
|
|
2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/grub-install.in (datadir): New variable.
|
|
(libdir): Removed.
|
|
(pkgdatadir): New variable.
|
|
(pkglibdir): Removed.
|
|
|
|
2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added util/i386/pc/grub-install.in.
|
|
|
|
* util/i386/pc/grub-install.in: New file.
|
|
|
|
* conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
|
|
(grub_install_SOURCES): Likewise.
|
|
|
|
* genmk.rb: Added support for scripts.
|
|
(Script): New class.
|
|
(scripts): New variable.
|
|
|
|
* Makefile.in (install-local): Install sbin_SCRIPTS by
|
|
INSTALL_SCRIPT.
|
|
(uninstall): Remove sbin_SCRIPTS.
|
|
|
|
* util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
|
|
device, try to get a GRUB device by
|
|
grub_util_biosdisk_get_grub_dev.
|
|
Free DEST_DEV.
|
|
|
|
* util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
|
|
description for --device-map.
|
|
|
|
2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Change the semantics of variable hooks. They now return strings
|
|
instead of error values.
|
|
|
|
* util/i386/pc/grub-setup.c: Include grub/env.h.
|
|
(setup): Use grub_device_set_root instead of grub_env_set.
|
|
|
|
* kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
|
|
grub_env_get instead of grub_device_set_root and
|
|
grub_device_get_root, respectively.
|
|
|
|
* kern/main.c (grub_env_write_root): New function.
|
|
(grub_set_root_dev): Register grub_env_write_hook for "root". Use
|
|
grub_env_set instead of grub_device_set_root.
|
|
|
|
* kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
|
|
many variables.
|
|
(grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
|
|
rather than calling ENV->WRITE_HOOK afterwards.
|
|
(grub_env_get): Return the result of ENV->READ_HOOK rather than
|
|
passing a pointer of a pointer.
|
|
(grub_register_variable_hook): Change the types of "read_hook" and
|
|
"write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
|
|
respectively.
|
|
Allocate the default empty string on the heap, because this string
|
|
may be freed later.
|
|
|
|
* kern/device.c: Include grub/env.h.
|
|
(grub_device_set_root): Removed.
|
|
(grub_device_get_root): Likewise.
|
|
(grub_device_open): Use grub_env_get instead of
|
|
grub_device_get_root.
|
|
|
|
* include/grub/env.h (grub_env_read_hook_t): New type.
|
|
(grub_env_write_hook_t): Likewise.
|
|
(grub_env_var): Change the types of "read_hook" and "write_hook"
|
|
to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
|
|
(grub_register_variable_hook): Likewise.
|
|
|
|
* include/grub/device.h (grub_device_set_root): Removed.
|
|
(grub_device_set_root): Likewise.
|
|
|
|
* fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
|
|
make sure that DIRNAME terminates with '/', so that
|
|
grub_fat_find_dir will fail if PATH is not a directory.
|
|
|
|
* commands/ls.c (grub_ls_list_files): Remove the qualifier const
|
|
from DIRNAME.
|
|
Use the qualifier auto for print_files and print_files_long.
|
|
If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
|
|
as a regular file.
|
|
Put a newline only if there is no error.
|
|
(grub_cmd_ls): Remove grub_ls_print_files, because this is not
|
|
used.
|
|
|
|
2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/partition.c (grub_partition_probe): Initialize PART to
|
|
NULL. Otherwise, when no partition map is registered, this returns
|
|
a garbage.
|
|
|
|
2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* partmap/apple.c (apple_partition_map_iterate): Check if POS
|
|
equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
|
|
valid.
|
|
|
|
2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* commands/ls.c (grub_ls_list_disks): Print the filesystem
|
|
information on each device, if it does not have partitions. Print
|
|
"Device" instead of "Disk", because this function is not specific
|
|
to disk devices.
|
|
|
|
* normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
|
|
static to ensure that it is put on the memory rather than a
|
|
register.
|
|
|
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* commands/cat.c (GRUB_MOD_INIT): Use better documentation.
|
|
(grub_cat_init): Likewise.
|
|
* loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
|
|
(options): Likewise.
|
|
* commands/configfile.c (GRUB_MOD_INIT): Likewise.
|
|
(grub_configfile_init): Likewise.
|
|
* font/manager.c (GRUB_MOD_INIT): Likewise.
|
|
* commands/help.c (GRUB_MOD_INIT): Likewise.
|
|
(grub_help_init): Likewise.
|
|
* normal/command.c (grub_command_init): Likewise.
|
|
* loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
|
|
* disk/loopback.c (grub_loop_init): Likewise.
|
|
(GRUB_MOD_INIT): Likewise.
|
|
* commands/ls.c (grub_ls_init): Likewise.
|
|
(GRUB_MOD_INIT): Likewise.
|
|
(options): Likewise.
|
|
* commands/boot.c (grub_boot_init): Likewise.
|
|
(GRUB_MOD_INIT): Likewise.
|
|
* loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
|
|
* commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
|
|
(GRUB_MOD_INIT): Likewise.
|
|
* commands/cmp.c (grub_cmp_init): Likewise.
|
|
(GRUB_MOD_INIT): Likewise.
|
|
|
|
* normal/arg.c: Use <> instead of "" to include header files.
|
|
(SHORT_ARG_HELP): New macro.
|
|
(SHORT_ARG_USAGE): Likewise.
|
|
(help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
|
|
of 'h' and 'u' for help and usage, respectively. Use more GNU-like
|
|
descriptions.
|
|
(find_short): Check if C is 'h' or 'u' explicitly.
|
|
(grub_arg_show_help): Use space characters instead of tabs. Treat
|
|
SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
|
|
are shown with --help and --usage only if they are not used for
|
|
the command itself.
|
|
(parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
|
|
'h' and 'u'.
|
|
|
|
* include/grub/arg.h (struct grub_arg_option): Add the qualifier
|
|
const into "longarg". Change the type of "shortarg" to int.
|
|
|
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* boot/i386/pc/boot.S (boot_drive_check): New label.
|
|
|
|
* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
|
|
macro.
|
|
|
|
* util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
|
|
which do not pass a boot drive correctly. Copied from GRUB Legacy.
|
|
|
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
|
|
When turning off Gate A20, skip the check and return immediately,
|
|
because this is not fatal usually.
|
|
|
|
2005-07-17 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
|
|
be 0x7C00 instead of 0x8000.
|
|
|
|
* boot/i386/pc/pxeboot.S: Rewritten.
|
|
|
|
* kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
|
|
EXT_C.
|
|
(gate_a20_check_state): Read a byte from 0x108000. Invert the
|
|
result.
|
|
|
|
2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
|
|
robustness. This routine now supports a BIOS call and System
|
|
Control Port A to modify the gate A20.
|
|
|
|
* include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
|
|
Increased to 0x440.
|
|
|
|
2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
|
|
device path and resulting ihandle.
|
|
(grub_ofdisk_close): dprintf the ihandle being closed.
|
|
(grub_ofdisk_read): dprintf function parameters.
|
|
* kern/mm.c (grub_mm_init_region): Likewise.
|
|
* loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
|
|
(grub_linux_boot): dprintf the Linux entry point, initrd address and
|
|
size, and boot arguments.
|
|
(grub_rescue_cmd_linux): dprintf each ELF segment's address and size
|
|
before loading into memory.
|
|
(grub_rescue_cmd_initrd): dprintf the initrd's address and size
|
|
before loading into memory.
|
|
|
|
2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/mm.c: Added much documentation.
|
|
(GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
|
|
8, set to 5 instead of 8.
|
|
|
|
2005-07-10 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added util/i386/pc/grub-mkimage.c.
|
|
|
|
* conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
|
|
(grub_mkdevicemap_SOURCES): New variable.
|
|
|
|
* util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
|
|
lib/device.c of GRUB Legacy.
|
|
|
|
2005-07-10 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
|
|
instead of PATH is NULL.
|
|
|
|
2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* commands/cmp.c (BUFFER_SIZE): New macro.
|
|
(grub_cmd_cmp): Close the right file at the right time. Compare
|
|
only data just read. Don't report files of different size as
|
|
identical. Dynamically allocate buffers. Move variable
|
|
declarations at the beginning of function.
|
|
|
|
2005-07-09 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
|
|
reverse.
|
|
|
|
2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
|
|
when backspace is pressed at beginning of line.
|
|
|
|
2005-07-03 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: Added genfslist.sh.
|
|
|
|
* normal/main.c (fs_module_list): New variable.
|
|
(autoload_fs_module): New function.
|
|
(read_fs_list): Likewise.
|
|
(grub_normal_execute): Call read_fs_list.
|
|
|
|
* kern/fs.c (grub_fs_autoload_hook): New variable.
|
|
(grub_fs_probe): Added support for auto-loading.
|
|
|
|
* include/grub/normal.h (struct grub_fs_module_list): New struct.
|
|
(grub_fs_module_list_t): New type.
|
|
|
|
* include/grub/fs.h (grub_fs_autoload_hook_t): New type.
|
|
(grub_fs_autoload_hook): New prototype.
|
|
|
|
* genfslist.sh: New file.
|
|
|
|
* genmk.rb: Added a rule to generate a filesystem list.
|
|
|
|
2005-06-30 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* configure.ac: Fix the test for cross-compiling.
|
|
|
|
* genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
|
|
define GRUB_UTIL anymore.
|
|
|
|
* util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
|
|
so this function works on other systems than just big endian.
|
|
(load_modules): Likewise.
|
|
(add_segments): Likewise.
|
|
|
|
2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
|
|
contains `l' modifier, get a long from va_arg().
|
|
|
|
2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/mm.c (grub_free): If the next free block which is being
|
|
merged is the first free block, set the first block to the block
|
|
being freed.
|
|
Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
|
|
|
|
2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (cmain): Initialize
|
|
`grub_ieee1275_chosen'.
|
|
|
|
2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
|
|
(grub_ieee1275_chosen): New variable.
|
|
(cmain): Initialize and use `grub_ieee1275_chosen' instead of
|
|
`chosen'.
|
|
* boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
|
|
Rename first argument to `phandle' for consistency.
|
|
(grub_ieee1275_get_property_length): Likewise.
|
|
(grub_ieee1275_next_property): Likewise. Change type of first argument
|
|
to grub_ieee1275_phandle_t.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
|
|
Move export next to declaration.
|
|
(grub_ieee1275_chosen): New variable.
|
|
* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
|
|
Correct cosmetic typo.
|
|
* kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
|
|
`grub_ieee1275_chosen'.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
|
|
* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
|
|
(grub_rescue_cmd_linux): Set `initrd_addr' to 0.
|
|
* term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
|
|
`grub_ieee1275_chosen'.
|
|
|
|
2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
|
|
/chosen/bootargs.
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
|
|
/chosen/bootargs as "variable=value" pairs.
|
|
|
|
2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* include/grub/misc.h (grub_dprintf): New macro.
|
|
(grub_real_dprintf): New prototype.
|
|
(grub_strword): Likewise.
|
|
(grub_iswordseparator): Likewise.
|
|
* kern/misc.c (grub_real_dprintf): New function.
|
|
(grub_strword): Likewise.
|
|
(grub_iswordseparator): Likewise.
|
|
|
|
2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
|
|
(roundup): Remove macro.
|
|
(grub_ieee1275_flags): Make static.
|
|
(grub_ieee1275_realmode): Remove.
|
|
(grub_ieee1275_test_flag): New function.
|
|
(grub_ieee1275_set_flag): Likewise.
|
|
(find_options): Rename to `grub_ieee1275_find_options'; update
|
|
callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
|
|
GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
|
|
(cmain): New prototype.
|
|
(cmain): Use `grub_ieee1275_set_flag' instead of accessing
|
|
`grub_ieee1275_flags' directly.
|
|
* conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
|
|
machine/biosdisk.h.
|
|
* disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
|
|
Don't include grub/machine/init.h.
|
|
(grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
|
|
Remove prototype.
|
|
(grub_ieee1275_realmode): Likewise.
|
|
(grub_ieee1275_flag): New enum.
|
|
(grub_ieee1275_test_flag): New prototype.
|
|
(grub_ieee1275_set_flag): New prototype.
|
|
* include/grub/powerpc/ieee1275/init.h: Remove file.
|
|
* include/grub/powerpc/ieee1275/ofdisk.h: New file.
|
|
* kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
|
|
Include grub/machine/console.h. Include grub/machine/ofdisk.h.
|
|
(grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
|
|
comment.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
|
|
`grub_ieee1275_test_flag'.
|
|
(grub_ieee1275_encode_devname): Likewise.
|
|
|
|
2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_encode_devname): New prototype.
|
|
(grub_ieee1275_get_filename): Likewise.
|
|
* kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
|
|
function.
|
|
(grub_set_prefix): Likewise.
|
|
(grub_machine_init): Call grub_set_prefix.
|
|
* kern/powerpc/ieee1275/openfw.c: Fix typos.
|
|
(grub_parse_type): New enum.
|
|
(grub_ieee1275_get_devargs): New function.
|
|
(grub_ieee1275_get_devname): Likewise.
|
|
(grub_ieee1275_parse_args): Likewise.
|
|
(grub_ieee1275_get_filename): Likewise.
|
|
(grub_ieee1275_encode_devname): Likewise.
|
|
|
|
2005-03-30 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
|
|
`grub_loader_unset'.
|
|
|
|
2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
|
|
instead of grub_ieee1275_interpret.
|
|
(grub_halt_init): New function.
|
|
(grub_halt_fini): Likewise.
|
|
(GRUB_MOD_INIT): Correct message grammar.
|
|
* commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
|
|
instead of grub_ieee1275_interpret.
|
|
(grub_reboot_init): New function.
|
|
(grub_reboot_fini): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
|
|
commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
|
|
util/i386/pc/misc.c with commands/ieee1275/halt.c,
|
|
commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
|
|
function.
|
|
* include/grub/powerpc/ieee1275/console.h (grub_console_fini):
|
|
Add prototype.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
|
|
prototype.
|
|
(grub_halt): Likewise.
|
|
* include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
|
|
(cmain): Remove __attribute__((unused)).
|
|
* kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
|
|
(grub_heap_len): Likewise.
|
|
(grub_machine_fini): New function.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
|
|
(grub_halt): Likewise.
|
|
* term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
|
|
function.
|
|
* util/powerpc/ieee1275/misc.c: New file.
|
|
|
|
2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* DISTLIST: New file.
|
|
* gendistlist.sh: Likewise.
|
|
|
|
* Makefile.in (COMMON_DISTFILES): Removed.
|
|
(BOOT_DISTFILES): Likewise.
|
|
(CONF_DISTFILES): Likewise.
|
|
(DISK_DISTFILES): Likewise.
|
|
(FS_DISTFILES): Likewise.
|
|
(INCLUDE_DISTFILES): Likewise.
|
|
(KERN_DISTFILES): Likewise.
|
|
(LOADER_DISTFILES): Likewise.
|
|
(TERM_DISTFILES): Likewise.
|
|
(UTIL_DISTFILES): Likewise.
|
|
(DISTFILES): Likewise.
|
|
(uninstall): Uninstall files in $(pkgdata_DATA).
|
|
(DISTLIST): New target.
|
|
(distdir): Use the contents of the file DISTLIST to get a list of
|
|
distributed files.
|
|
|
|
2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
|
|
descriptor. This is ported from GRUB Legacy.
|
|
|
|
* gencmdlist.sh: Added an extra semicolon to make it work with
|
|
old sed versions. Reported by Robert Bihlmeyer
|
|
<robbe@orcus.priv.at>.
|
|
|
|
2005-03-08 Yoshinori Okuji <okuji@enbug.org>
|
|
|
|
Automatic loading of commands is supported.
|
|
|
|
* normal/main.c (read_command_list): New function.
|
|
(grub_normal_execute): Call read_command_list.
|
|
|
|
* normal/command.c (grub_register_command): Return zero or CMD.
|
|
Allocate CMD->NAME from the heap.
|
|
Initialize CMD->MODULE_NAME to zero.
|
|
Find the same name as well. If the same command is found and it is
|
|
a dummy command, overwrite members. If it is not a dummy command,
|
|
return zero.
|
|
(grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
|
|
(grub_command_find): If a dummy command is found, load a module
|
|
and retry to find a command only once.
|
|
|
|
* normal/cmdline.c (grub_tab_complete): Call grub_command_find to
|
|
make sure that each command is loaded.
|
|
|
|
* include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
|
|
macro.
|
|
(struct grub_command): Remove const from the member `name'.
|
|
Add a new member `module_name'.
|
|
(grub_register_command): Return grub_command_t.
|
|
|
|
* commands/help.c (grub_cmd_help): Call grub_command_find to make
|
|
sure that each command is loaded.
|
|
|
|
* genmk.rb (PModule::rule): Specify a module name without the
|
|
suffix ".mod" to gencmdlist.sh.
|
|
|
|
2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* gencmdlist.sh: New file.
|
|
|
|
* genmk.rb (PModule::rule): Generate a rule for a command list.
|
|
Clean command.lst.
|
|
Generate command.lst from $(COMMANDFILES).
|
|
|
|
* Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
|
|
(DATA): Added $(pkgdata_DATA).
|
|
(install-local): Install files in $(pkgdata_DATA).
|
|
|
|
2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* term/i386/pc/vga.c (debug_command): Removed.
|
|
(GRUB_MOD_INIT): Do not register the command "debug".
|
|
|
|
From Hollis Blanchard:
|
|
* commands/configfile.c: New file.
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added
|
|
commands/configfile.c.
|
|
(pkgdata_MODULES): Added configfile.mod.
|
|
(configfile_mod_SOURCES): New variable.
|
|
(configfile_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
|
|
commands/configfile.c.
|
|
(pkgdata_MODULES): Added configfile.mod.
|
|
(configfile_mod_SOURCES): New variable.
|
|
(configfile_mod_CFLAGS): Likewise.
|
|
* util/grub-emu.c (main): Call grub_configfile_init and
|
|
grub_configfile_fini.
|
|
* include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
|
|
prototype.
|
|
[GRUB_UTIL] (grub_configfile_fini): Likewise.
|
|
|
|
2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/arg.c (grub_arg_show_help): Do not show the bug report
|
|
address.
|
|
|
|
* commands/help.c (grub_cmd_help): Do not print newlines after
|
|
the last command in print_command_help.
|
|
|
|
2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* commands/default.h: New file.
|
|
* commands/timeout.h: Likewise.
|
|
* normal/context.c: Likewise.
|
|
|
|
* util/misc.c: Do not include sys/times.h.
|
|
Include sys/time.h and grub/machine/time.h.
|
|
(grub_get_rtc): Rewritten with gettimeofday.
|
|
|
|
* util/grub-emu.c (main): Call grub_default_init and
|
|
grub_timeout_init before grub_normal_init, and call
|
|
grub_timeout_fini and grub_default_fini after grub_main.
|
|
|
|
* util/console.c (grub_ncurses_checkkey): Return the read
|
|
character or -1.
|
|
|
|
* normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
|
|
timeouts.
|
|
|
|
* normal/main.c (read_config_file): Push MENU. If this fails,
|
|
print an error and wait for a user input.
|
|
Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
|
|
If a menu is empty or an error occurs, pop MENU.
|
|
(grub_normal_execute): Pop and free MENU after grub_menu_run
|
|
returns.
|
|
|
|
* kern/loader.c (grub_loader_boot): Call grub_machine_fini.
|
|
|
|
* include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
|
|
include time.h.
|
|
[GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
|
|
without GRUB_UTIL.
|
|
* include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
|
|
time.h.
|
|
[GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
|
|
without GRUB_UTIL.
|
|
|
|
* include/grub/normal.h (struct grub_menu_list): New struct.
|
|
(grub_menu_list_t): New type.
|
|
(struct grub_context): New struct.
|
|
(grub_context_t): New type.
|
|
(grub_register_command): Got rid of EXPORT_FUNC.
|
|
(grub_unregister_command): Likewise.
|
|
(grub_context_get): New prototype.
|
|
(grub_context_get_current_menu): Likewise.
|
|
(grub_context_push_menu): Likewise.
|
|
(grub_context_pop_menu): Likewise.
|
|
[GRUB_UTIL] (grub_default_init): Likewise.
|
|
[GRUB_UTIL] (grub_default_fini): Likewise.
|
|
[GRUB_UTIL] (grub_timeout_init): Likewise.
|
|
[GRUB_UTIL] (grub_timeout_fini): Likewise.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
|
|
commands/timeout.c and normal/context.c.
|
|
(pkgdata_MODULES): Added default.mod and timeout.mod.
|
|
(normal_mod_SOURCES): Added normal/context.c.
|
|
(default_mod_SOURCES): New variable.
|
|
(default_mod_CFLAGS): Likewise.
|
|
(timeout_mod_SOURCES): Likewise.
|
|
(timeout_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
|
|
conf/i386-pc.rmk.
|
|
(pkgdata_MODULES): Added default.mod and timeout.mod.
|
|
(normal_mod_SOURCES): Added normal/context.c.
|
|
(default_mod_SOURCES): New variable.
|
|
(default_mod_CFLAGS): Likewise.
|
|
(timeout_mod_SOURCES): Likewise.
|
|
(timeout_mod_CFLAGS): Likewise.
|
|
|
|
* Makefile.in (all-local): Added $(MKFILES).
|
|
|
|
2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add `sun.mod'.
|
|
(sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`partmap/sun.c'.
|
|
(pkgdata_MODULES): Add `sun.mod'.
|
|
(sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
|
|
* include/grub/partition.h (grub_sun_partition_map_init): New
|
|
prototype.
|
|
(grub_sun_partition_map_fini): Likewise.
|
|
* partmap/sun.c: New file.
|
|
* util/grub-emu.c (main): Initialize and de-initialize the sun
|
|
partitionmap support.
|
|
|
|
2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
This implements an Emacs-like menu entry editor.
|
|
|
|
* normal/menu_entry.c: New file.
|
|
|
|
* util/console.c (grub_ncurses_putchar): Translate some Unicode
|
|
characters to ASCII.
|
|
(saved_char): New variable.
|
|
(grub_ncurses_checkkey): Rewritten completely.
|
|
(grub_ncurses_getkey): Likewise.
|
|
(grub_ncurses_init): Call raw instead of cbreak.
|
|
|
|
* normal/menu.c (print_entry): Do not put a space.
|
|
(init_page): Renamed to ...
|
|
(grub_menu_init_page): ... this. All callers changed.
|
|
(edit_menu_entry): Removed.
|
|
(run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
|
|
|
|
* normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
|
|
|
|
* kern/misc.c (grub_vprintf): Call grub_refresh.
|
|
|
|
* normal/menu.c (DISP_LEFT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
|
|
* normal/menu.c (DISP_UP): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
|
|
* normal/menu.c (DISP_RIGHT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
|
|
* normal/menu.c (DISP_DOWN): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
|
|
* normal/menu.c (DISP_HLINE): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
|
|
* normal/menu.c (DISP_VLINE): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
|
|
* normal/menu.c (DISP_UL): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
|
|
* normal/menu.c (DISP_UR): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
|
|
* normal/menu.c (DISP_LL): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
|
|
* normal/menu.c (DISP_LR): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
|
|
* normal/menu.c (TERM_WIDTH): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_WIDTH): ... this.
|
|
* normal/menu.c (TERM_HEIGHT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
|
|
* normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
|
|
* normal/menu.c (TERM_MARGIN): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_MARGIN): ... this.
|
|
* normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
|
|
* normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
|
|
* normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
|
|
* normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
|
|
* normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
|
|
* normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
|
|
* normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
|
|
* normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
|
|
* normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
|
|
* normal/menu.c (TERM_CURSOR_X): Renamed to ...
|
|
* include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
|
|
All callers changed.
|
|
|
|
* include/grub/normal.h: New prototype.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added
|
|
normal/menu_entry.c.
|
|
(normal_mod_SOURCES): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
|
|
(normal_mod_SOURCES): Likewise.
|
|
|
|
2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/grub/normal.h (grub_halt_init): New prototype.
|
|
(grub_halt_fini): Likewise.
|
|
(grub_reboot_init): Likewise.
|
|
(grub_reboot_fini): Likewise.
|
|
|
|
* util/grub-emu.c: Include signal.h.
|
|
(main_env): New global variable.
|
|
(grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
|
|
catch C-c.
|
|
(grub_machine_fini): New function.
|
|
(main): Call grub_halt_init and grub_reboot_init before
|
|
grub_main, and grub_reboot_fini and grub_halt_fini after it.
|
|
Call setjmp with MAIN_ENV to go back afterwards.
|
|
Call grub_machine_fini right before return.
|
|
|
|
* include/grub/util/misc.h: Include setjmp.h.
|
|
(main_env): New prototype.
|
|
|
|
* include/grub/kernel.h (grub_machine_fini): New prototype.
|
|
* include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
|
|
* include/grub/i386/pc/console.h (grub_console_fini): Likewise.
|
|
|
|
* disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
|
|
* kern/i386/pc/init.c (grub_machine_fini): Likewise.
|
|
* term/i386/pc/console.c (grub_console_fini): Likewise.
|
|
|
|
* util/i386/pc/misc.c: New file.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Added
|
|
util/i386/pc/misc.c, commands/i386/pc/halt.c and
|
|
commands/i386/pc/reboot.c.
|
|
|
|
2005-02-14 Guillem Jover <guillem@hadrons.org>
|
|
|
|
* include/grub/dl.h (grub_dl_check_header): New prototype.
|
|
(grub_arch_dl_check_header): Change return type to grub_err_t,
|
|
remove size parameter and export function. Update all callers.
|
|
* kern/dl.c (grub_dl_check_header): New function.
|
|
(grub_dl_load_core): Use `grub_dl_check_header' instead of
|
|
`grub_arch_dl_check_header'. Check ELF type. Check if sections
|
|
are inside the core.
|
|
* kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
|
|
independent ELF header checks.
|
|
* kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
|
|
* loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
|
|
`grub_dl_check_header' instead of explicit checks. Check for the
|
|
ELF type.
|
|
* loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
|
|
`grub_dl_check_header' instead of explicit checks. Remove arch
|
|
specific ELF header checks.
|
|
|
|
* util/grub-emu.c (grub_arch_dl_check_header): Remove the
|
|
argument SIZE.
|
|
|
|
2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
|
|
* include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
|
|
|
|
2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/partition.c (grub_partition_probe): Clear `grub_errno' and
|
|
return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
|
|
(part_map_iterate): Clear `grub_errno' and return 0 if
|
|
`partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
|
|
* partmap/amiga.c (amiga_partition_map_iterate): Return
|
|
GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
|
|
* partmap/apple.c (apple_partition_map_iterate): Likewise.
|
|
|
|
2005-02-01 Guillem Jover <guillem@hadrons.org>
|
|
|
|
* loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
|
|
help info.
|
|
|
|
2005-01-31 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
|
|
Removed prototype.
|
|
(grub_rescue_cmd_linux): New prototype.
|
|
(grub_rescue_cmd_initrd): Likewise.
|
|
* powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
|
|
`bi_rec'.
|
|
(grub_linux_release_mem): Release the memory for the initrd.
|
|
(grub_load_linux): Renamed from this...
|
|
(grub_rescue_cmd_linux): ...To this. Changed all callers.
|
|
Changed `entry' not to be static. Loop over memory regions to
|
|
find another one when the default fails.
|
|
(grub_rescue_cmd_initrd): New function.
|
|
(grub_linux_init): Remove function.
|
|
(grub_linux_fini): Likewise.
|
|
(GRUB_MOD_INIT): Register `initrd'.
|
|
(GRUB_MOD_FINI): Unregister `initrd'.
|
|
* powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
|
|
Function removed.
|
|
(grub_linux_normal_fini): Likewise.
|
|
(GRUB_MOD_INIT): Register `initrd'.
|
|
(GRUB_MOD_FINI): Unregister `initrd'.
|
|
|
|
2005-01-31 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* commands/help.c: New file.
|
|
* normal/arg.c (show_help): Renamed to...
|
|
(grub_arg_show_help): ... this.
|
|
* commands/i386/pc/halt.c: New file.
|
|
* commands/i386/pc/reboot.c: Likewise.
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
|
|
(pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
|
|
(help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
|
|
(reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
|
|
variables.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`commands/help.c'.
|
|
(pkgdata_MODULES): Add `help.mod'.
|
|
(help_mod_SOURCES, help_mod_CFLAGS): New variables.
|
|
* grub/i386/pc/init.h (grub_reboot): New prototype.
|
|
(grub_halt): Likewise.
|
|
* include/grub/normal.h (grub_arg_show_help): New prototype.
|
|
(grub_help_init): Likewise.
|
|
(grub_help_fini): Likewise.
|
|
* util/grub-emu.c (main): Initialize and deinitialize the help
|
|
command.
|
|
|
|
* normal/cmdline.c (grub_cmdline_get): Doc fix.
|
|
|
|
* normal/command.c (grub_command_init): Fixed the description of
|
|
the `set' and `unset' commands.
|
|
|
|
2005-01-31 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
|
|
function.
|
|
* commands/ieee1275/halt.c: New file.
|
|
* commands/ieee1275/reboot.c: Likewise.
|
|
* commands/ieee1275/suspend.c (grub_cmd_suspend): Use
|
|
`__attribute__ ((unused))'. Some GCS related fixed.
|
|
(grub_suspend_init) [GRUB_UTIL]: Function removed.
|
|
(grub_suspend_fini): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
|
|
and `halt.mod'.
|
|
(reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
|
|
(halt_mod_CFLAGS): New variables.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_interpret): New prototype.
|
|
|
|
2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/grub/misc.h (memmove): New prototype.
|
|
(memcpy): Likewise.
|
|
|
|
2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
|
|
`devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
|
|
|
|
2005-01-22 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* kern/misc.c (grub_strndup): Function rewritten.
|
|
|
|
2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
|
|
|
|
* normal/menu.c (TERM_WIDTH): Macro redefined.
|
|
(TERM_TOP_BORDER_Y): Likewise.
|
|
(draw_border): Replaced while-loop by a for-loop. Make the number
|
|
of lines consistent with the number of lines displayed in
|
|
print_entries. Added a margin below the rectangle.
|
|
(print_entry): Make the entry fit in the rectangle.
|
|
(print_entries): Display the scroll arrows next to the right
|
|
border.
|
|
|
|
2005-01-21 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* fs/minix.c (grub_minix_find_file): Reserve more space for
|
|
`fpath' so the \0 can be stored. Use `grub_strcpy' instead of
|
|
`grub_strncpy' to copy `path' into it.
|
|
|
|
2005-01-21 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add the loopback device, a device via which files can be accessed
|
|
as devices.
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
|
|
(pkgdata_MODULES): Add loopback.mod.
|
|
(loopback_mod_SOURCES): New variable.
|
|
(loopback_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
|
|
`disk/loopback.c'.
|
|
(pkgdata_MODULES): Add loopback.mod.
|
|
(loopback_mod_SOURCES): New variable.
|
|
(loopback_mod_CFLAGS): Likewise.
|
|
* disk/loopback.c: new file.
|
|
* include/grub/normal.h (grub_loop_init): New prototype.
|
|
(grub_loop_fini): New prototype.
|
|
* util/grub-emu.c (main): Initialize and de-initialize loopback
|
|
support.
|
|
* include/grub/disk.h (grub_disk_dev_id): Add
|
|
`GRUB_DISK_DEVICE_LOOPBACK_ID'.
|
|
|
|
2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
|
|
function.
|
|
* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
|
|
(suspend_mod_SOURCES): New variable.
|
|
(suspend_mod_CFLAGS): Likewise.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
|
|
New prototype.
|
|
* commands/ieee1275/suspend.c: New file.
|
|
|
|
2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
|
|
|
* include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
|
|
((unused))' to `__attribute__ ((used))'.
|
|
(GRUB_MOD_FINI): Likewise.
|
|
* kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
|
|
* genmk.rb (PModule): Assign space to common symbols when linking
|
|
modules.
|
|
|
|
2005-01-20 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* include/grub/mm.h (grub_mm_init_region): Change the type of the
|
|
`unsigned' arguments to `grub_size_t'.
|
|
(grub_malloc): Likewise.
|
|
(grub_realloc): Likewise.
|
|
(grub_memalign): Likewise.
|
|
* kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
|
|
* kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
|
|
* util/misc.c (grub_malloc): Likewise.
|
|
(grub_realloc): Likewise.
|
|
* kern/mm.c (get_header_from_pointer): Change the casts to
|
|
`unsigned' into a cast to `grub_size_t'.
|
|
|
|
* fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
|
|
point to `currnode' when `currnode' is changed.
|
|
|
|
* util/grub-emu.c (main): Initialize `progname'. Reported by Nico
|
|
Schottelius <nico-linux@schottelius.org>.
|
|
|
|
2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
|
|
(note_path): Remove variable.
|
|
(GRUB_IEEE1275_NOTE_NAME): New macro.
|
|
(GRUB_IEEE1275_NOTE_TYPE): Likewise.
|
|
(grub_ieee1275_note_hdr): New structure.
|
|
(grub_ieee1275_note_desc): Likewise.
|
|
(grub_ieee1275_note): Likewise.
|
|
(load_note): Remove `dir' argument. All callers updated. Remove
|
|
`note_img' and `path'. Do not load a file from `note_path'.
|
|
Initialize a struct grub_ieee1275_note and write that to `out'.
|
|
Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
|
|
|
|
2005-01-05 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* util/misc.c (grub_util_read_image): Revert last change. It
|
|
called `grub_util_read_at', which seeks from the beginning of the
|
|
file.
|
|
|
|
2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* TODO: Add note about endianness in grub-mkimage.
|
|
* boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
|
|
section.
|
|
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
|
|
(grub_mkimage_SOURCES): New target.
|
|
* include/grub/kernel.h (grub_start_addr): Remove variable.
|
|
(grub_end_addr): Likewise.
|
|
(grub_total_module_size): Likewise.
|
|
(grub_kernel_image_size): Likewise.
|
|
(GRUB_MODULE_MAGIC): New constant.
|
|
(grub_module_info): New structure.
|
|
(grub_arch_modules_addr): New prototype.
|
|
(grub_get_end_addr): Remove prototype.
|
|
* include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
|
|
* include/grub/powerpc/ieee1275/kernel.h: New file.
|
|
* include/grub/util/misc.h (grub_util_get_fp_size): New
|
|
prototype.
|
|
(grub_util_read_at): Likewise.
|
|
(grub_util_write_image_at): Likewise.
|
|
* kern/main.c (grub_get_end_addr): Remove function.
|
|
(grub_load_modules): Call grub_arch_modules_addr instead of using
|
|
grub_end_addr. Look for a grub_module_info struct in memory. Use
|
|
the grub_module_info fields instead of calling grub_get_end_addr
|
|
as loop conditions. Move grub_add_unused_region code here.
|
|
(grub_add_unused_region): Remove function.
|
|
* kern/i386/pc/init.c: Include grub/cache.h.
|
|
(grub_machine_init): Remove call to grub_get_end_addr. Remove
|
|
one call to add_mem_region.
|
|
(grub_arch_modules_addr): New function.
|
|
* kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
|
|
(grub_total_module_size): Likewise.
|
|
Include grub/machine/kernel.h.
|
|
(grub_arch_modules_addr): New function.
|
|
* util/grub-emu.c (grub_end_addr): Remove variable.
|
|
(grub_total_module_size): Likewise.
|
|
(grub_arch_modules_addr): New function.
|
|
* util/misc.c: Include unistd.h.
|
|
(grub_util_get_fp_size): New function.
|
|
(grub_util_read_at): Likewise.
|
|
(grub_util_write_image_at): Likewise.
|
|
(grub_util_read_image): Call grub_util_read_at.
|
|
(grub_util_write_image): Call grub_util_write_image_at.
|
|
* util/i386/pc/grub-mkimage.c (generate_image): Allocate
|
|
additional memory in kernel_img for a struct grub_module_info.
|
|
Fill in that grub_module_info.
|
|
* util/powerpc/ieee1275/grub-mkimage.c: New file.
|
|
|
|
2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
|
|
New function.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_milliseconds): New prototype.
|
|
* include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
|
|
Change to 1000.
|
|
* kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
|
|
grub_ieee1275_milliseconds.
|
|
|
|
2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
|
|
variable.
|
|
(find_options): New function.
|
|
(cmain): Call find_options.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_realmode): New extern variable.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
|
|
grub_map if grub_ieee1275_realmode is false.
|
|
|
|
2004-12-29 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
|
|
lines are inserted and make it work like readline. Reported by
|
|
Vincent Pelletier <subdino2004@yahoo.fr>.
|
|
|
|
2004-12-28 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
|
|
`kern/powerpc/cache.S'.
|
|
|
|
2004-12-27 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* genmk.rb: Handle the `Program' class in the main loop. Written
|
|
by Johan Rydberg <jrydberg@gnu.org>.
|
|
(Program): New class.
|
|
(programs): New variable.
|
|
* boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
|
|
instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
|
|
instead of "grub/kernel.h". Include <grub/machine/init.h>.
|
|
(help_arch): Function removed.
|
|
* conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
|
|
`powerpc/libgcc.h' and `loader.h'.
|
|
(pkgdata_PROGRAMS): New variable.
|
|
(sbin_UTILITIES): Variable removed.
|
|
(grub_emu_SOURCES): Added kern/powerpc/cache.S.
|
|
(grubof_SOURCES): Variable re-defined so it only includes the
|
|
core functionality.
|
|
(grubof_CFLAGS): Remove `-DGRUBOF'.
|
|
(pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
|
|
(fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
|
|
(ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
|
|
(minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
|
|
(hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
|
|
(iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
|
|
(_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
|
|
(normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
|
|
(hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
|
|
(boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
|
|
(ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
|
|
(cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
|
|
(font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
|
|
(apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
|
|
(pc_mod_CFLAGS): New variables.
|
|
* disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
|
|
(grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
|
|
* include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
|
|
* include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
|
|
Moved from here...
|
|
* include/grub/i386/pc/init.h (grub_os_area_addr)
|
|
(rub_os_area_size): ... to here.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_entry_fn): Export symbol.
|
|
* include/grub/powerpc/ieee1275/init.h: New file.
|
|
* include/grub/powerpc/libgcc.h: Likewise.
|
|
* include/grub/cache.h: Likewise.
|
|
* kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
|
|
<hollis@penguinppc.org>.
|
|
* kern/dl.c: Include <grub/cache.h>.
|
|
(grub_dl_flush_cache): New function.
|
|
(grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
|
|
for this module.
|
|
* kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
|
|
(grub_console_init): Removed prototypes.
|
|
(grub_machine_init): Don't initialize the modules anymore.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
|
|
static.
|
|
* include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
|
|
Macro undef removed.
|
|
(GRUB_HOST_WORDS_BIGENDIAN): New macro.
|
|
* kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
|
|
relocation `R_PPC_REL32'. Return an error when the relocation is
|
|
unknown.
|
|
* Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
|
|
* kern/i386/pc/init.c (grub_arch_sync_caches): New function.
|
|
* util/misc.c (grub_arch_sync_caches): Likewise.
|
|
|
|
2004-12-19 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
|
|
`symlist.c', add `grubof_symlist.c'.
|
|
(symlist.c): Variable removed.
|
|
(grubof_HEADERS): Variable added.
|
|
(grubof_symlist.c): New target.
|
|
(kernel_syms.lst): Use `grubof_HEADERS' instead of
|
|
`kernel_img_HEADERS'.
|
|
(grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
|
|
* kern/powerpc/dl.c: New file.
|
|
* kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
|
|
Function removed.
|
|
(grub_arch_dl_relocate_symbols): Likewise.
|
|
(grub_register_exported_symbols): Likewise.
|
|
|
|
2004-12-13 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
|
|
(grub_ext2_dir): Likewise. Don't return in case of an error, jump
|
|
to fail instead. Reported by Vincent Pelletier
|
|
<subdino2004@yahoo.fr>.
|
|
|
|
* fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
|
|
it is not allocated. Reported by Vincent Pelletier
|
|
<subdino2004@yahoo.fr>.
|
|
|
|
* normal/cmdline.c (grub_tab_complete): Add a blank line to the
|
|
output so the output looks better.
|
|
|
|
2004-12-04 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Modulize the partition map support and add support for the amiga
|
|
partition map.
|
|
|
|
* commands/ls.c: Include <grub/partition.h> instead of
|
|
<grub/machine/partition.h>.
|
|
* kern/disk.c: Likewise.
|
|
* kern/rescue.c: Likewise.
|
|
* loader/i386/pc/chainloader.c: Likewise.
|
|
* normal/cmdline.c: Likewise.
|
|
* kern/powerpc/ieee1275/init.c: Likewise.
|
|
(grub_machine_init): Call `grub_pc_partition_map_init',
|
|
`grub_amiga_partition_map_init' and
|
|
`grub_apple_partition_map_init'.
|
|
* conf/i386-pc.rmk (kernel_img_SOURCES): Remove
|
|
`disk/i386/pc/partition.c'. Add `kern/partition.c'.
|
|
(kernel_img_HEADERS): Remove `machine/partition.h'. Add
|
|
`partition.h' and `pc_partition.h'.
|
|
(grub_setup_SOURCES): Remove
|
|
`disk/i386/pc/partition.c'. Add `kern/partition.c',
|
|
`partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
|
|
(amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
|
|
(apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
|
|
`disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
|
|
`partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
|
|
(grubof_SOURCES): Likewise.
|
|
* disk/i386/pc/partition.c: File removed.
|
|
* disk/powerpc/ieee1275/partition.c: Likewise.
|
|
* include/grub/powerpc/ieee1275/partition.h: Likewise.
|
|
* include/grub/i386/pc/partition.h: Likewise.
|
|
* kern/partition.c: New file.
|
|
* partmap/amiga.c: Likewise.
|
|
* partmap/apple.c: Likewise.
|
|
* partmap/pc.c: Likewise.
|
|
* include/grub/partition.h: Likewise..
|
|
* include/grub/pc_partition.h: Likewise.
|
|
* util/grub-emu.c: Include <grub/partition.h> instead of
|
|
<grub/machine/partition.h>.
|
|
(main): Call `grub_pc_partition_map_init',
|
|
`grub_amiga_partition_map_init' and
|
|
`grub_apple_partition_map_init' and deinitialize afterwards.
|
|
* util/i386/pc/biosdisk.c: Include `#include
|
|
<grub/partition.h>' and `include <grub/pc_partition.h>' instead of
|
|
`<grub/machine/partition.h>'.
|
|
* util/i386/pc/grub-setup.c: Likewise.
|
|
* util/i386/pc/biosdisk.c: Likewise.
|
|
(grub_util_biosdisk_get_grub_dev): Only access the PC specific
|
|
partition information in case of a PC partition.
|
|
* util/i386/pc/grub-setup.c: Include `#include
|
|
<grub/partition.h>' and `include <grub/pc_partition.h>' instead of
|
|
`<grub/machine/partition.h>'.
|
|
(setup): Only access the PC specific partition information in case
|
|
of a PC partition.
|
|
|
|
2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
|
|
(grub_longjmp): Likewise.
|
|
* include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
|
|
20.
|
|
* normal/powerpc/setjmp.S: New file.
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
|
|
`normal/powerpc/setjmp.S'.
|
|
(grubof_CFLAGS): Add `-DGRUBOF'.
|
|
* include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
|
|
[GRUB_UTIL && !GRUBOF].
|
|
|
|
2004-11-16 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
|
|
property named `name'. Correctly handle the error returned by
|
|
`grub_ieee1275_finddevice' if a device can not be opened.
|
|
|
|
2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
|
|
`actual' for negativity.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
|
|
kern/fshelp.c.
|
|
|
|
2004-11-01 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
|
|
(PAGE_OFFSET): New macro.
|
|
(CRTC_ADDR_PORT): Likewise.
|
|
(CRTC_DATA_PORT): Likewise.
|
|
(START_ADDR_HIGH_REGISTER): Likewise.
|
|
(START_ADDR_LOW_REGISTER): Likewise.
|
|
(GRAPHICS_ADDR_PORT): Likewise.
|
|
(GRAPHICS_DATA_PORT): Likewise.
|
|
(READ_MAP_REGISTER): Likewise.
|
|
(INPUT_STATUS1_REGISTER): Likewise.
|
|
(INPUT_STATUS1_VERTR_BIT): Likewise.
|
|
(page): New variable.
|
|
(wait_vretrace): New function.
|
|
(set_read_map): Likewise.
|
|
(set_start_address): Likewise.
|
|
(grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
|
|
the right page.
|
|
(check_vga_mem): Take the page into account.
|
|
(write_char): Likewise.
|
|
(write_cursor): Likewise.
|
|
(scroll_up): Likewise. Copy the page to the page that is not
|
|
shown and switch between both pages.
|
|
(grub_vga_putchar): Fix off by one error.
|
|
(grub_vga_cls): Wait for the vertical retrace. Take the page into
|
|
account.
|
|
|
|
2004-11-01 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add support for iso9660 (including rockridge).
|
|
|
|
* conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
|
|
(iso9660_mod_SOURCES): New variable.
|
|
(iso9660_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
|
|
* include/grub/fs.h (grub_iso9660_init): New prototype.
|
|
* util/grub-emu.c (main): Call `grub_iso9660_init'.
|
|
* fs/iso9660.c: New file.
|
|
|
|
* include/grub/misc.h (grub_strncat): New prototype.
|
|
* kern/misc.c (grub_strncat): New function.
|
|
|
|
* fs/hfs.c (grub_hfs_mount): Translate the error
|
|
`GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
|
|
* fs/jfs.c (grub_jfs_mount): Likewise.
|
|
* fs/ufs.c (grub_ufs_mount): Likewise.
|
|
|
|
2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
|
|
which initialized BAT registers.
|
|
* boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
|
|
grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
|
|
Move from here...
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
|
|
grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
|
|
... to here.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_map): New function.
|
|
(grub_mapclaim): Likewise.
|
|
* loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
|
|
grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
|
|
hand.
|
|
|
|
2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
|
|
(COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
|
|
-ffreestanding and -msoft-float.
|
|
|
|
2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
|
|
append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
|
|
set in grub_ieee1275_flags.
|
|
|
|
2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
|
|
prototype.
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_init): Call
|
|
grub_console_init first.
|
|
Change the memory range used for grub_ieee1275_claim and
|
|
grub_mm_init_region.
|
|
Print an error message if the claim fails.
|
|
Include <grub/misc.h>.
|
|
|
|
2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
|
|
Call grub_children_iterate for device nodes of type `scsi',
|
|
`ide', or `ata'.
|
|
(grub_ofdisk_open): Remove manual device alias resolution.
|
|
Fix memory leak when device cannot be opened.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_children_iterate): New prototype.
|
|
* kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
|
|
New function.
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
|
|
Return -1 if args.size was -1.
|
|
|
|
2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
|
|
(cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
|
|
World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
|
|
Open Firmware's memory for it; claim memory from _start to _end.
|
|
* boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
|
|
(_end): New extern.
|
|
(_start): Zero BSS from __bss_start to _end.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
|
|
New extern.
|
|
(GRUB_IEEE1275_NO_PARTITION_0): New #define.
|
|
|
|
2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
|
|
-1 if args.base was -1.
|
|
|
|
2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
|
|
escape sequence instead of a literal ^L. Also call
|
|
grub_ofconsole_gotoxy.
|
|
|
|
2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
|
|
void * arguments to grub_addr_t. All callers updated. Also make
|
|
the `result' argument optional.
|
|
(grub_ieee1275_release): change void * arguments to grub_addr_t.
|
|
All callers updated.
|
|
|
|
2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* commands/ls.c (grub_ls_list_files): Use the string following the
|
|
initial ')', if present, as the filesystem path.
|
|
* kern/rescue.c (grub_rescue_cmd_ls): Likewise.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
|
|
|
|
2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Make the source code of the menu interface more readable.
|
|
|
|
* normal/menu.c: Include grub/mm.h.
|
|
(TERM_WIDTH): New macro.
|
|
(TERM_HEIGHT): Likewise.
|
|
(TERM_INFO_HEIGHT): Likewise.
|
|
(TERM_MARGIN): Likewise.
|
|
(TERM_SCROLL_WIDTH): Likewise.
|
|
(TERM_TOP_BORDER_Y): Likewise.
|
|
(TERM_LEFT_BORDER_X): Likewise.
|
|
(TERM_BORDER_WIDTH): Likewise.
|
|
(TERM_MESSAGE_HEIGHT): Likewise.
|
|
(TERM_BORDER_HEIGHT): Likewise.
|
|
(TERM_NUM_ENTRIES): Likewise.
|
|
(TERM_FIRST_ENTRY_Y): Likewise.
|
|
(TERM_ENTRY_WIDTH): Likewise.
|
|
(TERM_CURSOR_X): Likewise.
|
|
(draw_border): Use macros instead of magic numbers.
|
|
(print_entry): Likewise.
|
|
(print_entries): Likewise.
|
|
(run_menu): Likewise. Also, handle the key 'e'.
|
|
(run_menu_entry): Ignore empty command lines.
|
|
(print_message): Added a new argument EDIT. If EDIT is true,
|
|
print a different message.
|
|
(init_page): Likewise.
|
|
(edit_menu_entry): New function. Not implemented yet.
|
|
|
|
2004-09-17 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
|
|
can be loaded from normal mode.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
|
|
`multiboot.mod'.
|
|
(linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
|
|
(multiboot_mod_CFLAGS): New variables.
|
|
* loader/i386/pc/linux_normal.c: New file.
|
|
* loader/i386/pc/multiboot_normal.c: Likewise.
|
|
|
|
* loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
|
|
attribute `unused'.
|
|
|
|
* fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
|
|
`fdiro' to read the mode information from instead of `diro'.
|
|
|
|
* fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
|
|
looking up a symlink.
|
|
|
|
* include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
|
|
macro.
|
|
* normal/command.c (grub_command_execute): Don't parse the
|
|
arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
|
|
flags of the command.
|
|
|
|
* normal/menu.c (grub_menu_run): Fix typo.
|
|
|
|
2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
|
|
|
|
* kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
|
|
|
|
* term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
|
|
`y + 1' instead of `y - 1'.
|
|
|
|
* conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
|
|
|
|
2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
From Hollis Blanchard <hollis@penguinppc.org>:
|
|
* kern/misc.c (memmove): New alias for grub_memmove.
|
|
(memcmp): New alias for grub_memcmp.
|
|
(memset): New alias for grub_memset.
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
|
|
Change "int handle" to "grub_ieee1275_phandle_t handle".
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_get_property): Likewise.
|
|
|
|
2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
|
|
|
|
Added normal mode command `chainloader' as module chain.mod, which
|
|
depends on normal.mod and _chain.mod.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
|
|
(chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
|
|
* include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
|
|
Deleted prototype.
|
|
* loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
|
|
but arguments parsing moved to ...
|
|
(grub_chainloader_cmd): ... here. New function.
|
|
* include/grub/i386/pc/chainloader.h: New file.
|
|
* loader/i386/pc/chainloader_normal.c: Likewise.
|
|
|
|
2004-09-11 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
|
|
(grub_mkimage_LDFLAGS): Likewise.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(kernel_img_HEADERS): Added fshelp.h.
|
|
* fs/ext2.c: Include <grub/fshelp.h>.
|
|
(FILETYPE_REG): New macro.
|
|
(FILETYPE_INO_REG): Likewise.
|
|
(grub_ext_sblock): Renamed to `grub_ext2_sblock'.
|
|
Changed all users.
|
|
(ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
|
|
all users.
|
|
(grub_fshelp_node): New struct.
|
|
(grub_ext2_data): Added member `diropen'. Changed member `inode'
|
|
to a pointer.
|
|
(grub_ext2_get_file_block): Removed function.
|
|
(grub_ext2_read_block): New function.
|
|
(grub_ext2_read_file): Replaced parameter `data' by `node'.
|
|
This function was written.
|
|
(grub_ext2_mount): Read the root inode. Create a diropen struct.
|
|
(grub_ext2_find_file): Removed function.
|
|
(grub_ext2_read_symlink): New function.
|
|
(grub_ext2_iterate_dir): Likewise.
|
|
(grub_ext2_open): Rewritten.
|
|
(grub_ext2_dir): Rewritten.
|
|
* include/grub/fshelp.h: New file.
|
|
* fs/fshelp.c: Likewise.
|
|
|
|
2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* normal/menu.c: Include grub/loader.h and grub/machine/time.h.
|
|
(print_message): Add a missing newline.
|
|
(run_menu): Added timeout support.
|
|
(run_menu_entry): New local function.
|
|
(grub_menu_run): Added support for booting.
|
|
|
|
* kern/loader.c (grub_loader_is_loaded): New function.
|
|
|
|
* include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
|
|
(grub_get_rtc): Exported.
|
|
|
|
* include/grub/i386/pc/time.h: Include grub/symbol.h.
|
|
(grub_get_rtc): Exported.
|
|
|
|
* include/grub/normal.h (struct grub_command_list): Remove
|
|
constant from the member `command'.
|
|
|
|
* include/grub/loader.h (grub_loader_is_loaded): Declared.
|
|
|
|
* include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
|
|
|
|
* conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
|
|
|
|
2004-08-28 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add support for the JFS filesystem.
|
|
|
|
* fs/jfs.c: New file.
|
|
* include/grub/fs.h (grub_jfs_init): New prototype.
|
|
(grub_jfs_fini): New prototype.
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add jfs.mod.
|
|
(jfs_mod_SOURCES): New variable.
|
|
(jfs_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
|
|
(grubof_SOURCES): Likewise.
|
|
* util/grub-emu.c (main): Initialize and deinitialize JFS support.
|
|
|
|
* fs/fat.c (grub_fat_find_dir): Convert the filename little
|
|
endian to the host endian.
|
|
(grub_fat_utf16_to_utf8): Move function from there...
|
|
* kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
|
|
the endianess of the source string anymore.
|
|
* include/grub/misc.h (grub_utf16_to_utf8): New prototype.
|
|
|
|
2004-08-24 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
|
|
(grub_boot_fini) [GRUB_UTIL]: Likewise.
|
|
(GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
|
|
(GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
|
|
|
|
* fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
|
|
(grub_hfs_iterate_dir): Make the function static. Add prototypes
|
|
for `node_found' and `it_dir'.
|
|
(grub_hfs_dir): Add prototype for `dir_hook'.
|
|
|
|
* fs/minix.c (grub_minix_get_file_block): Add prototype for
|
|
`grub_get_indir'. Rename `indir' in two blocks to `indir16'
|
|
and `indir32' to silence a gcc warning.
|
|
|
|
* include/grub/fs.h (grub_hfs_init): New prototype.
|
|
(grub_hfs_fini): Likewise.
|
|
|
|
|
|
2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Each disk device has its own id now. This is useful to make use
|
|
of multiple disk devices.
|
|
|
|
* include/grub/disk.h (grub_disk_dev_id): New enum.
|
|
(GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
|
|
(GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
|
|
|
|
* disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
|
|
GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
|
|
|
|
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
|
|
GRUB_DISK_DEVICE_OFDISK_ID as an id.
|
|
|
|
* util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
|
|
GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
|
|
|
|
* include/grub/disk.h (struct grub_disk_dev): Added a new member
|
|
"id" which is used by the cache manager.
|
|
|
|
* normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
|
|
of just "GRUB".
|
|
|
|
2004-08-18 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* fs/hfs.c: New file.
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add hfs.mod.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
|
|
(grubof_SOURCES): Likewise.
|
|
* util/grub-emu.c (main): Initialize and deinitialize HFS support.
|
|
|
|
* include/grub/misc.h (grub_strncasecmp): Add prototype.
|
|
* kern/misc.c (grub_strncasecmp): Add function.
|
|
|
|
2004-08-14 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
|
|
with parentheses.
|
|
|
|
* fs/ext2.c (FILETYPE_UNKNOWN): New macro.
|
|
(grub_ext2_dir): In case the directory entry type is unknown, read
|
|
it from the inode.
|
|
|
|
2004-08-02 Peter Bruin <pjbruin@dds.nl>
|
|
|
|
* loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
|
|
grub_load_linux instead of grub_rescue_cmd_linux as second
|
|
argument of grub_rescue_register_command.
|
|
|
|
* Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
|
|
|
|
2004-07-27 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
|
|
function.
|
|
* commands/boot.c: Remove the check for `GRUB_UTIL'.
|
|
* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
|
|
`loader/powerpc/ieee1275/linux.c',
|
|
`loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
|
|
* include/grub/powerpc/ieee1275/ieee1275.h
|
|
(grub_ieee1275_release): New prototype.
|
|
* include/grub/powerpc/ieee1275/loader.h: Rewritten.
|
|
* kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
|
|
normal, boot, linux and linux_normal.
|
|
* loader/powerpc/ieee1275/linux.c: New file.
|
|
* loader/powerpc/ieee1275/linux_normal.c: Likewise.
|
|
|
|
2004-07-12 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* normal/arg.c (grub_arg_parse): Correct error handling after
|
|
reallocating the argumentlist (check if `argl' is not null instead
|
|
of checking if `args' is not null).
|
|
* kern/mm.c (grub_realloc): Return the same pointer when using the
|
|
same region, instead of returning the header address.
|
|
|
|
2004-07-11 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
|
|
one block instead of two when looking for the initial partition.
|
|
(grub_partition_probe): Initialize the local variable `p' with 0.
|
|
Use base 10 for the grub_strtoul call.
|
|
* kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
|
|
need for one local variable.
|
|
(grub_strtoul): Don't add the new value to `num', instead of that
|
|
just assign it.
|
|
|
|
2004-07-11 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
|
|
(pxeboot_img_SOURCES): New variable.
|
|
(pxeboot_img_ASFLAGS): Likewise.
|
|
(pxeboot_img_LDFLAGS): Likewise.
|
|
* boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
|
|
GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
|
|
<lode_leroy@hotmail.com>.
|
|
|
|
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
|
|
|
|
* kern/rescue.c (grub_enter_rescue_mode): Don't continue when
|
|
there was no input.
|
|
|
|
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
|
|
|
|
* normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
|
|
the history buffer logic.
|
|
|
|
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
|
|
|
|
* fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
|
|
(FILETYPE_INO_SYMLINK): New macros.
|
|
(grub_ext2_find_file): Check if the node is a directory using the
|
|
inode stat information instead of using the filetype in the
|
|
dirent. Exclude the first character of an absolute symlink.
|
|
(grub_ext2_dir): Mask out the filetype part of the mode member of
|
|
the inode.
|
|
|
|
2004-05-24 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add support for UFS version 1 and 2. Add support for the minix
|
|
filesystem version 1 and 2, both the variants with 14 and 30 long
|
|
filenames.
|
|
|
|
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
|
|
fs/minix.c.
|
|
(grub_emu_SOURCES): Likewise.
|
|
(pkgdata_MODULES): Add ufs.mod and minix.mod.
|
|
(ufs_mod_SOURCES): New variable.
|
|
(ufs_mod_CFLAGS): Likewise.
|
|
(minix_mod_SOURCES): Likewise.
|
|
(minix_mod_CFLAGS): Likewise.
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
|
|
fs/minix.c.
|
|
(grubof_SOURCES): Likewise.
|
|
* fs/ufs.c: New file.
|
|
* fs/minix.c: New file.
|
|
* include/grub/fs.h (grub_ufs_init): New prototype.
|
|
(grub_ufs_fini): Likewise.
|
|
(grub_minix_init): Likewise.
|
|
(grub_minix_fini): Likewise.
|
|
* util/grub-emu.c (main): Initialize and deinitialize UFS and
|
|
minix fs.
|
|
|
|
2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
|
|
commands/ls.c, commands/terminal.c, commands/boot.c,
|
|
commands/cmp.c and commands/cat.c.
|
|
(grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
|
|
|
|
* kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
|
|
"env.h"
|
|
|
|
2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
|
|
and grub_, respectively. Because the conversion is trivial and
|
|
mechanical, I omit the details here. Please refer to the CVS
|
|
if you need more information.
|
|
|
|
2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/pupa: Renamed to ...
|
|
* include/grub: ... this.
|
|
* util/i386/pc/pupa-mkimage.c: Renamed to ...
|
|
* util/i386/pc/grub-mkimage.c: ... this.
|
|
* util/i386/pc/pupa-setup.c: Renamed to ...
|
|
* util/i386/pc/grub-setup.c: ... this.
|
|
* util/pupa-emu.c: Renamed to ...
|
|
* util/grub-emu.c: ... this.
|
|
|
|
2004-03-29 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
Add support for the newworld apple macintosh (PPC). This has been
|
|
tested on the powerbook 2000 only. It only adds support for
|
|
generic ieee1275 functions, console and disk support. This should
|
|
be easy to port to other architectures with support for Open
|
|
Firmware.
|
|
|
|
* configure.ac: Accept the powerpc as host_cpu. In the case of
|
|
the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
|
|
specific tests are only executed while building for the i386.
|
|
Inverse test for crosscompile.
|
|
* genmk.rb (Utility): Allow assembler files.
|
|
* normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
|
|
* conf/powerpc-ieee1275.rmk: New file.
|
|
* disk/powerpc/ieee1275/ofdisk.c: Likewise.
|
|
* disk/powerpc/ieee1275/partition.c: Likewise.
|
|
* include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/console.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/partition.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/time.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
|
|
* include/pupa/powerpc/ieee1275/loader.h
|
|
* include/pupa/powerpc/setjmp.h: Likewise.
|
|
* include/pupa/powerpc/types.h: Likewise.
|
|
* kern/powerpc/ieee1275/init.c: Likewise.
|
|
* kern/powerpc/ieee1275/openfw.c: Likewise.
|
|
* term/powerpc/ieee1275/ofconsole.c: Likewise.
|
|
|
|
These files were written by Johan Rydberg
|
|
(jrydberg@night.trouble.net) and I only modified them slightly.
|
|
|
|
* boot/powerpc/ieee1275/cmain.c: New file.
|
|
* boot/powerpc/ieee1275/crt0.S: Likewise.
|
|
* boot/powerpc/ieee1275/ieee1275.c: Likewise.
|
|
* include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
|
|
|
|
2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* Makefile.in: Update copyright.
|
|
* genmodsrc.sh: Likewise.
|
|
* gensymlist.sh: Likewise.
|
|
* term/i386/pc/vga.c: Indent correctly.
|
|
|
|
* util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
|
|
bugreporting address.
|
|
* util/i386/pc/pupa-setup.c (usage): Likewise,
|
|
(main): Call pupa_ext2_init and pupa_ext2_fini.
|
|
|
|
* fs/fat.c (log2): Renamed to ...
|
|
(fat_log2): ... this.
|
|
All callers changed.
|
|
* kern/misc.c (memcpy): Alias to pupa_memmove.
|
|
* loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
|
|
lvalue cast.
|
|
* util/console.c (pupa_ncurses_fini): Return 0.
|
|
|
|
* util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
|
|
Move fail label here.
|
|
[__GNU__]: Don't warn when using stat.
|
|
(open_device)[!__linux__]: Check if FD < 0 instead of !FD.
|
|
(pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
|
|
long int. Use strtol instead of strtoul.
|
|
|
|
2004-03-14 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* commands/boot.c: New file.
|
|
* commands/cat.c: Likewise.
|
|
* commands/cmp.c: Likewise.
|
|
* commands/ls.c: Likewise.
|
|
* commands/terminal.c: Likewise.
|
|
* normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
|
|
(pupa_register_command): Changed interface to match the new
|
|
argument parser.
|
|
(pupa_command_execute): Changed (almost rewritten) so it uses
|
|
pupa_split_command. Added support for setting variables using the
|
|
syntax `foo=bar'.
|
|
(rescue_command): Changed to work with the new argument parser.
|
|
(terminal_command): Moved from here to commands/terminal.c.
|
|
(set_command): New function.
|
|
(unset_command): New function.
|
|
(insmod_command): New function.
|
|
(rmmod_command): New function.
|
|
(lsmod_command): New function.
|
|
(pupa_command_init): Don't initialize the command terminal
|
|
anymore. Initialize the commands set, unset, insmod, rmmod and
|
|
lsmod.
|
|
* conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
|
|
(kernel_img_HEADERS): Add arg.h and env.h.
|
|
(pupa_mkimage_LDFLAGS): Add kern/env.c.
|
|
(pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
|
|
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
|
|
normal/arg.c.
|
|
(pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
|
|
terminal.mod.
|
|
(normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
|
|
(boot_mod_SOURCES): New variable.
|
|
(terminal_mod_SOURCES): Likewise.
|
|
(ls_mod_SOURCES): Likewise.
|
|
(cmp_mod_SOURCES): Likewise.
|
|
(cat_mod_SOURCES): Likewise.
|
|
|
|
* normal/arg.c: New file.
|
|
* kern/env.c: Likewise.
|
|
* include/pupa/arg.h: Likewise.
|
|
* include/pupa/env.h: Likewise.
|
|
* font/manager.c (font_command): Changed to match argument parsing
|
|
interface changes.
|
|
(PUPA_MOD_INIT): Likewise.
|
|
* hello/hello.c (pupa_cmd_hello): Likewise.
|
|
(PUPA_MOD_INIT): Likewise.
|
|
* include/pupa/disk.h: Include <pupa/device.h>.
|
|
(pupa_print_partinfo): New prototype.
|
|
* include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
|
|
(pupa_dl_get_prefix): Likewise.
|
|
* include/pupa/misc.h: Include <pupa/err.h>.
|
|
(pupa_isgraph): New prototype.
|
|
(pupa_isdigit): Likewise.
|
|
(pupa_split_cmdline): Likewise.
|
|
* include/pupa/normal.h: Include <pupa/arg.h>.
|
|
(pupa_command): Changed the prototype of the member `func' to
|
|
match the argument parsing interface. Added member `options'.
|
|
(pupa_register_command): Updated to match function.
|
|
(pupa_arg_parse): New prototype.
|
|
(pupa_hello_init) [PUPA_UTIL]: New prototype.
|
|
(pupa_hello_fini) [PUPA_UTIL]: Likewise.
|
|
(pupa_ls_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_ls_fini) [PUPA_UTIL]: Likewise.
|
|
(pupa_cat_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_cat_fini) [PUPA_UTIL]: Likewise.
|
|
(pupa_boot_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_boot_fini) [PUPA_UTIL]: Likewise.
|
|
(pupa_cmp_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_cmp_fini) [PUPA_UTIL]: Likewise.
|
|
(pupa_terminal_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_terminal_fini) [PUPA_UTIL]: Likewise.
|
|
* kern/disk.c: Include <pupa/file.h>.
|
|
(pupa_print_partinfo): New function.
|
|
* kern/dl.c: Include <pupa/env.h>.
|
|
(pupa_dl_dir): Variable removed.
|
|
(pupa_dl_load): Use the environment variable `prefix' instead of
|
|
the variable pupa_dl_dir.
|
|
(pupa_dl_set_prefix): Function removed.
|
|
(pupa_dl_get_prefix): Likewise.
|
|
* kern/i386/pc/init.c: Include <pupa/env.h>.
|
|
(pupa_machine_init): Use the environment variable `prefix' instead of
|
|
using pupa_dl_set_prefix to set the prefix.
|
|
* kern/main.c: Include <pupa/env.h>.
|
|
(pupa_set_root_dev): Use the environment variable `prefix' instead of
|
|
using pupa_dl_get_prefix to get the prefix.
|
|
* kern/misc.c: Include <pupa/env.h>.
|
|
(pupa_isdigit): New function.
|
|
(pupa_isgraph): Likewise.
|
|
(pupa_ftoa): Likewise.
|
|
(pupa_vsprintf): Added support for printing values of the type
|
|
`double'. Make it possible to format variable output when using
|
|
formatting like `%1.2%f'.
|
|
(pupa_split_cmdline): New function.
|
|
* kern/rescue.c: Include <pupa/env.h>.
|
|
(next_word): Removed function.
|
|
(pupa_rescue_cmd_prefix): Likewise.
|
|
(pupa_rescue_cmd_set): New function.
|
|
(pupa_rescue_cmd_unset): New function.
|
|
(pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
|
|
split the command line instead of splitting it here. Added
|
|
support for setting variables using the syntax `foo=bar'. Don't
|
|
initialize the prefix command anymore. Initialized the set and
|
|
unset commands.
|
|
* normal/cmdline.c: Include <pupa/env.h>.
|
|
(pupa_tab_complete): Added prototypes for print_simple_completion,
|
|
print_partition_completion, add_completion, iterate_commands,
|
|
iterate_dev, iterate_part and iterate_dir. Moved code to print
|
|
partition information from here to kern/disk.c.
|
|
(pupa_cmdline_run): Don't check if the funtion exists anymore.
|
|
* normal/main.c: Include <pupa/env.h>.
|
|
(pupa_rescue_cmd_normal): Use the environment variable `prefix'
|
|
instead of using pupa_dl_get_prefix to get the prefix.
|
|
* term/i386/pc/vga.c: Include <pupa/arg.h>.
|
|
(check_vga_mem): Cast pointers to `void *' to silence a gcc
|
|
warning.
|
|
(pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
|
|
(pupa_vga_setcolor): Declare unused variables with `__attribute__
|
|
((unused))' to silence a gcc warning.
|
|
(pupa_vga_setcolor): Likewise.
|
|
(debug_command): Changed to match argument parsing
|
|
interface changes.
|
|
* util/pupa-emu.c: Include <pupa/env.h>.
|
|
(options): Added 0's for unused fields to silence a gcc warning.
|
|
(argp): Likewise.
|
|
(main): Use the environment variable `prefix' instead of using
|
|
pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
|
|
boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
|
|
and terminal.
|
|
|
|
* util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
|
|
* util/misc.c: Include <malloc.h>.
|
|
(pupa_malloc): Rewritten so errors are correctly reported.
|
|
(pupa_realloc): Likewise.
|
|
(pupa_memalign): Likewise.
|
|
(pupa_mm_init_region): Declare unused variables with
|
|
`__attribute__ ((unused))' to silence a gcc warning.
|
|
* normal/i386/setjmp.S: Remove tab at the end of the file to
|
|
silence a gcc warning.
|
|
* loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
|
|
variables with `__attribute__ ((unused))' to silence a gcc
|
|
warning.
|
|
* loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
|
|
local variable i unsigned to silence a gcc warning.
|
|
|
|
* kern/term.c: Include <pupa/misc.h>.
|
|
(pupa_more_lines): New variable.
|
|
(pupa_more): Likewise.
|
|
(pupa_putcode): When the pager is active pause at the end of every
|
|
screen.
|
|
(pupa_set_more): New function.
|
|
* include/pupa/term.h (pupa_set_more): New prototype.
|
|
|
|
|
|
2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Now this project is GRUB 2 rather than PUPA. The location of
|
|
the CVS repository was moved to GRUB's.
|
|
|
|
* configure.ac: Use bug-grub as the reporting address.
|
|
Use GRUB instead of PUPA.
|
|
Change the version number to 1.90.
|
|
|
|
2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* genkernsyms.sh: Updated copyright information.
|
|
* genmk.rb: Likewise.
|
|
* genmodsrc.sh: Likewise.
|
|
* gensymlist.sh: Likewise.
|
|
* boot/i386/pc/boot.S: Likewise.
|
|
* boot/i386/pc/diskboot.S: Likewise.
|
|
* disk/i386/pc/biosdisk.c: Likewise.
|
|
* disk/i386/pc/partition.c: Likewise.
|
|
* font/manager.c: Likewise.
|
|
* fs/ext2.c: Likewise.
|
|
* fs/fat.c: Likewise.
|
|
* include/pupa/boot.h: Likewise.
|
|
* include/pupa/device.h: Likewise.
|
|
* include/pupa/disk.h: Likewise.
|
|
* include/pupa/dl.h: Likewise.
|
|
* include/pupa/elf.h: Likewise.
|
|
* include/pupa/err.h: Likewise.
|
|
* include/pupa/file.h: Likewise.
|
|
* include/pupa/font.h: Likewise.
|
|
* include/pupa/fs.h: Likewise.
|
|
* include/pupa/kernel.h: Likewise.
|
|
* include/pupa/loader.h: Likewise.
|
|
* include/pupa/misc.h: Likewise.
|
|
* include/pupa/mm.h: Likewise.
|
|
* include/pupa/net.h: Likewise.
|
|
* include/pupa/normal.h: Likewise.
|
|
* include/pupa/rescue.h: Likewise.
|
|
* include/pupa/setjmp.h: Likewise.
|
|
* include/pupa/symbol.h: Likewise.
|
|
* include/pupa/term.h: Likewise.
|
|
* include/pupa/types.h: Likewise.
|
|
* include/pupa/i386/setjmp.h: Likewise.
|
|
* include/pupa/i386/types.h: Likewise.
|
|
* include/pupa/i386/pc/biosdisk.h: Likewise.
|
|
* include/pupa/i386/pc/boot.h: Likewise.
|
|
* include/pupa/i386/pc/console.h: Likewise.
|
|
* include/pupa/i386/pc/init.h: Likewise.
|
|
* include/pupa/i386/pc/kernel.h: Likewise.
|
|
* include/pupa/i386/pc/linux.h: Likewise.
|
|
* include/pupa/i386/pc/loader.h: Likewise.
|
|
* include/pupa/i386/pc/memory.h: Likewise.
|
|
* include/pupa/i386/pc/multiboot.h: Likewise.
|
|
* include/pupa/i386/pc/partition.h: Likewise.
|
|
* include/pupa/i386/pc/time.h: Likewise.
|
|
* include/pupa/i386/pc/vga.h: Likewise.
|
|
* include/pupa/i386/pc/util/biosdisk.h: Likewise.
|
|
* include/pupa/util/getroot.h: Likewise.
|
|
* include/pupa/util/misc.h: Likewise.
|
|
* include/pupa/util/resolve.h: Likewise.
|
|
* kern/device.c: Likewise.
|
|
* kern/disk.c: Likewise.
|
|
* kern/dl.c: Likewise.
|
|
* kern/err.c: Likewise.
|
|
* kern/file.c: Likewise.
|
|
* kern/fs.c: Likewise.
|
|
* kern/loader.c: Likewise.
|
|
* kern/main.c: Likewise.
|
|
* kern/misc.c: Likewise.
|
|
* kern/mm.c: Likewise.
|
|
* kern/rescue.c: Likewise.
|
|
* kern/term.c: Likewise.
|
|
* kern/i386/dl.c: Likewise.
|
|
* kern/i386/pc/init.c: Likewise.
|
|
* kern/i386/pc/lzo1x.S: Likewise.
|
|
* kern/i386/pc/startup.S: Likewise.
|
|
* loader/i386/pc/chainloader.c: Likewise.
|
|
* loader/i386/pc/linux.c: Likewise.
|
|
* loader/i386/pc/multiboot.c: Likewise.
|
|
* normal/cmdline.c: Likewise.
|
|
* normal/command.c: Likewise.
|
|
* normal/main.c: Likewise.
|
|
* normal/menu.c: Likewise.
|
|
* normal/i386/setjmp.S: Likewise.
|
|
* term/i386/pc/console.c: Likewise.
|
|
* term/i386/pc/vga.c: Likewise.
|
|
* util/console.c: Likewise.
|
|
* util/genmoddep.c: Likewise.
|
|
* util/misc.c: Likewise.
|
|
* util/pupa-emu.c: Likewise.
|
|
* util/resolve.c: Likewise.
|
|
* util/unifont2pff.rb: Likewise.
|
|
* util/i386/pc/biosdisk.c: Likewise.
|
|
* util/i386/pc/getroot.c: Likewise.
|
|
* util/i386/pc/pupa-mkimage.c: Likewise.
|
|
* util/i386/pc/pupa-setup.c: Likewise.
|
|
|
|
2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
|
|
when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
|
|
callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
|
|
reading and reset it after reading.
|
|
(pupa_ext2_close): Return PUPA_ERR_NONE.
|
|
|
|
* include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
|
|
Correct value.
|
|
(struct linux_kernel_header): Add kernel_version and
|
|
initrd_addr_max.
|
|
* loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
|
|
pupa_file_read succeeds.
|
|
(pupa_rescue_cmd_initrd): Implement.
|
|
|
|
2003-12-03 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* fs/ext2.c (pupa_ext2_label): New function.
|
|
(pupa_ext2_fs): Added label.
|
|
* fs/fat.c (pupa_fat_label): New function.
|
|
(pupa_fat_fs): Added label.
|
|
* include/pupa/fs.h (struct pupa_fs): Added prototype label.
|
|
|
|
* kern/misc.c (pupa_strndup): New function.
|
|
* include/pupa/misc.h (pupa_strndup): New prototype.
|
|
|
|
* include/pupa/normal.h: Include <pupa/err.h>.
|
|
(pupa_set_history): New prototype.
|
|
(pupa_iterate_commands): New prototype.
|
|
* normal/cmdline.c: Include <pupa/machine/partition.h>,
|
|
<pupa/disk.h>, <pupa/file.h>.
|
|
(hist_size): New variable.
|
|
(hist_lines): Likewise.
|
|
(hist_end): Likewise.
|
|
(hist_used): Likewise.
|
|
(pupa_set_history): New function.
|
|
(pupa_history_get): Likewise.
|
|
(pupa_history_add): Likewise.
|
|
(pupa_history_replace): Likewise.
|
|
(pupa_tab_complete): Likewise.
|
|
(pupa_cmdline_run): Added tab completion and history buffer. Tab
|
|
completion shows partitionnames while completing partitions, this
|
|
feature was suggested by Jeff Bailey.
|
|
* normal/command.c (pupa_iterate_commands): New function.
|
|
* normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
|
|
(pupa_normal_init): Initialize history buffer.
|
|
(PUPA_MOD_INIT): Likewise.
|
|
(pupa_normal_fini): Free the history buffer.
|
|
(PUPA_MOD_FINI): Likewise.
|
|
|
|
* util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
|
|
key.
|
|
|
|
* aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
|
|
* configure.ac [i386]: Check for regparam bug.
|
|
(NESTED_FUNC_ATTR) [! i386]: Defined.
|
|
|
|
2003-11-17 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
|
|
(pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
|
|
(pupa_emu_SOURCES): New variable.
|
|
(pupa_emu_LDFLAGS): Likewise.
|
|
* include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
|
|
(pupa_ext2_fini) [PUPA_UTIL]: Likewise.
|
|
* include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
|
|
(pupa_normal_fini) [PUPA_UTIL]: Likewise.
|
|
* include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
|
|
(pupa_jmp_buf): New typedef.
|
|
(pupa_setjmp) [PUPA_UTIL]: New macro.
|
|
(pupa_longjmp) [PUPA_UTIL]: Likewise.
|
|
* include/pupa/term.h (struct pupa_term): New member `refresh'.
|
|
(pupa_refresh): New prototype.
|
|
* include/pupa/util/getroot.h: New file.
|
|
* kern/misc.c (pupa_vsprintf): Refresh the screen after updating
|
|
it.
|
|
* kern/rescue.c (pupa_rescue_get_command_line): Likewise.
|
|
(pupa_rescue_cmd_cat): Likewise.
|
|
(pupa_rescue_cmd_ls): Likewise.
|
|
(pupa_rescue_cmd_testload): Likewise.
|
|
(pupa_rescue_cmd_lsmod): Likewise.
|
|
* normal/cmdline.c (pupa_cmdline_get): Likewise.
|
|
* normal/menu.c (run_menu): Likewise.
|
|
* kern/term.c (pupa_cls): Likewise.
|
|
(pupa_refresh): New function.
|
|
* normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
|
|
(pupa_normal_fini) [PUPA_UTIL]: Likewise.
|
|
* util/console.c: New file.
|
|
|
|
* util/i386/pc/getroot.c: New file.
|
|
* util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
|
|
(pupa_putchar): New function.
|
|
(pupa_refresh): Likewise.
|
|
(xgetcwd): Function moved to ...
|
|
(strip_extra_slashes): Likewise.
|
|
(get_prefix): Likewise.
|
|
* util/i386/pc/getroot.c: ... here.
|
|
(find_root_device): Function moved and renamed to...
|
|
* util/i386/pc/getroot.c (pupa_find_root_device): ... here.
|
|
Changed all callers.
|
|
* util/i386/pc/pupa-setup.c (guess_root_device): Function moved
|
|
and renamed to...
|
|
* util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
|
|
Changed all callers.
|
|
* util/misc.c (pupa_memalign): New function.
|
|
(pupa_mm_init_region): Likewise.
|
|
(pupa_register_exported_symbols): Likewise.
|
|
(pupa_putchar): Function removed.
|
|
* util/pupa-emu.c: New file.
|
|
|
|
2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
|
|
(_multiboot_mod_SOURCES): New variable.
|
|
(_multiboot_mod_CFLAGS): Likewise.
|
|
* loader/i386/pc/multiboot.c: New file.
|
|
* include/pupa/i386/pc/multiboot.h: Likewise.
|
|
* kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
|
|
(pupa_multiboot_real_boot): New function.
|
|
* include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
|
|
(pupa_multiboot_real_boot): New prototype.
|
|
(pupa_rescue_cmd_multiboot): Likewise
|
|
(pupa_rescue_cmd_module): Likewise.
|
|
|
|
* kern/loader.c (pupa_loader_set): Continue when
|
|
pupa_loader_unload_func() fails.
|
|
(pupa_loader_unset): New function.
|
|
* include/pupa/loader.h (pupa_loader_unset): New prototype.
|
|
|
|
* kern/misc.c (pupa_stpcpy): New function.
|
|
* include/pupa/misc.h (pupa_stpcpy): New prototype.
|
|
|
|
2003-11-12 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
|
|
for available extensions.
|
|
|
|
* include/pupa/i386/pc/time.h: New file.
|
|
* kern/disk.c: Include <pupa/machine/time.h>.
|
|
(PUPA_CACHE_TIMEOUT): New macro.
|
|
(pupa_last_time): New variable.
|
|
(pupa_disk_open): Flush the cache when there was a timeout.
|
|
(pupa_disk_close): Reset the timer.
|
|
* kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
|
|
pupa_currticks.
|
|
* util/misc.c: Include <sys/times.h>
|
|
(pupa_get_rtc): New function.
|
|
|
|
2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
|
|
|
|
* fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
|
|
as blocks.
|
|
(pupa_ext2_get_file_block): Use blocks member.
|
|
|
|
* fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
|
|
first block. Return -1 instead of pupa_errno on error.
|
|
|
|
2003-10-27 Marco Gerards <metgerards@student.han.nl>
|
|
|
|
* README: In the pupa-mkimage example use _chain instead of chain
|
|
and ext2 instead of fat.
|
|
* TODO: Replace ext2fs with jfs as an example. Add an item for
|
|
adding journal playback for ext2fs.
|
|
* conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
|
|
(pkgdata_MODULES): Added ext2.mod.
|
|
(ext2_mod_SOURCES): New variable.
|
|
(ext2_mod_CFLAGS): Likewise.
|
|
* include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
|
|
* include/pupa/misc.h (pupa_strncpy): New prototype.
|
|
(pupa_strcat): Likewise.
|
|
(pupa_strncmp): Likewise.
|
|
* kern/misc.c (pupa_strcat): Enable function.
|
|
(pupa_strncpy): New function.
|
|
(pupa_strncmp): Likewise.
|
|
* fs/ext2.c: New file.
|
|
|
|
* kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
|
|
when the read failed before retrying.
|
|
* util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
|
|
(_FILE_OFFSET_BITS): Likewise.
|
|
* configure.ac: Added AC_SYS_LARGEFILE.
|
|
|
|
2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* genmk.rb (PModule#rule): Make sure to get only symbol names
|
|
from the output of nm.
|
|
Reported by Robert Millan <zeratul2@wanadoo.es>.
|
|
|
|
2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
I forgot to check in these changes for a long time. This adds
|
|
incomplete support for VGA console, and this is still very
|
|
buggy. Also, a lot of consideration is required for I18N,
|
|
UNICODE, and VGA font issues. Therefore, assume that this is
|
|
such that "better than nothing".
|
|
|
|
* font/manager.c: New file.
|
|
* include/pupa/font.h: Likewise.
|
|
* include/pupa/i386/pc/vga.h: Likewise.
|
|
* term/i386/pc/vga.c: Likewise.
|
|
* util/unifont2pff.rb: Likewise.
|
|
|
|
* conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
|
|
(pkgdata_MODULES): Added vga.mod and font.mod.
|
|
(vga_mod_SOURCES): New variables.
|
|
(vga_mod_CFLAGS): Likewise.
|
|
(font_mod_SOURCES): Likewise.
|
|
(font_mod_CFLAGS): Likewise.
|
|
|
|
* include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
|
|
|
|
* include/pupa/term.h: Include pupa/err.h.
|
|
(struct pupa_term): Added init and fini.
|
|
Changed the argument of putchar to pupa_uint32_t.
|
|
|
|
* include/pupa/i386/pc/console.h: Include pupa/symbol.h.
|
|
(pupa_console_real_putchar): New prototype.
|
|
(pupa_console_putchar): Removed.
|
|
(pupa_console_checkkey): Exported.
|
|
(pupa_console_getkey): Likewise.
|
|
|
|
* kern/misc.c (pupa_vsprintf): Add support for UNICODE
|
|
characters.
|
|
|
|
* kern/term.c (pupa_term_set_current): Rewritten.
|
|
(pupa_putchar): Likewise.
|
|
(pupa_putcode): New function.
|
|
|
|
* kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
|
|
(pupa_console_real_putchar): ... this.
|
|
(pupa_vga_set_mode): New function.
|
|
(pupa_vga_get_font): Likewise.
|
|
|
|
* normal/command.c: Include pupa/term.h.
|
|
(terminal_command): New function.
|
|
(pupa_command_init): Register the command "terminal".
|
|
|
|
* normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
|
|
(DISP_UP): Likewise.
|
|
(DISP_RIGHT): Likewise.
|
|
(DISP_DOWN): Likewise.
|
|
(DISP_HLINE): Likewise.
|
|
(DISP_VLINE): Likewise.
|
|
(DISP_UL): Likewise.
|
|
(DISP_UR): Likewise.
|
|
(DISP_LL): Likewise.
|
|
(DISP_LR): Likewise.
|
|
|
|
* term/i386/pc/console.c (pupa_console_putchar): New function.
|
|
|
|
2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
|
|
|
|
* util/resolve.c (pupa_util_resolve_dependencies): BUG
|
|
FIX. Reverse the path_list.
|
|
|
|
* include/pupa/normal.h: Export pupa_register_command and
|
|
pupa_unregister_command.
|
|
|
|
* hello/hello.c (pupa_cmd_hello): New module.
|
|
* conf/i386-pc.rmk: Added hello.mod.
|
|
|
|
2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/i386/pc/lzo1x.S: New file.
|
|
|
|
* util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
|
|
(compress_kernel): New variable.
|
|
(generate_image): Heavily modified to support compressing a
|
|
large part of the core image.
|
|
|
|
* util/misc.c (pupa_util_read_image): Fix a file descriptor
|
|
leak.
|
|
(pupa_util_load_image): New function.
|
|
|
|
* kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
|
|
(pupa_compressed_size): New variable.
|
|
(codestart): Enable Gate A20 here.
|
|
Decompress the compressed part of the core image.
|
|
Rearrange the code to put functions and variables which are
|
|
required for initialization in the non-compressed part.
|
|
Include lzo1x.S.
|
|
|
|
* kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
|
|
here.
|
|
|
|
* include/pupa/util/misc.h (pupa_util_write_image): Declared.
|
|
|
|
* include/pupa/i386/pc/kernel.h
|
|
(PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
|
|
(PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
|
|
(PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
|
|
(PUPA_KERNEL_MACHINE_PREFIX): Likewise.
|
|
(PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
|
|
|
|
* conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
|
|
|
|
* genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
|
|
(Utility#rule): Likewise.
|
|
|
|
* configure.ac: Check if LZO is available.
|
|
|
|
2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/pupa/normal.h: New file.
|
|
* include/pupa/setjmp.h: Likewise.
|
|
* include/pupa/i386/setjmp.h: Likewise.
|
|
* normal/cmdline.c: Likewise.
|
|
* normal/command.c: Likewise.
|
|
* normal/main.c: Likewise.
|
|
* normal/menu.c: Likewise.
|
|
* normal/i386/setjmp.S: Likewise.
|
|
|
|
* loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
|
|
(pupa_rescue_cmd_initrd): Likewise.
|
|
|
|
* loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
|
|
Likewise.
|
|
|
|
* kern/i386/pc/startup.S (translation_table): New variable.
|
|
(translate_keycode): New function.
|
|
(pupa_console_getkey): Call translate_keycode.
|
|
|
|
* kern/rescue.c (attempt_normal_mode): New function.
|
|
(pupa_enter_rescue_mode): Attempt to execute the normal mode. If
|
|
it failed, print a message.
|
|
|
|
* kern/mm.c (pupa_real_malloc): Print more information when a
|
|
free magic is broken.
|
|
(pupa_free): If the first free header is not free actually, set
|
|
it to P.
|
|
|
|
* kern/main.c (pupa_load_normal_mode): Just load the module
|
|
"normal".
|
|
(pupa_main): Don't print the message
|
|
"Entering into rescue mode..." here.
|
|
|
|
* include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
|
|
Declared.
|
|
(pupa_rescue_cmd_initrd): Likewise.
|
|
(pupa_rescue_cmd_initrd): Likewise.
|
|
|
|
* include/pupa/symbol.h (FUNCTION): Specify the type.
|
|
(VARIABLE): Likewise.
|
|
|
|
* include/pupa/err.h (pupa_err_t): Added
|
|
PUPA_ERR_UNKNOWN_COMMAND.
|
|
|
|
* include/pupa/dl.h (pupa_dl_set_prefix): Exported.
|
|
(pupa_dl_get_prefix): Likewise.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
|
|
Added _chain.mod and _linux.mod instead of chain.mod and
|
|
linux.mod.
|
|
(chain_mod_SOURCES): Renamed to ...
|
|
(_chain_mod_SOURCES): ... this.
|
|
(chain_mod_CFLAGS): Renamed to ...
|
|
(_chain_mod_CFLAGS): ... this.
|
|
(linux_mod_SOURCES): Renamed to ...
|
|
(_linux_mod_SOURCES): ... this.
|
|
(linux_mod_CFLAGS): Renamed to ...
|
|
(_linux_mod_CFLAGS): ... this.
|
|
(normal_mod_SOURCES): New variable.
|
|
(normal_mod_CFLAGS): Likewise.
|
|
(normal_mod_ASFLAGS): Likewise.
|
|
|
|
2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
|
|
possible.
|
|
|
|
* kern/dl.c (pupa_dl_ref): Refer dependending modules
|
|
recursively.
|
|
(pupa_dl_unref): Unrefer depending modules recursively.
|
|
Don't call pupa_dl_unload implicitly, because PUPA can crash if
|
|
a module is unloaded before one depending on that module is
|
|
unloaded.
|
|
(pupa_dl_unload): Unload depending modules explicitly,
|
|
if possible.
|
|
|
|
2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/pupa/i386/pc/linux.h: New file.
|
|
* loader/i386/pc/linux.c: Likewise.
|
|
|
|
* loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
|
|
Removed.
|
|
(pupa_chainloader_unload): Return PUPA_ERR_NONE.
|
|
(pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
|
|
of PUPA_CHAINLOADER_BOOT_SECTOR.
|
|
|
|
* kern/i386/pc/startup.S: Include pupa/machine/linux.h.
|
|
(pupa_linux_prot_size): New variable.
|
|
(pupa_linux_tmp_addr): Likewise.
|
|
(pupa_linux_real_addr): Likewise.
|
|
(pupa_linux_boot_zimage): New function.
|
|
(pupa_linux_boot_bzimage): Likewise.
|
|
|
|
* kern/i386/pc/init.c (struct mem_region): New structure.
|
|
(MAX_REGIONS): New macro.
|
|
(mem_regions): New variable.
|
|
(num_regions): Likewise.
|
|
(pupa_os_area_addr): Likewise.
|
|
(pupa_os_area_size): Likewise.
|
|
(pupa_lower_mem): Likewise.
|
|
(pupa_upper_mem): Likewise.
|
|
(add_mem_region): New function.
|
|
(compact_mem_regions): Likewise.
|
|
(pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
|
|
the size of the conventional memory and that of so-called upper
|
|
memory (before the first memory hole).
|
|
Instead of adding each found region to free memory, use
|
|
add_mem_region and add them after removing overlaps.
|
|
Also, add only 1/4 of the upper memory to free memory. The rest
|
|
is used for loading OS images. Maybe this is ad hoc, but this
|
|
makes it much easier to relocate OS images when booting.
|
|
|
|
* kern/rescue.c (pupa_rescue_cmd_module): Removed.
|
|
(pupa_enter_rescue_mode): Don't register initrd and module.
|
|
|
|
* kern/mm.c: Include pupa/dl.h.
|
|
|
|
* kern/main.c: Include pupa/file.h and pupa/device.h.
|
|
|
|
* kern/loader.c (pupa_loader_load_module_func): Removed.
|
|
(pupa_loader_load_module): Likewise.
|
|
|
|
* kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
|
|
``.o''.
|
|
|
|
* include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
|
|
(pupa_linux_tmp_addr): Likewise.
|
|
(pupa_linux_real_addr): Likewise.
|
|
(pupa_linux_boot_zimage): Likewise.
|
|
(pupa_linux_boot_bzimage): Likewise.
|
|
|
|
* include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
|
|
(pupa_upper_mem): Likewise.
|
|
(pupa_gate_a20): Don't export, because turning off Gate A20 in a
|
|
module is too dangerous.
|
|
|
|
* include/pupa/loader.h (pupa_os_area_addr): Declared.
|
|
(pupa_os_area_size): Likewise.
|
|
(pupa_loader_set): Remove the first argument. Loader doesn't
|
|
manage modules or initrd any longer.
|
|
(pupa_loader_load_module): Removed.
|
|
|
|
* conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
|
|
(linux_mod_SOURCES): New variable.
|
|
(linux_mod_CFLAGS): Likewise.
|
|
|
|
2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/pupa-setup.c (setup): Convert the endianness of
|
|
the length of a blocklist correctly.
|
|
|
|
* util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
|
|
Use ioctl only if the OS file is a block device.
|
|
(pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
|
|
not very useful for normal files.
|
|
|
|
* kern/main.c (pupa_set_root_dev): New function.
|
|
(pupa_load_normal_mode): Likewise.
|
|
(pupa_main): Call those above.
|
|
|
|
* include/pupa/types.h (pupa_swap_bytes16): Cast the result to
|
|
pupa_uint16_t.
|
|
|
|
* include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
|
|
|
|
2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
|
|
(setup): Configure the installed partition information and the
|
|
dl prefix.
|
|
|
|
* loader/i386/pc/chainloader.c (my_mod): New variable.
|
|
(pupa_chainloader_unload): New function.
|
|
(pupa_rescue_cmd_chainloader): Refer itself.
|
|
(PUPA_MOD_INIT): Save its own module in MY_MOD.
|
|
|
|
* kern/i386/pc/startup.S (install_partition): Removed.
|
|
(version_string): Likewise.
|
|
(config_file): Likewise.
|
|
(pupa_install_dos_part): New variable.
|
|
(pupa_install_bsd_part): Likewise.
|
|
(pupa_prefix): Likewise.
|
|
(pupa_chainloader_real_boot): Call pupa_dl_unload_all.
|
|
|
|
* kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
|
|
and pupa/misc.h.
|
|
(make_install_device): New function.
|
|
(pupa_machine_init): Set the dl prefix.
|
|
|
|
* kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
|
|
(buf): Renamed to ...
|
|
(linebuf): ... this.
|
|
(pupa_rescue_cmd_prefix): New function.
|
|
(pupa_rescue_cmd_insmod): Likewise.
|
|
(pupa_rescue_cmd_rmmod): Likewise.
|
|
(pupa_rescue_cmd_lsmod): Likewise.
|
|
(pupa_enter_rescue_mode): Register new commands: prefix, insmod,
|
|
rmmod and lsmod.
|
|
|
|
* kern/mm.c (pupa_memalign): If failed even after invalidating
|
|
disk caches, unload unneeded modules and retry.
|
|
|
|
* kern/misc.c (pupa_memmove): New function.
|
|
(pupa_memcpy): Removed.
|
|
(pupa_strcpy): New function.
|
|
(pupa_itoa): Made static.
|
|
|
|
* kern/dl.c (pupa_dl_iterate): New function.
|
|
(pupa_dl_ref): Likewise.
|
|
(pupa_dl_unref): Likewise.
|
|
(pupa_dl_unload): Return if succeeded or not.
|
|
(pupa_dl_unload_unneeded): New function.
|
|
(pupa_dl_unload_all): Likewise.
|
|
(pupa_dl_init): Renamed to ...
|
|
(pupa_dl_set_prefix): ... this.
|
|
(pupa_dl_get_prefix): New function.
|
|
|
|
* include/pupa/i386/pc/kernel.h: Include pupa/types.h.
|
|
(PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
|
|
(PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
|
|
(PUPA_KERNEL_MACHINE_PREFIX): Likewise.
|
|
(pupa_install_dos_part): Declared.
|
|
(pupa_install_bsd_part): Likewise.
|
|
(pupa_prefix): Likewise.
|
|
(pupa_boot_drive): Likewise.
|
|
|
|
* include/pupa/types.h: Fix a typo.
|
|
|
|
* include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
|
|
pupa_memmove.
|
|
(pupa_memmove): Declared.
|
|
(pupa_strcpy): Likewise.
|
|
|
|
* include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
|
|
pupa_mod_init takes one argument, its own module.
|
|
(pupa_dl_unload_unneeded): Declared.
|
|
(pupa_dl_unload_all): Likewise.
|
|
(pupa_dl_ref): Likewise.
|
|
(pupa_dl_unref): Likewise.
|
|
(pupa_dl_iterate): Likewise.
|
|
(pupa_dl_init): Renamed to ...
|
|
(pupa_dl_set_prefix): ... this.
|
|
(pupa_dl_get_prefix): Declared.
|
|
|
|
* fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
|
|
(pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
|
|
unloaded.
|
|
(pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
|
|
(pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
|
|
|
|
* configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
|
|
-Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
|
|
|
|
2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* util/i386/pc/pupa-setup.c (setup): Define the internal
|
|
function find_first_partition_start at the top level, because GCC
|
|
3.0.x cannot compile internal functions in deeper scopes
|
|
correctly.
|
|
(find_root_device): Use lstat instead of stat.
|
|
Don't follow symbolic links.
|
|
Fix the path-constructing code.
|
|
|
|
* util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
|
|
(pupa_util_biosdisk_open) [__linux__]: Get the size of a device
|
|
by a BLKGETSIZE ioctl first, because block devices don't fill
|
|
the member st_mode of the structure stat on Linux.
|
|
[__linux__] (linux_find_partition): Use a temporary buffer
|
|
REAL_DEV for the working space. Copy it to DEV before returning.
|
|
(open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
|
|
buffer cache consistent.
|
|
(get_os_disk) [__linux__]: Use the length 5 instead of 4 for
|
|
strncmp. The previous value was merely wrong.
|
|
(pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
|
|
|
|
* fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
|
|
FAT size is 12. The previous value was merely wrong.
|
|
|
|
* kern/main.c (pupa_main): Don't split the starting message from
|
|
newlines.
|
|
|
|
* kern/term.c (pupa_putchar): Put CR after LF instead of before
|
|
LF, because BIOS goes crazy about character attributes in this
|
|
case.
|
|
|
|
2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* include/i386/pc/util/biosdisk.h: New file.
|
|
* util/i386/pc/biosdisk.c: Likewise.
|
|
* util/i386/pc/pupa-setup.c: Likewise.
|
|
|
|
* Makefile.in (INCLUDE_DISTFILES): Added
|
|
include/pupa/i386/pc/util/biosdisk.h.
|
|
(UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
|
|
directory util/i386/pc.
|
|
(install-local): Added a rule for sbin_UTILITIES.
|
|
(uninstall): Likewise.
|
|
|
|
* util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
|
|
|
|
* util/misc.c (xrealloc): New function.
|
|
(pupa_malloc): Likewise.
|
|
(pupa_free): Likewise.
|
|
(pupa_realloc): Likewise.
|
|
(pupa_stop): Likewise.
|
|
(pupa_putchar): Likewise.
|
|
|
|
* kern/disk.c (pupa_disk_read): Prevent L from underflowing.
|
|
|
|
* include/pupa/util/misc.h (xrealloc): Declared.
|
|
|
|
* include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
|
|
macro.
|
|
(PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
|
|
(PUPA_BOOT_MACHINE_BPB_END): ... this.
|
|
|
|
* include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
|
|
[PUPA_UTIL] (pupa_fat_fini): Likewise.
|
|
|
|
* fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
|
|
way should be implemented.
|
|
[PUPA_UTIL] (pupa_fat_fini): Likewise.
|
|
|
|
* disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
|
|
the size of NAME for safety.
|
|
(pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
|
|
0x88.
|
|
|
|
* conf/i386-pc.rmk (sbin_UTILITIES): New variable.
|
|
(pupa_setup_SOURCES): Likewise.
|
|
|
|
* genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
|
|
|
|
2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
|
|
bunch of pushl's from pusha, because this destroys the return
|
|
value.
|
|
|
|
2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
Use -mrtd and -mregparm=3 to reduce the generated code sizes.
|
|
This means that any missing prototypes could be fatal. Also, you
|
|
must take care when writing assembly code. See the comments at
|
|
the beginning of startup.S, for more details.
|
|
|
|
* kern/i386/pc/startup.S (pupa_halt): Modified for the new
|
|
compilation mechanism.
|
|
(pupa_chainloader_real_boot): Likewise.
|
|
(pupa_biosdisk_rw_int13_extensions): Likewise.
|
|
(pupa_biosdisk_rw_standard): Likewise.
|
|
(pupa_biosdisk_check_int13_extensions): Likewise.
|
|
(pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
|
|
(pupa_biosdisk_get_diskinfo_standard): Likewise.
|
|
(pupa_get_memsize): Likewise.
|
|
(pupa_get_mmap_entry): Likewise.
|
|
(pupa_console_putchar): Likewise.
|
|
(pupa_console_setcursor): Likewise.
|
|
(pupa_getrtsecs): Use pushl instead of push.
|
|
|
|
* kern/i386/pc/init.c (pupa_machine_init): Use the scratch
|
|
memory instead of the stack for a mmap entry, because some
|
|
BIOSes may ignore the maximum size and overflow.
|
|
|
|
* conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
|
|
|
|
* genmk.rb (PModule#rule): Compile automatically generated
|
|
sources with module-specific CFLAGS as well as other sources.
|
|
|
|
2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* configure.ac: Check ld.
|
|
Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
|
|
respectively, before checking endianness and sizes.
|
|
|
|
* Makefile.in (LD): New variable.
|
|
|
|
2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* Makefile.in (BUILD_CC): CC -> BUILD_CC.
|
|
|
|
2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
|
|
|
|
* Changelog: New file.
|
|
|