]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteTr.nasm
e36c63863ce705efcf400a2df788c141560816c0
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteTr.nasm
1 ;------------------------------------------------------------------------------ ;
2 ; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
3 ; SPDX-License-Identifier: BSD-2-Clause-Patent
4 ;
5 ; Module Name:
6 ;
7 ; WriteTr.nasm
8 ;
9 ; Abstract:
10 ;
11 ; Write TR register
12 ;
13 ; Notes:
14 ;
15 ;------------------------------------------------------------------------------
16
17 SECTION .text
18
19 ;------------------------------------------------------------------------------
20 ; VOID
21 ; AsmWriteTr (
22 ; UINT16 Selector
23 ; );
24 ;------------------------------------------------------------------------------
25 global ASM_PFX(AsmWriteTr)
26 ASM_PFX(AsmWriteTr):
27 mov eax, [esp+4]
28 ltr ax
29 ret
30