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