]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Universal/Acpi/S3Resume2Pei/Ia32/AsmFuncs.nasm
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Universal / Acpi / S3Resume2Pei / Ia32 / AsmFuncs.nasm
CommitLineData
5104be5f
LG
1;------------------------------------------------------------------------------ ;\r
2; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
0acd8697 3; SPDX-License-Identifier: BSD-2-Clause-Patent\r
5104be5f
LG
4;\r
5; Module Name:\r
6;\r
7; AsmFuncs.Asm\r
8;\r
9; Abstract:\r
10;\r
11; Assembly function to set segment selectors.\r
12;\r
13; Notes:\r
14;\r
15;------------------------------------------------------------------------------\r
16\r
17SECTION .text\r
18\r
19;------------------------------------------------------------------------------\r
20; VOID\r
21; EFIAPI\r
22; AsmSetDataSelectors (\r
23; IN UINT16 SelectorValue\r
24; );\r
25;------------------------------------------------------------------------------\r
26global ASM_PFX(AsmSetDataSelectors)\r
27ASM_PFX(AsmSetDataSelectors):\r
28 mov eax, [esp + 4]\r
29o16 mov ds, ax\r
30o16 mov es, ax\r
31o16 mov fs, ax\r
32o16 mov gs, ax\r
33o16 mov ss, ax\r
34 ret\r
35\r