]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line
authorJeff Fan <jeff.fan@intel.com>
Fri, 7 Apr 2017 02:00:59 +0000 (10:00 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 7 Apr 2017 02:06:37 +0000 (10:06 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
21 files changed:
UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.uni
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandler.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.S
UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.asm
UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.uni
UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.uni
UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.uni
UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.S
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.asm

index 05372083b36db4990963aab2e6bb62705761c08c..e9f679eb5d9d87c65c2d77656164f5baa617b27e 100644 (file)
@@ -1,4 +1,4 @@
-/** @file\r
+ /** @file\r
   CPU Exception Handler Library common functions.\r
 \r
   Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
@@ -106,11 +106,11 @@ InternalPrintMessage (
 \r
 /**\r
   Find and display image base address and return image base and its entry point.\r
-  \r
+\r
   @param CurrentEip      Current instruction pointer.\r
-  \r
+\r
 **/\r
-VOID \r
+VOID\r
 DumpModuleImageInfo (\r
   IN  UINTN              CurrentEip\r
   )\r
index e66a5df86423365df055225a015c0f8edf8415f8..740a58828bcac9fd31fedd04bde42fe67f8da272 100644 (file)
@@ -108,7 +108,7 @@ ArchGetIdtHandler (
   Prints a message to the serial port.\r
 \r
   @param  Format      Format string for the message to print.\r
-  @param  ...         Variable argument list whose contents are accessed \r
+  @param  ...         Variable argument list whose contents are accessed\r
                       based on the format string specified by Format.\r
 \r
 **/\r
@@ -121,11 +121,11 @@ InternalPrintMessage (
 \r
 /**\r
   Find and display image base address and return image base and its entry point.\r
-  \r
+\r
   @param CurrentEip      Current instruction pointer.\r
-  \r
+\r
 **/\r
-VOID \r
+VOID\r
 DumpModuleImageInfo (\r
   IN  UINTN              CurrentEip\r
   );\r
@@ -147,8 +147,8 @@ DumpImageAndCpuContent (
 \r
   @param[in]      VectorInfo            Pointer to reserved vector list.\r
   @param[in, out] ExceptionHandlerData  Pointer to exception handler data.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -230,7 +230,7 @@ ArchRestoreExceptionContext (
 \r
 /**\r
   Fix up the vector number and function address in the vector code.\r
\r
+\r
   @param[in] NewVectorAddr   New vector handler address.\r
   @param[in] VectorNum       Index of vector.\r
   @param[in] OldVectorAddr   Old vector handler address.\r
@@ -246,11 +246,11 @@ AsmVectorNumFixup (
 \r
 /**\r
   Read and save reserved vector information\r
-  \r
+\r
   @param[in]  VectorInfo        Pointer to reserved vector list.\r
   @param[out] ReservedVector    Pointer to reserved vector data buffer.\r
   @param[in]  VectorCount       Vector number to be updated.\r
-  \r
+\r
   @return EFI_SUCCESS           Read and save vector info successfully.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
 \r
@@ -283,7 +283,7 @@ GetExceptionNameStr (
 **/\r
 VOID\r
 CommonExceptionHandlerWorker (\r
-  IN EFI_EXCEPTION_TYPE          ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE          ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT          SystemContext,\r
   IN EXCEPTION_HANDLER_DATA      *ExceptionHandlerData\r
   );\r
index 630b25dab7e3f38937833d600fbad27f1f57cd04..f4a8d01c80713fd2184627281dcfc23a9fc8182c 100644 (file)
@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -58,6 +58,6 @@
   PrintLib\r
   SynchronizationLib\r
   LocalApicLib\r
-  PeCoffGetEntryPointLib \r
+  PeCoffGetEntryPointLib\r
   MemoryAllocationLib\r
   DebugLib\r
index d59ad7fed0bb9949e5595ed3856ef838aaaac728..ace4b6f2877e94d469b8530bcc347f07a4be990d 100644 (file)
@@ -9,7 +9,7 @@
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index ab13e5e870e54ff09931cad89c16a30c44d02357..31febec9767de5ee71beb02a20a21a54b177abce 100644 (file)
@@ -34,7 +34,7 @@ EXCEPTION_HANDLER_DATA      mExceptionHandlerData;
 VOID\r
 EFIAPI\r
 CommonExceptionHandler (\r
-  IN EFI_EXCEPTION_TYPE          ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE          ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT          SystemContext\r
   )\r
 {\r
@@ -43,15 +43,15 @@ CommonExceptionHandler (
 \r
 /**\r
   Initializes all CPU exceptions entries and provides the default exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -71,15 +71,15 @@ InitializeCpuExceptionHandlers (
 \r
 /**\r
   Initializes all CPU interrupt/exceptions entries and provides the default interrupt/exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized\r
                                 with default interrupt/exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -135,7 +135,7 @@ InitializeCpuInterruptHandlers (
   ASSERT (TemplateMap.ExceptionStubHeaderSize <= HOOKAFTER_STUB_SIZE);\r
   InterruptEntryCode = AllocatePool (TemplateMap.ExceptionStubHeaderSize * CPU_INTERRUPT_NUM);\r
   ASSERT (InterruptEntryCode != NULL);\r
-  \r
+\r
   InterruptEntry = (UINTN) InterruptEntryCode;\r
   for (Index = 0; Index < CPU_INTERRUPT_NUM; Index ++) {\r
     CopyMem (\r
@@ -168,9 +168,9 @@ InitializeCpuInterruptHandlers (
 /**\r
   Registers a function to be called from the processor interrupt handler.\r
 \r
-  This function registers and enables the handler specified by InterruptHandler for a processor \r
-  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the \r
-  handler for the processor interrupt or exception type specified by InterruptType is uninstalled. \r
+  This function registers and enables the handler specified by InterruptHandler for a processor\r
+  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the\r
+  handler for the processor interrupt or exception type specified by InterruptType is uninstalled.\r
   The installed handler is called once for each processor interrupt or exception.\r
   NOTE: This function should be invoked after InitializeCpuExceptionHandlers() or\r
   InitializeCpuInterruptHandlers() invoked, otherwise EFI_UNSUPPORTED returned.\r
index 52b0e76cd24bec56e40474971bee7f25a184a231..f2c39eb193e3d676ae89ca39de8b15bd4a0d85d1 100644 (file)
@@ -76,7 +76,7 @@ ArchSaveExceptionContext (
   // Clear IF flag to avoid old IDT handler enable interrupt by IRET\r
   //\r
   Eflags.UintN = SystemContext.SystemContextIa32->Eflags;\r
-  Eflags.Bits.IF = 0; \r
+  Eflags.Bits.IF = 0;\r
   SystemContext.SystemContextIa32->Eflags = Eflags.UintN;\r
   //\r
   // Modify the EIP in stack, then old IDT handler will return to the stub code\r
index 3676809b4bbf5555ac46eebfd9f32b1013069aef..c134257d9d5854e7f2a211ccd3e6722230b39dbf 100644 (file)
@@ -357,7 +357,7 @@ HasErrorCode:
     #\r
     # Put Vector Number on stack and restore ECX\r
     #\r
-    xchgl   (%esp), %ecx \r
+    xchgl   (%esp), %ecx\r
 \r
 ErrorCodeAndVectorOnStack:\r
     pushl   %ebp\r
@@ -384,13 +384,13 @@ ErrorCodeAndVectorOnStack:
     # Align stack to make sure that EFI_FX_SAVE_STATE_IA32 of EFI_SYSTEM_CONTEXT_IA32\r
     # is 16-byte aligned\r
     #\r
-    andl    $0x0fffffff0, %esp \r
+    andl    $0x0fffffff0, %esp\r
     subl    $12, %esp\r
 \r
     subl    $8, %esp\r
     pushl   $0         # check EXCEPTION_HANDLER_CONTEXT.OldIdtHandler\r
     pushl   $0         # check EXCEPTION_HANDLER_CONTEXT.ExceptionDataFlag\r
-       \r
+\r
 #; UINT32  Edi, Esi, Ebp, Esp, Ebx, Edx, Ecx, Eax;\r
     pushl   %eax\r
     pushl   %ecx\r
@@ -405,7 +405,7 @@ ErrorCodeAndVectorOnStack:
 #; UINT32  Gs, Fs, Es, Ds, Cs, Ss;\r
     movl    %ss, %eax\r
     pushl   %eax\r
-    movzwl  16(%ebp), %eax \r
+    movzwl  16(%ebp), %eax\r
     pushl   %eax\r
     movl    %ds, %eax\r
     pushl   %eax\r
@@ -425,14 +425,14 @@ ErrorCodeAndVectorOnStack:
     sidt    (%esp)\r
     movl    2(%esp), %eax\r
     xchgl   (%esp), %eax\r
-    andl    $0x0FFFF, %eax \r
+    andl    $0x0FFFF, %eax\r
     movl    %eax, 4(%esp)\r
 \r
     subl    $8, %esp\r
     sgdt    (%esp)\r
     movl    2(%esp), %eax\r
     xchgl   (%esp), %eax\r
-    andl    $0x0FFFF, %eax \r
+    andl    $0x0FFFF, %eax\r
     movl    %eax, 4(%esp)\r
 \r
 #; UINT32  Ldtr, Tr;\r
@@ -450,21 +450,21 @@ ErrorCodeAndVectorOnStack:
 ## insure FXSAVE/FXRSTOR is enabled in CR4...\r
 ## ... while we're at it, make sure DE is also enabled...\r
     mov     $1, %eax\r
-    pushl   %ebx                         # temporarily save value of ebx on stack \r
+    pushl   %ebx                         # temporarily save value of ebx on stack\r
     cpuid                                # use CPUID to determine if FXSAVE/FXRESTOR\r
                                          # and DE are supported\r
     popl    %ebx                         # retore value of ebx that was overwritten\r
-                                         # by CPUID \r
+                                         # by CPUID\r
     movl    %cr4, %eax\r
     pushl   %eax                         # push cr4 firstly\r
     testl   $BIT24, %edx                 # Test for FXSAVE/FXRESTOR support\r
     jz      L1\r
     orl     $BIT9, %eax                  # Set CR4.OSFXSR\r
-L1:    \r
+L1:\r
     testl   $BIT2, %edx                  # Test for Debugging Extensions support\r
     jz      L2\r
     orl     $BIT3, %eax                  # Set CR4.DE\r
-L2:    \r
+L2:\r
     movl    %eax, %cr4\r
     movl    %cr3, %eax\r
     pushl   %eax\r
@@ -492,11 +492,11 @@ L2:
 #; FX_SAVE_STATE_IA32 FxSaveState;\r
     subl    $512, %esp\r
     movl    %esp, %edi\r
-    testl   $BIT24, %edx     # Test for FXSAVE/FXRESTOR support.  \r
+    testl   $BIT24, %edx     # Test for FXSAVE/FXRESTOR support.\r
                              # edx still contains result from CPUID above\r
     jz      L3\r
     .byte      0x0f, 0x0ae, 0x07 #fxsave [edi]\r
-L3:  \r
+L3:\r
 \r
 #; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
     cld\r
@@ -523,12 +523,12 @@ L3:
 #; FX_SAVE_STATE_IA32 FxSaveState;\r
     movl    %esp, %esi\r
     movl    $1, %eax\r
-    cpuid                    # use CPUID to determine if FXSAVE/FXRESTOR \r
+    cpuid                    # use CPUID to determine if FXSAVE/FXRESTOR\r
                              # are supported\r
     testl   $BIT24, %edx     # Test for FXSAVE/FXRESTOR support\r
     jz      L4\r
     .byte      0x0f, 0x0ae, 0x0e # fxrstor [esi]\r
-L4:  \r
+L4:\r
     addl    $512, %esp\r
 \r
 #; UINT32  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;\r
@@ -612,30 +612,30 @@ DoIret:
 #---------------------------------------;\r
 # _AsmGetTemplateAddressMap             ;\r
 #---------------------------------------;\r
-# \r
+#\r
 # Protocol prototype\r
 #   AsmGetTemplateAddressMap (\r
 #     EXCEPTION_HANDLER_TEMPLATE_MAP *AddressMap\r
 #   );\r
-#           \r
+#\r
 # Routine Description:\r
-# \r
+#\r
 #  Return address map of interrupt handler template so that C code can generate\r
 #  interrupt table.\r
-# \r
+#\r
 # Arguments:\r
-# \r
-# \r
-# Returns: \r
-# \r
+#\r
+#\r
+# Returns:\r
+#\r
 #   Nothing\r
 #\r
-# \r
+#\r
 # Input:  [ebp][0]  = Original ebp\r
 #         [ebp][4]  = Return address\r
-#          \r
+#\r
 # Output: Nothing\r
-#          \r
+#\r
 # Destroys: Nothing\r
 #-----------------------------------------------------------------------------;\r
 #-------------------------------------------------------------------------------------\r
index 12bbec06909b2066a0608f6e13fbe5028cdcde84..126680ea476a61f3a998edde3c8ce1c6a629d3a9 100644 (file)
@@ -53,7 +53,7 @@ AsmIdtVectorEnd:
 HookAfterStubBegin:\r
     db      6ah        ; push\r
 VectorNum:\r
-    db      0          ; 0 will be fixed \r
+    db      0          ; 0 will be fixed\r
     push    eax\r
     mov     eax, HookAfterStubHeaderEnd\r
     jmp     eax\r
@@ -193,7 +193,7 @@ ErrorCodeAndVectorOnStack:
     sub     esp, 8\r
     push    0            ; clear EXCEPTION_HANDLER_CONTEXT.OldIdtHandler\r
     push    0            ; clear EXCEPTION_HANDLER_CONTEXT.ExceptionDataFlag\r
-       \r
+\r
 ;; UINT32  Edi, Esi, Ebp, Esp, Ebx, Edx, Ecx, Eax;\r
     push    eax\r
     push    ecx\r
@@ -251,20 +251,20 @@ ErrorCodeAndVectorOnStack:
 \r
 ;; UINT32  Cr0, Cr1, Cr2, Cr3, Cr4;\r
     mov     eax, 1\r
-    push    ebx         ; temporarily save value of ebx on stack \r
-    cpuid               ; use CPUID to determine if FXSAVE/FXRESTOR and DE \r
+    push    ebx         ; temporarily save value of ebx on stack\r
+    cpuid               ; use CPUID to determine if FXSAVE/FXRESTOR and DE\r
                         ; are supported\r
-    pop     ebx         ; retore value of ebx that was overwritten by CPUID \r
+    pop     ebx         ; retore value of ebx that was overwritten by CPUID\r
     mov     eax, cr4\r
     push    eax         ; push cr4 firstly\r
     test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support\r
     jz      @F\r
     or      eax, BIT9   ; Set CR4.OSFXSR\r
-@@:    \r
+@@:\r
     test    edx, BIT2   ; Test for Debugging Extensions support\r
     jz      @F\r
     or      eax, BIT3   ; Set CR4.DE\r
-@@:    \r
+@@:\r
     mov     cr4, eax\r
     mov     eax, cr3\r
     push    eax\r
@@ -296,7 +296,7 @@ ErrorCodeAndVectorOnStack:
                         ; edx still contains result from CPUID above\r
     jz      @F\r
     db      0fh, 0aeh, 07h ;fxsave [edi]\r
-@@:    \r
+@@:\r
 \r
 ;; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear\r
     cld\r
@@ -329,7 +329,7 @@ ErrorCodeAndVectorOnStack:
     test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support\r
     jz      @F\r
     db      0fh, 0aeh, 0eh ; fxrstor [esi]\r
-@@:    \r
+@@:\r
     add     esp, 512\r
 \r
 ;; UINT32  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;\r
@@ -395,7 +395,7 @@ ErrorCode:
     sub     esp, 4\r
     jmp     dword ptr [esp - 12]\r
 \r
-DoReturn:    \r
+DoReturn:\r
     cmp     mDoFarReturnFlag, 0   ; Check if need to do far return instead of IRET\r
     jz      DoIret\r
     push    [esp + 8]    ; save EFLAGS\r
@@ -414,30 +414,30 @@ CommonInterruptEntry ENDP
 ;---------------------------------------;\r
 ; _AsmGetTemplateAddressMap                  ;\r
 ;----------------------------------------------------------------------------;\r
-; \r
+;\r
 ; Protocol prototype\r
 ;   AsmGetTemplateAddressMap (\r
 ;     EXCEPTION_HANDLER_TEMPLATE_MAP *AddressMap\r
 ;   );\r
-;           \r
+;\r
 ; Routine Description:\r
-; \r
+;\r
 ;  Return address map of interrupt handler template so that C code can generate\r
 ;  interrupt table.\r
-; \r
+;\r
 ; Arguments:\r
-; \r
-; \r
-; Returns: \r
-; \r
+;\r
+;\r
+; Returns:\r
+;\r
 ;   Nothing\r
 ;\r
-; \r
+;\r
 ; Input:  [ebp][0]  = Original ebp\r
 ;         [ebp][4]  = Return address\r
-;          \r
+;\r
 ; Output: Nothing\r
-;           \r
+;\r
 ; Destroys: Nothing\r
 ;-----------------------------------------------------------------------------;\r
 AsmGetTemplateAddressMap  proc near public\r
@@ -449,7 +449,7 @@ AsmGetTemplateAddressMap  proc near public
     mov dword ptr [ebx],      AsmIdtVectorBegin\r
     mov dword ptr [ebx + 4h], (AsmIdtVectorEnd - AsmIdtVectorBegin) / 32\r
     mov dword ptr [ebx + 8h], HookAfterStubBegin\r
-  \r
+\r
     popad\r
     pop     ebp\r
     ret\r
index 53fa3c611e2f9776169ee5d1feeece2fc61cafbf..8d8d16ecbd7e3f817bd0576b83b8ee8d6c1fe75a 100644 (file)
@@ -25,7 +25,7 @@ EFI_GUID mCpuExceptrionHandlerLibHobGuid = CPU_EXCEPTION_HANDLER_LIB_HOB_GUID;
 /**\r
   Get exception handler data pointer from GUIDed HOb.\r
 \r
-  @return  pointer to exception handler data. \r
+  @return  pointer to exception handler data.\r
 **/\r
 EXCEPTION_HANDLER_DATA *\r
 GetExceptionHandlerData (\r
@@ -55,7 +55,7 @@ GetExceptionHandlerData (
 VOID\r
 EFIAPI\r
 CommonExceptionHandler (\r
-  IN EFI_EXCEPTION_TYPE   ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE   ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT   SystemContext\r
   )\r
 {\r
@@ -67,17 +67,17 @@ CommonExceptionHandler (
 \r
 /**\r
   Initializes all CPU exceptions entries and provides the default exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
-  Note: Before invoking this API, caller must allocate memory for IDT table and load \r
+  Note: Before invoking this API, caller must allocate memory for IDT table and load\r
         IDTR by AsmWriteIdtr().\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -123,15 +123,15 @@ InitializeCpuExceptionHandlers (
 \r
 /**\r
   Initializes all CPU interrupt/exceptions entries and provides the default interrupt/exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized\r
                                 with default interrupt/exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -149,9 +149,9 @@ InitializeCpuInterruptHandlers (
 /**\r
   Registers a function to be called from the processor interrupt handler.\r
 \r
-  This function registers and enables the handler specified by InterruptHandler for a processor \r
-  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the \r
-  handler for the processor interrupt or exception type specified by InterruptType is uninstalled. \r
+  This function registers and enables the handler specified by InterruptHandler for a processor\r
+  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the\r
+  handler for the processor interrupt or exception type specified by InterruptType is uninstalled.\r
   The installed handler is called once for each processor interrupt or exception.\r
   NOTE: This function should be invoked after InitializeCpuExceptionHandlers() or\r
   InitializeCpuInterruptHandlers() invoked, otherwise EFI_UNSUPPORTED returned.\r
index 7c82219dfa6e5fb939e9d0a528e78e58f7c45438..75443288a93049dc7ab3aca82521d52008853cfd 100644 (file)
@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
index 8baf045a619afa07b873c71609f5375e6155f5bc..a89537f7ff2d9f6e3575608921a1b67ff63b3466 100644 (file)
@@ -9,7 +9,7 @@
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index fb679b5782dce29981afe705d8cc8ffefa1fe818..0facfde5dd236da89253405173514095fbf0b368 100644 (file)
@@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 VOID\r
 CommonExceptionHandlerWorker (\r
-  IN EFI_EXCEPTION_TYPE          ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE          ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT          SystemContext,\r
   IN EXCEPTION_HANDLER_DATA      *ExceptionHandlerData\r
   )\r
@@ -87,7 +87,7 @@ CommonExceptionHandlerWorker (
     CpuDeadLoop ();\r
     break;\r
   }\r
-  \r
+\r
   if (ExternalInterruptHandler != NULL &&\r
       ExternalInterruptHandler[ExceptionType] != NULL) {\r
     (ExternalInterruptHandler[ExceptionType]) (ExceptionType, SystemContext);\r
@@ -100,7 +100,7 @@ CommonExceptionHandlerWorker (
     }\r
     //\r
     // Display ExceptionType, CPU information and Image information\r
-    //  \r
+    //\r
     DumpImageAndCpuContent (ExceptionType, SystemContext);\r
     //\r
     // Release Spinlock of output message\r
@@ -192,8 +192,8 @@ UpdateIdtTable (
 \r
   @param[in]      VectorInfo            Pointer to reserved vector list.\r
   @param[in, out] ExceptionHandlerData  Pointer to exception handler data.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
index 5d6807b367100060e887cf8905983cb6157f6310..af608bffb62284c392a4973bad967c651c45067c 100644 (file)
@@ -26,15 +26,15 @@ CONST UINTN    mDoFarReturnFlag  = 0;
 VOID\r
 EFIAPI\r
 CommonExceptionHandler (\r
-  IN EFI_EXCEPTION_TYPE   ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE   ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT   SystemContext\r
   )\r
 {\r
   //\r
   // Display ExceptionType, CPU information and Image information\r
-  //  \r
+  //\r
   DumpImageAndCpuContent (ExceptionType, SystemContext);\r
-  \r
+\r
   //\r
   // Enter a dead loop.\r
   //\r
@@ -43,17 +43,17 @@ CommonExceptionHandler (
 \r
 /**\r
   Initializes all CPU exceptions entries and provides the default exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
-  Note: Before invoking this API, caller must allocate memory for IDT table and load \r
+  Note: Before invoking this API, caller must allocate memory for IDT table and load\r
         IDTR by AsmWriteIdtr().\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -65,7 +65,7 @@ InitializeCpuExceptionHandlers (
   IN EFI_VECTOR_HANDOFF_INFO       *VectorInfo OPTIONAL\r
   )\r
 {\r
-  EFI_STATUS                       Status;  \r
+  EFI_STATUS                       Status;\r
   RESERVED_VECTORS_DATA            ReservedVectorData[CPU_EXCEPTION_NUM];\r
   IA32_DESCRIPTOR                  IdtDescriptor;\r
   UINTN                            IdtEntryCount;\r
@@ -122,15 +122,15 @@ InitializeCpuExceptionHandlers (
 \r
 /**\r
   Initializes all CPU interrupt/exceptions entries and provides the default interrupt/exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized\r
                                 with default interrupt/exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -148,9 +148,9 @@ InitializeCpuInterruptHandlers (
 /**\r
   Registers a function to be called from the processor interrupt handler.\r
 \r
-  This function registers and enables the handler specified by InterruptHandler for a processor \r
-  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the \r
-  handler for the processor interrupt or exception type specified by InterruptType is uninstalled. \r
+  This function registers and enables the handler specified by InterruptHandler for a processor\r
+  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the\r
+  handler for the processor interrupt or exception type specified by InterruptType is uninstalled.\r
   The installed handler is called once for each processor interrupt or exception.\r
   NOTE: This function should be invoked after InitializeCpuExceptionHandlers() or\r
   InitializeCpuInterruptHandlers() invoked, otherwise EFI_UNSUPPORTED returned.\r
index fba60a769f32c7813d8743aaecf1918f82b563b0..d70a99c100e91a767dfd9ab55b154717f2f6cb82 100644 (file)
@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
index b808c812f242b32809056d32996e451b78511b45..de8b846a67ba4ae9398ff56455470b262cf131d8 100644 (file)
@@ -9,7 +9,7 @@
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index c23c6181b9d1a1be255b273a9cd89bb7f1869347..634ffcb21d65057607d3d12fb330445d5656e062 100644 (file)
@@ -6,10 +6,10 @@
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
index a835101a2d2be46a2ed8f5a39a8b8b858f691bf9..3dfa69547b4a750f73c78995c2837f90713471f1 100644 (file)
@@ -9,7 +9,7 @@
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 5a3d4160250219591be5903bf0cb26aa9023744b..7414d3f773ea2d784fc96db050327acc1c9d1d49 100644 (file)
@@ -15,7 +15,7 @@
 #include <PiSmm.h>\r
 #include "CpuExceptionCommon.h"\r
 \r
-CONST UINTN   mDoFarReturnFlag   = 1; \r
+CONST UINTN   mDoFarReturnFlag   = 1;\r
 \r
 //\r
 // Spin lock for CPU information display\r
@@ -34,7 +34,7 @@ EXCEPTION_HANDLER_DATA      mExceptionHandlerData;
 VOID\r
 EFIAPI\r
 CommonExceptionHandler (\r
-  IN EFI_EXCEPTION_TYPE          ExceptionType, \r
+  IN EFI_EXCEPTION_TYPE          ExceptionType,\r
   IN EFI_SYSTEM_CONTEXT          SystemContext\r
   )\r
 {\r
@@ -43,15 +43,15 @@ CommonExceptionHandler (
 \r
 /**\r
   Initializes all CPU exceptions entries and provides the default exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           CPU Exception Entries have been successfully initialized\r
                                 with default exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -71,15 +71,15 @@ InitializeCpuExceptionHandlers (
 \r
 /**\r
   Initializes all CPU interrupt/exceptions entries and provides the default interrupt/exception handlers.\r
-  \r
+\r
   Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
   persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
-  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL. \r
+  If caller cannot get reserved vector list or it does not exists, set VectorInfo to NULL.\r
   If VectorInfo is not NULL, the exception vectors will be initialized per vector attribute accordingly.\r
 \r
   @param[in]  VectorInfo    Pointer to reserved vector list.\r
-  \r
-  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized \r
+\r
+  @retval EFI_SUCCESS           All CPU interrupt/exception entries have been successfully initialized\r
                                 with default interrupt/exception handlers.\r
   @retval EFI_INVALID_PARAMETER VectorInfo includes the invalid content if VectorInfo is not NULL.\r
   @retval EFI_UNSUPPORTED       This function is not supported.\r
@@ -97,9 +97,9 @@ InitializeCpuInterruptHandlers (
 /**\r
   Registers a function to be called from the processor interrupt handler.\r
 \r
-  This function registers and enables the handler specified by InterruptHandler for a processor \r
-  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the \r
-  handler for the processor interrupt or exception type specified by InterruptType is uninstalled. \r
+  This function registers and enables the handler specified by InterruptHandler for a processor\r
+  interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the\r
+  handler for the processor interrupt or exception type specified by InterruptType is uninstalled.\r
   The installed handler is called once for each processor interrupt or exception.\r
   NOTE: This function should be invoked after InitializeCpuExceptionHandlers() or\r
   InitializeCpuInterruptHandlers() invoked, otherwise EFI_UNSUPPORTED returned.\r
index c0d19b9fc50708047787b05274f9ce721bd36428..65f0cff6805f07dd5df96b375694a62faf894bfe 100644 (file)
@@ -29,7 +29,7 @@ ArchUpdateIdtEntry (
 {\r
   IdtEntry->Bits.OffsetLow   = (UINT16)(UINTN)InterruptHandler;\r
   IdtEntry->Bits.OffsetHigh  = (UINT16)((UINTN)InterruptHandler >> 16);\r
-  IdtEntry->Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32);        \r
+  IdtEntry->Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32);\r
   IdtEntry->Bits.GateType    = IA32_IDT_GATE_TYPE_INTERRUPT_32;\r
 }\r
 \r
@@ -79,7 +79,7 @@ ArchSaveExceptionContext (
   // Clear IF flag to avoid old IDT handler enable interrupt by IRET\r
   //\r
   Eflags.UintN = SystemContext.SystemContextX64->Rflags;\r
-  Eflags.Bits.IF = 0; \r
+  Eflags.Bits.IF = 0;\r
   SystemContext.SystemContextX64->Rflags = Eflags.UintN;\r
   //\r
   // Modify the EIP in stack, then old IDT handler will return to the stub code\r
@@ -236,7 +236,7 @@ DumpCpuContext (
     SystemContext.SystemContextX64->Idtr[1],\r
     SystemContext.SystemContextX64->Tr\r
     );\r
-       InternalPrintMessage (\r
+  InternalPrintMessage (\r
     "FXSAVE_STATE - %016lx\n",\r
     &SystemContext.SystemContextX64->FxSaveState\r
     );\r
index 975adaa103ef0e02fb8299a2590ff9a3d151c722..edd363cdaa87106927170ae66f4bf2a07a5247f8 100644 (file)
@@ -29,8 +29,8 @@ ASM_GLOBAL ASM_PFX(CommonExceptionHandler)
 .text\r
 \r
 #ifdef __APPLE__\r
-# macros are different between GNU and Xcode as. \r
-.macro IDT_MACRO \r
+# macros are different between GNU and Xcode as.\r
+.macro IDT_MACRO\r
   push     $0\r
 #else\r
 .macro IDT_MACRO arg\r
@@ -78,7 +78,7 @@ AsmIdtVectorEnd:
 HookAfterStubHeaderBegin:\r
     .byte   0x6a      # push\r
 PatchVectorNum:\r
-    .byte   0         # 0 will be fixed \r
+    .byte   0         # 0 will be fixed\r
     .byte   0xe9      # jmp     ASM_PFX(HookAfterStubHeaderEnd)\r
 PatchFuncAddress:\r
      .set   HOOK_ADDRESS, ASM_PFX(HookAfterStubHeaderEnd) - . - 4\r
@@ -234,16 +234,16 @@ CommonInterruptEntry_al_0000:
     movq    %cr8, %rax\r
     pushq   %rax\r
     movq    %cr4, %rax\r
-    orq     $0x208, %rax \r
-    movq    %rax, %cr4 \r
+    orq     $0x208, %rax\r
+    movq    %rax, %cr4\r
     pushq   %rax\r
-    mov     %cr3, %rax \r
+    mov     %cr3, %rax\r
     pushq   %rax\r
-    mov     %cr2, %rax \r
+    mov     %cr2, %rax\r
     pushq   %rax\r
     xorq    %rax, %rax\r
     pushq   %rax\r
-    mov     %cr0, %rax \r
+    mov     %cr0, %rax\r
     pushq   %rax\r
 \r
 #; UINT64  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;\r
@@ -278,7 +278,7 @@ CommonInterruptEntry_al_0000:
     # Per X64 calling convention, allocate maximum parameter stack space\r
     # and make sure RSP is 16-byte aligned\r
     #\r
-    subq    $40, %rsp \r
+    subq    $40, %rsp\r
     call    ASM_PFX(CommonExceptionHandler)\r
     addq    $40, %rsp\r
 \r
index cd21ec4c90c62878788e31be7e8c1f5837f7882f..726c64a14055b0d5342b923ed78b0af4ebab94f9 100644 (file)
@@ -47,7 +47,7 @@ AsmIdtVectorEnd:
 HookAfterStubHeaderBegin:\r
     db      6ah        ; push\r
 @VectorNum:\r
-    db      0          ; 0 will be fixed \r
+    db      0          ; 0 will be fixed\r
     push    rax\r
     mov     rax, HookAfterStubHeaderEnd\r
     jmp     rax\r
@@ -89,7 +89,7 @@ HookAfterStubHeaderEnd:
 ; +    RBP              +\r
 ; +---------------------+ <-- RBP, 16-byte aligned\r
 ; The follow algorithm is used for the common interrupt routine.\r
-CommonInterruptEntry PROC PUBLIC  \r
+CommonInterruptEntry PROC PUBLIC\r
     cli\r
     pop     rax\r
     ;\r
@@ -111,7 +111,7 @@ NoErrorCode:
     ;\r
     push    [rsp]\r
     mov     qword ptr [rsp + 8], 0\r
-@@:       \r
+@@:\r
     push    rbp\r
     mov     rbp, rsp\r
     push    0             ; clear EXCEPTION_HANDLER_CONTEXT.OldIdtHandler\r
@@ -351,7 +351,7 @@ DoReturn:
     jz      DoIret\r
     push    rax\r
     mov     rax, rsp          ; save old RSP to rax\r
-    mov     rsp, [rsp + 20h]   \r
+    mov     rsp, [rsp + 20h]\r
     push    [rax + 10h]       ; save CS in new location\r
     push    [rax + 8h]        ; save EIP in new location\r
     push    [rax + 18h]       ; save EFLAGS in new location\r