Received: from eggs.gnu.org ([2001:4830:134:3::10]:46999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvRj8-0005DK-Qk for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:13:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvRj3-0000aI-5Z for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:13:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvRj2-0000aC-UF for qemu-devel@nongnu.org; Mon, 01 Dec 2014 09:13:17 -0500 From: "Richard W.M. Jones" Date: Mon, 1 Dec 2014 14:13:09 +0000 Message-Id: <1417443189-16679-1-git-send-email-rjones@redhat.com> Subject: [Qemu-devel] [PATCH] arm: dtb: Align dtb to 64K because some kernels use 64K page size. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: wei@redhat.com, peter.maydell@linaro.org Resolves: https://bugs.launchpad.net/qemu/+bug/1383857 Signed-off-by: Richard W.M. Jones --- hw/arm/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 0014c34..a859922 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -632,11 +632,11 @@ void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info) */ if (have_dtb(info)) { /* Place the DTB after the initrd in memory. Note that some - * kernels will trash anything in the 4K page the initrd + * kernels will trash anything in the page the initrd * ends in, so make sure the DTB isn't caught up in that. */ hwaddr dtb_start = QEMU_ALIGN_UP(info->initrd_start + initrd_size, - 4096); + 65536); if (load_dtb(dtb_start, info, 0) < 0) { exit(1); } -- 2.1.0