[PATCH] i386-efi fix /proc/iomem type for kexec-tools

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Date: Sunday, April 22, 2007 - 10:42 am

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;

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] i386-efi fix /proc/iomem type for kexec-tools, Thomas Meyer, (Sun Apr 22, 10:42 am)