Tim,
Thanks for you to supply this info; I will follow up to investigate it.
Thanks,
Eric
From: Tim Lewis [mailto:[email protected]]
Sent: Sunday, September 23, 2012 7:49 AM
To: [email protected]
Subject: [edk2] VFR IFR Generation for EFI_IFR_ONE_OF_OPTION_OP (Wasted Space)
The current implementation for EFI_IFR_ONE_OF_OPTION_OP always generates a size
of 0x1c, even if the value that it contains is only a single UINT8. There is no
requirement that the opcode always include the entire union. It seems to me
that the size of the opcode should be adjusted based on the type it contains.
This would save an average of 15 bytes per one-of-option, since most are for a
UINT8. You can see that this approach is explicitly taken by the
EFI_IFR_DEFAULT_OP (where there are two separate structs).
Tim
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel