2014-05-05 17:17:26 +00:00
|
|
|
From 710c688efe8b10b3e6b889158d80d11cca6655ec Mon Sep 17 00:00:00 2001
|
2014-03-13 18:02:22 +00:00
|
|
|
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
Date: Fri, 28 Feb 2014 09:50:47 +0100
|
2014-05-05 17:17:26 +00:00
|
|
|
Subject: [PATCH 062/103] * grub-core/mmap/i386/uppermem.c (lower_hook)
|
2014-03-13 18:02:22 +00:00
|
|
|
[COREBOOT]: Ignore low tables for low memory calculations.
|
|
|
|
|
|
|
|
---
|
|
|
|
ChangeLog | 5 +++++
|
|
|
|
grub-core/mmap/i386/uppermem.c | 6 +++++-
|
|
|
|
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/ChangeLog b/ChangeLog
|
2014-05-05 17:17:26 +00:00
|
|
|
index 8087595..76ae629 100644
|
2014-03-13 18:02:22 +00:00
|
|
|
--- a/ChangeLog
|
|
|
|
+++ b/ChangeLog
|
|
|
|
@@ -1,5 +1,10 @@
|
|
|
|
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
|
|
|
|
+ * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
|
|
|
|
+ tables for low memory calculations.
|
|
|
|
+
|
|
|
|
+2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
|
+
|
|
|
|
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
|
|
|
|
location to 640K.
|
|
|
|
|
|
|
|
diff --git a/grub-core/mmap/i386/uppermem.c b/grub-core/mmap/i386/uppermem.c
|
|
|
|
index bd8b429..a6be989 100644
|
|
|
|
--- a/grub-core/mmap/i386/uppermem.c
|
|
|
|
+++ b/grub-core/mmap/i386/uppermem.c
|
|
|
|
@@ -31,8 +31,12 @@ lower_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
|
|
|
|
|
|
|
|
if (type != GRUB_MEMORY_AVAILABLE)
|
|
|
|
return 0;
|
|
|
|
+#ifdef GRUB_MACHINE_COREBOOT
|
|
|
|
+ if (addr <= 0x1000)
|
|
|
|
+#else
|
|
|
|
if (addr == 0)
|
|
|
|
- *lower = size;
|
|
|
|
+#endif
|
|
|
|
+ *lower = size + addr;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2014-05-05 17:17:26 +00:00
|
|
|
1.9.0
|
2014-03-13 18:02:22 +00:00
|
|
|
|