Reviewed-by: S, Ashraf Ali <[email protected]> Thanks., S, Ashraf Ali
-----Original Message----- From: Chiu, Chasel <[email protected]> Sent: Friday, August 25, 2023 9:37 AM To: Zhang, Hongbin1 <[email protected]>; [email protected] Cc: Desimone, Nathaniel L <[email protected]>; Duggapu, Chinni B <[email protected]>; Ng, Ray Han Lim <[email protected]>; Zeng, Star <[email protected]>; Kuo, Ted <[email protected]>; S, Ashraf Ali <[email protected]>; Mohapatra, Susovan <[email protected]> Subject: RE: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data pointer functions Reviewed-by: Chasel Chiu <[email protected]> Thanks, Chasel > -----Original Message----- > From: Zhang, Hongbin1 <[email protected]> > Sent: Thursday, August 24, 2023 8:15 PM > To: [email protected] > Cc: Zhang, Hongbin1 <[email protected]>; Chiu, Chasel > <[email protected]>; Desimone, Nathaniel L > <[email protected]>; Duggapu, Chinni B > <[email protected]>; Ng, Ray Han Lim > <[email protected]>; Zeng, Star <[email protected]>; Kuo, Ted > <[email protected]>; S, Ashraf Ali <[email protected]>; > Mohapatra, Susovan <[email protected]> > Subject: [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data > pointer functions > > FSP-SMM module need get and set FspSmmInit upd data pointer functions > to get and set upd settings. > > Signed-off-by: Hongbin1 Zhang <[email protected]> > Cc: Chasel Chiu <[email protected]> > Cc: Nate DeSimone <[email protected]> > Cc: Duggapu Chinni B <[email protected]> > Cc: Ray Han Lim Ng <[email protected]> > Cc: Star Zeng <[email protected]> > Cc: Ted Kuo <[email protected]> > Cc: Ashraf Ali S <[email protected]> > Cc: Susovan Mohapatra <[email protected]> > --- > IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c | 41 > ++++++++++++++++++++ > IntelFsp2Pkg/Include/Library/FspCommonLib.h | 22 +++++++++++ > 2 files changed, 63 insertions(+) > > diff --git a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > index 6f6a086111..d33d01fe22 100644 > --- a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > +++ b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c > @@ -372,6 +372,47 @@ GetFspSiliconInitUpdDataPointer ( > return FspData->SiliconInitUpdPtr; > } > > +/** > + This function sets the FspSmmInit UPD data pointer. > + > + @param[in] SmmInitUpdPtr FspSmmInit UPD data pointer. > +**/ > +VOID > +EFIAPI > +SetFspSmmInitUpdDataPointer ( > + IN VOID *SmmInitUpdPtr > + ) > +{ > + FSP_GLOBAL_DATA *FspData; > + > + // > + // Get the FSP Global Data Pointer > + // > + FspData = GetFspGlobalDataPointer (); > + > + // > + // Set the FspSmmInit UPD data pointer. > + // > + FspData->SmmInitUpdPtr = SmmInitUpdPtr; } > + > +/** > + This function gets the FspSmmInit UPD data pointer. > + > + @return FspSmmInit UPD data pointer. > +**/ > +VOID * > +EFIAPI > +GetFspSmmInitUpdDataPointer ( > + VOID > + ) > +{ > + FSP_GLOBAL_DATA *FspData; > + > + FspData = GetFspGlobalDataPointer (); > + return FspData->SmmInitUpdPtr; > +} > + > /** > Set FSP measurement point timestamp. > > diff --git a/IntelFsp2Pkg/Include/Library/FspCommonLib.h > b/IntelFsp2Pkg/Include/Library/FspCommonLib.h > index 13b67f8822..12d993b7cc 100644 > --- a/IntelFsp2Pkg/Include/Library/FspCommonLib.h > +++ b/IntelFsp2Pkg/Include/Library/FspCommonLib.h > @@ -192,6 +192,28 @@ GetFspSiliconInitUpdDataPointer ( > VOID > ); > > +/** > + This function sets the smm init UPD data pointer. > + > + @param[in] SmmInitUpdPtr smm init UPD data pointer. > +**/ > +VOID > +EFIAPI > +SetFspSmmInitUpdDataPointer ( > + IN VOID *SmmInitUpdPtr > + ); > + > +/** > + This function gets the smm init UPD data pointer. > + > + @return smm init UPD data pointer. > +**/ > +VOID * > +EFIAPI > +GetFspSmmInitUpdDataPointer ( > + VOID > + ); > + > /** > Set FSP measurement point timestamp. > > -- > 2.37.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108031): https://edk2.groups.io/g/devel/message/108031 Mute This Topic: https://groups.io/mt/100950055/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
