;------------------------------------------------------------------------------ ;\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
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