summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorNate DeSimone <nathaniel.l.desimone@intel.com>2023-09-20 16:18:18 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-01-05 20:32:08 +0000
commit3114fd8ed7ce38464572839fe295aca11d704b7d (patch)
treeb12c0d0787097691d57b561b25b4bbf00cb60862 /EmulatorPkg
parente8166a852e63ee0c7c37291c1f88b19cc4692514 (diff)
downloadedk2-3114fd8ed7ce38464572839fe295aca11d704b7d.tar.gz
edk2-3114fd8ed7ce38464572839fe295aca11d704b7d.tar.bz2
edk2-3114fd8ed7ce38464572839fe295aca11d704b7d.zip
EmulatorPkg: Improve comments in WinThunk.c
File description has not been updated since Nt32Pkg was merged with EmulatorPkg, and several details were no longer technically accurate. Cc: Andrew Fish <afish@apple.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Win/Host/WinThunk.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/EmulatorPkg/Win/Host/WinThunk.c b/EmulatorPkg/Win/Host/WinThunk.c
index 42044f2912..e82735c6a0 100644
--- a/EmulatorPkg/Win/Host/WinThunk.c
+++ b/EmulatorPkg/Win/Host/WinThunk.c
@@ -10,21 +10,14 @@ Module Name:
Abstract:
Since the SEC is the only windows program in our emulation we
- must use a Tiano mechanism to export Win32 APIs to other modules.
- This is the role of the EFI_WIN_NT_THUNK_PROTOCOL.
+ must use a Tiano mechanism to export operating system services
+ to other modules. This is the role of the EMU_THUNK_PROTOCOL.
- The mWinNtThunkTable exists so that a change to EFI_WIN_NT_THUNK_PROTOCOL
+ The gEmuThunkProtocol exists so that a change to EMU_THUNK_PROTOCOL
will cause an error in initializing the array if all the member functions
are not added. It looks like adding a element to end and not initializing
- it may cause the table to be initaliized with the members at the end being
- set to zero. This is bad as jumping to zero will case the NT32 to crash.
-
- All the member functions in mWinNtThunkTable are Win32
- API calls, so please reference Microsoft documentation.
-
-
- gWinNt is a a public exported global that contains the initialized
- data.
+ it may cause the table to be initalized with the members at the end being
+ set to zero. This is bad as jumping to zero will case EmulatorPkg to crash.
**/