The main goal of this patch series is to pass initrd position to secondary kernel. To makes code clear, patch 2/3 introduce a new function to handle fdt related operations. Without these two patches, kexec failed to work on arm. Change from v1: - Remove #include "libfdt_internal.h" since it is for internal use for libfdt. Change from v2: - Split into two logically independent patches. - Compute memory consumption more accurate. Change from v3: - Introduces helpers in libfdt for memory usage computation. Wang Nan (3): kexec: introduce helpers for computing dtb size kexec: introduce setup_dtb_prop to make code clear kexec: pass initrd position by dtb kexec/arch/arm/kexec-zImage-arm.c | 106 +++++++++++++++++++++++++++++--------- kexec/libfdt/libfdt.h | 24 +++++++++ kexec/libfdt/libfdt_internal.h | 3 -- 3 files changed, 105 insertions(+), 28 deletions(-) -- 1.8.4