<div>Fix various typos in EmulatorPkg.</div>
<div> </div>
<div>Contributed-under: TianoCore Contribution Agreement 1.1</div>
<div>Signed-off-by: Coeur <coeur@gmx.fr></div>
<div>---</div>
<div> EmulatorPkg/BootModePei/BootModePei.c         |  2 +-</div>
<div> .../FirmwareVolumePei/FirmwareVolumePei.c     |  2 +-</div>
<div> EmulatorPkg/Unix/Host/Host.c                  | 20 +++++++++----------</div>
<div> EmulatorPkg/Unix/Host/LinuxPacketFilter.c     |  2 +-</div>
<div> EmulatorPkg/Unix/Host/Pthreads.c              |  2 +-</div>
<div> EmulatorPkg/Unix/Host/X64/Gasket.S            |  4 ++--</div>
<div> EmulatorPkg/Unix/Host/X64/SwitchStack.S       |  2 +-</div>
<div> 7 files changed, 17 insertions(+), 17 deletions(-)</div>
<div> </div>
<div>diff --git a/EmulatorPkg/BootModePei/BootModePei.c b/EmulatorPkg/BootModePei/BootModePei.c</div>
<div>index a008a2331d..0f8d8f090e 100644</div>
<div>--- a/EmulatorPkg/BootModePei/BootModePei.c</div>
<div>+++ b/EmulatorPkg/BootModePei/BootModePei.c</div>
<div>@@ -18,7 +18,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent</div>
<div> </div>
<div> </div>
<div> //</div>
<div>-// The protocols, PPI and GUID defintions for this module</div>
<div>+// The protocols, PPI and GUID definitions for this module</div>
<div> //</div>
<div> #include <Ppi/MasterBootMode.h></div>
<div> #include <Ppi/BootInRecoveryMode.h></div>
<div>diff --git a/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c b/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c</div>
<div>index 4178111096..c8ff6edff3 100644</div>
<div>--- a/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c</div>
<div>+++ b/EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c</div>
<div>@@ -77,7 +77,7 @@ Returns:</div>
<div>       if (Index == 0) {</div>
<div>         //</div>
<div>         // Assume the first FD was produced by the NT32.DSC</div>
<div>-        //  All these strange offests are needed to keep in</div>
<div>+        //  All these strange offsets are needed to keep in</div>
<div>         //  sync with the FlashMap and NT32.dsc file</div>
<div>         //</div>
<div>         BuildResourceDescriptorHob (</div>
<div>diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c</div>
<div>index febfb1f44c..b6d7777d41 100644</div>
<div>--- a/EmulatorPkg/Unix/Host/Host.c</div>
<div>+++ b/EmulatorPkg/Unix/Host/Host.c</div>
<div>@@ -38,7 +38,7 @@ UINTN       gFdInfoCount = 0;</div>
<div> EMU_FD_INFO *gFdInfo;</div>
<div> </div>
<div> //</div>
<div>-// Array that supports seperate memory rantes.</div>
<div>+// Array that supports separate memory ranges.</div>
<div> //  The memory ranges are set in system.cmd via the EFI_MEMORY_SIZE variable.</div>
<div> //  The number of array elements is allocated base on parsing</div>
<div> //  EFI_MEMORY_SIZE and the memory is never freed.</div>
<div>@@ -379,7 +379,7 @@ Arguments:</div>
<div> Returns:</div>
<div>   EFI_SUCCESS      - The file was opened and mapped.</div>
<div>   EFI_NOT_FOUND    - FileName was not found in the current directory</div>
<div>-  EFI_DEVICE_ERROR - An error occured attempting to map the opened file</div>
<div>+  EFI_DEVICE_ERROR - An error occurred attempting to map the opened file</div>
<div> </div>
<div> **/</div>
<div> EFI_STATUS</div>
<div>@@ -523,7 +523,7 @@ Arguments:</div>
<div>   PeiCorePe32File         - SEC PE32</div>
<div> </div>
<div> Returns:</div>
<div>-  Success means control is transfered and thus we should never return</div>
<div>+  Success means control is transferred and thus we should never return</div>
<div> </div>
<div> **/</div>
<div> VOID</div>
<div>@@ -611,7 +611,7 @@ Routine Description:</div>
<div>   It allows discontinuous memory regions to be supported by the emulator.</div>
<div>   It uses gSystemMemory[] and gSystemMemoryCount that were created by</div>
<div>   parsing the host environment variable EFI_MEMORY_SIZE.</div>
<div>-  The size comes from the varaible and the address comes from the call to</div>
<div>+  The size comes from the variable and the address comes from the call to</div>
<div>   UnixOpenFile.</div>
<div> </div>
<div> Arguments:</div>
<div>@@ -661,7 +661,7 @@ Routine Description:</div>
<div> </div>
<div>  This is all of GCD for system memory passed to DXE Core. FV</div>
<div>  mapping and other device mapped into system memory are not</div>
<div>- inlcuded in the check.</div>
<div>+ included in the check.</div>
<div> </div>
<div> Arguments:</div>
<div>   Index      - Which memory region to use</div>
<div>@@ -898,7 +898,7 @@ Routine Description:</div>
<div>   The ModHandle is needed to unload the image.</div>
<div> </div>
<div> Arguments:</div>
<div>-  ImageContext - Input data returned from PE Laoder Library. Used to find the</div>
<div>+  ImageContext - Input data returned from PE Loader Library. Used to find the</div>
<div>                  .PDB file name of the PE Image.</div>
<div>   ModHandle    - Returned from LoadLibraryEx() and stored for call to</div>
<div>                  FreeLibrary().</div>
<div>@@ -922,7 +922,7 @@ AddHandle (</div>
<div>   for (Index = 0; Index < mImageContextModHandleArraySize; Index++, Array++) {</div>
<div>     if (Array->ImageContext == NULL) {</div>
<div>       //</div>
<div>-      // Make a copy of the stirng and store the ModHandle</div>
<div>+      // Make a copy of the string and store the ModHandle</div>
<div>       //</div>
<div>       Array->ImageContext = ImageContext;</div>
<div>       Array->ModHandle    = ModHandle;</div>
<div>@@ -933,7 +933,7 @@ AddHandle (</div>
<div>   //</div>
<div>   // No free space in mImageContextModHandleArray so grow it by</div>
<div>   // IMAGE_CONTEXT_TO_MOD_HANDLE entires. realloc will</div>
<div>-  // copy the old values to the new locaiton. But it does</div>
<div>+  // copy the old values to the new location. But it does</div>
<div>   // not zero the new memory area.</div>
<div>   //</div>
<div>   PreviousSize = mImageContextModHandleArraySize * sizeof (IMAGE_CONTEXT_TO_MOD_HANDLE);</div>
<div>@@ -961,11 +961,11 @@ Routine Description:</div>
<div>   Return the ModHandle and delete the entry in the array.</div>
<div> </div>
<div> Arguments:</div>
<div>-  ImageContext - Input data returned from PE Laoder Library. Used to find the</div>
<div>+  ImageContext - Input data returned from PE Loader Library. Used to find the</div>
<div>                  .PDB file name of the PE Image.</div>
<div> </div>
<div> Returns:</div>
<div>-  ModHandle - ModHandle assoicated with ImageContext is returned</div>
<div>+  ModHandle - ModHandle associated with ImageContext is returned</div>
<div>   NULL      - No ModHandle associated with ImageContext</div>
<div> </div>
<div> **/</div>
<div>diff --git a/EmulatorPkg/Unix/Host/LinuxPacketFilter.c b/EmulatorPkg/Unix/Host/LinuxPacketFilter.c</div>
<div>index a8028d18ff..2b772ab884 100644</div>
<div>--- a/EmulatorPkg/Unix/Host/LinuxPacketFilter.c</div>
<div>+++ b/EmulatorPkg/Unix/Host/LinuxPacketFilter.c</div>
<div>@@ -6,7 +6,7 @@</div>
<div>  is just a template that needs to get filled in.</div>
<div> </div>
<div> Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR></div>
<div>-Portitions copyright (c) 2011, Apple Inc. All rights reserved.</div>
<div>+Portions copyright (c) 2011, Apple Inc. All rights reserved.</div>
<div> </div>
<div> SPDX-License-Identifier: BSD-2-Clause-Patent</div>
<div> </div>
<div>diff --git a/EmulatorPkg/Unix/Host/Pthreads.c b/EmulatorPkg/Unix/Host/Pthreads.c</div>
<div>index 7c71a2da4f..3aadab0c28 100644</div>
<div>--- a/EmulatorPkg/Unix/Host/Pthreads.c</div>
<div>+++ b/EmulatorPkg/Unix/Host/Pthreads.c</div>
<div>@@ -133,7 +133,7 @@ PthreadCreate (</div>
<div>     EnabledOnEntry = FALSE;</div>
<div>   }</div>
<div> </div>
<div>-  // Aquire lock for global, SecFakePthreadStart runs in a different thread.</div>
<div>+  // Acquire lock for global, SecFakePthreadStart runs in a different thread.</div>
<div>   pthread_mutex_lock (&mThreadMangle.Mutex);</div>
<div>   mThreadMangle.Start   = Start;</div>
<div> </div>
<div>diff --git a/EmulatorPkg/Unix/Host/X64/Gasket.S b/EmulatorPkg/Unix/Host/X64/Gasket.S</div>
<div>index a9ca707562..030faa8e4c 100644</div>
<div>--- a/EmulatorPkg/Unix/Host/X64/Gasket.S</div>
<div>+++ b/EmulatorPkg/Unix/Host/X64/Gasket.S</div>
<div>@@ -15,11 +15,11 @@</div>
<div> //</div>
<div> // Gaskets are EFI ABI to UNIX ABI calls</div>
<div> // EFI ABI code will sub 40 (0x28) from %rsp before calling a function</div>
<div>-//  This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundry.</div>
<div>+//  This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundary.</div>
<div> //</div>
<div>   .text</div>
<div> </div>
<div>-// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundry</div>
<div>+// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundary</div>
<div> // Any call with 0 - 4 arguments allocates 40 bytes on the stack.</div>
<div> // For more than 4 args you always have to increase in quanta of 16 so 5 or 6 args is 56,</div>
<div> // 7 or 8 args is 72, and 9 or 10 args is 88</div>
<div>diff --git a/EmulatorPkg/Unix/Host/X64/SwitchStack.S b/EmulatorPkg/Unix/Host/X64/SwitchStack.S</div>
<div>index 4126cc9912..36838bf29e 100644</div>
<div>--- a/EmulatorPkg/Unix/Host/X64/SwitchStack.S</div>
<div>+++ b/EmulatorPkg/Unix/Host/X64/SwitchStack.S</div>
<div>@@ -1,7 +1,7 @@</div>
<div> #------------------------------------------------------------------------------</div>
<div> #</div>
<div> # Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR></div>
<div>-# Portitions copyright (c) 2011, Apple Inc. All rights reserved.</div>
<div>+# Portions copyright (c) 2011, Apple Inc. All rights reserved.</div>
<div> # SPDX-License-Identifier: BSD-2-Clause-Patent</div>
<div> #</div>
<div> #------------------------------------------------------------------------------</div>
<div>-- </div>
<div>2.20.1 (Apple Git-117)</div>
<div> </div>

<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>

You receive all messages sent to this group.


<p>

<a target="_blank" href="https://edk2.groups.io/g/devel/message/43181">View/Reply Online (#43181)</a> |


  


|


  
    <a target="_blank" href="https://groups.io/mt/32288251/1813853">Mute This Topic</a>
  

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>



<br>

<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>