All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Shannon Zhao <zhaoshenglong@huawei.com>,
	edk2-devel@lists.01.org, lersek@redhat.com,
	ard.biesheuvel@linaro.org
Cc: xen-devel@lists.xen.org,
	Stefano Stabellini <sstabellini@kernel.org>,
	peter.huangpeng@huawei.com, shannon.zhao@linaro.org
Subject: Re: [PATCH] OvmfPkg: Add ACPI support for Virt Xen ARM
Date: Tue, 7 Jun 2016 14:50:28 +0100	[thread overview]
Message-ID: <5756D124.4070402@arm.com> (raw)
In-Reply-To: <1464670786-10424-1-git-send-email-zhaoshenglong@huawei.com>

Hello Shannon,

On 31/05/16 05:59, Shannon Zhao wrote:
> +EFI_STATUS
> +EFIAPI
> +GetXenArmAcpiRsdp (
> +  OUT   EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER   **RsdpPtr
> +  )
> +{
> +  VOID                                           *Hob;
> +  EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER   *RsdpStructurePtr;
> +  VOID                                           *DeviceTreeBase;
> +  INT32                                          Node, Depth, Len;
> +  CONST CHAR8                                    *Type;
> +  CONST VOID                                     *RegProp;
> +
> +  RsdpStructurePtr = NULL;
> +  //
> +  // Get the RSDP structure address from DeviceTree
> +  //
> +  Hob = GetFirstGuidHob(&gFdtHobGuid);
> +  if (Hob == NULL || GET_GUID_HOB_DATA_SIZE (Hob) != sizeof (UINT64)) {
> +    DEBUG ((EFI_D_ERROR, "%a: Failed to get Fdt Hob\n", __FUNCTION__));
> +    return EFI_NOT_FOUND;
> +  }
> +  DeviceTreeBase = (VOID *)(UINTN)*(UINT64 *)GET_GUID_HOB_DATA (Hob);
> +
> +  if (fdt_check_header (DeviceTreeBase) != 0) {
> +    DEBUG ((EFI_D_ERROR, "%a: No DTB found @ 0x%p\n", __FUNCTION__, DeviceTreeBase));
> +    return EFI_NOT_FOUND;
> +  }
> +
> +  Node = fdt_path_offset(DeviceTreeBase, "/chosen/modules");

I am not sure if we want to mandate the modules to live in "/chosen". 
Would it be possible to look by compatible instead?

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-06-07 13:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1464670786-10424-1-git-send-email-zhaoshenglong@huawei.com>
2016-05-31 10:35 ` [PATCH] OvmfPkg: Add ACPI support for Virt Xen ARM Laszlo Ersek
2016-06-07 13:50 ` Julien Grall [this message]
2016-06-23  9:25   ` Shannon Zhao
     [not found] ` <07385ff9-195d-5843-ee48-32eccd360537@redhat.com>
2016-06-23  9:24   ` Shannon Zhao
2016-05-31  4:59 Shannon Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5756D124.4070402@arm.com \
    --to=julien.grall@arm.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=edk2-devel@lists.01.org \
    --cc=lersek@redhat.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=shannon.zhao@linaro.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    --cc=zhaoshenglong@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.