dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0071-efiemu-Handle-persistent-RAM-and-unknown-possible-fu.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Robert Elliott <elliott@hpe.com>
d9d99f
Date: Fri, 22 Jan 2016 13:32:30 +0100
d9d99f
Subject: [PATCH] efiemu: Handle persistent RAM and unknown possible future
d9d99f
 additions.
d9d99f
d9d99f
(cherry picked from commit ae3b83a4d4df75a01198a2fed7542391e7c449e0)
d9d99f
d9d99f
Resolves: rhbz#1288608
d9d99f
---
d9d99f
 grub-core/efiemu/mm.c | 4 ++--
d9d99f
 1 file changed, 2 insertions(+), 2 deletions(-)
d9d99f
d9d99f
diff --git a/grub-core/efiemu/mm.c b/grub-core/efiemu/mm.c
d9d99f
index 52a032f7b2e..92e7df7e501 100644
d9d99f
--- a/grub-core/efiemu/mm.c
d9d99f
+++ b/grub-core/efiemu/mm.c
d9d99f
@@ -410,8 +410,8 @@ fill_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
d9d99f
 	return grub_efiemu_add_to_mmap (addr, size,
d9d99f
 					GRUB_EFI_ACPI_MEMORY_NVS);
d9d99f
 
d9d99f
-      case GRUB_MEMORY_PERSISTENT:
d9d99f
-      case GRUB_MEMORY_PERSISTENT_LEGACY:
d9d99f
+      case GRUB_MEMORY_PRAM:
d9d99f
+      case GRUB_MEMORY_PMEM:
d9d99f
 	return grub_efiemu_add_to_mmap (addr, size,
d9d99f
 					GRUB_EFI_PERSISTENT_MEMORY);
d9d99f
       default: