diff options
author | Suzuki K. Poulose <suzuki@in.ibm.com> | 2013-03-06 14:08:33 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-03-08 13:57:30 +0900 |
commit | 4255d2b07d231a3ff037fdf5aafa80e4f90c937d (patch) | |
tree | f142b60f4ad3a99193f33aeb37f4657eca4a07c2 /kexec/arch/sh/kexec-uImage-sh.c | |
parent | c37f23c20bf4f15b951f1bbbb9c69e42a00dff3c (diff) |
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 <suzuki@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/sh/kexec-uImage-sh.c')
-rw-r--r-- | kexec/arch/sh/kexec-uImage-sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/sh/kexec-uImage-sh.c b/kexec/arch/sh/kexec-uImage-sh.c index e983165..130f12c 100644 --- a/kexec/arch/sh/kexec-uImage-sh.c +++ b/kexec/arch/sh/kexec-uImage-sh.c @@ -13,7 +13,7 @@ int uImage_sh_probe(const char *buf, off_t len) { - return uImage_probe(buf, len, IH_ARCH_SH); + return uImage_probe_kernel(buf, len, IH_ARCH_SH); } int uImage_sh_load(int argc, char **argv, const char *buf, off_t len, |