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