* [Linux-ia64] gnu-efi-2.0 initrd fix
@ 2001-04-18 19:24 Stephane Eranian
0 siblings, 0 replies; only message in thread
From: Stephane Eranian @ 2001-04-18 19:24 UTC (permalink / raw)
To: linux-ia64
[-- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-18 19:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 19:24 [Linux-ia64] gnu-efi-2.0 initrd fix Stephane Eranian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox