Blame SOURCES/0063-grub-core-mmap-i386-uppermem.c-lower_hook-COREBOOT-I.patch
|
|
6b3c76 |
From 623002084c7550214ae9740547a557ffb31c3658 Mon Sep 17 00:00:00 2001
|
|
|
a85e8e |
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a85e8e |
Date: Fri, 28 Feb 2014 09:50:47 +0100
|
|
|
6b3c76 |
Subject: [PATCH 063/261] * grub-core/mmap/i386/uppermem.c (lower_hook)
|
|
|
6b3c76 |
[COREBOOT]: Ignore low tables for low memory calculations.
|
|
|
a85e8e |
|
|
|
a85e8e |
---
|
|
|
d41074 |
ChangeLog | 5 +++++
|
|
|
6b3c76 |
grub-core/mmap/i386/uppermem.c | 6 +++++-
|
|
|
a85e8e |
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
a85e8e |
|
|
|
6b3c76 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
6b3c76 |
index bbaed2691..6ed6cf4ec 100644
|
|
|
6b3c76 |
--- a/ChangeLog
|
|
|
6b3c76 |
+++ b/ChangeLog
|
|
|
6b3c76 |
@@ -1,5 +1,10 @@
|
|
|
6b3c76 |
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
6b3c76 |
|
|
|
6b3c76 |
+ * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
|
|
|
6b3c76 |
+ tables for low memory calculations.
|
|
|
6b3c76 |
+
|
|
|
6b3c76 |
+2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
6b3c76 |
+
|
|
|
6b3c76 |
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
|
|
|
6b3c76 |
location to 640K.
|
|
|
6b3c76 |
|
|
|
a85e8e |
diff --git a/grub-core/mmap/i386/uppermem.c b/grub-core/mmap/i386/uppermem.c
|
|
|
6b3c76 |
index bd8b429c4..a6be9896d 100644
|
|
|
a85e8e |
--- a/grub-core/mmap/i386/uppermem.c
|
|
|
a85e8e |
+++ b/grub-core/mmap/i386/uppermem.c
|
|
|
a85e8e |
@@ -31,8 +31,12 @@ lower_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
|
|
|
a85e8e |
|
|
|
a85e8e |
if (type != GRUB_MEMORY_AVAILABLE)
|
|
|
a85e8e |
return 0;
|
|
|
a85e8e |
+#ifdef GRUB_MACHINE_COREBOOT
|
|
|
a85e8e |
+ if (addr <= 0x1000)
|
|
|
a85e8e |
+#else
|
|
|
a85e8e |
if (addr == 0)
|
|
|
a85e8e |
- *lower = size;
|
|
|
a85e8e |
+#endif
|
|
|
a85e8e |
+ *lower = size + addr;
|
|
|
a85e8e |
return 0;
|
|
|
a85e8e |
}
|
|
|
a85e8e |
|
|
|
6b3c76 |
--
|
|
|
6b3c76 |
2.13.5
|
|
|
6b3c76 |
|