1. 07 Aug, 2005 2 commits
    • okuji's avatar
      2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> · 0e143073
      okuji authored
              * 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.
      0e143073
    • okuji's avatar
      2005-08-07 Yoshinori K. Okuji <okuji@enbug.org> · efd6e6d5
      okuji authored
              * 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.
      efd6e6d5
  2. 06 Aug, 2005 1 commit
    • okuji's avatar
      2005-08-06 Yoshinori K. Okuji <okuji@enbug.org> · 8ceafda2
      okuji authored
              * 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.
      8ceafda2
  3. 04 Aug, 2005 1 commit
    • marco_g's avatar
      2005-08-04 Marco Gerards <metgerards@student.han.nl> · 267f6cd9
      marco_g authored
      	* 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.
      267f6cd9
  4. 03 Aug, 2005 1 commit
    • hollisb's avatar
      2005-08-03 Hollis Blanchard <hollis@penguinppc.org> · 3be7266d
      hollisb authored
      	* 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'.
      3be7266d
  5. 01 Aug, 2005 1 commit
    • okuji's avatar
      2005-08-01 Yoshinori K. Okuji <okuji@enbug.org> · 8b5f3938
      okuji authored
      	* 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.
      8b5f3938
  6. 31 Jul, 2005 1 commit
    • okuji's avatar
      2005-07-31 Yoshinori K. Okuji <okuji@enbug.org> · ea409713
      okuji authored
      	* 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.
      ea409713
  7. 26 Jul, 2005 2 commits
  8. 24 Jul, 2005 1 commit
    • okuji's avatar
      2005-07-24 Yoshinori K. Okuji <okuji@enbug.org> · 075a1650
      okuji authored
      	* 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.
      075a1650
  9. 20 Jul, 2005 1 commit
    • okuji's avatar
      2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> · 5f968e1e
      okuji authored
      	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.
      5f968e1e
  10. 19 Jul, 2005 1 commit
  11. 18 Jul, 2005 2 commits
    • okuji's avatar
      2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> · b28b81b2
      okuji authored
      	* partmap/apple.c (apple_partition_map_iterate): Check if POS
      	equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
      	valid.
      b28b81b2
    • okuji's avatar
      2005-07-18 Yoshinori K. Okuji <okuji@enbug.org> · 5f3607e0
      okuji authored
      	* 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.
      5f3607e0
  12. 17 Jul, 2005 3 commits
    • okuji's avatar
      2005-07-17 Yoshinori Okuji <okuji@enbug.org> · 502c87e8
      okuji authored
      	* 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.
      502c87e8
    • okuji's avatar
      2005-07-17 Yoshinori Okuji <okuji@enbug.org> · f806d18e
      okuji authored
      	* 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.
      f806d18e
    • okuji's avatar
      2005-07-17 Yoshinori Okuji <okuji@enbug.org> · e293232b
      okuji authored
      	* 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.
      e293232b
  13. 16 Jul, 2005 2 commits
    • okuji's avatar
      2005-07-17 Yoshinori Okuji <okuji@enbug.org> · ebedfd00
      okuji authored
      	* 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.
      ebedfd00
    • okuji's avatar
      2005-07-16 Yoshinori K. Okuji <okuji@enbug.org> · 654fc59f
      okuji authored
      	* 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.
      654fc59f
  14. 12 Jul, 2005 2 commits
    • hollisb's avatar
      2005-07-12 Hollis Blanchard <hollis@penguinppc.org> · 09f9923f
      hollisb authored
      	* 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.
      09f9923f
    • okuji's avatar
      2005-07-12 Yoshinori K. Okuji <okuji@enbug.org> · 7ef504d8
      okuji authored
      	* kern/mm.c: Added much documentation.
      	(GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
      	8, set to 5 instead of 8.
      7ef504d8
  15. 10 Jul, 2005 2 commits
    • okuji's avatar
      2005-07-10 Yoshinori Okuji <okuji@enbug.org> · e0f050c2
      okuji authored
      	* 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.
      e0f050c2
    • okuji's avatar
      2005-07-10 Yoshinori Okuji <okuji@enbug.org> · 7224189a
      okuji authored
      	* commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
      	instead of PATH is NULL.
      7224189a
  16. 09 Jul, 2005 2 commits
    • subdino's avatar
      2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr> · 68c864eb
      subdino authored
      	* 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.
      68c864eb
    • okuji's avatar
      2005-07-09 Yoshinori Okuji <okuji@enbug.org> · e6f3e614
      okuji authored
      	* aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
      	  reverse.
      e6f3e614
  17. 04 Jul, 2005 1 commit
  18. 03 Jul, 2005 1 commit
    • okuji's avatar
      2005-07-03 Yoshinori Okuji <okuji@enbug.org> · 39c9d41d
      okuji authored
      	* 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.
      39c9d41d
  19. 30 Jun, 2005 1 commit
    • marco_g's avatar
      · 121c1d83
      marco_g authored
      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.
      121c1d83
  20. 23 Jun, 2005 2 commits
  21. 21 Jun, 2005 2 commits
    • hollisb's avatar
      2005-05-08 Hollis Blanchard <hollis@penguinppc.org> · 89371b20
      hollisb authored
      	* boot/powerpc/ieee1275/cmain.c (cmain): Initialize
      	`grub_ieee1275_chosen'.
      89371b20
    • hollisb's avatar
      2005-05-08 Hollis Blanchard <hollis@penguinppc.org> · 168d6e58
      hollisb authored
      	* 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'.
      168d6e58
  22. 17 May, 2005 1 commit
  23. 09 May, 2005 1 commit
    • hollisb's avatar
      2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr> · 708b345f
      hollisb authored
      	* 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.
      708b345f
  24. 01 May, 2005 1 commit
    • hollisb's avatar
      2005-04-30 Hollis Blanchard <hollis@penguinppc.org> · f4c5e67c
      hollisb authored
      	* 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.
      f4c5e67c
  25. 22 Apr, 2005 1 commit
    • hollisb's avatar
      2005-04-21 Hollis Blanchard <hollis@penguinppc.org> · ed16607e
      hollisb authored
      	* 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.
      ed16607e
  26. 30 Mar, 2005 1 commit
  27. 26 Mar, 2005 1 commit
    • hollisb's avatar
      2005-03-26 Hollis Blanchard <hollis@penguinppc.org> · a5ce3a4a
      hollisb authored
      	* 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.
      a5ce3a4a
  28. 19 Mar, 2005 1 commit
    • okuji's avatar
      2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> · 0058f771
      okuji authored
        * 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.
      0058f771
  29. 18 Mar, 2005 1 commit
    • okuji's avatar
      2005-03-18 Yoshinori K. Okuji <okuji@enbug.org> · 46b3b8a5
      okuji authored
        * 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>.
      46b3b8a5