File: kexec-uImage-arm.c

package info (click to toggle)
kexec-tools 1%3A2.0.20-2.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,828 kB
  • sloc: ansic: 27,201; sh: 3,486; asm: 2,625; cpp: 1,752; makefile: 930
file content (22 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * uImage support added by Marc Andre Tanner <mat@brain-dump.org>
 */
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include <image.h>
#include <kexec-uImage.h>
#include "../../kexec.h"
#include "kexec-arm.h"

int uImage_arm_probe(const char *buf, off_t len)
{
	return uImage_probe_kernel(buf, len, IH_ARCH_ARM);
}

int uImage_arm_load(int argc, char **argv, const char *buf, off_t len,
	struct kexec_info *info)
{
	return zImage_arm_load(argc, argv, buf + sizeof(struct image_header),
	                       len - sizeof(struct image_header), info);
}