]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionTssEntryAsm.nasm
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / Ia32 / ExceptionTssEntryAsm.nasm
index 62bcedea1a29485ab68dae74c4fc104e9f7f82b4..dd3f74d2aa8c00323ef07c1404803b7abc0066c1 100644 (file)
@@ -1,12 +1,6 @@
 ;------------------------------------------------------------------------------ ;\r
 ; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
-; This program and the accompanying materials\r
-; 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
-; 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
+; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
 ;\r
@@ -355,10 +349,8 @@ o16 mov     [ecx + IA32_TSS._SS], ax
     movzx  ebx, word [ecx + IA32_TSS._CS]\r
     mov    [eax - 0x8], ebx                      ; create CS in old stack\r
     mov    ebx, dword [ecx + IA32_TSS.EFLAGS]\r
-    bts    ebx, 8\r
+    bts    ebx, 8                                ; Set TF\r
     mov    [eax - 0x4], ebx                      ; create eflags in old stack\r
-    mov    dword [ecx + IA32_TSS.EFLAGS], ebx    ; update eflags in old TSS\r
-    mov    eax, dword [ecx + IA32_TSS._ESP]      ; Get old stack pointer\r
     sub    eax, 0xc                              ; minus 12 byte\r
     mov    dword [ecx + IA32_TSS._ESP], eax      ; Set new stack pointer\r
 \r