On Sun, Jan 29, 2023 at 05:08:49AM +0000, Wu, Jiaxin wrote: > > > > For the smbase case it might also be possible to store the base > > address and the per-cpu entry size, then use > > > > smbase = base + size * cpuindex > > > > to calculate the per-cpu base address. Puts some restrictions on the > > memory allocation (must be one big block), not sure this is possible, > > that part of the code is not (yet?) posted for review. > > > It's not a good idea that only store the start address of smbase and > the per-cpu entry size. There are multiple algorithms to calculate > each cpu's smbase, if hob producer (any peim) & consumer (SMM CPU > driver) use different algorithm for each cpu's smbase, then there will > be a big problem.
The algorithm needs to be part of the HOB specification of course. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99400): https://edk2.groups.io/g/devel/message/99400 Mute This Topic: https://groups.io/mt/96350760/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-