]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
19 years ago2005-12-25 Marco Gerards <marco@gnu.org>
marco_g [Sun, 25 Dec 2005 17:19:24 +0000 (17:19 +0000)] 
2005-12-25  Marco Gerards  <marco@gnu.org>

* kern/env.c (grub_env_set): Rewritten the error handling code.

19 years ago2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 25 Dec 2005 17:04:32 +0000 (17:04 +0000)] 
2005-12-25  Yoshinori K. Okuji  <okuji@enbug.org>

        * geninit.sh: Made more robust, and more portable.

19 years agoAdd an extra newline.
okuji [Sun, 25 Dec 2005 16:01:29 +0000 (16:01 +0000)] 
Add an extra newline.

19 years ago2005-12-25 Marco Gerards <marco@gnu.org>
marco_g [Sun, 25 Dec 2005 15:59:50 +0000 (15:59 +0000)] 
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.

19 years ago2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 25 Dec 2005 15:22:55 +0000 (15:22 +0000)] 
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.

19 years agoUpdate the user-visible changes.
okuji [Sun, 25 Dec 2005 14:45:14 +0000 (14:45 +0000)] 
Update the user-visible changes.

19 years ago2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Fri, 23 Dec 2005 22:59:12 +0000 (22:59 +0000)] 
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.

19 years ago2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Sat, 10 Dec 2005 05:24:59 +0000 (05:24 +0000)] 
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.

19 years ago2005-12-03 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sat, 3 Dec 2005 17:54:55 +0000 (17:54 +0000)] 
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.

19 years ago2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sat, 3 Dec 2005 16:18:27 +0000 (16:18 +0000)] 
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.

19 years ago2005-11-27 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sun, 27 Nov 2005 12:21:12 +0000 (12:21 +0000)] 
2005-11-27  Marco Gerards  <mgerards@xs4all.nl>

* include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
((unused))' to silence gcc warning.

19 years ago2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Sat, 26 Nov 2005 23:40:24 +0000 (23:40 +0000)] 
2005-11-26  Hollis Blanchard  <hollis@penguinppc.org>

* configure.ac: Correct `AC_PROG_YACC' test.

19 years ago2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 23 Nov 2005 05:25:38 +0000 (05:25 +0000)] 
2005-11-22  Hollis Blanchard  <hollis@penguinppc.org>

* util/powerpc/ieee1275/grub-install.in: Run the mount point
check before installing files.

19 years ago2005-11-22 Mike Small <smallm@panix.com>
hollisb [Wed, 23 Nov 2005 04:25:16 +0000 (04:25 +0000)] 
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.

* 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.

19 years ago2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 23 Nov 2005 03:36:25 +0000 (03:36 +0000)] 
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'.

19 years ago2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 23 Nov 2005 02:44:34 +0000 (02:44 +0000)] 
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 *'.

19 years ago2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 23 Nov 2005 02:23:08 +0000 (02:23 +0000)] 
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.rmk (grub_modules_init.lst): Use `find' instead of
`grep --include'.
(pkgdata_MODULES): Add test.mod.

19 years ago2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
marco_g [Fri, 18 Nov 2005 14:56:55 +0000 (14:56 +0000)] 
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.

19 years ago2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 18 Nov 2005 10:51:00 +0000 (10:51 +0000)] 
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>.

19 years ago2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
marco_g [Sun, 13 Nov 2005 21:37:16 +0000 (21:37 +0000)] 
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.

19 years ago2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
marco_g [Sun, 13 Nov 2005 19:45:12 +0000 (19:45 +0000)] 
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.

19 years ago2005-11-13 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sun, 13 Nov 2005 15:47:09 +0000 (15:47 +0000)] 
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.

19 years ago2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Thu, 10 Nov 2005 01:57:52 +0000 (01:57 +0000)] 
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.

19 years ago2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 9 Nov 2005 06:07:54 +0000 (06:07 +0000)] 
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.

19 years ago2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Mon, 7 Nov 2005 22:28:57 +0000 (22:28 +0000)] 
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.

19 years ago2005-11-07 Marco Gerards <mgerards@xs4all.nl>
marco_g [Mon, 7 Nov 2005 20:27:46 +0000 (20:27 +0000)] 
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.

19 years ago2005-11-06 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sun, 6 Nov 2005 22:19:59 +0000 (22:19 +0000)] 
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'.

19 years ago2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 4 Nov 2005 04:50:14 +0000 (04:50 +0000)] 
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.

19 years ago2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 4 Nov 2005 03:18:12 +0000 (03:18 +0000)] 
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'.

19 years ago2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Fri, 4 Nov 2005 03:00:59 +0000 (03:00 +0000)] 
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.

19 years ago2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Thu, 3 Nov 2005 05:05:05 +0000 (05:05 +0000)] 
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'.

19 years ago2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 28 Oct 2005 03:14:33 +0000 (03:14 +0000)] 
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.

19 years ago2005-10-24 Marco Gerards <mgerards@xs4all.nl>
marco_g [Mon, 24 Oct 2005 10:23:46 +0000 (10:23 +0000)] 
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.

19 years ago2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sun, 23 Oct 2005 21:38:12 +0000 (21:38 +0000)] 
2005-10-23  Vincent Pelletier  <subdino2004@yahoo.fr>

        * normal/sparc64/setjmp.S: New file.

19 years ago2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sun, 23 Oct 2005 21:01:19 +0000 (21:01 +0000)] 
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.

19 years ago2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sun, 23 Oct 2005 19:28:28 +0000 (19:28 +0000)] 
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.

19 years ago2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 19 Oct 2005 23:17:09 +0000 (23:17 +0000)] 
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.

19 years ago2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
okuji [Wed, 19 Oct 2005 23:16:03 +0000 (23:16 +0000)] 
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.

19 years agoRegenerated conf/powerpc-ieee1275.mk
marco_g [Sun, 16 Oct 2005 11:44:26 +0000 (11:44 +0000)] 
Regenerated conf/powerpc-ieee1275.mk

19 years ago2005-10-15 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sat, 15 Oct 2005 21:33:38 +0000 (21:33 +0000)] 
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.

19 years ago2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 15 Oct 2005 18:10:37 +0000 (18:10 +0000)] 
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.

19 years ago2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 15 Oct 2005 17:28:36 +0000 (17:28 +0000)] 
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.

19 years agoUpdated.
okuji [Sat, 15 Oct 2005 12:22:37 +0000 (12:22 +0000)] 
Updated.

19 years ago2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 15 Oct 2005 09:22:32 +0000 (09:22 +0000)] 
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>.

19 years ago2005-10-11 Marco Gerards <mgerards@xs4all.nl>
marco_g [Tue, 11 Oct 2005 16:42:32 +0000 (16:42 +0000)] 
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.

19 years ago2005-10-09 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sun, 9 Oct 2005 13:03:53 +0000 (13:03 +0000)] 
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.

19 years agoFix typo in last commit.
marco_g [Sat, 8 Oct 2005 11:24:48 +0000 (11:24 +0000)] 
Fix typo in last commit.

19 years ago2005-10-07 Marco Gerards <mgerards@xs4all.nl>
marco_g [Fri, 7 Oct 2005 19:25:46 +0000 (19:25 +0000)] 
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.

19 years ago2005-10-01 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sat, 1 Oct 2005 20:41:53 +0000 (20:41 +0000)] 
2005-10-01  Marco Gerards  <mgerards@xs4all.nl>

* fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.

19 years ago2005-10-01 Marco Gerards <mgerards@xs4all.nl>
marco_g [Sat, 1 Oct 2005 19:49:55 +0000 (19:49 +0000)] 
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'.

19 years ago2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 28 Sep 2005 23:04:26 +0000 (23:04 +0000)] 
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.

19 years ago2005-09-28 Marco Gerards <metgerards@student.han.nl>
marco_g [Wed, 28 Sep 2005 10:07:22 +0000 (10:07 +0000)] 
2005-09-28  Marco Gerards  <metgerards@student.han.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.

19 years ago2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sun, 18 Sep 2005 21:04:41 +0000 (21:04 +0000)] 
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.

19 years agoAdd support for terminfo and serial.
okuji [Sat, 3 Sep 2005 16:55:38 +0000 (16:55 +0000)] 
Add support for terminfo and serial.

19 years ago2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 3 Sep 2005 16:54:27 +0000 (16:54 +0000)] 
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.

19 years ago2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 31 Aug 2005 16:51:15 +0000 (16:51 +0000)] 
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.

19 years ago2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 31 Aug 2005 01:26:34 +0000 (01:26 +0000)] 
2005-08-30  Hollis Blanchard  <hollis@penguinppc.org>

* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
`unused parameter' warning.

19 years ago2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 31 Aug 2005 01:02:05 +0000 (01:02 +0000)] 
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.

19 years ago2005-08-28 Marco Gerards <metgerards@student.han.nl>
marco_g [Sun, 28 Aug 2005 17:01:16 +0000 (17:01 +0000)] 
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.

19 years ago2005-08-27 Marco Gerards <metgerards@student.han.nl>
marco_g [Sat, 27 Aug 2005 18:51:15 +0000 (18:51 +0000)] 
2005-08-27  Marco Gerards  <metgerards@student.han.nl>

* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
`gzio.mod' instead of `io.mod').

19 years ago2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 22 Aug 2005 17:28:59 +0000 (17:28 +0000)] 
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.

19 years ago2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sun, 21 Aug 2005 19:33:14 +0000 (19:33 +0000)] 
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.

19 years ago2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
subdino [Sun, 21 Aug 2005 18:42:55 +0000 (18:42 +0000)] 
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.

19 years ago2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 21 Aug 2005 07:22:51 +0000 (07:22 +0000)] 
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.

19 years ago2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 20 Aug 2005 08:25:51 +0000 (08:25 +0000)] 
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.

19 years ago2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 20 Aug 2005 07:49:02 +0000 (07:49 +0000)] 
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.

19 years ago2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 20 Aug 2005 05:26:51 +0000 (05:26 +0000)] 
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.

19 years ago2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 19 Aug 2005 00:32:01 +0000 (00:32 +0000)] 
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.

19 years agoForgot to commit this again.
okuji [Thu, 18 Aug 2005 03:15:21 +0000 (03:15 +0000)] 
Forgot to commit this again.

19 years ago2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Thu, 18 Aug 2005 03:14:39 +0000 (03:14 +0000)] 
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.

19 years agoUpdate source to follow GCS more precisely.
chaac [Tue, 16 Aug 2005 18:34:17 +0000 (18:34 +0000)] 
Update source to follow GCS more precisely.

19 years agoAdded first version of the VBE terminal code.
chaac [Mon, 15 Aug 2005 21:25:41 +0000 (21:25 +0000)] 
Added first version of the VBE terminal code.

19 years agoRemove an invalid entry.
okuji [Sun, 14 Aug 2005 19:37:26 +0000 (19:37 +0000)] 
Remove an invalid entry.

19 years ago2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 14 Aug 2005 19:36:55 +0000 (19:36 +0000)] 
2005-08-14  Yoshinori K. Okuji  <okuji@enbug.org>

        * normal/menu.c (run_menu_entry):

        * 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.

20 years agoAdded forgotten include/grub/i386/pc/vbe.h to DISTLIST.
chaac [Sun, 14 Aug 2005 11:04:12 +0000 (11:04 +0000)] 
Added forgotten include/grub/i386/pc/vbe.h to DISTLIST.

20 years ago2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 13 Aug 2005 18:44:14 +0000 (18:44 +0000)] 
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.

20 years agoForgot to add this file.
okuji [Fri, 12 Aug 2005 19:53:59 +0000 (19:53 +0000)] 
Forgot to add this file.

20 years ago2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 12 Aug 2005 19:53:33 +0000 (19:53 +0000)] 
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.

20 years agoAdded support for VESA Bios Extension to i386 kernel.
chaac [Tue, 9 Aug 2005 14:39:50 +0000 (14:39 +0000)] 
Added support for VESA Bios Extension to i386 kernel.

20 years ago2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 9 Aug 2005 03:36:50 +0000 (03:36 +0000)] 
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.

20 years ago2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 9 Aug 2005 03:25:40 +0000 (03:25 +0000)] 
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().

20 years ago2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Tue, 9 Aug 2005 03:15:35 +0000 (03:15 +0000)] 
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.

20 years agoThere were two Vladimir Serbinenko.
okuji [Mon, 8 Aug 2005 23:33:47 +0000 (23:33 +0000)] 
There were two Vladimir Serbinenko.

20 years ago2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 8 Aug 2005 23:15:21 +0000 (23:15 +0000)] 
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.

20 years ago2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 7 Aug 2005 17:12:52 +0000 (17:12 +0000)] 
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".

20 years ago2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 7 Aug 2005 14:59:56 +0000 (14:59 +0000)] 
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.

20 years ago2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 7 Aug 2005 14:14:40 +0000 (14:14 +0000)] 
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.

20 years ago2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 6 Aug 2005 15:50:07 +0000 (15:50 +0000)] 
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.

20 years ago2005-08-04 Marco Gerards <metgerards@student.han.nl>
marco_g [Thu, 4 Aug 2005 18:10:51 +0000 (18:10 +0000)] 
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/sparc64/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.

20 years ago2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
hollisb [Wed, 3 Aug 2005 22:53:51 +0000 (22:53 +0000)] 
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'.

20 years ago2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 1 Aug 2005 20:38:46 +0000 (20:38 +0000)] 
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.

20 years ago2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 31 Jul 2005 16:12:29 +0000 (16:12 +0000)] 
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.

20 years ago2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Tue, 26 Jul 2005 20:05:47 +0000 (20:05 +0000)] 
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.

20 years agoSorry. I forgot to commit ChangeLog.
okuji [Tue, 26 Jul 2005 20:02:40 +0000 (20:02 +0000)] 
Sorry. I forgot to commit ChangeLog.

20 years ago2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 24 Jul 2005 18:16:26 +0000 (18:16 +0000)] 
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.

20 years ago2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 20 Jul 2005 20:30:46 +0000 (20:30 +0000)] 
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.

20 years ago2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Tue, 19 Jul 2005 22:30:36 +0000 (22:30 +0000)] 
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.

20 years ago2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 18 Jul 2005 22:21:41 +0000 (22:21 +0000)] 
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.

20 years ago2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Mon, 18 Jul 2005 20:30:37 +0000 (20:30 +0000)] 
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.

20 years ago2005-07-17 Yoshinori Okuji <okuji@enbug.org>
okuji [Sun, 17 Jul 2005 20:26:07 +0000 (20:26 +0000)] 
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.