aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/decompress.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-09 07:52:27 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-09 07:52:27 +0000
commitab77e81f6521e97ac2fe2218013d5871a893db0f (patch)
treeb9a2ce5ef8aa85c01c304eeea6ae6c965dda2947 /xen/common/decompress.h
parent14ec087884b13aa9de838ab11fd4e67e255d4ded (diff)
downloadxen-ab77e81f6521e97ac2fe2218013d5871a893db0f.tar.gz
xen-ab77e81f6521e97ac2fe2218013d5871a893db0f.tar.bz2
xen-ab77e81f6521e97ac2fe2218013d5871a893db0f.zip
x86/dom0: support bzip2 and lzma compressed bzImage payloads
This matches functionality in the tools already supporting the same for DomU-s. Code taken from Linux 2.6.32-rc and adjusted as little as possible to be usable in Xen. The question is whether, particularly for non-Linux Dom0-s, plain ELF images compressed by bzip2 or lzma should also be supported. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/decompress.h')
-rw-r--r--xen/common/decompress.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/xen/common/decompress.h b/xen/common/decompress.h
new file mode 100644
index 0000000000..c17fc1f68a
--- /dev/null
+++ b/xen/common/decompress.h
@@ -0,0 +1,19 @@
+#include <xen/config.h>
+#include <xen/cache.h>
+#include <xen/decompress.h>
+#include <xen/init.h>
+#include <xen/string.h>
+#include <xen/types.h>
+#include <xen/xmalloc.h>
+
+#define STATIC
+#define INIT __init
+
+static void(*__initdata error)(const char *);
+#define set_error_fn(x) error = x;
+
+#define malloc xmalloc_bytes
+#define free xfree
+
+#define large_malloc xmalloc_bytes
+#define large_free xfree