> -----Original Message----- > From: Gerd Hoffmann <[email protected]> > Sent: Wednesday, February 21, 2024 1:50 AM > To: [email protected] > Cc: Oliver Steffen <[email protected]>; Laszlo Ersek > <[email protected]>; Kumar, Rahul R <[email protected]>; Ni, Ray > <[email protected]>; Gerd Hoffmann <[email protected]> > Subject: [PATCH v2 1/5] UefiCpuPkg/MpInitLib: Add support for multiple > HOBs to GetMpHandOffHob > > Rename the function to GetNextMpHandOffHob(), add MP_HAND_OFF > parameter. > When called with NULL pointer return the first HOB, otherwise return the > next in the chain. > > Also add the function prototype to the MpLib.h header file. > > Signed-off-by: Gerd Hoffmann <[email protected]> > --- > UefiCpuPkg/Library/MpInitLib/MpLib.h | 12 ++++++++++++ > UefiCpuPkg/Library/MpInitLib/MpLib.c | 26 ++++++++++++++++---------- > 2 files changed, 28 insertions(+), 10 deletions(-) > > diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h > b/UefiCpuPkg/Library/MpInitLib/MpLib.h > index a96a6389c17d..bc2a0232291d 100644 > --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h > +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h > @@ -485,6 +485,18 @@ SwitchApContext ( > IN MP_HAND_OFF *MpHandOff > ); > > +/** > + Get pointer to next MP_HAND_OFF GUIDed HOB. > + > + @param[in] MpHandOff Previous HOB. Pass NULL to get the first > HOB.
Can you please emphasize in above comments that MpHandOff points to the GUIDed HOB data? The function implementation assumes that. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115703): https://edk2.groups.io/g/devel/message/115703 Mute This Topic: https://groups.io/mt/104472308/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
