]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X64/WriteTr.nasm
MdePkg/BaseLib: Add stack switch related definitions for IA32
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / WriteTr.nasm
CommitLineData
364a5474
JW
1;------------------------------------------------------------------------------ ;\r
2; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
3; This program and the accompanying materials\r
4; are licensed and made available under the terms and conditions of the BSD License\r
5; which accompanies this distribution. The full text of the license may be found at\r
6; http://opensource.org/licenses/bsd-license.php.\r
7;\r
8; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
9; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
10;\r
11; Module Name:\r
12;\r
13; WriteTr.nasm\r
14;\r
15; Abstract:\r
16;\r
17; Write TR register\r
18;\r
19; Notes:\r
20;\r
21;------------------------------------------------------------------------------\r
22\r
23 DEFAULT REL\r
24 SECTION .text\r
25\r
26;------------------------------------------------------------------------------\r
27; VOID\r
28; AsmWriteTr (\r
29; UINT16 Selector\r
30; );\r
31;------------------------------------------------------------------------------\r
32global ASM_PFX(AsmWriteTr)\r
33ASM_PFX(AsmWriteTr):\r
34 mov eax, ecx\r
35 ltr ax\r
36 ret\r
37\r