]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | AsmReadMm7 function\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | \r | |
10 | \r | |
11 | \r | |
12 | /**\r | |
13 | Reads the current value of 64-bit MMX Register #7 (MM7).\r | |
14 | \r | |
15 | Reads and returns the current value of MM7. This function is only available\r | |
16 | on IA-32 and x64.\r | |
17 | \r | |
18 | @return The current value of MM7.\r | |
19 | \r | |
20 | **/\r | |
21 | UINT64\r | |
22 | EFIAPI\r | |
23 | AsmReadMm7 (\r | |
24 | VOID\r | |
25 | )\r | |
26 | {\r | |
27 | _asm {\r | |
28 | push eax\r | |
29 | push eax\r | |
30 | movq [esp], mm7\r | |
31 | pop eax\r | |
32 | pop edx\r | |
33 | emms\r | |
34 | }\r | |
35 | }\r | |
36 | \r |