summaryrefslogtreecommitdiff
path: root/kexec/libfdt/libfdt.h
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2014-03-20 10:36:32 +0800
committerSimon Horman <horms@verge.net.au>2014-03-20 12:50:35 +0900
commit3ff075747fe34d5ce244d6c6ad65ef1417d53943 (patch)
treec3e0f901b069553249913c801a2787f3f148a5d5 /kexec/libfdt/libfdt.h
parent4533baa7ce3f7a8bec0635faff8f899122d4c535 (diff)
kexec: align initrd when no --image-size passed
Before this patch, when no --image-size passed, initrd_base is caculated using base + len * 4, which is unaligned, and unable to pass check in add_segment_phys_virt(): if (base & (pagesize -1)) { die("Base address: 0x%lx is not page aligned\n", base); } This patch also uses getpagesize() instead of hard encoded 4096. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Dave Young <dyoung@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/libfdt/libfdt.h')
0 files changed, 0 insertions, 0 deletions