diff options
Diffstat (limited to 'kexec/arch/arm/kexec-arm.c')
-rw-r--r-- | kexec/arch/arm/kexec-arm.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/kexec/arch/arm/kexec-arm.c b/kexec/arch/arm/kexec-arm.c index 78a55e6..a7efdb0 100644 --- a/kexec/arch/arm/kexec-arm.c +++ b/kexec/arch/arm/kexec-arm.c @@ -12,7 +12,6 @@ #include <stdint.h> #include <string.h> #include <getopt.h> -#include <sys/utsname.h> #include "../../kexec.h" #include "../../kexec-syscall.h" #include "kexec-arm.h" @@ -109,25 +108,13 @@ int arch_process_options(int argc, char **argv) return 0; } +const struct arch_map_entry arches[] = { + { "arm", KEXEC_ARCH_ARM }, + { 0 }, +}; + int arch_compat_trampoline(struct kexec_info *info) { - int result; - struct utsname utsname; - result = uname(&utsname); - if (result < 0) { - fprintf(stderr, "uname failed: %s\n", - strerror(errno)); - return -1; - } - if (strncmp(utsname.machine, "arm",3) == 0) - { - info->kexec_flags |= KEXEC_ARCH_ARM; - } - else { - fprintf(stderr, "Unsupported machine type: %s\n", - utsname.machine); - return -1; - } return 0; } |