dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone
f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Vladimir Serbinenko <phcoder@gmail.com>
f725e3
Date: Fri, 22 Jan 2016 14:10:30 +0100
f725e3
Subject: [PATCH] efiemu: Fix compilation failure
f725e3
f725e3
(cherry picked from commit b6a03dfd327489d53ee07c6d7d593b99c7b7cb62)
f725e3
f725e3
Resolves: rhbz#1288608
f725e3
---
f725e3
 grub-core/efiemu/mm.c | 6 +++---
f725e3
 1 file changed, 3 insertions(+), 3 deletions(-)
f725e3
f725e3
diff --git a/grub-core/efiemu/mm.c b/grub-core/efiemu/mm.c
f725e3
index 13af4ad0dd8..e606dbffc92 100644
f725e3
--- a/grub-core/efiemu/mm.c
f725e3
+++ b/grub-core/efiemu/mm.c
f725e3
@@ -410,8 +410,8 @@ fill_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
f725e3
 	return grub_efiemu_add_to_mmap (addr, size,
f725e3
 					GRUB_EFI_ACPI_MEMORY_NVS);
f725e3
 
f725e3
-      case GRUB_MEMORY_PRAM:
f725e3
-      case GRUB_MEMORY_PMEM:
f725e3
+      case GRUB_MEMORY_PERSISTENT:
f725e3
+      case GRUB_MEMORY_PERSISTENT_LEGACY:
f725e3
 	return grub_efiemu_add_to_mmap (addr, size,
f725e3
 					GRUB_EFI_PERSISTENT_MEMORY);
f725e3
       default:
f725e3
@@ -483,7 +483,7 @@ grub_efiemu_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
f725e3
 
f725e3
       case GRUB_EFI_PERSISTENT_MEMORY:
f725e3
 	hook (efiemu_mmap[i].physical_start, efiemu_mmap[i].num_pages * 4096,
f725e3
-	      GRUB_MEMORY_PMEM, hook_data);
f725e3
+	      GRUB_MEMORY_PERSISTENT, hook_data);
f725e3
 	break;
f725e3
 
f725e3
       }