> +/** > > + 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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-