]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Universal/Acpi/S3Resume2Pei/X64/AsmFuncs.S
SourceLevelDebugPkg: Remove X86 ASM and S files
[mirror_edk2.git] / UefiCpuPkg / Universal / Acpi / S3Resume2Pei / X64 / AsmFuncs.S
1 #------------------------------------------------------------------------------
2 #*
3 #* Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
4 #* This program and the accompanying materials
5 #* are licensed and made available under the terms and conditions of the BSD License
6 #* which accompanies this distribution. The full text of the license may be found at
7 #* http://opensource.org/licenses/bsd-license.php
8 #*
9 #* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 #* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #*
12 #* AsmFuncs.S
13 #*
14 #* Abstract:
15 #*
16 #* Assembly function to set segment selectors.
17 #
18 #------------------------------------------------------------------------------
19
20 .text
21
22 #------------------------------------------------------------------------------
23 #
24 # VOID
25 # EFIAPI
26 # AsmSetDataSelectors (
27 # IN UINT16 SelectorValue
28 # );
29 #------------------------------------------------------------------------------
30 ASM_GLOBAL ASM_PFX(AsmSetDataSelectors)
31 ASM_PFX(AsmSetDataSelectors):
32 movw %cx, %ss
33 movw %cx, %ds
34 movw %cx, %es
35 movw %cx, %fs
36 movw %cx, %gs
37 ret