2016-06-08 11:01:33 +02:00
|
|
|
;; @file
|
|
|
|
; SEC CAR function
|
|
|
|
;
|
|
|
|
; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:04:04 +02:00
|
|
|
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
2016-06-08 11:01:33 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
;
|
|
|
|
; Define assembler characteristics
|
|
|
|
;
|
|
|
|
|
|
|
|
%macro RET_ESI 0
|
|
|
|
|
|
|
|
movd esi, mm7 ; move ReturnAddress from MM7 to ESI
|
|
|
|
jmp esi
|
|
|
|
|
|
|
|
%endmacro
|
|
|
|
|
|
|
|
SECTION .text
|
|
|
|
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; Section: SecCarInit
|
|
|
|
;
|
|
|
|
; Description: This function initializes the Cache for Data, Stack, and Code
|
|
|
|
;
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
global ASM_PFX(SecCarInit)
|
|
|
|
ASM_PFX(SecCarInit):
|
|
|
|
|
|
|
|
;
|
|
|
|
; Set up CAR
|
|
|
|
;
|
|
|
|
|
|
|
|
xor eax, eax
|
|
|
|
|
|
|
|
SecCarInitExit:
|
|
|
|
|
|
|
|
RET_ESI
|
|
|
|
|