Home | History | Annotate | Download | only in Ia32
      1 ;; @file
      2 ;  SEC CAR function
      3 ;
      4 ; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
      5 ; This program and the accompanying materials
      6 ; are licensed and made available under the terms and conditions of the BSD License
      7 ; which accompanies this distribution.  The full text of the license may be found at
      8 ; http://opensource.org/licenses/bsd-license.php.
      9 ;
     10 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     11 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     12 ;;
     13 
     14 ;
     15 ; Define assembler characteristics
     16 ;
     17 .586p
     18 .xmm
     19 .model flat, c
     20 
     21 RET_ESI  MACRO
     22 
     23   movd    esi, mm7                      ; move ReturnAddress from MM7 to ESI
     24   jmp     esi
     25 
     26 ENDM
     27 
     28 .code 
     29 
     30 ;-----------------------------------------------------------------------------
     31 ;
     32 ;  Section:     SecCarInit
     33 ;
     34 ;  Description: This function initializes the Cache for Data, Stack, and Code
     35 ;
     36 ;-----------------------------------------------------------------------------
     37 SecCarInit    PROC    NEAR    PUBLIC
     38 
     39   ;
     40   ; Set up CAR
     41   ;
     42 
     43   xor    eax, eax
     44 
     45 SecCarInitExit:
     46 
     47   RET_ESI
     48 
     49 SecCarInit    ENDP
     50 
     51 END
     52