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