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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux