<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/EmulatorPkg/Library, 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-09-11T21:41:57+00:00</updated>
<entry>
<title>EmulatorPkg: Remove DevicePathTextLib</title>
<updated>2026-09-11T21:41:57+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-09-10T20:50:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9cde80414eeaf6fa14beb96719b4349a28fec9ac'/>
<id>urn:sha1:9cde80414eeaf6fa14beb96719b4349a28fec9ac</id>
<content type='text'>
This library instance refers to a header file that does not exist,
is not built in the package DSC, and when built fails to compile.

There are no dependencies on the library instance and any potential
consumers would fail to build. It is simply removed in this commit.

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Fix unused variables in GuardUefiMemoryAllocationLib</title>
<updated>2026-09-11T21:41:57+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-09-10T17:47:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=cc77170dc408b5e54650b292243501f47f260a2b'/>
<id>urn:sha1:cc77170dc408b5e54650b292243501f47f260a2b</id>
<content type='text'>
Compiling the library instance standalone leads to compilation
errors due to unused variables in `InternalAllocatePages()` and
`InternalAllocateAlignedPages()`.

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: DxeEmuPeCoffExtraActionLib needs UEFI_APPLICATION</title>
<updated>2026-09-11T01:56:37+00:00</updated>
<author>
<name>Doug Cook</name>
<email>dcook@microsoft.com</email>
</author>
<published>2026-09-10T20:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d76aa0a9f1c1b9d6f32b85d15771df56e27b42ff'/>
<id>urn:sha1:d76aa0a9f1c1b9d6f32b85d15771df56e27b42ff</id>
<content type='text'>
EmulatorPkg.dsc maps PeCoffExtraActionLib to DxeEmuPeCoffExtraActionLib
in a [LibraryClasses] section that explicitly includes UEFI_APPLICATION,
but the INF does not list UEFI_APPLICATION in its LIBRARY_CLASS. Any
UEFI_APPLICATION consuming PeCoffExtraActionLib fails to build.

This is not a recent regression. Fixed for internal consistency.

Signed-off-by: Doug Cook &lt;idigdoug@gmail.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: DxeEmuLib LIBRARY_CLASS needs UEFI_APPLICATION</title>
<updated>2026-09-11T01:56:37+00:00</updated>
<author>
<name>Doug Cook</name>
<email>dcook@microsoft.com</email>
</author>
<published>2026-09-10T20:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=746b77eb1d7637e572eb2919fee6b5f2d4cad207'/>
<id>urn:sha1:746b77eb1d7637e572eb2919fee6b5f2d4cad207</id>
<content type='text'>
EmuThunkLib was recently updated (commit 143032958ea9, PR #13006) to
declare an explicit list of supported module types. The new list does
not include UEFI_APPLICATION.

This contradicts EmulatorPkg.dsc, which maps EmuThunkLib to DxeEmuLib in
a [LibraryClasses] section that explicitly includes UEFI_APPLICATION.

In addition, five EmulatorPkg libraries declare UEFI_APPLICATION support
and consume EmuThunkLib, so any UEFI_APPLICATION using one of them now
fails to build:

- DxeCoreTimerLib
- DxeEmuSerialPortLib
- DxeEmuStdErrSerialPortLib
- DxeTimerLib
- GuardUefiMemoryAllocationLib

Fix by adding UEFI_APPLICATION to the LIBRARY_CLASS of DxeEmuLib.inf.

Signed-off-by: Doug Cook &lt;idigdoug@gmail.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Resolve multi library class implementation</title>
<updated>2026-09-03T02:56:50+00:00</updated>
<author>
<name>Khalid Ali</name>
<email>khaliidcaliy@gmail.com</email>
</author>
<published>2026-08-23T07:26:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=143032958ea9f97cfbab17a4fe7ada2e51c87d18'/>
<id>urn:sha1:143032958ea9f97cfbab17a4fe7ada2e51c87d18</id>
<content type='text'>
Add multiple library class entries for libraries that multiple implement
library classes.

Signed-off-by: Khalid Ali &lt;khaliidcaliy@gmail.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg/SecPeiServicesLib: Prevent overread with available size macros</title>
<updated>2026-04-13T14:12:17+00:00</updated>
<author>
<name>Gowtham M</name>
<email>gowthamm@ami.com</email>
</author>
<published>2025-11-04T05:40:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9989454219e751a05bfac40605b1d22008c7bc29'/>
<id>urn:sha1:9989454219e751a05bfac40605b1d22008c7bc29</id>
<content type='text'>
Symptom:Unsafe typecasting may lead to out‑of‑bound memory access

RootCause: FileSize, FileLength and SectionLength are declared as
UINT32 and masked with 0x00FFFFFF to store only the lower 24 bits.
Although this approach yields the correct result,
it introduces a potential risk due to unsafe typecasting and
dereferencing.

Solution: Using the predefined macro FFS_FILE_SIZE()
and SECTION_SIZE from MdePkg\Include\Pi\PiFirmwareFile.h,
which safely performs the same operation by reconstructing
the size using individual byte access.

This commit also addresses the fix for coverity issue "OVERRUN"

Cc: Sachin Ganesh &lt;sachinganesh@ami.com&gt;
Signed-off-by: Gowtham M &lt;gowthamm@ami.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: 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-03T18:22:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e6797413058281e76caed111fa4a90090f876bb6'/>
<id>urn:sha1:e6797413058281e76caed111fa4a90090f876bb6</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>EmulatorPkg: fix various typos</title>
<updated>2025-11-21T21:49:59+00:00</updated>
<author>
<name>Philipp Schuster</name>
<email>philipp.schuster@cyberus-technology.de</email>
</author>
<published>2025-11-04T07:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d0a6d6c204f5f487b44807f091c4751056eb8a07'/>
<id>urn:sha1:d0a6d6c204f5f487b44807f091c4751056eb8a07</id>
<content type='text'>
Signed-off-by: Philipp Schuster &lt;philipp.schuster@cyberus-technology.de&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Remove UGA support</title>
<updated>2025-07-08T15:42:03+00:00</updated>
<author>
<name>GuoMinJ</name>
<email>newexplorerj@gmail.com</email>
</author>
<published>2025-06-12T15:40:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=b2f90ef115d9ed637c76013020ba24f29287c710'/>
<id>urn:sha1:b2f90ef115d9ed637c76013020ba24f29287c710</id>
<content type='text'>
The Universal Graphics Adapter (UGA) is a graphic abstraction.
The UGA I/O and Draw protocols are deprecated since UEFI 2.0 was
introduced. Cf. the UEFI spec v2.9:
"Appendix L - EFI 1.10 Protocol Changes and Deprecation List"
section L.2 "Deprecated Protocols"

Remove the UGA support.

Signed-off-by: GuoMinJ &lt;newexplorerj@gmail.com&gt;
Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Fix EFI_SUCCESS typos</title>
<updated>2025-06-12T17:50:45+00:00</updated>
<author>
<name>Gao Qihang</name>
<email>gaoqihang@loongson.cn</email>
</author>
<published>2025-06-06T03:00:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=716563f594d211a247cd5b788f0cce7c185c5a92'/>
<id>urn:sha1:716563f594d211a247cd5b788f0cce7c185c5a92</id>
<content type='text'>
EFI_SUCESS -&gt; EFI_SUCCESS

Signed-off-by: Gao Qihang &lt;gaoqihang@loongson.cn&gt;
</content>
</entry>
</feed>
