2007-02-12 Hollis Blanchard <hollis@penguinppc.org>

* include/grub/ieee1275/ieee1275.h: Update copyright.
	* kern/powerpc/ieee1275/init.c: Likewise.
	* kern/powerpc/ieee1275/openfw.c: Likewise.

	* loader/powerpc/ieee1275/linux.c: Likewise.
	* include/grub/elfload.h: Likewise.
	* kern/elf.c: Likewise.
	(grub_elf32_load): Pass `base' and `size' parameters.  Update all
	callers.
	(grub_elf64_load): Likewise.
	(grub_elf32_load_segment): Move to a nested function.
	(grub_elf64_load_segment): Likewise.
This commit is contained in:
hollisb 2007-02-13 03:49:43 +00:00
parent dc94685009
commit 077d5fee0a
7 changed files with 142 additions and 87 deletions

View file

@ -1,7 +1,7 @@
/* linux.c - boot Linux */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
* Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -140,7 +140,7 @@ grub_linux_load32 (grub_elf_t elf)
*addr = (phdr->p_paddr & ~ELF32_LOADMASK) + linux_addr;
return 0;
}
return grub_elf32_load (elf, offset_phdr);
return grub_elf32_load (elf, offset_phdr, 0, 0);
}
static grub_err_t
@ -183,7 +183,7 @@ grub_linux_load64 (grub_elf_t elf)
*addr = (phdr->p_paddr & ~ELF64_LOADMASK) + linux_addr;
return 0;
}
return grub_elf64_load (elf, offset_phdr);
return grub_elf64_load (elf, offset_phdr, 0, 0);
}
void