[syslinux:lwip] core: Move kaboom into it's own header.

syslinux-bot for Eric W. Biederman ebiederm at xmission.com
Fri Apr 22 20:05:08 PDT 2011


Commit-ID:  b6cfb0672af84a643351a0db46664f8ba68baf36
Gitweb:     http://syslinux.zytor.com/commit/b6cfb0672af84a643351a0db46664f8ba68baf36
Author:     Eric W. Biederman <ebiederm at xmission.com>
AuthorDate: Fri, 8 Apr 2011 15:13:26 -0700
Committer:  Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Sat, 9 Apr 2011 18:27:06 -0700

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 at xmission.com>


---
 core/include/core.h   |    7 +------
 core/include/kaboom.h |   11 +++++++++++
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/core/include/core.h b/core/include/core.h
index 62a61f6..d32bacb 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 0000000..4a763be
--- /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 */



More information about the Syslinux-commits mailing list