Re: Review request: New EFI_RISCV_BOOT_PROTOCOL
Heinrich Schuchardt
On 1/10/22 18:02, Sunil V L wrote:
Hi All,Dear Sunil, thank you for drafting the protocol specification. The interface of a protocol may change from version to version. Therefore I understand why there must be a path to convey this information. But using a function like EFI_RISCV_BOOT_PROTOCOL.GetProtocolVersion() makes accessing this information unnecessarily complicated. Instead consider adding a version field as first element of the interface like many other UEFI protocols do. This will also decrease the implementation size. For alignment reasons make this field UINT64. Other protocols call such a field "Revision". Please, provide a define for the current version. E.g. #define EFI_RISCV_BOOT_PROTOCOL_REVISION 0x00010000 #define EFI_RISCV_BOOT_PROTOCOL_LATEST_VERSION \ EFI_RISCV_BOOT_PROTOCOL_REVISION Function EFI_RISCV_BOOT_PROTOCOL.GetBootHartId() looks ok to me and is well described. Best regards Heinrich |
|