public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: edk2-devel-groups-io <devel@edk2.groups.io>,
	Michael Kinney <michael.d.kinney@intel.com>,
	 Leif Lindholm <quic_llindhol@quicinc.com>,
	Andrew Fish <afish@apple.com>,
	 Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Subject: version handling for EFI v2.10
Date: Tue, 27 Sep 2022 23:39:12 +0200	[thread overview]
Message-ID: <CAMj1kXHfUS=eSiE8T=rTWwXSy7qjFFctPS90vOg5CyqvbUL8Gg@mail.gmail.com> (raw)

Hello all,

I just noticed the v2.10 of the UEFI spec. It adds the following define

#define EFI_2_100_SYSTEM_TABLE_REVISION ((2<<16) | (100)

However, the revision field is documented as

"""
The revision of the EFI Specification to which this table conforms.
The upper 16 bits of this field contain the major revision value, and
the lower 16 bits contain the minor revision value. The minor revision
values are binary coded decimals and are limited to the range of
00..99.
"""

I'm not sure what 'binary coded decimals' is supposed to mean here,
given that we use ordinary decimals (30 == 30, and 0x30 == 48 not 30).
However, the range 00..99 is obviously decimal, and 100 is obviously
outside of that range, so something is out of whack here.

Not too important, but I was trying to adapt the Linux revision
reporting to the latest update, and the inconsistency makes that a bit
tricky.

Thanks,
Ard.

                 reply	other threads:[~2022-09-27 21:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMj1kXHfUS=eSiE8T=rTWwXSy7qjFFctPS90vOg5CyqvbUL8Gg@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox