Current entrypoint prototype is as below:
PayloadEntry (
IN UINTN BootloaderParameter,
IN UINTN FdBase
)
Spec defines the entry point prototype should be:
1st parameter: HobList
2nd parameter: ImageBase of payload entry
Currently the Payload entry locates the HOB from a pointer stored in stack:
(*(UINTN *)(UINTN)(PcdGet32(PcdPayloadStackTop) - 2 * sizeof(UINT64))).
It should directly assume the BootloaderParameter as the HOB base.