]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Universal/Acpi/S3Resume2Pei/X64/AsmFuncs.nasm
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Universal / Acpi / S3Resume2Pei / X64 / 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 DEFAULT REL
18 SECTION .text
19
20 ;------------------------------------------------------------------------------
21 ; VOID
22 ; EFIAPI
23 ; AsmSetDataSelectors (
24 ; IN UINT16 SelectorValue
25 ; );
26 ;------------------------------------------------------------------------------
27 global ASM_PFX(AsmSetDataSelectors)
28 ASM_PFX(AsmSetDataSelectors):
29 o16 mov ds, cx
30 o16 mov es, cx
31 o16 mov fs, cx
32 o16 mov gs, cx
33 o16 mov ss, cx
34 ret
35