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