Skip to contentSkip to conversation

kexec-tools_2.0.1: fix arm detection.

PATCH New Andrea Adami 1 participant 1 message Oct 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec-tools_2.0.1: fix arm detection.

---

kexec/phys_arch.c renamed from kexec/phys_arch.c.old +4 -1
@@ -13,9 +13,12 @@
 		return -1;
 	}
 
-	for (i = 0; arches[i].machine; ++i)
+	for (i = 0; arches[i].machine; ++i) {
+		if ((strcmp(arches[i].machine, "arm") == 0) && (strncmp(utsname.machine, arches[i].machine, 3) == 0))
+			return arches[i].arch;
 		if (strcmp(utsname.machine, arches[i].machine) == 0)
 			return arches[i].arch;
+	}
 
 	fprintf(stderr, "Unsupported machine type: %s\n",
 		utsname.machine);

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec