Attention is currently required from: Arthur Heymans, Julius Werner, Subrata Banik.

Subrata Banik uploaded patch set #3 to this change.

View Change

The following approvals got outdated and were removed: Verified+1 by build bot (Jenkins)

util/cbfstool: Add `PL64` segment for payload

This patch adds `PL64` segment if below conditions are being met

* Payload with x86_64 support enabled.
* Payload has 64-bit entry point
* Injects the PAYLOAD_SEGMENT_X86_LONG_MODE_ENTRY/"PL64" segment into the payload.

This allows direct long mode jumps into the payload if supported,
otherwise falling back to protected mode. Existing 32-bit payload
behavior remains unchanged.

BUG=b:242829490
TEST=Able to verify "PL64" signature at the payload while
building the payload using x86_64.

Change-Id: I41562041d6c09869c7966ea31503f002ca1caefa
Signed-off-by: Subrata Banik <subratabanik@google.com>
---
M src/commonlib/bsd/include/commonlib/bsd/cbfs_serialized.h
M util/cbfstool/cbfs-mkpayload.c
2 files changed, 22 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/81964/3

To view, visit change 81964. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I41562041d6c09869c7966ea31503f002ca1caefa
Gerrit-Change-Number: 81964
Gerrit-PatchSet: 3
Gerrit-Owner: Subrata Banik <subratabanik@google.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-CC: Elyes Haouas <ehaouas@noos.fr>
Gerrit-CC: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Attention: Subrata Banik <subratabanik@google.com>
Gerrit-Attention: Julius Werner <jwerner@chromium.org>
Gerrit-Attention: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-MessageType: newpatchset