<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.h, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>DynamicTablesPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T17:36:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=01f75b3927b8d98fa0a6fbfb6a79420985f107f0'/>
<id>urn:sha1:01f75b3927b8d98fa0a6fbfb6a79420985f107f0</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>DynamicTablesPkg: Add SMBIOS table generation</title>
<updated>2025-09-30T08:27:48+00:00</updated>
<author>
<name>Girish Mahadevan</name>
<email>gmahadevan@nvidia.com</email>
</author>
<published>2025-03-11T16:24:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5a8411a7b0382e5f5b2412d2fb7e684ac10723b2'/>
<id>urn:sha1:5a8411a7b0382e5f5b2412d2fb7e684ac10723b2</id>
<content type='text'>
Add the SMBIOS Table generator code to the DynamicTablesPkg.

This change includes adding new logic to the DynamicTableManager
to process and add SMBIOS tables and augmenting the existing SMBIOS
Factory generator to include installing multiple SMBIOS tables.

Signed-off-by: Girish Mahadevan &lt;gmahadevan@nvidia.com&gt;
</content>
</entry>
<entry>
<title>DynamicTablesPkg: Move ACPI building &amp; change DEPEX on protocol</title>
<updated>2025-09-30T08:27:48+00:00</updated>
<author>
<name>Girish Mahadevan</name>
<email>gmahadevan@nvidia.com</email>
</author>
<published>2025-03-11T17:46:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=a4492241a7dcd44bc71e427d251cad38260c559d'/>
<id>urn:sha1:a4492241a7dcd44bc71e427d251cad38260c559d</id>
<content type='text'>
In preparation to introduce Dynamic SMBIOS support the
following 2 changes are required:
1. Use ProtocolNotify Event for generating the ACPI tables
   and don't include the ACPI protocol in the Depex section
   for DynamicTableManagerDxe Driver.
   This is because if a platforms doesn't do ACPI based boot or if
   doesn't want to install SMBIOS tables we still want the
   DynamicTableManager to be dispatched to install the SMBIOS or ACPI
   tables respectively.
2. Split the logic for building the ACPI tables to a separate file.

Signed-off-by: Girish Mahadevan &lt;gmahadevan@nvidia.com&gt;
</content>
</entry>
<entry>
<title>DynamicTablesPkg: DynamicTableManagerDxe: Refactor PresenceArray</title>
<updated>2024-07-29T13:44:55+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2024-06-10T12:00:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=47b830db58cec598ebb144a46054c357401a8441'/>
<id>urn:sha1:47b830db58cec598ebb144a46054c357401a8441</id>
<content type='text'>
Mandatory ACPI tables depend on the architectures.
Different architectures might also want to check other tables.

Move mAcpiVerifyTables containing the list of ACPI tables to check
to an arch specific file and introduce GetAcpiTablePresenceInfo()
to get get the relevant information from the array.

Signed-off-by: Pierre Gondois &lt;Pierre.Gondois@arm.com&gt;
Reviewed-by: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
</content>
</entry>
</feed>
