public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Andrew Fish" <afish@apple.com>
To: devel@edk2.groups.io, sergestus@yandex.ru
Subject: Re: [edk2-devel] EDK2 UEFI Specification and Revision
Date: Mon, 21 Oct 2019 08:53:29 -0700	[thread overview]
Message-ID: <780E0660-7D49-412B-B535-2491D8C408D9@apple.com> (raw)
In-Reply-To: <27874.1571645731992408464@groups.io>

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

The header in the EFI_SYSTEM_TABLE (gST)  carries the UEFI Specification version. It is filled in by the DXE Core when it produces the EFI System Table. 

$ git grep EFI_SYSTEM_TABLE_REVISION
MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c:126:    EFI_SYSTEM_TABLE_REVISION,                                            // Revision
MdeModulePkg/Universal/SetupBrowserDxe/Setup.h:74:#define EFI_IFR_SPECIFICATION_VERSION  (UINT16) (((EFI_SYSTEM_TABLE_REVISION >> 16) << 8) | (((EFI_SYSTEM_TABLE_REVISION & 0xFFFF) / 10) << 4) | ((EFI_SYSTEM_TABLE_REVISION & 0xFFFF) % 10))
MdePkg/Include/Uefi/UefiSpec.h:1780:#define EFI_SYSTEM_TABLE_REVISION       EFI_2_70_SYSTEM_TABLE_REVISION
MdePkg/Include/Uefi/UefiSpec.h:1781:#define EFI_SPECIFICATION_VERSION       EFI_SYSTEM_TABLE_REVISION

$ git grep EFI_2_70_SYSTEM_TABLE_REVISION
MdePkg/Include/Uefi/UefiSpec.h:1769:#define EFI_2_70_SYSTEM_TABLE_REVISION  ((2 << 16) | (70))
MdePkg/Include/Uefi/UefiSpec.h:1780:#define EFI_SYSTEM_TABLE_REVISION       EFI_2_70_SYSTEM_TABLE_REVISION

Thanks,

Andrew Fish

> On Oct 21, 2019, at 1:15 AM, sergestus@yandex.ru wrote:
> 
> When runs "ver" command in EFI Shell command line it shows UEFI specification and revision. The question is how to find out what UEFI specification and revision does EDK2 support?
> 


[-- Attachment #2: Type: text/html, Size: 7902 bytes --]

  reply	other threads:[~2019-10-21 15:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  8:15 EDK2 UEFI Specification and Revision sergestus
2019-10-21 15:53 ` Andrew Fish [this message]
2019-10-22 10:13   ` [edk2-devel] " sergestus
2019-10-25  1:01     ` Andrew Fish
2019-10-25 10:49       ` sergestus

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=780E0660-7D49-412B-B535-2491D8C408D9@apple.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