summaryrefslogtreecommitdiff
path: root/com32/include/syslinux
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-07-11 13:12:33 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-07-20 10:20:18 +0100
commitb93e6bc9bdafc9fa2dc8709dc97fa5e598c7e94d (patch)
tree27def756e27efd3f398f53d97ecfe2f80fb31ba8 /com32/include/syslinux
parentc2d3f65790c15efed66e6ba3a6e4c08836070889 (diff)
downloadsyslinux-b93e6bc9bdafc9fa2dc8709dc97fa5e598c7e94d.tar.gz
ldlinux: Stop using the internal KT_* image types
The KT_* image types were never meant to be used outside of com32/menu, so use the external image types from syslinux/boot.h Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/include/syslinux')
-rw-r--r--com32/include/syslinux/boot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/com32/include/syslinux/boot.h b/com32/include/syslinux/boot.h
index 870cff3f..aea32d9c 100644
--- a/com32/include/syslinux/boot.h
+++ b/com32/include/syslinux/boot.h
@@ -48,6 +48,13 @@ void syslinux_chain_bootstrap(uint16_t flags, const void *bootstrap,
uint32_t bootstrap_len, uint32_t edx,
uint32_t esi, uint16_t ds);
+struct image_types {
+ const char *name;
+ uint32_t type;
+};
+
+extern const struct image_types image_boot_types[];
+
#define IMAGE_TYPE_KERNEL 0
#define IMAGE_TYPE_LINUX 1
#define IMAGE_TYPE_BOOT 2
@@ -57,6 +64,9 @@ void syslinux_chain_bootstrap(uint16_t flags, const void *bootstrap,
#define IMAGE_TYPE_COMBOOT 6
#define IMAGE_TYPE_COM32 7
#define IMAGE_TYPE_CONFIG 8
+#define IMAGE_TYPE_LOCALBOOT 9
+
+uint32_t parse_image_type(const char *cmdline);
void syslinux_run_kernel_image(const char *filename, const char *cmdline,
uint32_t ipappend_flags, uint32_t type);