]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/Ia32/ReadCs.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadCs.c
... / ...
CommitLineData
1/** @file\r
2 AsmReadCs 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 Code Segment Register (CS).\r
11\r
12 Reads and returns the current value of CS. This function is only available on\r
13 IA-32 and x64.\r
14\r
15 @return The current value of CS.\r
16\r
17**/\r
18UINT16\r
19EFIAPI\r
20AsmReadCs (\r
21 VOID\r
22 )\r
23{\r
24 __asm {\r
25 xor eax, eax\r
26 mov ax, cs\r
27 }\r
28}\r