From: Stephane Eranian <eranian@frankl.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] gnu-efi-2.0 initrd fix
Date: Wed, 18 Apr 2001 19:24:25 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005425@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 375 bytes --]
Hi All,
I discovered that there was a bug with the code dealing with initrd in the new
elilo released as part of gnu-efi-2.0. The ramdisk would get freed by the kernel
right at initialization time before ever being used because the EFI memory
type used was wrong. The attached patch fixes the problem.
Please try it out and let me know how it goes.
Thanks.
--
-Stephane
[-- Attachment #2: gnu-efi-2.0-initrd.diff --]
[-- Type: text/plain, Size: 501 bytes --]
diff -urN gnu-efi-2.0-old/elilo/alloc.c gnu-efi-2.0/elilo/alloc.c
--- gnu-efi-2.0-old/elilo/alloc.c Wed Apr 4 22:20:33 2001
+++ gnu-efi-2.0/elilo/alloc.c Wed Apr 18 12:16:57 2001
@@ -228,7 +228,7 @@
alloc_initrd(EFI_PHYSICAL_ADDRESS start_addr, UINTN pgcnt)
{
- if (alloc_pages(pgcnt, EfiLoaderCode, AllocateAddress, start_addr) == 0) return -1;
+ if (alloc_pages(pgcnt, EfiRuntimeServicesCode, AllocateAddress, start_addr) == 0) return -1;
initrd_addr = start_addr;
initrd_pgcnt = pgcnt;
reply other threads:[~2001-04-18 19:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590693005425@msgid-missing \
--to=eranian@frankl.hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox