]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/Ia32/ReadFs.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadFs.c
... / ...
CommitLineData
1/** @file\r
2 AsmReadFs function\r
3\r
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9/**\r
10 Reads the current value of FS Data Segment Register (FS).\r
11\r
12 Reads and returns the current value of FS. This function is only available on\r
13 IA-32 and x64.\r
14\r
15 @return The current value of FS.\r
16\r
17**/\r
18UINT16\r
19EFIAPI\r
20AsmReadFs (\r
21 VOID\r
22 )\r
23{\r
24 __asm {\r
25 xor eax, eax\r
26 mov ax, fs\r
27 }\r
28}\r