AsmSaveSecContext.asm 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ;------------------------------------------------------------------------------
  2. ;
  3. ; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
  4. ; SPDX-License-Identifier: BSD-2-Clause-Patent
  5. ;
  6. ; Module Name:
  7. ;
  8. ; SecEntry.asm
  9. ;
  10. ; Abstract:
  11. ;
  12. ; This is the code that goes from real-mode to protected mode.
  13. ; It consumes the reset vector, calls two basic APIs from FSP binary.
  14. ;
  15. ;------------------------------------------------------------------------------
  16. .686p
  17. .xmm
  18. .model flat,c
  19. .code
  20. ;----------------------------------------------------------------------------
  21. ; MMX Usage:
  22. ; MM0 = BIST State
  23. ; MM5 = Save time-stamp counter value high32bit
  24. ; MM6 = Save time-stamp counter value low32bit.
  25. ;
  26. ; It should be same as SecEntry.asm and PeiCoreEntry.asm.
  27. ;----------------------------------------------------------------------------
  28. AsmSaveBistValue PROC PUBLIC
  29. mov eax, [esp+4]
  30. movd mm0, eax
  31. ret
  32. AsmSaveBistValue ENDP
  33. AsmSaveTickerValue PROC PUBLIC
  34. mov eax, [esp+4]
  35. movd mm6, eax
  36. mov eax, [esp+8]
  37. movd mm5, eax
  38. ret
  39. AsmSaveTickerValue ENDP
  40. END