]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X86WriteIdtr.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / X86WriteIdtr.c
1 /** @file
2 IA-32/x64 AsmWriteIdtr()
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "BaseLibInternals.h"
10
11 /**
12 Writes the current Interrupt Descriptor Table Register(IDTR) descriptor.
13
14 Writes the current IDTR descriptor and returns it in Idtr. This function is
15 only available on IA-32 and x64.
16
17 If Idtr is NULL, then ASSERT().
18
19 @param Idtr The pointer to a IDTR descriptor.
20
21 **/
22 VOID
23 EFIAPI
24 AsmWriteIdtr (
25 IN CONST IA32_DESCRIPTOR *Idtr
26 )
27 {
28 ASSERT (Idtr != NULL);
29 InternalX86WriteIdtr (Idtr);
30 }