Skip to contentSkip to conversation

i386-efi fix /proc/iomem type for kexec-tools

PATCH New Thomas Meyer 1 participant 1 message Apr 22, 2007 EFI

lore
Share & tools
lore
#0 lore raw

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

The kexec-tools check for "System RAM".

arch/i386/kernel/efi.c +0 -0
index 8f9c624..307156d 100644
@@ -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;