From 4255d2b07d231a3ff037fdf5aafa80e4f90c937d Mon Sep 17 00:00:00 2001 From: "Suzuki K. Poulose" Date: Wed, 6 Mar 2013 14:08:33 +0530 Subject: kexec/uImage: Introduce uImage_probe_kernel uImage supports different types of payloads, including kernel, ramdisks etc. uImage_probe() as of now checks whether the supplied payload is of type KERNEL ( i.e, IH_TYPE_KERNEL or IH_TYPE_KERNEL_NOLOAD ). Change this behaviour to return the image type, if it is one of the supported payloads. This change is in prepartion to support ramdisks in uImage format. Introduce a uImage_probe_kernel() which can be used by the archs to check if the supplied payload is one of the KERNEL types. Signed-off-by: Suzuki K. Poulose Signed-off-by: Simon Horman --- include/kexec-uImage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/kexec-uImage.h b/include/kexec-uImage.h index 8c7707d..266ca73 100644 --- a/include/kexec-uImage.h +++ b/include/kexec-uImage.h @@ -9,5 +9,6 @@ struct Image_info { }; int uImage_probe(const unsigned char *buf, off_t len, unsigned int arch); +int uImage_probe_kernel(const unsigned char *buf, off_t len, unsigned int arch); int uImage_load(const unsigned char *buf, off_t len, struct Image_info *info); #endif -- cgit