All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386-efi fix /proc/iomem type for kexec-tools
@ 2007-04-22 14:42 Thomas Meyer
  0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2007-04-22 14:42 UTC (permalink / raw)
  To: Linux Kernel Mailing List

The kexec-tools check for "System RAM".

diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c
index 8f9c624..307156d 100644
--- a/arch/i386/kernel/efi.c
+++ b/arch/i386/kernel/efi.c
@@ -638,8 +638,13 @@ efi_initialize_iomem_resources(struct resource
*code_resource,
             res->name = "Runtime Service Data";
             break;
         case EFI_CONVENTIONAL_MEMORY:
-            res->name = "Conventional Memory";
-            break;
+                        if (md->attribute & EFI_MEMORY_WP) {
+                                res->name = "System ROM";
+                                res->flags |= IORESOURCE_READONLY;
+                        } else {
+                                res->name = "System RAM";
+                        }
+                        break;
         case EFI_UNUSABLE_MEMORY:
             res->name = "Unusable Memory";
             break;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-22 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 14:42 [PATCH] i386-efi fix /proc/iomem type for kexec-tools Thomas Meyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.