[edk2-devel] [PATCH] EmulatorPkg: Fix various typos

Cœur posted 1 patch 4 years, 9 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
EmulatorPkg/BootModePei/BootModePei.c         |  2 +-
EmulatorPkg/CpuRuntimeDxe/MpService.c         | 11 +++++-----
EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c        | 14 ++++++-------
EmulatorPkg/EmuGopDxe/GopDriver.c             |  4 ++--
EmulatorPkg/EmuGopDxe/GopInput.c              | 12 +++++------
EmulatorPkg/EmuGopDxe/GopScreen.c             |  6 +++---
.../EmuSimpleFileSystem.c                     |  2 +-
EmulatorPkg/EmuThunkDxe/EmuThunk.c            |  2 +-
.../FirmwareVolumePei/FirmwareVolumePei.c     |  2 +-
.../FvbServicesRuntimeDxe/FWBlockService.c    | 10 +++++-----
EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c   |  2 +-
.../FvbServicesRuntimeDxe.inf                 |  4 ++--
EmulatorPkg/Include/Library/EmuThunkLib.h     |  2 +-
EmulatorPkg/Include/Library/SmbiosLib.h       | 12 +++++------
EmulatorPkg/Include/Protocol/EmuBlockIo.h     |  6 +++---
.../Include/Protocol/EmuGraphicsWindow.h      |  2 +-
EmulatorPkg/Include/Protocol/EmuSnp.h         |  4 ++--
EmulatorPkg/Include/Protocol/EmuThunk.h       |  4 ++--
EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c     |  2 +-
.../DxeEmuPeCoffExtraActionLib.c              |  2 +-
.../DxeEmuPeCoffExtraActionLib.inf            |  2 +-
.../DxeEmuSerialPortLib/DxeEmuSerialPortLib.c |  8 ++++----
.../DxeEmuStdErrSerialPortLib.c               |  2 +-
.../MemoryAllocationLib.c                     |  6 +++---
.../PeiEmuPeCoffExtraActionLib.c              |  2 +-
.../PeiEmuPeCoffExtraActionLib.inf            |  2 +-
.../PeiEmuPeCoffGetEntryPointLib.c            |  4 ++--
.../PeiEmuSerialPortLib/PeiEmuSerialPortLib.c |  2 +-
.../PeiServicesTablePointer.c                 |  4 ++--
.../PeiServicesTablePointer.c                 |  4 ++--
.../PeiServicesTablePointerLibMagicPage.inf   |  2 +-
.../Library/PlatformBmLib/PlatformBmLib.inf   |  2 +-
EmulatorPkg/Library/SmbiosLib/SmbiosLib.c     |  8 ++++----
.../MiscChassisManufacturerData.c             |  4 ++--
...MiscNumberOfInstallableLanguagesFunction.c |  4 ++--
.../MiscSystemManufacturerData.c              |  2 +-
.../PlatformSmbiosDxe/PlatformSmbiosDxe.c     |  4 ++--
EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c   |  2 +-
.../RealTimeClockRuntimeDxe/RealTimeClock.c   | 10 +++++-----
EmulatorPkg/Sec/Ia32/SwitchRam.S              | 18 ++++++++---------
EmulatorPkg/Sec/Ia32/SwitchRam.asm            | 20 +++++++++----------
EmulatorPkg/Sec/Sec.c                         |  5 ++---
EmulatorPkg/Sec/Sec.h                         |  4 ++--
EmulatorPkg/Sec/X64/SwitchRam.S               |  2 +-
EmulatorPkg/Sec/X64/SwitchRam.asm             |  2 +-
EmulatorPkg/TimerDxe/Timer.c                  |  2 +-
EmulatorPkg/Unix/GdbRun.sh                    |  4 ++--
EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c  |  2 +-
EmulatorPkg/Unix/Host/BlockIo.c               | 12 +++++------
EmulatorPkg/Unix/Host/EmuThunk.c              |  2 +-
EmulatorPkg/Unix/Host/Host.c                  | 20 +++++++++----------
EmulatorPkg/Unix/Host/LinuxPacketFilter.c     |  2 +-
EmulatorPkg/Unix/Host/Pthreads.c              |  2 +-
EmulatorPkg/Unix/Host/X64/Gasket.S            |  4 ++--
EmulatorPkg/Unix/Host/X64/SwitchStack.S       |  2 +-
EmulatorPkg/Unix/lldbefi.py                   | 14 ++++++-------
EmulatorPkg/Win/Host/WinGopScreen.c           |  2 +-
EmulatorPkg/Win/Host/WinHost.c                |  2 +-
58 files changed, 149 insertions(+), 151 deletions(-)
[edk2-devel] [PATCH] EmulatorPkg: Fix various typos
Posted by Cœur 4 years, 9 months ago
Fix various typos in EmulatorPkg.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Coeur <coeur@gmx.fr>
---
EmulatorPkg/BootModePei/BootModePei.c         |  2 +-
EmulatorPkg/CpuRuntimeDxe/MpService.c         | 11 +++++-----
EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c        | 14 ++++++-------
EmulatorPkg/EmuGopDxe/GopDriver.c             |  4 ++--
EmulatorPkg/EmuGopDxe/GopInput.c              | 12 +++++------
EmulatorPkg/EmuGopDxe/GopScreen.c             |  6 +++---
.../EmuSimpleFileSystem.c                     |  2 +-
EmulatorPkg/EmuThunkDxe/EmuThunk.c            |  2 +-
.../FirmwareVolumePei/FirmwareVolumePei.c     |  2 +-
.../FvbServicesRuntimeDxe/FWBlockService.c    | 10 +++++-----
EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c   |  2 +-
.../FvbServicesRuntimeDxe.inf                 |  4 ++--
EmulatorPkg/Include/Library/EmuThunkLib.h     |  2 +-
EmulatorPkg/Include/Library/SmbiosLib.h       | 12 +++++------
EmulatorPkg/Include/Protocol/EmuBlockIo.h     |  6 +++---
.../Include/Protocol/EmuGraphicsWindow.h      |  2 +-
EmulatorPkg/Include/Protocol/EmuSnp.h         |  4 ++--
EmulatorPkg/Include/Protocol/EmuThunk.h       |  4 ++--
EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c     |  2 +-
.../DxeEmuPeCoffExtraActionLib.c              |  2 +-
.../DxeEmuPeCoffExtraActionLib.inf            |  2 +-
.../DxeEmuSerialPortLib/DxeEmuSerialPortLib.c |  8 ++++----
.../DxeEmuStdErrSerialPortLib.c               |  2 +-
.../MemoryAllocationLib.c                     |  6 +++---
.../PeiEmuPeCoffExtraActionLib.c              |  2 +-
.../PeiEmuPeCoffExtraActionLib.inf            |  2 +-
.../PeiEmuPeCoffGetEntryPointLib.c            |  4 ++--
.../PeiEmuSerialPortLib/PeiEmuSerialPortLib.c |  2 +-
.../PeiServicesTablePointer.c                 |  4 ++--
.../PeiServicesTablePointer.c                 |  4 ++--
.../PeiServicesTablePointerLibMagicPage.inf   |  2 +-
.../Library/PlatformBmLib/PlatformBmLib.inf   |  2 +-
EmulatorPkg/Library/SmbiosLib/SmbiosLib.c     |  8 ++++----
.../MiscChassisManufacturerData.c             |  4 ++--
...MiscNumberOfInstallableLanguagesFunction.c |  4 ++--
.../MiscSystemManufacturerData.c              |  2 +-
.../PlatformSmbiosDxe/PlatformSmbiosDxe.c     |  4 ++--
EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c   |  2 +-
.../RealTimeClockRuntimeDxe/RealTimeClock.c   | 10 +++++-----
EmulatorPkg/Sec/Ia32/SwitchRam.S              | 18 ++++++++---------
EmulatorPkg/Sec/Ia32/SwitchRam.asm            | 20 +++++++++----------
EmulatorPkg/Sec/Sec.c                         |  5 ++---
EmulatorPkg/Sec/Sec.h                         |  4 ++--
EmulatorPkg/Sec/X64/SwitchRam.S               |  2 +-
EmulatorPkg/Sec/X64/SwitchRam.asm             |  2 +-
EmulatorPkg/TimerDxe/Timer.c                  |  2 +-
EmulatorPkg/Unix/GdbRun.sh                    |  4 ++--
EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c  |  2 +-
EmulatorPkg/Unix/Host/BlockIo.c               | 12 +++++------
EmulatorPkg/Unix/Host/EmuThunk.c              |  2 +-
EmulatorPkg/Unix/Host/Host.c                  | 20 +++++++++----------
EmulatorPkg/Unix/Host/LinuxPacketFilter.c     |  2 +-
EmulatorPkg/Unix/Host/Pthreads.c              |  2 +-
EmulatorPkg/Unix/Host/X64/Gasket.S            |  4 ++--
EmulatorPkg/Unix/Host/X64/SwitchStack.S       |  2 +-
EmulatorPkg/Unix/lldbefi.py                   | 14 ++++++-------
EmulatorPkg/Win/Host/WinGopScreen.c           |  2 +-
EmulatorPkg/Win/Host/WinHost.c                |  2 +-
58 files changed, 149 insertions(+), 151 deletions(-)

diff --git a/EmulatorPkg/BootModePei/BootModePei.c b/EmulatorPkg/BootModePei/BootModePei.c
index a008a2331d..0f8d8f090e 100644
--- a/EmulatorPkg/BootModePei/BootModePei.c
+++ b/EmulatorPkg/BootModePei/BootModePei.c
@@ -18,7 +18,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent

//
-// The protocols, PPI and GUID defintions for this module
+// The protocols, PPI and GUID definitions for this module
//
#include <Ppi/MasterBootMode.h>
#include <Ppi/BootInRecoveryMode.h>
diff --git a/EmulatorPkg/CpuRuntimeDxe/MpService.c b/EmulatorPkg/CpuRuntimeDxe/MpService.c
index 42f94ada27..ff379a1ce3 100644
--- a/EmulatorPkg/CpuRuntimeDxe/MpService.c
+++ b/EmulatorPkg/CpuRuntimeDxe/MpService.c
@@ -29,10 +29,9 @@
Diagnostics applications may also use this protocol for multi-processor.

Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
-Portitions Copyright (c) 2011, Apple Inc. All rights reserved.
+Portions Copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

-
**/

#include "CpuDriver.h"
@@ -292,7 +291,7 @@ CpuMpServicesGetProcessorInfo (
and releases the BSP to continue with other tasks.
-# The caller can use the CheckEvent() and WaitForEvent() services to check
the state of the WaitEvent created in step 1.
-    -# When the APs complete their task or TimeoutInMicroSecondss expires, the MP
+    -# When the APs complete their task or TimeoutInMicroSeconds expires, the MP
Service signals WaitEvent by calling the EFI SignalEvent() function. If
FailedCpuList is not NULL, its content is available when WaitEvent is
signaled. If all APs returned from Procedure prior to the timeout, then
@@ -332,7 +331,7 @@ CpuMpServicesGetProcessorInfo (
EFI_EVENT is defined in CreateEvent() in
the Unified Extensible Firmware Interface
Specification.
-  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for
+  @param[in]  TimeoutInMicroseconds   Indicates the time limit in microseconds for
APs to return from Procedure, either for
blocking or non-blocking mode. Zero means
infinity.  If the timeout expires before
@@ -601,7 +600,7 @@ Done:
This function is used to dispatch one enabled AP to the function specified by
Procedure passing in the argument specified by ProcedureArgument.  If WaitEvent
is NULL, execution is in blocking mode. The BSP waits until the AP finishes or
-  TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode.
+  TimeoutInMicroSeconds expires. Otherwise, execution is in non-blocking mode.
BSP proceeds to the next task without waiting for the AP. If a non-blocking mode
is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,
then EFI_UNSUPPORTED must be returned.
@@ -636,7 +635,7 @@ Done:
EFI_EVENT is defined in CreateEvent() in
the Unified Extensible Firmware Interface
Specification.
-  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for
+  @param[in]  TimeoutInMicroseconds   Indicates the time limit in microseconds for
APs to return from Procedure, either for
blocking or non-blocking mode. Zero means
infinity.  If the timeout expires before
diff --git a/EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c b/EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c
index 96424a82ae..1a88223f91 100644
--- a/EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c
+++ b/EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c
@@ -13,7 +13,7 @@ bbe

@param[in]  This                 Indicates a pointer to the calling context.
@param[in]  ExtendedVerification Indicates that the driver may perform a more
-                                   exhausive verfication operation of the device
+                                   exhaustive verification operation of the device
during reset.

@retval EFI_SUCCESS          The device was reset.
@@ -123,7 +123,7 @@ EmuBlockIo2ReadBlocksEx (
the Event is NULL.
@retval EFI_WRITE_PROTECTED   The device can not be written to.
@retval EFI_NO_MEDIA          There is no media in the device.
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.
@retval EFI_DEVICE_ERROR      The device reported an error while performing the write.
@retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
@@ -172,7 +172,7 @@ EmuBlockIo2WriteBlocksEx (
@retval EFI_SUCCESS          The flush request was queued if Event is not NULL.
All outstanding data was written correctly to the
device if the Event is NULL.
-  @retval EFI_DEVICE_ERROR     The device reported an error while writting back
+  @retval EFI_DEVICE_ERROR     The device reported an error while writing back
the data.
@retval EFI_WRITE_PROTECTED  The device cannot be written to.
@retval EFI_NO_MEDIA         There is no media in the device.
@@ -250,7 +250,7 @@ EmuBlockIoReset (
@retval EFI_SUCCESS           The data was read correctly from the device.
@retval EFI_DEVICE_ERROR      The device reported an error while performing the read.
@retval EFI_NO_MEDIA          There is no media in the device.
-  @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.
@retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
or the buffer is not on proper alignment.
@@ -297,7 +297,7 @@ EmuBlockIoReadBlocks (
@retval EFI_WRITE_PROTECTED   The device can not be written to.
@retval EFI_DEVICE_ERROR      The device reported an error while performing the write.
@retval EFI_NO_MEDIA          There is no media in the device.
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.
@retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
or the buffer is not on proper alignment.
@@ -335,7 +335,7 @@ EmuBlockIoWriteBlocks (
@param  This              Indicates a pointer to the calling context.

@retval EFI_SUCCESS       All outstanding data was written to the device
-  @retval EFI_DEVICE_ERROR  The device reported an error while writting back the data
+  @retval EFI_DEVICE_ERROR  The device reported an error while writing back the data
@retval EFI_NO_MEDIA      There is no media in the device.

**/
@@ -484,7 +484,7 @@ EmuBlockIoDriverBindingSupported (
@retval EFI_SUCCESS              The device was started.
@retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.
@retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.
-  @retval Others                   The driver failded to start the device.
+  @retval Others                   The driver failed to start the device.

**/
EFI_STATUS
diff --git a/EmulatorPkg/EmuGopDxe/GopDriver.c b/EmulatorPkg/EmuGopDxe/GopDriver.c
index d0215c33e7..595c49a332 100644
--- a/EmulatorPkg/EmuGopDxe/GopDriver.c
+++ b/EmulatorPkg/EmuGopDxe/GopDriver.c
@@ -165,7 +165,7 @@ EmuGopDriverBindingSupported (
@retval EFI_SUCCESS              The device was started.
@retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.
@retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.
-  @retval Others                   The driver failded to start the device.
+  @retval Others                   The driver failed to start the device.

**/
EFI_STATUS
@@ -196,7 +196,7 @@ EmuGopDriverBindingStart (
}

//
-  // Allocate Private context data for SGO inteface.
+  // Allocate Private context data for SGO interface.
//
Private = NULL;
Status = gBS->AllocatePool (
diff --git a/EmulatorPkg/EmuGopDxe/GopInput.c b/EmulatorPkg/EmuGopDxe/GopInput.c
index fdd0b49115..44502900c5 100644
--- a/EmulatorPkg/EmuGopDxe/GopInput.c
+++ b/EmulatorPkg/EmuGopDxe/GopInput.c
@@ -283,7 +283,7 @@ EmuGopSimpleTextInExResetEx (
/*++

Routine Description:
-    Reset the input device and optionaly run diagnostics
+    Reset the input device and optionally run diagnostics

Arguments:
This                 - Protocol instance pointer.
@@ -358,7 +358,7 @@ EmuGopSimpleTextInExReadKeyStrokeEx (

Routine Description:
Reads the next keystroke from the input device. The WaitForKey Event can
-    be used to test for existance of a keystroke via WaitForEvent () call.
+    be used to test for existence of a keystroke via WaitForEvent () call.

Arguments:
This       - Protocol instance pointer.
@@ -367,7 +367,7 @@ EmuGopSimpleTextInExReadKeyStrokeEx (

Returns:
EFI_SUCCESS           - The keystroke information was returned.
-    EFI_NOT_READY         - There was no keystroke data availiable.
+    EFI_NOT_READY         - There was no keystroke data available.
EFI_DEVICE_ERROR      - The keystroke information was not returned due to
hardware errors.
EFI_INVALID_PARAMETER - KeyData is NULL.
@@ -660,7 +660,7 @@ EmuGopSimpleTextInExUnregisterKeyNotify (

/**
-  Initialize SimplelTextIn and SimpleTextInEx protocols in the Private
+  Initialize SimpleTextIn and SimpleTextInEx protocols in the Private
context structure.

@param  Private               Context structure to fill in.
@@ -676,7 +676,7 @@ EmuGopInitializeSimpleTextInForWindow (
EFI_STATUS  Status;

//
-  // Initialize Simple Text In protoocol
+  // Initialize Simple Text In protocol
//
Private->SimpleTextIn.Reset         = EmuGopSimpleTextInReset;
Private->SimpleTextIn.ReadKeyStroke = EmuGopSimpleTextInReadKeyStroke;
@@ -879,7 +879,7 @@ EmuGopInitializeSimplePointerForWindow (
EFI_STATUS  Status;

//
-  // Initialize Simple Pointer protoocol
+  // Initialize Simple Pointer protocol
//
Private->PointerMode.ResolutionX = 1;
Private->PointerMode.ResolutionY = 1;
diff --git a/EmulatorPkg/EmuGopDxe/GopScreen.c b/EmulatorPkg/EmuGopDxe/GopScreen.c
index fbac649f8b..f1fee4d6c0 100644
--- a/EmulatorPkg/EmuGopDxe/GopScreen.c
+++ b/EmulatorPkg/EmuGopDxe/GopScreen.c
@@ -10,7 +10,7 @@ Module Name:

Abstract:

-  This file produces the graphics abstration of UGA. It is called by
+  This file produces the graphics abstraction of UGA. It is called by
EmuGopDriver.c file which deals with the EFI 1.1 driver model.
This file just does graphics.

@@ -172,12 +172,12 @@ EmuGopSetMode (
@param  DestinationX X coordinate of destination for the BltBuffer.
@param  DestinationY Y coordinate of destination for the BltBuffer.
@param  Width        Width of rectangle in BltBuffer in pixels.
-  @param  Height       Hight of rectangle in BltBuffer in pixels.
+  @param  Height       Height of rectangle in BltBuffer in pixels.
@param  Delta        OPTIONAL

@retval EFI_SUCCESS           The Blt operation completed.
@retval EFI_INVALID_PARAMETER BltOperation is not valid.
-  @retval EFI_DEVICE_ERROR      A hardware error occured writting to the video buffer.
+  @retval EFI_DEVICE_ERROR      A hardware error occurred writing to the video buffer.

**/
EFI_STATUS
diff --git a/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c b/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c
index 6cea25b140..a0fddff1f7 100644
--- a/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c
+++ b/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c
@@ -700,7 +700,7 @@ EmuSimpleFileSystemDriverBindingSupported (
@retval EFI_SUCCESS              The device was started.
@retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.
@retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.
-  @retval Others                   The driver failded to start the device.
+  @retval Others                   The driver failed to start the device.

**/
EFI_STATUS
diff --git a/EmulatorPkg/EmuThunkDxe/EmuThunk.c b/EmulatorPkg/EmuThunkDxe/EmuThunk.c
index d26d52ae36..ef791eedce 100644
--- a/EmulatorPkg/EmuThunkDxe/EmuThunk.c
+++ b/EmulatorPkg/EmuThunkDxe/EmuThunk.c
@@ -63,7 +63,7 @@ Arguments:
(Standard EFI Image entry - EFI_IMAGE_ENTRY_POINT)

Returns:
-  EFI_SUCEESS - UnixThunk protocol is added or error status from
+  EFI_SUCCESS - UnixThunk protocol is added or error status from
gBS->InstallMultiProtocolInterfaces().

**/
diff --git a/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c b/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c
index 4178111096..c8ff6edff3 100644
--- a/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c
+++ b/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c
@@ -77,7 +77,7 @@ Returns:
if (Index == 0) {
//
// Assume the first FD was produced by the NT32.DSC
-        //  All these strange offests are needed to keep in
+        //  All these strange offsets are needed to keep in
//  sync with the FlashMap and NT32.dsc file
//
BuildResourceDescriptorHob (
diff --git a/EmulatorPkg/FvbServicesRuntimeDxe/FWBlockService.c b/EmulatorPkg/FvbServicesRuntimeDxe/FWBlockService.c
index db028c9e92..e47f20fe0e 100644
--- a/EmulatorPkg/FvbServicesRuntimeDxe/FWBlockService.c
+++ b/EmulatorPkg/FvbServicesRuntimeDxe/FWBlockService.c
@@ -137,7 +137,7 @@ Arguments:
returned
Global                - Pointer to ESAL_FWB_GLOBAL that contains all
instance data
-  FwhInstance           - The EFI_FW_VOL_INSTANCE fimrware instance structure
+  FwhInstance           - The EFI_FW_VOL_INSTANCE firmware instance structure
Virtual               - Whether CPU is in virtual or physical mode

Returns:
@@ -956,7 +956,7 @@ Routine Description:
Writes data beginning at Lba:Offset from FV. The write terminates either
when *NumBytes of data have been written, or when a block boundary is
reached.  *NumBytes is updated to reflect the actual number of bytes
-  written. The write opertion does not include erase. This routine will
+  written. The write operation does not include erase. This routine will
attempt to write only the specified bytes. If the writes do not stick,
it will return an error.

@@ -1004,7 +1004,7 @@ Routine Description:
Reads data beginning at Lba:Offset from FV. The Read terminates either
when *NumBytes of data have been read, or when a block boundary is
reached.  *NumBytes is updated to reflect the actual number of bytes
-  written. The write opertion does not include erase. This routine will
+  written. The write operation does not include erase. This routine will
attempt to write only the specified bytes. If the writes do not stick,
it will return an error.

@@ -1185,7 +1185,7 @@ Returns:
//
// Only need to allocate once. There is only one copy of physical memory for
// the private data of each FV instance. But in virtual mode or in physical
-  // mode, the address of the the physical memory may be different.
+  // mode, the address of the physical memory may be different.
//
Status = gBS->AllocatePool (
EfiRuntimeServicesData,
@@ -1313,7 +1313,7 @@ Returns:
ASSERT_EFI_ERROR (Status);
} else if (IsDevicePathEnd (TempFwbDevicePath)) {
//
-      // Device allready exists, so reinstall the FVB protocol
+      // Device already exists, so reinstall the FVB protocol
//
Status = gBS->HandleProtocol (
FwbHandle,
diff --git a/EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c b/EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c
index af8f9a9831..386d6e63d8 100644
--- a/EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c
+++ b/EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c
@@ -81,7 +81,7 @@ EFI_FVB_MEDIA_INFO  mPlatformFvbMediaInfo[] = {
}
},
//
-  // Systen NvStorage FVB
+  // System NvStorage FVB
//
{
FixedPcdGet32 (PcdFlashNvStorageVariableSize) + \
diff --git a/EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf b/EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
index 7ef0288275..c117c7ee2b 100644
--- a/EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
+++ b/EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
@@ -1,7 +1,7 @@
## @file
-# Component description file for Emu Fimware Volume Block DXE driver module.
+# Component description file for Emu Firmware Volume Block DXE driver module.
#
-# This DXE runtime driver implements and produces the Fimware Volue Block Protocol on
+# This DXE runtime driver implements and produces the Firmware Volue Block Protocol on
#  Emu emulator.
# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2011, Apple Inc. All rights reserved.
diff --git a/EmulatorPkg/Include/Library/EmuThunkLib.h b/EmulatorPkg/Include/Library/EmuThunkLib.h
index ddb3d59b00..43cb39f47f 100644
--- a/EmulatorPkg/Include/Library/EmuThunkLib.h
+++ b/EmulatorPkg/Include/Library/EmuThunkLib.h
@@ -15,7 +15,7 @@ extern EMU_THUNK_PROTOCOL   *gEmuThunk;

/**
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk
+  Search the EMU IO Thunk database for a matching EMU IO Thunk
Protocol instance.

@param  Protocol   Protocol to search for.
diff --git a/EmulatorPkg/Include/Library/SmbiosLib.h b/EmulatorPkg/Include/Library/SmbiosLib.h
index 1022b48c5e..4e96b7c31e 100644
--- a/EmulatorPkg/Include/Library/SmbiosLib.h
+++ b/EmulatorPkg/Include/Library/SmbiosLib.h
@@ -4,7 +4,7 @@

Copyright (c) 2012, Apple Inc. All rights reserved.
-Portitions Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Portions Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -24,8 +24,8 @@ extern EFI_SMBIOS_PROTOCOL *gSmbios;

///
/// Template for SMBIOS table initialization.
-/// The SMBIOS_TABLE_STRING types in the formated area must match the
-/// StringArray sequene.
+/// The SMBIOS_TABLE_STRING types in the formatted area must match the
+/// StringArray sequence.
///
typedef struct {
//
@@ -143,7 +143,7 @@ SmbiosLibUpdateUnicodeString (
Allow caller to read a specific SMBIOS string

@param[in]    Header          SMBIOS record that contains the string.
-  @param[in[    StringNumber    Instance of SMBIOS string 1 - N.
+  @param[in]    StringNumber    Instance of SMBIOS string 1 - N.

@retval NULL                  Instance of Type SMBIOS string was not found.
@retval Other                 Pointer to matching SMBIOS string.
@@ -157,10 +157,10 @@ SmbiosLibReadString (

/**
-  Allow the caller to discover a specific SMBIOS entry, and patch it if necissary.
+  Allow the caller to discover a specific SMBIOS entry, and patch it if necessary.

@param[in]    Type            Type of the next SMBIOS record to return.
-  @param[in[    Instance        Instance of SMBIOS record 0 - N-1.
+  @param[in]    Instance        Instance of SMBIOS record 0 - N-1.
@param[out]   SmbiosHandle    Returns SMBIOS handle for the matching record.

@retval NULL                  Instance of Type SMBIOS record was not found.
diff --git a/EmulatorPkg/Include/Protocol/EmuBlockIo.h b/EmulatorPkg/Include/Protocol/EmuBlockIo.h
index a17cefa83d..36df7e052a 100644
--- a/EmulatorPkg/Include/Protocol/EmuBlockIo.h
+++ b/EmulatorPkg/Include/Protocol/EmuBlockIo.h
@@ -28,7 +28,7 @@ typedef struct _EMU_BLOCK_IO_PROTOCOL   EMU_BLOCK_IO_PROTOCOL;

@param[in]  This                 Indicates a pointer to the calling context.
@param[in]  ExtendedVerification Indicates that the driver may perform a more
-                                   exhausive verfication operation of the device
+                                   exhaustive verification operation of the device
during reset.

@retval EFI_SUCCESS          The device was reset.
@@ -109,7 +109,7 @@ EFI_STATUS
the Event is NULL.
@retval EFI_WRITE_PROTECTED   The device can not be written to.
@retval EFI_NO_MEDIA          There is no media in the device.
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.
@retval EFI_DEVICE_ERROR      The device reported an error while performing the write.
@retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
@@ -142,7 +142,7 @@ EFI_STATUS
@retval EFI_SUCCESS          The flush request was queued if Event is not NULL.
All outstanding data was written correctly to the
device if the Event is NULL.
-  @retval EFI_DEVICE_ERROR     The device reported an error while writting back
+  @retval EFI_DEVICE_ERROR     The device reported an error while writing back
the data.
@retval EFI_WRITE_PROTECTED  The device cannot be written to.
@retval EFI_NO_MEDIA         There is no media in the device.
diff --git a/EmulatorPkg/Include/Protocol/EmuGraphicsWindow.h b/EmulatorPkg/Include/Protocol/EmuGraphicsWindow.h
index 07d4070b35..f8f9788ded 100644
--- a/EmulatorPkg/Include/Protocol/EmuGraphicsWindow.h
+++ b/EmulatorPkg/Include/Protocol/EmuGraphicsWindow.h
@@ -1,7 +1,7 @@
/*++ @file

Copyright (c) 2006, Tristan Gingold. All rights reserved.<BR>
-Portitions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.
+Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
diff --git a/EmulatorPkg/Include/Protocol/EmuSnp.h b/EmulatorPkg/Include/Protocol/EmuSnp.h
index c58808fdd3..1320782d82 100644
--- a/EmulatorPkg/Include/Protocol/EmuSnp.h
+++ b/EmulatorPkg/Include/Protocol/EmuSnp.h
@@ -4,7 +4,7 @@

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+Portions copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -428,7 +428,7 @@ EFI_STATUS
#define EMU_SNP_INTERFACE_REVISION   EMU_SNP_PROTOCOL_REVISION

///
-/// The EMU_SNP_PROTOCOL protocol abstracts OS network sercices
+/// The EMU_SNP_PROTOCOL protocol abstracts OS network services
/// from the EFI driver that produces EFI Simple Network Protocol.
///
struct _EMU_SNP_PROTOCOL {
diff --git a/EmulatorPkg/Include/Protocol/EmuThunk.h b/EmulatorPkg/Include/Protocol/EmuThunk.h
index 0bb20651e5..2ec6052c46 100644
--- a/EmulatorPkg/Include/Protocol/EmuThunk.h
+++ b/EmulatorPkg/Include/Protocol/EmuThunk.h
@@ -13,7 +13,7 @@
#define EMU_THUNK_PROTOCOL_GUID  \
{ 0x5CF32E0B, 0x8EDF, 0x2E44, { 0x9C, 0xDA, 0x93, 0x20, 0x5E, 0x99, 0xEC, 0x1C } }

-// neded for things like EFI_TIME_CAPABILITIES
+// needed for things like EFI_TIME_CAPABILITIES
#include <Uefi.h>

#include <Library/PeCoffExtraActionLib.h>
@@ -185,7 +185,7 @@ VOID
Enumerates the current set of protocol instances that abstract OS services from EFI.

A given protocol can have multiple instances. Usually a protocol is configured via a
-  single PCD string. The data associated for each instance is seperated via a ! in the string.
+  single PCD string. The data associated for each instance is separated via a ! in the string.
EMU_IO_THUNK_PROTOCOL_CLOSE.ConfigString will contain the information in the PCD string up to the next !.
Thus each instance has a unique ConfigString.

diff --git a/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c b/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
index 3247114d09..6e718109e9 100644
--- a/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
+++ b/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
@@ -45,7 +45,7 @@ DxeEmuLibConstructor (

/**
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk
+  Search the EMU IO Thunk database for a matching EMU IO Thunk
Protocol instance.

@param  Protocol   Protocol to search for.
diff --git a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
index 44a42a3784..1ab24aa7c0 100644
--- a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
+++ b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
@@ -1,6 +1,6 @@
/** @file
Provides services to perform additional actions to relocate and unload
-  PE/Coff image for Emu environment specific purpose such as souce level debug.
+  PE/Coff image for Emu environment specific purpose such as source level debug.
This version only works for DXE phase

Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
index fdc890a000..180f153e9b 100644
--- a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
+++ b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
@@ -1,5 +1,5 @@
## @file
-# PeCoff extra action libary for DXE phase that run Emu emulator.
+# PeCoff extra action library for DXE phase that run Emu emulator.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2011, Apple Inc. All rights reserved.
diff --git a/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c b/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
index 1f9ab86377..e1a8be5a14 100644
--- a/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
+++ b/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out.
+  All read functions are stubbed out.

Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>
@@ -153,13 +153,13 @@ SerialPortGetControl (
}

/**
-  Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
+  Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
data bits, and stop bits on a serial device.

@param BaudRate           The requested baud rate. A BaudRate value of 0 will use the
device's default interface speed.
On output, the value actually set.
-  @param ReveiveFifoDepth   The requested depth of the FIFO on the receive side of the
+  @param ReceiveFifoDepth   The requested depth of the FIFO on the receive side of the
serial interface. A ReceiveFifoDepth value of 0 will use
the device's default FIFO depth.
On output, the value actually set.
@@ -172,7 +172,7 @@ SerialPortGetControl (
DefaultParity will use the device's default parity value.
On output, the value actually set.
@param DataBits           The number of data bits to use on the serial device. A DataBits
-                            vaule of 0 will use the device's default data bit setting.
+                            value of 0 will use the device's default data bit setting.
On output, the value actually set.
@param StopBits           The number of stop bits to use on this serial device. A StopBits
value of DefaultStopBits will use the device's default number of
diff --git a/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c b/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
index 0eefec0404..17cada3638 100644
--- a/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
+++ b/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out.
+  All read functions are stubbed out.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c b/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
index cd7336a017..326d472bcc 100644
--- a/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
+++ b/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
@@ -149,7 +149,7 @@ FreePages (
ASSERT (Pages != 0);
if (!gEmuThunk->Free (Buffer)) {
// The Free thunk will not free memory allocated in emulated EFI memory.
-    // The assmuption is this was allocated directly by EFI. We need this as some
+    // The assumption is this was allocated directly by EFI. We need this as some
// times protocols or EFI BootServices can return dynamically allocated buffers.
Status = gBS->FreePages ((EFI_PHYSICAL_ADDRESS) (UINTN) Buffer, Pages);
ASSERT_EFI_ERROR (Status);
@@ -197,7 +197,7 @@ InternalAllocateAlignedPages (
}
if (Alignment > EFI_PAGE_SIZE) {
//
-    // Caculate the total number of pages since alignment is larger than page size.
+    // Calculate the total number of pages since alignment is larger than page size.
//
AlignmentMask  = Alignment - 1;
RealPages      = Pages + EFI_SIZE_TO_PAGES (Alignment);
@@ -804,7 +804,7 @@ FreePool (

if (!gEmuThunk->Free (Buffer)) {
// The Free thunk will not free memory allocated in emulated EFI memory.
-    // The assmuption is this was allocated directly by EFI. We need this as some
+    // The assumption is this was allocated directly by EFI. We need this as some
// times protocols or EFI BootServices can return dynamically allocated buffers.
Status = gBS->FreePool (Buffer);
ASSERT_EFI_ERROR (Status);
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
index 55be3efbdb..578de7ee46 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
+++ b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
@@ -1,6 +1,6 @@
/** @file
Provides services to perform additional actions to relocate and unload
-  PE/Coff image for Emu environment specific purpose such as souce level debug.
+  PE/Coff image for Emu environment specific purpose such as source level debug.
This version only works for PEI phase

Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
index 86ca85b437..1cc70e961c 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
+++ b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
@@ -1,5 +1,5 @@
## @file
-# PeCoff extra action libary for Pei phase that run Emu emulator.
+# PeCoff extra action library for Pei phase that run Emu emulator.
#
# Lib to provide memory journal status code reporting Routines
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
index fd756b5594..27e13e2fee 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
+++ b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
@@ -70,7 +70,7 @@ PeCoffLoaderGetEntryPoint (

@param  Pe32Data   Pointer to a PE/COFF header

-  @return            Machine type or zero if not a valid iamge
+  @return            Machine type or zero if not a valid image

**/
UINT16
@@ -186,7 +186,7 @@ PeCoffLoaderGetPdbPointer (
break;
default:
//
-      // For unknow Machine field, use Magic in optional Header
+      // For unknown Machine field, use Magic in optional Header
//
Magic = Hdr.Pe32->OptionalHeader.Magic;
}
diff --git a/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c b/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
index cf727a638c..a290970416 100644
--- a/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
+++ b/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out. There is no constructor so this lib can
+  All read functions are stubbed out. There is no constructor so this lib can
be linked with PEI Core.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c b/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
index d9d37bf8af..bd49f87fdd 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
@@ -5,7 +5,7 @@
executed in memory.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.
+  Portions copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -101,7 +101,7 @@ EFI_PEI_NOTIFY_DESCRIPTOR mNotifyOnThunkList = {

/**
Constructor register notification on when PPI updates. If PPI is
-  alreay installed registering the notify will cause the handle to
+  already installed registering the notify will cause the handle to
run.

@param  FileHandle   The handle of FFS header the loaded driver.
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
index 9d6e1dfd8a..d7d8440337 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
@@ -3,10 +3,10 @@

Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.
This emulates a platform SRAM. The PI mechaism does not work in the emulator due to
-  lack of privledge.
+  lack of privilege.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.
+  Portions copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
index 96f642784f..bf39b3fd9c 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
@@ -3,7 +3,7 @@
#
#  Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.
#  This emulates a platform SRAM. The PI mechaism does not work in the emulator due to
-#  lack of privledge.
+#  lack of privilege.
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2011, Apple Inc. All rights reserved.
diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf b/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
index 934dc0ccf9..c42a15c6ec 100644
--- a/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
+++ b/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
@@ -1,5 +1,5 @@
## @file
-# Platfrom Boot Manager library
+# Platform Boot Manager library
#
# Do platform action customized by IBV/OEM.
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
index 331122e200..59b6383892 100644
--- a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
+++ b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
@@ -4,7 +4,7 @@

Copyright (c) 2012, Apple Inc. All rights reserved.
-Portitions Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+Portions Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -237,7 +237,7 @@ SmbiosLibUpdateUnicodeString (
Allow caller to read a specific SMBIOS string

@param[in]    Header          SMBIOS record that contains the string.
-  @param[in[    StringNumber    Instance of SMBIOS string 1 - N.
+  @param[in]    StringNumber    Instance of SMBIOS string 1 - N.

@retval NULL                  Instance of Type SMBIOS string was not found.
@retval Other                 Pointer to matching SMBIOS string.
@@ -268,10 +268,10 @@ SmbiosLibReadString (

/**
-  Allow the caller to discover a specific SMBIOS entry, and patch it if necissary.
+  Allow the caller to discover a specific SMBIOS entry, and patch it if necessary.

@param[in]    Type            Type of the next SMBIOS record to return.
-  @param[in[    Instance        Instance of SMBIOS record 0 - N-1.
+  @param[in]    Instance        Instance of SMBIOS record 0 - N-1.
@param[out]   SmbiosHandle    Returns SMBIOS handle for the matching record.

@retval NULL                  Instance of Type SMBIOS record was not found.
diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c
index 7dd83dc864..f41fcbd262 100644
--- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c
+++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c
@@ -20,7 +20,7 @@ Abstract:
// Static (possibly build generated) Chassis Manufacturer data.
//
MISC_SMBIOS_TABLE_DATA(EFI_MISC_CHASSIS_MANUFACTURER_DATA, MiscChassisManufacturer) = {
-  STRING_TOKEN(STR_MISC_CHASSIS_MANUFACTURER),  // ChassisManufactrurer
+  STRING_TOKEN(STR_MISC_CHASSIS_MANUFACTURER),  // ChassisManufacturer
STRING_TOKEN(STR_MISC_CHASSIS_VERSION),       // ChassisVersion
STRING_TOKEN(STR_MISC_CHASSIS_SERIAL_NUMBER), // ChassisSerialNumber
STRING_TOKEN(STR_MISC_CHASSIS_ASSET_TAG),     // ChassisAssetTag
@@ -36,4 +36,4 @@ MISC_SMBIOS_TABLE_DATA(EFI_MISC_CHASSIS_MANUFACTURER_DATA, MiscChassisManufactur
0                               // ChassisOemDefined
};

-/* eof - MiscChassisManufacaturerData.c */
+/* eof - MiscChassisManufacturerData.c */
diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
index b71524ef1e..24d1fbb42e 100644
--- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
+++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
@@ -12,7 +12,7 @@
Check whether the language is supported for given HII handle

@param   HiiHandle     The HII package list handle.
-  @param   Offset        The offest of current lanague in the supported languages.
+  @param   Offset        The offset of current language in the supported languages.
@param   CurrentLang   The language code.

@retval  TRUE          Supported.
@@ -86,7 +86,7 @@ CurrentLanguageMatch (
Get next language from language code list (with separator ';').

@param  LangCode       Input: point to first language in the list. On
-                         Otput: point to next language in the list, or
+                         Output: point to next language in the list, or
NULL if no more language in the list.
@param  Lang           The first language in the list.

diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c
index 94fa1025f5..d49510e496 100644
--- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c
+++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c
@@ -22,7 +22,7 @@ Abstract:
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_MANUFACTURER_DATA, MiscSystemManufacturer)
= {
STRING_TOKEN(STR_MISC_SYSTEM_MANUFACTURER),
-  // SystemManufactrurer
+  // SystemManufacturer
STRING_TOKEN(STR_MISC_SYSTEM_PRODUCT_NAME),
// SystemProductName
STRING_TOKEN(STR_MISC_SYSTEM_VERSION),
diff --git a/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c b/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c
index e6f8734600..e117fd0fc8 100644
--- a/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c
+++ b/EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c
@@ -77,7 +77,7 @@ CreatePlatformSmbiosMemoryRecords (
@param ImageHandle     Image handle this driver.
@param SystemTable     Pointer to SystemTable.

-  @retval EFI_SUCESS     This function always complete successfully.
+  @retval EFI_SUCCESS    This function always complete successfully.

**/
EFI_STATUS
@@ -120,7 +120,7 @@ PlatfomrSmbiosDriverEntryPoint (
// Phase 3 - Create tables from scratch

// Create Type 13 record from EFI Variables
-  // Do we need this record for EFI as the info is available from EFI varaibles
+  // Do we need this record for EFI as the info is available from EFI variables
// Also language types don't always match between EFI and SMBIOS
// CreateSmbiosLanguageInformation (1, gSmbiosLangToEfiLang);

diff --git a/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c b/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
index 11c8e94504..72a0338ca9 100644
--- a/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
+++ b/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
@@ -10,7 +10,7 @@
System Slots (Type 9) - If system has slots
Physical Memory Array (Type 16)
Memory Device (Type 17) - For each socketed system-memory Device
-    Memory Array Mapped Address (Type 19) - One per contiguous block per Physical Memroy Array
+    Memory Array Mapped Address (Type 19) - One per contiguous block per Physical Memory Array
System Boot Information (Type 32)

Copyright (c) 2012, Apple Inc. All rights reserved.<BR>
diff --git a/EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.c b/EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
index c2f980ddc5..b8582b6d9b 100644
--- a/EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
+++ b/EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
@@ -61,7 +61,7 @@ Arguments:

Returns:

-  EFI_SUCEESS   - The underlying GetSystemTime call occurred and returned
+  EFI_SUCCESS   - The underlying GetSystemTime call occurred and returned
Note that in the NT32 emulation, the GetSystemTime call has no return value
thus you will always receive a EFI_SUCCESS on this.

@@ -98,7 +98,7 @@ Arguments:

Returns:

-  EFI_SUCEESS           - The operation completed successfully.
+  EFI_SUCCESS           - The operation completed successfully.

EFI_INVALID_PARAMETER - One of the fields in Time is out of range.

@@ -145,7 +145,7 @@ Arguments:

Returns:

-  EFI_SUCEESS           - The operation completed successfully.
+  EFI_SUCCESS           - The operation completed successfully.

EFI_DEVICE_ERROR      - The operation could not be complete due to a device error.

@@ -177,7 +177,7 @@ Arguments:

Returns:

-  EFI_SUCEESS           - The operation completed successfully.
+  EFI_SUCCESS           - The operation completed successfully.

EFI_DEVICE_ERROR      - The operation could not be complete due to a device error.

@@ -207,7 +207,7 @@ Arguments:

Returns:

-  EFI_SUCEESS - Real Time Clock Services are installed into the Runtime Services Table
+  EFI_SUCCESS - Real Time Clock Services are installed into the Runtime Services Table

**/
{
diff --git a/EmulatorPkg/Sec/Ia32/SwitchRam.S b/EmulatorPkg/Sec/Ia32/SwitchRam.S
index f24529cc8e..d8298223a9 100644
--- a/EmulatorPkg/Sec/Ia32/SwitchRam.S
+++ b/EmulatorPkg/Sec/Ia32/SwitchRam.S
@@ -9,7 +9,7 @@
#
# Abstract:
#
-#   Switch the stack from temporary memory to permenent memory.
+#   Switch the stack from temporary memory to permanent memory.
#
#------------------------------------------------------------------------------

@@ -36,7 +36,7 @@ ASM_PFX(SecSwitchStack):

#
# !!CAUTION!! this function address's is pushed into stack after
-# migration of whole temporary memory, so need save it to permenent
+# migration of whole temporary memory, so need save it to permanent
# memory at first!
#

@@ -44,14 +44,14 @@ ASM_PFX(SecSwitchStack):
movl  24(%esp), %ecx            # Save the second parameter

#
-# Save this function's return address into permenent memory at first.
-# Then, Fixup the esp point to permenent memory
+# Save this function's return address into permanent memory at first.
+# Then, Fixup the esp point to permanent memory
#

movl  %esp, %eax
subl  %ebx, %eax
addl  %ecx, %eax
-    movl  (%esp), %edx                 # copy pushed register's value to permenent memory
+    movl  (%esp), %edx                 # copy pushed register's value to permanent memory
movl  %edx, (%eax)
movl  4(%esp), %edx
movl  %edx, 4(%eax)
@@ -61,16 +61,16 @@ ASM_PFX(SecSwitchStack):
movl  %edx, 12(%eax)
movl  16(%esp), %edx
movl  %edx, 16(%eax)
-    movl  %eax, %esp                   # From now, esp is pointed to permenent memory
+    movl  %eax, %esp                   # From now, esp is pointed to permanent memory

#
-# Fixup the ebp point to permenent memory
+# Fixup the ebp point to permanent memory
#
#ifndef __APPLE__
movl   %ebp, %eax
subl   %ebx, %eax
addl   %ecx, %eax
-    movl   %eax, %ebp                  # From now, ebp is pointed to permenent memory
+    movl   %eax, %ebp                  # From now, ebp is pointed to permanent memory

#
# Fixup callee's ebp point for PeiDispatch
@@ -78,7 +78,7 @@ ASM_PFX(SecSwitchStack):
movl   (%ebp), %eax
subl   %ebx, %eax
addl   %ecx, %eax
-    movl   %eax, (%ebp)                # From now, Temporary's PPI caller's stack is in permenent memory
+    movl   %eax, (%ebp)                # From now, Temporary's PPI caller's stack is in permanent memory
#endif

pop   %edx
diff --git a/EmulatorPkg/Sec/Ia32/SwitchRam.asm b/EmulatorPkg/Sec/Ia32/SwitchRam.asm
index 9c7908f7a0..99ef002980 100644
--- a/EmulatorPkg/Sec/Ia32/SwitchRam.asm
+++ b/EmulatorPkg/Sec/Ia32/SwitchRam.asm
@@ -9,7 +9,7 @@
;
; Abstract:
;
-;   Switch the stack from temporary memory to permenent memory.
+;   Switch the stack from temporary memory to permanent memory.
;
;------------------------------------------------------------------------------

@@ -36,7 +36,7 @@ SecSwitchStack   PROC

;
; !!CAUTION!! this function address's is pushed into stack after
-    ; migration of whole temporary memory, so need save it to permenent
+    ; migration of whole temporary memory, so need save it to permanent
; memory at first!
;

@@ -44,13 +44,13 @@ SecSwitchStack   PROC
mov   ecx, [esp + 24]          ; Save the second parameter

;
-    ; Save this function's return address into permenent memory at first.
-    ; Then, Fixup the esp point to permenent memory
+    ; Save this function's return address into permanent memory at first.
+    ; Then, Fixup the esp point to permanent memory
;
mov   eax, esp
sub   eax, ebx
add   eax, ecx
-    mov   edx, dword ptr [esp]         ; copy pushed register's value to permenent memory
+    mov   edx, dword ptr [esp]         ; copy pushed register's value to permanent memory
mov   dword ptr [eax], edx
mov   edx, dword ptr [esp + 4]
mov   dword ptr [eax + 4], edx
@@ -58,17 +58,17 @@ SecSwitchStack   PROC
mov   dword ptr [eax + 8], edx
mov   edx, dword ptr [esp + 12]
mov   dword ptr [eax + 12], edx
-    mov   edx, dword ptr [esp + 16]    ; Update this function's return address into permenent memory
+    mov   edx, dword ptr [esp + 16]    ; Update this function's return address into permanent memory
mov   dword ptr [eax + 16], edx
-    mov   esp, eax                     ; From now, esp is pointed to permenent memory
+    mov   esp, eax                     ; From now, esp is pointed to permanent memory

;
-    ; Fixup the ebp point to permenent memory
+    ; Fixup the ebp point to permanent memory
;
mov   eax, ebp
sub   eax, ebx
add   eax, ecx
-    mov   ebp, eax                ; From now, ebp is pointed to permenent memory
+    mov   ebp, eax                ; From now, ebp is pointed to permanent memory

;
; Fixup callee's ebp point for PeiDispatch
@@ -76,7 +76,7 @@ SecSwitchStack   PROC
mov   eax, dword ptr [ebp]
sub   eax, ebx
add   eax, ecx
-    mov   dword ptr [ebp], eax    ; From now, Temporary's PPI caller's stack is in permenent memory
+    mov   dword ptr [ebp], eax    ; From now, Temporary's PPI caller's stack is in permanent memory

pop   edx
pop   ecx
diff --git a/EmulatorPkg/Sec/Sec.c b/EmulatorPkg/Sec/Sec.c
index 701032233b..7ee8786c79 100644
--- a/EmulatorPkg/Sec/Sec.c
+++ b/EmulatorPkg/Sec/Sec.c
@@ -1,5 +1,5 @@
/*++ @file
-  Stub SEC that is called from the OS appliation that is the root of the emulator.
+  Stub SEC that is called from the OS application that is the root of the emulator.

The OS application will call the SEC with the PEI Entry Point API.

@@ -89,7 +89,7 @@ _ModuleEntryPoint (
SecReseveredMemorySize += sizeof (EFI_PEI_PPI_DESCRIPTOR);

if ((Ppi->Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) == EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) {
-      // Since we are appending, need to clear out privious list terminator.
+      // Since we are appending, need to clear out previous list terminator.
Ppi->Flags &= ~EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;
break;
}
@@ -140,4 +140,3 @@ _ModuleEntryPoint (
}

-
diff --git a/EmulatorPkg/Sec/Sec.h b/EmulatorPkg/Sec/Sec.h
index dd301f7888..42554e05b5 100644
--- a/EmulatorPkg/Sec/Sec.h
+++ b/EmulatorPkg/Sec/Sec.h
@@ -1,5 +1,5 @@
/*++ @file
-  Stub SEC that is called from the OS appliation that is the root of the emulator.
+  Stub SEC that is called from the OS application that is the root of the emulator.

The OS application will call the SEC with the PEI Entry Point API.

@@ -23,7 +23,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent

//
-// I think this shold be defined in a MdePkg include file?
+// I think this should be defined in a MdePkg include file?
//
VOID
EFIAPI
diff --git a/EmulatorPkg/Sec/X64/SwitchRam.S b/EmulatorPkg/Sec/X64/SwitchRam.S
index 7ddb6c854b..59d4e2edef 100644
--- a/EmulatorPkg/Sec/X64/SwitchRam.S
+++ b/EmulatorPkg/Sec/X64/SwitchRam.S
@@ -1,7 +1,7 @@
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
-# Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------------------
diff --git a/EmulatorPkg/Sec/X64/SwitchRam.asm b/EmulatorPkg/Sec/X64/SwitchRam.asm
index 73530bff39..e66bda5bf4 100644
--- a/EmulatorPkg/Sec/X64/SwitchRam.asm
+++ b/EmulatorPkg/Sec/X64/SwitchRam.asm
@@ -1,7 +1,7 @@
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
-; Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+; Portions copyright (c) 2011, Apple Inc. All rights reserved.
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
diff --git a/EmulatorPkg/TimerDxe/Timer.c b/EmulatorPkg/TimerDxe/Timer.c
index dfd92acc8c..8e2baaaa5b 100644
--- a/EmulatorPkg/TimerDxe/Timer.c
+++ b/EmulatorPkg/TimerDxe/Timer.c
@@ -301,7 +301,7 @@ Returns:

EFI_OUT_OF_RESOURCES  - Not enough resources available to initialize driver.

-  EFI_DEVICE_ERROR      - A device error occured attempting to initialize the driver.
+  EFI_DEVICE_ERROR      - A device error occurred attempting to initialize the driver.

**/
{
diff --git a/EmulatorPkg/Unix/GdbRun.sh b/EmulatorPkg/Unix/GdbRun.sh
index 8c761ff2c9..b050ad5e2c 100644
--- a/EmulatorPkg/Unix/GdbRun.sh
+++ b/EmulatorPkg/Unix/GdbRun.sh
@@ -62,8 +62,8 @@ define RemoveFirmwareSymbolFile
end

if gInXcode == 1
-  # in Xcode the program is already runing. Issuing a run command
-  # will cause a fatal debugger error. The break point sciprt that
+  # in Xcode the program is already running. Issuing a run command
+  # will cause a fatal debugger error. The break point script that
# is used to source this script sets gInCode to 1.
else
#
diff --git a/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c b/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
index e318a90740..dcc315ac72 100644
--- a/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
+++ b/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
@@ -5,7 +5,7 @@
Tested on Mac OS X.

Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
-Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+Portions copyright (c) 2011, Apple Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

diff --git a/EmulatorPkg/Unix/Host/BlockIo.c b/EmulatorPkg/Unix/Host/BlockIo.c
index 07e39347e4..18368060d5 100644
--- a/EmulatorPkg/Unix/Host/BlockIo.c
+++ b/EmulatorPkg/Unix/Host/BlockIo.c
@@ -398,7 +398,7 @@ EmuBlockIoReadBlocks (
Done:
if (Token != NULL) {
if (Token->Event != NULL) {
-      // Caller is responcible for signaling EFI Event
+      // Caller is responsible for signaling EFI Event
Token->TransactionStatus = Status;
return EFI_SUCCESS;
}
@@ -429,7 +429,7 @@ Done:
the Event is NULL.
@retval EFI_WRITE_PROTECTED   The device can not be written to.
@retval EFI_NO_MEDIA          There is no media in the device.
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.
@retval EFI_DEVICE_ERROR      The device reported an error while performing the write.
@retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
@@ -477,7 +477,7 @@ EmuBlockIoWriteBlocks (
Done:
if (Token != NULL) {
if (Token->Event != NULL) {
-      // Caller is responcible for signaling EFI Event
+      // Caller is responsible for signaling EFI Event
Token->TransactionStatus = Status;
return EFI_SUCCESS;
}
@@ -500,7 +500,7 @@ Done:
@retval EFI_SUCCESS          The flush request was queued if Event is not NULL.
All outstanding data was written correctly to the
device if the Event is NULL.
-  @retval EFI_DEVICE_ERROR     The device reported an error while writting back
+  @retval EFI_DEVICE_ERROR     The device reported an error while writing back
the data.
@retval EFI_WRITE_PROTECTED  The device cannot be written to.
@retval EFI_NO_MEDIA         There is no media in the device.
@@ -529,7 +529,7 @@ EmuBlockIoFlushBlocks (

if (Token != NULL) {
if (Token->Event != NULL) {
-      // Caller is responcible for signaling EFI Event
+      // Caller is responsible for signaling EFI Event
Token->TransactionStatus = EFI_SUCCESS;
return EFI_SUCCESS;
}
@@ -544,7 +544,7 @@ EmuBlockIoFlushBlocks (

@param[in]  This                 Indicates a pointer to the calling context.
@param[in]  ExtendedVerification Indicates that the driver may perform a more
-                                   exhausive verfication operation of the device
+                                   exhaustive verification operation of the device
during reset.

@retval EFI_SUCCESS          The device was reset.
diff --git a/EmulatorPkg/Unix/Host/EmuThunk.c b/EmulatorPkg/Unix/Host/EmuThunk.c
index f1330c8234..b831c67946 100644
--- a/EmulatorPkg/Unix/Host/EmuThunk.c
+++ b/EmulatorPkg/Unix/Host/EmuThunk.c
@@ -6,7 +6,7 @@
The mUnixThunkTable exists so that a change to EFI_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
+  it may cause the table to be initialized with the members at the end being
set to zero. This is bad as jumping to zero will crash.

Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c
index febfb1f44c..b6d7777d41 100644
--- a/EmulatorPkg/Unix/Host/Host.c
+++ b/EmulatorPkg/Unix/Host/Host.c
@@ -38,7 +38,7 @@ UINTN       gFdInfoCount = 0;
EMU_FD_INFO *gFdInfo;

//
-// Array that supports seperate memory rantes.
+// Array that supports separate memory ranges.
//  The memory ranges are set in system.cmd via the EFI_MEMORY_SIZE variable.
//  The number of array elements is allocated base on parsing
//  EFI_MEMORY_SIZE and the memory is never freed.
@@ -379,7 +379,7 @@ Arguments:
Returns:
EFI_SUCCESS      - The file was opened and mapped.
EFI_NOT_FOUND    - FileName was not found in the current directory
-  EFI_DEVICE_ERROR - An error occured attempting to map the opened file
+  EFI_DEVICE_ERROR - An error occurred attempting to map the opened file

**/
EFI_STATUS
@@ -523,7 +523,7 @@ Arguments:
PeiCorePe32File         - SEC PE32

Returns:
-  Success means control is transfered and thus we should never return
+  Success means control is transferred and thus we should never return

**/
VOID
@@ -611,7 +611,7 @@ Routine Description:
It allows discontinuous memory regions to be supported by the emulator.
It uses gSystemMemory[] and gSystemMemoryCount that were created by
parsing the host environment variable EFI_MEMORY_SIZE.
-  The size comes from the varaible and the address comes from the call to
+  The size comes from the variable and the address comes from the call to
UnixOpenFile.

Arguments:
@@ -661,7 +661,7 @@ Routine Description:

This is all of GCD for system memory passed to DXE Core. FV
mapping and other device mapped into system memory are not
- inlcuded in the check.
+ included in the check.

Arguments:
Index      - Which memory region to use
@@ -898,7 +898,7 @@ Routine Description:
The ModHandle is needed to unload the image.

Arguments:
-  ImageContext - Input data returned from PE Laoder Library. Used to find the
+  ImageContext - Input data returned from PE Loader Library. Used to find the
.PDB file name of the PE Image.
ModHandle    - Returned from LoadLibraryEx() and stored for call to
FreeLibrary().
@@ -922,7 +922,7 @@ AddHandle (
for (Index = 0; Index < mImageContextModHandleArraySize; Index++, Array++) {
if (Array->ImageContext == NULL) {
//
-      // Make a copy of the stirng and store the ModHandle
+      // Make a copy of the string and store the ModHandle
//
Array->ImageContext = ImageContext;
Array->ModHandle    = ModHandle;
@@ -933,7 +933,7 @@ AddHandle (
//
// No free space in mImageContextModHandleArray so grow it by
// IMAGE_CONTEXT_TO_MOD_HANDLE entires. realloc will
-  // copy the old values to the new locaiton. But it does
+  // copy the old values to the new location. But it does
// not zero the new memory area.
//
PreviousSize = mImageContextModHandleArraySize * sizeof (IMAGE_CONTEXT_TO_MOD_HANDLE);
@@ -961,11 +961,11 @@ Routine Description:
Return the ModHandle and delete the entry in the array.

Arguments:
-  ImageContext - Input data returned from PE Laoder Library. Used to find the
+  ImageContext - Input data returned from PE Loader Library. Used to find the
.PDB file name of the PE Image.

Returns:
-  ModHandle - ModHandle assoicated with ImageContext is returned
+  ModHandle - ModHandle associated with ImageContext is returned
NULL      - No ModHandle associated with ImageContext

**/
diff --git a/EmulatorPkg/Unix/Host/LinuxPacketFilter.c b/EmulatorPkg/Unix/Host/LinuxPacketFilter.c
index a8028d18ff..2b772ab884 100644
--- a/EmulatorPkg/Unix/Host/LinuxPacketFilter.c
+++ b/EmulatorPkg/Unix/Host/LinuxPacketFilter.c
@@ -6,7 +6,7 @@
is just a template that needs to get filled in.

Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
-Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+Portions copyright (c) 2011, Apple Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

diff --git a/EmulatorPkg/Unix/Host/Pthreads.c b/EmulatorPkg/Unix/Host/Pthreads.c
index 7c71a2da4f..3aadab0c28 100644
--- a/EmulatorPkg/Unix/Host/Pthreads.c
+++ b/EmulatorPkg/Unix/Host/Pthreads.c
@@ -133,7 +133,7 @@ PthreadCreate (
EnabledOnEntry = FALSE;
}

-  // Aquire lock for global, SecFakePthreadStart runs in a different thread.
+  // Acquire lock for global, SecFakePthreadStart runs in a different thread.
pthread_mutex_lock (&mThreadMangle.Mutex);
mThreadMangle.Start   = Start;

diff --git a/EmulatorPkg/Unix/Host/X64/Gasket.S b/EmulatorPkg/Unix/Host/X64/Gasket.S
index a9ca707562..030faa8e4c 100644
--- a/EmulatorPkg/Unix/Host/X64/Gasket.S
+++ b/EmulatorPkg/Unix/Host/X64/Gasket.S
@@ -15,11 +15,11 @@
//
// Gaskets are EFI ABI to UNIX ABI calls
// EFI ABI code will sub 40 (0x28) from %rsp before calling a function
-//  This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundry.
+//  This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundary.
//
.text

-// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundry
+// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundary
// Any call with 0 - 4 arguments allocates 40 bytes on the stack.
// For more than 4 args you always have to increase in quanta of 16 so 5 or 6 args is 56,
// 7 or 8 args is 72, and 9 or 10 args is 88
diff --git a/EmulatorPkg/Unix/Host/X64/SwitchStack.S b/EmulatorPkg/Unix/Host/X64/SwitchStack.S
index 4126cc9912..36838bf29e 100644
--- a/EmulatorPkg/Unix/Host/X64/SwitchStack.S
+++ b/EmulatorPkg/Unix/Host/X64/SwitchStack.S
@@ -1,7 +1,7 @@
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
-# Portitions copyright (c) 2011, Apple Inc. All rights reserved.
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------------------
diff --git a/EmulatorPkg/Unix/lldbefi.py b/EmulatorPkg/Unix/lldbefi.py
index 218326b8cb..f3e35865c2 100755
--- a/EmulatorPkg/Unix/lldbefi.py
+++ b/EmulatorPkg/Unix/lldbefi.py
@@ -1,7 +1,7 @@
#!/usr/bin/python

#
-#  Copyright 2014 Apple Inc. All righes reserved.
+#  Copyright 2014 Apple Inc. All rights reserved.
#
#  SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -278,7 +278,7 @@ def EFI_DEVICE_PATH_PROTOCOL_TypeSummary (valobj,internal_dict):

Address = long ("%d" % valobj.addr)
if (Address == lldb.LLDB_INVALID_ADDRESS):
-      # Need to reserach this, it seems to be the nested struct case
+      # Need to research this, it seems to be the nested struct case
ExprStr = ""
elif (Type & 0x7f == 0x7f):
ExprStr = "End Device Path" if SubType == 0xff else "End This Instance"
@@ -304,7 +304,7 @@ def EFI_DEVICE_PATH_PROTOCOL_TypeSummary (valobj,internal_dict):

def TypePrintFormating(debugger):
#
-    # Set the default print formating for EFI types in lldb.
+    # Set the default print formatting for EFI types in lldb.
# seems lldb defaults to decimal.
#
category = debugger.GetDefaultCategory()
@@ -384,7 +384,7 @@ def LoadEmulatorEfiSymbols(frame, bp_loc , internal_dict):
FileName = frame.thread.process.ReadCStringFromMemory (FileNamePtr, FileNameLen, Error)
if not Error.Success():
print "!ReadCStringFromMemory() did not find a %d byte C string at %x" % (FileNameLen, FileNamePtr)
-        # make breakpoint command contiue
+        # make breakpoint command continue
frame.GetThread().GetProcess().Continue()

debugger = frame.thread.process.target.debugger
@@ -404,12 +404,12 @@ def LoadEmulatorEfiSymbols(frame, bp_loc , internal_dict):
if not target.RemoveModule (SBModule):
print "!lldb.target.RemoveModule (%s) FAILED" % SBModule

-    # make breakpoint command contiue
+    # make breakpoint command continue
frame.thread.process.Continue()

def GuidToCStructStr (guid, Name=False):
#
-  # Convert a 16-byte bytesarry (or bytearray compat object) to C guid string
+  # Convert a 16-byte bytesarray (or bytearray compat object) to C guid string
# { 0xB402621F, 0xA940, 0x1E4A, { 0x86, 0x6B, 0x4D, 0xC9, 0x16, 0x2B, 0x34, 0x7C } }
#
# Name=True means lookup name in GuidNameDict and us it if you find it
@@ -516,7 +516,7 @@ def __lldb_init_module (debugger, internal_dict):
if len(data) >= 2:
guid_dict[data[0].upper()] = data[1].strip('\n')

-    # init EFI specific type formaters
+    # init EFI specific type formatters
TypePrintFormating (debugger)

diff --git a/EmulatorPkg/Win/Host/WinGopScreen.c b/EmulatorPkg/Win/Host/WinGopScreen.c
index 8f42606823..9a992ad157 100644
--- a/EmulatorPkg/Win/Host/WinGopScreen.c
+++ b/EmulatorPkg/Win/Host/WinGopScreen.c
@@ -297,7 +297,7 @@ WinNtWndSize (
@param  X                      X location on graphics screen.
@param  Y                      Y location on the graphics screen.
@param  Width                  Width of BltBuffer.
-  @param  Height                 Hight of BltBuffer
+  @param  Height                 Height of BltBuffer
@param  BltOperation           Operation to perform on BltBuffer and video memory
@param  BltBuffer              Buffer containing data to blt into video buffer.
This  buffer has a size of
diff --git a/EmulatorPkg/Win/Host/WinHost.c b/EmulatorPkg/Win/Host/WinHost.c
index dd52075f98..32d77fe48d 100644
--- a/EmulatorPkg/Win/Host/WinHost.c
+++ b/EmulatorPkg/Win/Host/WinHost.c
@@ -859,7 +859,7 @@ PeCoffLoaderRelocateImageExtraAction (
//  the *.dll file as a library using Windows* APIs. This allows
//  source level debug. The image is still loaded and relocated
//  in the Framework memory space like on a real system (by the code above),
-  //  but the entry point points into the DLL loaded by the code bellow.
+  //  but the entry point points into the DLL loaded by the code below.
//

DllEntryPoint = NULL;
--
2.20.1 (Apple Git-117)

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#43043): https://edk2.groups.io/g/devel/message/43043
Mute This Topic: https://groups.io/mt/32250577/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-