2005-09-25 Hollis Blanchard <hollis@penguinppc.org>

* include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
	(__cmpdi): Likewise.

	* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
	`flags' to `grub_ieee1275_next_property'.  Change `pathlen' to type
	`grub_ssize_t'.

	* kern/powerpc/ieee1275/cmain.c: include grub/misc.h.

	* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
	to type `grub_ssize_t'.
	(grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
This commit is contained in:
hollisb 2006-09-26 03:49:41 +00:00
parent 7f9a85316a
commit 663b72f0fa
5 changed files with 22 additions and 5 deletions

View file

@ -21,6 +21,7 @@
#include <alloca.h>
#include <stdint.h>
#include <grub/kernel.h>
#include <grub/misc.h>
#include <grub/machine/kernel.h>
#include <grub/ieee1275/ieee1275.h>

View file

@ -100,11 +100,10 @@ grub_devalias_iterate (int (*hook) (struct grub_ieee1275_devalias *alias))
aliasname[0] = '\0';
/* XXX: Are the while conditions correct? */
while (grub_ieee1275_next_property (devalias, aliasname, aliasname, &actual)
|| actual)
while (grub_ieee1275_next_property (devalias, aliasname, aliasname, 0))
{
grub_ieee1275_phandle_t dev;
grub_size_t pathlen;
grub_ssize_t pathlen;
char *devpath;
/* XXX: This should be large enough for any possible case. */
char devtype[64];