]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/SwapBytes64.nasm
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / SwapBytes64.nasm
CommitLineData
1d3324f9
JJ
1;------------------------------------------------------------------------------\r
2;\r
3; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
9344f092 4; SPDX-License-Identifier: BSD-2-Clause-Patent\r
1d3324f9
JJ
5;\r
6; Module Name:\r
7;\r
8; CpuId.Asm\r
9;\r
10; Abstract:\r
11;\r
12; AsmCpuid function\r
13;\r
14; Notes:\r
15;\r
16;------------------------------------------------------------------------------\r
17\r
18 SECTION .text\r
19\r
20;------------------------------------------------------------------------------\r
21; UINT64\r
22; EFIAPI\r
23; InternalMathSwapBytes64 (\r
24; IN UINT64 Operand\r
25; );\r
26;------------------------------------------------------------------------------\r
27global ASM_PFX(InternalMathSwapBytes64)\r
28ASM_PFX(InternalMathSwapBytes64):\r
29 mov eax, [esp + 8] ; eax <- upper 32 bits\r
30 mov edx, [esp + 4] ; edx <- lower 32 bits\r
31 bswap eax\r
32 bswap edx\r
33 ret\r
34\r