Skip to content

Entrypoint of PayloadEntry doesn't conform to the payload entry point defined in universal payload spec #3

@niruiyu

Description

@niruiyu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions