aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-16 15:15:54 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-17 18:29:16 +0100
commit8f470e7bfe75f6401f6c5432988c620b863ad274 (patch)
tree39b264e5f60ca44c906fcd0f3065b2fdc3581d05 /com32/include
parent6252212849d945450310248b656dfb6f13f5de48 (diff)
downloadsyslinux-8f470e7bfe75f6401f6c5432988c620b863ad274.tar.gz
syslinux-8f470e7bfe75f6401f6c5432988c620b863ad274.tar.xz
syslinux-8f470e7bfe75f6401f6c5432988c620b863ad274.zip
movebits: Add syslinux_memmap_find()
Refactor the code for finding a suitable location for kernel protected-mode and real-mode data. It's complicated enough that it deserves to be separated into its own function. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/movebits.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/include/syslinux/movebits.h b/com32/include/syslinux/movebits.h
index 5023accb..feeab3aa 100644
--- a/com32/include/syslinux/movebits.h
+++ b/com32/include/syslinux/movebits.h
@@ -3,6 +3,7 @@
#include <inttypes.h>
#include <stdio.h>
+#include <stdbool.h>
typedef uint32_t addr_t;
@@ -81,6 +82,11 @@ struct syslinux_memmap *syslinux_dup_memmap(struct syslinux_memmap *list);
int syslinux_memmap_find_type(struct syslinux_memmap *list,
enum syslinux_memmap_types type,
addr_t * start, addr_t * len, addr_t align);
+int syslinux_memmap_find(struct syslinux_memmap *mmap,
+ addr_t *base, size_t size,
+ bool relocate, size_t align,
+ addr_t start_min, addr_t start_max,
+ addr_t end_min, addr_t end_max);
/* Debugging functions */
#ifdef DEBUG