SecCarInit.asm 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ;; @file
  2. ; SEC CAR function
  3. ;
  4. ; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
  5. ; SPDX-License-Identifier: BSD-2-Clause-Patent
  6. ;;
  7. ;
  8. ; Define assembler characteristics
  9. ;
  10. .586p
  11. .xmm
  12. .model flat, c
  13. RET_ESI MACRO
  14. movd esi, mm7 ; move ReturnAddress from MM7 to ESI
  15. jmp esi
  16. ENDM
  17. .code
  18. ;-----------------------------------------------------------------------------
  19. ;
  20. ; Section: SecCarInit
  21. ;
  22. ; Description: This function initializes the Cache for Data, Stack, and Code
  23. ;
  24. ;-----------------------------------------------------------------------------
  25. SecCarInit PROC NEAR PUBLIC
  26. ;
  27. ; Set up CAR
  28. ;
  29. xor eax, eax
  30. SecCarInitExit:
  31. RET_ESI
  32. SecCarInit ENDP
  33. END