public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: "Chuang, SofiaX" <sofiax.chuang@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>
Subject: Re: [edk2-devel][PATCH v4 1/7] IntelSiliconPkg/ReportCpuHobLib: Add ReportCpuHobLib
Date: Thu, 6 May 2021 10:09:44 +0000	[thread overview]
Message-ID: <CO1PR11MB49304A33C4BF8B62F62FAE458C589@CO1PR11MB4930.namprd11.prod.outlook.com> (raw)
In-Reply-To: <4dfe3dfc83d895b824362ec79e04d08a94b79c59.1620065019.git.sofiax.chuang@intel.com>

> +/**
> 
> +  Function for Report CPU HOB library
> +  This library report the CPU HOB with Physical Address bits.

1. "Build a HOB for the CPU."
> 
> +  UINT8                           PhysicalAddressBits;
> 
> +  CPUID_VIR_PHY_ADDRESS_SIZE_EAX  AddressSizeEax;
> 
> +
> 
> +  AsmCpuid (CPUID_VIR_PHY_ADDRESS_SIZE, &AddressSizeEax.Uint32, NULL, NULL, NULL);
> 
> +  if (AddressSizeEax.Uint32 >= CPUID_VIR_PHY_ADDRESS_SIZE) {
> 
> +    AsmCpuid (CPUID_VIR_PHY_ADDRESS_SIZE, &AddressSizeEax.Uint32, NULL, NULL, NULL);
> 
> +    PhysicalAddressBits = (UINT8) AddressSizeEax.Uint32;

2. PhysicalAddressBits = (UINT8) AddressSizeEax.Bits.PhysicalAddressBits


  reply	other threads:[~2021-05-06 10:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03 18:22 [edk2-devel][PATCH v4 0/7] Move ReportCpuHobLib from MinPlatformPkg to IntelSiliconPkg sofiax.chuang
2021-05-03 18:22 ` [edk2-devel][PATCH v4 1/7] IntelSiliconPkg/ReportCpuHobLib: Add ReportCpuHobLib sofiax.chuang
2021-05-06 10:09   ` Ni, Ray [this message]
2021-05-03 18:22 ` [edk2-devel][PATCH v4 2/7] TigerlakeOpenBoard: Move ReportCpuHob library path sofiax.chuang
2021-05-10  9:02   ` Heng Luo
2021-05-03 18:22 ` [edk2-devel][PATCH v4 3/7] SimicsOpenBoard: " sofiax.chuang
2021-05-03 18:22 ` [edk2-devel][PATCH v4 4/7] KabylakeOpenBoard: " sofiax.chuang
2021-05-03 18:22 ` [edk2-devel][PATCH v4 5/7] WhiskeylakeOpenBoard: Move " sofiax.chuang
2021-05-03 18:22 ` [edk2-devel][PATCH v4 6/7] MiniPlatformPkg: Move ReportCpuHob " sofiax.chuang
2021-05-03 18:22 ` [edk2-devel][PATCH v4 7/7] CometlakeOpenBoard: " sofiax.chuang

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-list 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=CO1PR11MB49304A33C4BF8B62F62FAE458C589@CO1PR11MB4930.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox