From patchwork Mon Jul 7 07:08:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 33130 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4C29320C88 for ; Mon, 7 Jul 2014 07:12:03 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at1sf4695160iec.7 for ; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=FRIV7J13yDO60kRToxY5KtUYfAdgnAlDDXxuVbJZZRA=; b=h6C6m1M0aOAaMgKezl6433BthvrJhAETqBKIY35kVtonU9py+SYu3zRW+nO/BjPX4F I1YSsGBduIbtrnKjB7OUmvMMeoN6cNX934Gto+lN/dwhWCV5eHpN0reWSjVihI7kH3Pf 3Cl+9CwGS+XH5Vp0M0ypqXU8BLxo3cm10wd+5jf+4EgCJKWwFhkoin/7Ar41gWwlk0eG FEtKmgzMnckw6dQbQOxWdRX7IzDdPbU8AmkZCbK2pORABgeKtoopmqg+0Swp93Cxmen0 OaE4/KnJv0JopPxW3G/+mPzWS6uwXZ4D3P1FhgRHFQnTTXpiG6GjVxn4YtLc/clh290x +C4g== X-Gm-Message-State: ALoCoQnYw3LAQhTohocZKVJfkGdHXgGH1ZI+HOP7TzyhD1t09HJFtwvs66lLjZYm8P+uHdxZPGyT X-Received: by 10.182.134.133 with SMTP id pk5mr13686354obb.31.1404717122599; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.35 with SMTP id f32ls1589895qga.54.gmail; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) X-Received: by 10.52.189.161 with SMTP id gj1mr21804753vdc.2.1404717122531; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id t10si18416254vdf.82.2014.07.07.00.12.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id id10so3497315vcb.38 for ; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) X-Received: by 10.58.133.130 with SMTP id pc2mr1154774veb.48.1404717122464; Mon, 07 Jul 2014 00:12:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp644877vcb; Mon, 7 Jul 2014 00:12:01 -0700 (PDT) X-Received: by 10.194.63.77 with SMTP id e13mr1771056wjs.104.1404717121152; Mon, 07 Jul 2014 00:12:01 -0700 (PDT) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx.google.com with ESMTPS id ge14si39802739wic.63.2014.07.07.00.12.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.47 as permitted sender) client-ip=74.125.82.47; Received: by mail-wg0-f47.google.com with SMTP id l18so1195455wgh.6 for ; Mon, 07 Jul 2014 00:12:00 -0700 (PDT) X-Received: by 10.180.13.139 with SMTP id h11mr74772192wic.40.1404717120591; Mon, 07 Jul 2014 00:12:00 -0700 (PDT) Received: from midway01-04-00.lavalab ([88.98.47.97]) by mx.google.com with ESMTPSA id fb15sm111830218wid.23.2014.07.07.00.11.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:00 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, kim.phillips@freescale.com, a.rigo@virtualopensystems.com Cc: eric.auger@linaro.org, kvmarm@lists.cs.columbia.edu, alex.williamson@redhat.com, agraf@suse.de, peter.maydell@linaro.org, stuart.yoder@freescale.com, a.motakis@virtualopensystems.com, patches@linaro.org Subject: [PATCH 2/7] hw/arm/boot: load_dtb becomes non static Date: Mon, 7 Jul 2014 08:08:07 +0100 Message-Id: <1404716892-15600-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> References: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. */