> 
> 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. So, we need 
straightforward provide the each processors smbase in the hob to keep them 
consistency.

> 
> take care,
>   Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99251): https://edk2.groups.io/g/devel/message/99251
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]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to