[edk2-devel][PATCH v4 1/7] IntelSiliconPkg/ReportCpuHobLib: Add ReportCpuHobLib
Ni, Ray
ray.ni at intel.com
Thu May 6 10:09:44 UTC 2021
> +/**
>
> + 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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74789): https://edk2.groups.io/g/devel/message/74789
Mute This Topic: https://groups.io/mt/82571357/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list