From 872edb58246b9f310bd99315e5e102ab754fb765 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 4 Mar 2010 18:14:15 +0100 Subject: Split Powerpc's uImage code The check and uncompress code could be split and recycled by other arch. Signed-off-by: Sebastian Andrzej Siewior --- include/kexec-uImage.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/kexec-uImage.h (limited to 'include') diff --git a/include/kexec-uImage.h b/include/kexec-uImage.h new file mode 100644 index 0000000..e8a4b69 --- /dev/null +++ b/include/kexec-uImage.h @@ -0,0 +1,13 @@ +#ifndef __KEXEC_UIMAGE_H__ +#define __KEXEC_UIMAGE_H__ + +struct Image_info { + const char *buf; + off_t len; + unsigned int base; + unsigned int ep; +}; + +int uImage_probe(const char *buf, off_t len, unsigned int arch); +int uImage_load(const char *buf, off_t len, struct Image_info *info); +#endif -- cgit