aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-16 22:16:11 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-17 18:29:16 +0100
commitba638fd9bf72b0c786c88909014136cfa641a147 (patch)
tree0d4b018660a4010fc13a3f320e8b701ea78621c6 /com32/lib
parenta1331f8d04dbeb06d6f6c4c1fc736a50b0c0299a (diff)
downloadsyslinux-ba638fd9bf72b0c786c88909014136cfa641a147.tar.gz
syslinux-ba638fd9bf72b0c786c88909014136cfa641a147.tar.xz
syslinux-ba638fd9bf72b0c786c88909014136cfa641a147.zip
movebits: Add SMT_TERMINAL - a last resort region type
Some memory regions are usable, but only as a last resort just before we hand over control to a kernel image. Add the necessary movebits infrastructure to use these regions when all other options have been exhausted. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/syslinux/movebits.c2
-rw-r--r--com32/lib/syslinux/zonelist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/syslinux/movebits.c b/com32/lib/syslinux/movebits.c
index 7a05f3c1..8ffdc630 100644
--- a/com32/lib/syslinux/movebits.c
+++ b/com32/lib/syslinux/movebits.c
@@ -160,7 +160,7 @@ static const struct syslinux_memmap *is_free_zone(const struct syslinux_memmap
if (list->start <= start) {
if (llast >= last) {
/* Chunk has a single, well-defined type */
- if (list->type == SMT_FREE) {
+ if (list->type == SMT_FREE || list->type == SMT_TERMINAL) {
dprintf("F: 0x%08x bytes at 0x%08x\n",
list->next->start, list->start);
return list; /* It's free */
diff --git a/com32/lib/syslinux/zonelist.c b/com32/lib/syslinux/zonelist.c
index 7cd83642..a6de1d85 100644
--- a/com32/lib/syslinux/zonelist.c
+++ b/com32/lib/syslinux/zonelist.c
@@ -300,7 +300,7 @@ int syslinux_memmap_find(struct syslinux_memmap *mmap,
return 0;
type = syslinux_memmap_type(mmap, *base, size);
- if (type == SMT_FREE)
+ if (type == SMT_FREE || type == SMT_TERMINAL)
return 0;
if (!relocate) {