1 ;------------------------------------------------------------------------------ ;
2 ; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
3 ; This program and the accompanying materials
4 ; are licensed and made available under the terms and conditions of the BSD License
5 ; which accompanies this distribution. The full text of the license may be found at
6 ; http://opensource.org/licenses/bsd-license.php.
8 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 ;-------------------------------------------------------------------------------
17 global ASM_PFX(DisableCet)
20 ; Skip the pushed data for call
25 btr eax, 23 ; clear CET
29 global ASM_PFX(EnableCet)
36 ; use jmp to skip the check for ret