aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2011-04-08 15:13:26 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-09 18:27:06 -0700
commitb6cfb0672af84a643351a0db46664f8ba68baf36 (patch)
tree9b8071ddf7cc21e212de22276ca8bc849239a57e /core/include
parent117cc6f82e163769c5b59ef8f93d25452e0d83dc (diff)
downloadsyslinux-b6cfb0672af84a643351a0db46664f8ba68baf36.tar.gz
syslinux-b6cfb0672af84a643351a0db46664f8ba68baf36.tar.xz
syslinux-b6cfb0672af84a643351a0db46664f8ba68baf36.zip
core: Move kaboom into it's own header.
This allows kaboom to be used by lwip without having to inclued all of core.h Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core/include')
-rw-r--r--core/include/core.h7
-rw-r--r--core/include/kaboom.h11
2 files changed, 12 insertions, 6 deletions
diff --git a/core/include/core.h b/core/include/core.h
index 62a61f6e..d32bacb4 100644
--- a/core/include/core.h
+++ b/core/include/core.h
@@ -4,6 +4,7 @@
#include <klibc/compiler.h>
#include <com32.h>
#include <syslinux/pmapi.h>
+#include <kaboom.h>
extern char core_xfer_buf[65536];
extern char core_cache_buf[65536];
@@ -58,12 +59,6 @@ void call16(void (*)(void), const com32sys_t *, com32sys_t *);
*/
#define __hugebss __attribute__((nocommon,section(".hugebss"),aligned(4096)))
-/*
- * Death! The macro trick is to avoid symbol conflict with
- * the real-mode symbol kaboom.
- */
-__noreturn _kaboom(void);
-#define kaboom() _kaboom()
/*
* Basic timer function...
diff --git a/core/include/kaboom.h b/core/include/kaboom.h
new file mode 100644
index 00000000..4a763be9
--- /dev/null
+++ b/core/include/kaboom.h
@@ -0,0 +1,11 @@
+#ifndef KABOOM_H
+#define KABOOM_H
+
+/*
+ * Death! The macro trick is to avoid symbol conflict with
+ * the real-mode symbol kaboom.
+ */
+__noreturn _kaboom(void);
+#define kaboom() _kaboom()
+
+#endif /* KABOOM_H */