From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X435w-0007N0-98 for qemu-devel@nongnu.org; Mon, 07 Jul 2014 03:12:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X435l-00044H-H1 for qemu-devel@nongnu.org; Mon, 07 Jul 2014 03:12:12 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:41708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X435l-00044C-B3 for qemu-devel@nongnu.org; Mon, 07 Jul 2014 03:12:01 -0400 Received: by mail-wi0-f175.google.com with SMTP id r20so15379402wiv.2 for ; Mon, 07 Jul 2014 00:12:00 -0700 (PDT) From: Eric Auger Date: Mon, 7 Jul 2014 08:08:07 +0100 Message-Id: <1404716892-15600-3-git-send-email-eric.auger@linaro.org> In-Reply-To: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> References: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [PATCH 2/7] hw/arm/boot: load_dtb becomes non static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, kim.phillips@freescale.com, a.rigo@virtualopensystems.com Cc: peter.maydell@linaro.org, eric.auger@linaro.org, patches@linaro.org, agraf@suse.de, stuart.yoder@freescale.com, alex.williamson@redhat.com, a.motakis@virtualopensystems.com, kvmarm@lists.cs.columbia.edu load_dtb will be used by machvirt for dynamic instantiation of platform devices --- hw/arm/boot.c | 2 +- include/hw/arm/arm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 3d1f4a2..314bbfd 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -312,7 +312,7 @@ static void set_kernel_args_old(const struct arm_boot_info *info) } } -static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo) +int load_dtb(hwaddr addr, const struct arm_boot_info *binfo) { void *fdt = NULL; int size, rc; diff --git a/include/hw/arm/arm.h b/include/hw/arm/arm.h index cbbf4ca..fe58dc0 100644 --- a/include/hw/arm/arm.h +++ b/include/hw/arm/arm.h @@ -68,6 +68,7 @@ struct arm_boot_info { hwaddr entry; }; void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info); +int load_dtb(hwaddr addr, const struct arm_boot_info *binfo); /* Multiplication factor to convert from system clock ticks to qemu timer ticks. */ -- 1.8.3.2