]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: DynamicPlatRepo: Add TokenFixer
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 9 Dec 2021 09:32:49 +0000 (10:32 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Dec 2021 18:45:19 +0000 (18:45 +0000)
commit740e3bb63468845b7cd7bbe87aec94f4afe89e16
tree4e4c03b19257881e5b99abe0b650a6cd598e8cd3
parent2e2db65e39cbd011468b3ebd23d6e645277c2409
DynamicTablesPkg: DynamicPlatRepo: Add TokenFixer

The DynamicPlatRepo library allows to handle dynamically created
CmObj. The dynamic platform repository can be in the following states:
1 - Non-initialised
2 - Transient:
    Possibility to add CmObj to the platform, but not to query them.
3 - Finalised:
    Possibility to query CmObj, but not to add new.

A token is allocated to each CmObj added to the dynamic platform
repository (except for reference tokens CmObj). This allows to retrieve
dynamic CmObjs among all CmObj (static CmObj for instance).

This patch add the TokenFixer files, allowing to update the
self-token some CmObj have.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c [new file with mode: 0644]
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.h [new file with mode: 0644]