+2005-10-01 Hollis Blanchard <hollis@penguinppc.org>
+
+ * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
+ `instance_to_package_args' to `instance_to_path_args'.
+
+ * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
+ `grub_ieee1275_chosen'.
+
+ * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
+ `grub_ieee1275_interpret'.
+
2005-09-25 Hollis Blanchard <hollis@penguinppc.org>
* util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
char *path, grub_size_t len,
grub_ssize_t *actual)
{
- struct instance_to_package_args
+ struct instance_to_path_args
{
struct grub_ieee1275_common_hdr common;
grub_ieee1275_ihandle_t ihandle;
grub_machine_init (void)
{
char args[256];
- grub_ieee1275_phandle_t chosen;
int actual;
extern char _start;
grub_ofdisk_init ();
/* Process commandline. */
- grub_ieee1275_finddevice ("/chosen", &chosen);
- if (grub_ieee1275_get_property (chosen, "bootargs", &args,
+ if (grub_ieee1275_get_property (grub_ieee1275_chosen, "bootargs", &args,
sizeof args, &actual) == 0
&& actual > 1)
{
grub_ssize_t actual;
int col;
+ /* The latest PowerMacs don't actually initialize the screen for us, so we
+ * use this trick to re-open the output device. */
+ grub_ieee1275_interpret ("output-device output", 0);
+
if (grub_ieee1275_get_property (grub_ieee1275_chosen, "stdout", data,
sizeof data, &actual)
|| actual != sizeof data)