2005-01-30 Marco Gerards <metgerards@student.han.nl>

* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
	function.
	* commands/ieee1275/halt.c: New file.
	* commands/ieee1275/reboot.c: Likewise.
	* commands/ieee1275/suspend.c (grub_cmd_suspend): Use
	`__attribute__ ((unused))'.  Some GCS related fixed.
	(grub_suspend_init) [GRUB_UTIL]: Function removed.
	(grub_suspend_fini): Likewise.
	* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
	and `halt.mod'.
	(reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
	(halt_mod_CFLAGS): New variables.
	* include/grub/powerpc/ieee1275/ieee1275.h
	(grub_ieee1275_interpret): New prototype.
This commit is contained in:
marco_g 2005-01-31 21:28:34 +00:00
parent 1ab09cc70f
commit 0f79cdc1db
7 changed files with 145 additions and 23 deletions

View file

@ -331,6 +331,25 @@ grub_ieee1275_parent (grub_ieee1275_phandle_t node,
return 0;
}
int
grub_ieee1275_interpret (const char *command, int *catch)
{
struct enter_args {
struct grub_ieee1275_common_hdr common;
const char *command;
int catch;
} args;
INIT_IEEE1275_COMMON (&args.common, "interpret", 1, 1);
args.command = command;
if (IEEE1275_CALL_ENTRY_FN (&args) == -1)
return -1;
if (catch)
*catch = args.catch;
return 0;
}
int
grub_ieee1275_enter (void)
{