release 3.8
https://sourceforge.net/projects/elilo/files/elilo/elilo-3.8/
This commit is contained in:
parent
97b2a7df25
commit
34d8003a54
13 changed files with 587 additions and 135504 deletions
4
initrd.c
4
initrd.c
|
@ -41,7 +41,7 @@ INTN
|
|||
load_file(CHAR16 *filename, memdesc_t *image)
|
||||
{
|
||||
EFI_STATUS status;
|
||||
VOID *start_addr = image->start_addr;
|
||||
VOID *start_addr = NULL;
|
||||
UINTN pgcnt;
|
||||
UINT64 size = 0;
|
||||
fops_fd_t fd;
|
||||
|
@ -71,7 +71,7 @@ load_file(CHAR16 *filename, memdesc_t *image)
|
|||
/* round up to get required number of pages (4KB) */
|
||||
image->pgcnt = pgcnt = EFI_SIZE_TO_PAGES(image->size);
|
||||
|
||||
start_addr = alloc_pages(pgcnt, EfiLoaderData, start_addr ? AllocateAddress : AllocateAnyPages, start_addr);
|
||||
start_addr = alloc_pages(pgcnt, EfiLoaderData, start_addr ? AllocateAddress : AllocateAnyPages, 0 );
|
||||
if (start_addr == NULL) {
|
||||
ERR_PRT((L"Failed to allocate %d pages for %s image", pgcnt,
|
||||
filename));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue