<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/EmulatorPkg/Include/Protocol, 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>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: 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>Add EFI_STATUS return to EMU_THUNK_PROTOCOL.SetTime()</title>
<updated>2024-01-05T20:32:08+00:00</updated>
<author>
<name>Nate DeSimone</name>
<email>nathaniel.l.desimone@intel.com</email>
</author>
<published>2023-09-29T21:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9cf1d03ebe076b3e3825dfebbc19fd6b52b5f336'/>
<id>urn:sha1:9cf1d03ebe076b3e3825dfebbc19fd6b52b5f336</id>
<content type='text'>
There is an inconsistency between the UNIX and Windows
implementations of EMU_THUNK_PROTOCOL.SetTime(). The Windows
version returns an EFI_STATUS value whereas the the UNIX
implementation is VOID. However, the UNIX implementation is an
unimplemented stub whereas the Windows version is implementated.

The current EMU_THUNK_PROTOCOL function pointer definition
specifies a VOID return type. However, EMU_THUNK_PROTOCOL.SetTime()
is close to the spec defined gRT-&gt;SetTime() except for missing the
EFI_STATUS return type.

Therefore, I conclude that the most sensible reconciliation is to
add the EFI_STATUS return type to the protocol definition.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Chasel Chiu &lt;chasel.chiu@intel.com&gt;
Signed-off-by: Nate DeSimone &lt;nathaniel.l.desimone@intel.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay</title>
<updated>2023-02-09T02:04:37+00:00</updated>
<author>
<name>Deric Cole</name>
<email>deric.cole@intel.com</email>
</author>
<published>2023-02-08T16:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f6ce1a5cd8932844ec24701d158254ccf75b6159'/>
<id>urn:sha1:f6ce1a5cd8932844ec24701d158254ccf75b6159</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4339

Thunk-&gt;Sleep is expecting nanoseconds, no need to multiply by 100.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Deric Cole &lt;deric.cole@intel.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=a550d468a6ca577d9e9c57a0eafcf2fc9fbb8c97'/>
<id>urn:sha1:a550d468a6ca577d9e9c57a0eafcf2fc9fbb8c97</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the EmulatorPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Replace BSD License with BSD+Patent License</title>
<updated>2019-04-09T17:57:59+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2019-04-03T23:03:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e3ba31da1cd1c4ab924f7f9787247cb6679bcffe'/>
<id>urn:sha1:e3ba31da1cd1c4ab924f7f9787247cb6679bcffe</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1373

Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:

  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html

RFCs with detailed process for the license change:

  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: formalize line endings</title>
<updated>2018-08-30T01:26:54+00:00</updated>
<author>
<name>Ruiyu Ni</name>
<email>ruiyu.ni@intel.com</email>
</author>
<published>2018-08-29T03:39:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=79e4f2a56ac7cee477c2f84ff65f766814cc1836'/>
<id>urn:sha1:79e4f2a56ac7cee477c2f84ff65f766814cc1836</id>
<content type='text'>
The patch is the result of running
"BaseTools/Scripts/FormatDosFiles.py EmulatorPkg/"

No functionality impact.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni &lt;ruiyu.ni@intel.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
</content>
</entry>
<entry>
<title>EmulatorPkg: Remove all trailing whitespace</title>
<updated>2011-06-28T16:50:26+00:00</updated>
<author>
<name>jljusten</name>
<email>jljusten@6f19259b-4bc3-4df7-8a09-765794883524</email>
</author>
<published>2011-06-28T16:50:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d18d8a1d0e370f8ce6ccc2725f4170586d457e53'/>
<id>urn:sha1:d18d8a1d0e370f8ce6ccc2725f4170586d457e53</id>
<content type='text'>
Signed-off-by: jljusten

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524
</content>
</entry>
<entry>
<title>InOsEmuPkg: Rename package to EmulatorPkg &amp; Sec to Host</title>
<updated>2011-06-28T16:47:23+00:00</updated>
<author>
<name>jljusten</name>
<email>jljusten@6f19259b-4bc3-4df7-8a09-765794883524</email>
</author>
<published>2011-06-28T16:47:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=bb89ec1a7ec2f8d35033df9e47b3604925da3bd3'/>
<id>urn:sha1:bb89ec1a7ec2f8d35033df9e47b3604925da3bd3</id>
<content type='text'>
* Rename InOsEmuPkg to EmulatorPkg
* Rename Unix/Sec to Unix/Host

Signed-off-by: jljusten
Reviewed-by: andrewfish
Reviewed-by: geekboy15a

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11918 6f19259b-4bc3-4df7-8a09-765794883524
</content>
</entry>
</feed>
