]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/ReadSs.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadSs.c
1 /** @file
2 AsmReadSs function
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Reads the current value of Stack Segment Register (SS).
11
12 Reads and returns the current value of SS. This function is only available on
13 IA-32 and x64.
14
15 @return The current value of SS.
16
17 **/
18 UINT16
19 EFIAPI
20 AsmReadSs (
21 VOID
22 )
23 {
24 __asm {
25 xor eax, eax
26 mov ax, ss
27 }
28 }