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

@ -47,7 +47,7 @@ static grub_err_t
grub_linux_boot (void)
{
kernel_entry_t linuxmain;
grub_size_t actual;
grub_ssize_t actual;
/* Set the command line arguments. */
grub_ieee1275_set_property (grub_ieee1275_chosen, "bootargs", linux_args,
@ -196,7 +196,7 @@ grub_rescue_cmd_linux (int argc, char *argv[])
{
void *segment_addr = ((char *) entry) + offset;
if (grub_file_seek (file, phdr->p_offset) == -1)
if (grub_file_seek (file, phdr->p_offset) == (grub_off_t) -1)
{
grub_error (GRUB_ERR_BAD_OS, "Invalid offset in program header");
goto fail;